/* --------------------------------------------------
       1. Base & Reset Styles (Apple Minimal Concept)
    -------------------------------------------------- */
    :root {
      --bg-color: #ffffff;
      --card-bg: #ffffff;
      --text-main: #1d1d1f;
      --text-sub: #86868b;
      --accent-color: #F36523;
      --accent-hover: #df5315;
      --border-color: #e5e5e7;
      --font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: var(--font-family);
      background-color: #FFFFFF;
      color: var(--text-main);
      line-height: 1.5;
      font-size: 16px;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    /* --------------------------------------------------
       2. Apple-inspired single-row navigation
       -------------------------------------------------- */
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 64px;
        background: rgba(255,255,255,.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 1000;
        border-bottom: 1px solid #ededed;
    }
    .nav-container {
        width: 100%;
        max-width: 1500px;
        min-height: 64px;
        margin: 0 auto;
        padding: 0 clamp(20px,3vw,48px);
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: clamp(24px,3vw,54px);
    }
    .nav-logo {
        width: 185px;
        max-width: none;
        height: auto;
        display: block;
        flex: 0 0 auto;
        transform: none;
    }
    .nav-container nav { flex: 1 1 auto; min-width: 0; order: 1; }
    .nav-actions { order: 2; display:flex; align-items:center; margin-left: 2px; }
    .nav-toggle { order: 3; }
    .nav-container nav ul {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        list-style: none;
        gap: 12px;
        margin: 0;
        padding: 0;
    }
    .nav-container nav li { flex: 0 0 auto; }
    .nav-container nav a {
        display: inline-flex;
        align-items: center;
        min-height: 64px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        color: #252525;
        opacity: 1;
        transition: color .2s ease;
    }
    .nav-container nav a:hover,
    .nav-container nav a:focus-visible { color: #F36523; }
    .nav-container nav a.menu-highlight { color: #F36523; font-weight: 600; }
    .nav-toggle {
        display: none;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #252525;
        font-size: 25px;
        cursor: pointer;
    }
    @media (max-width: 1100px) {
        .top-header { position: relative; }
        .nav-container { position: relative; min-height: 64px; justify-content: space-between; gap: 12px; }
        .nav-actions { margin-left: auto; }
        .nav-logo { width: 175px; max-width: calc(100% - 64px); }
        .nav-toggle { display: inline-flex; }
        .nav-container nav {
            display: none;
            position: absolute;
            top: 100%; left: 0; right: 0;
            width: 100%;
            background: #fff;
            border-top: 1px solid #ededed;
            border-bottom: 1px solid #ededed;
            box-shadow: 0 12px 20px rgba(0,0,0,.08);
            z-index: 1100;
            padding: 8px 24px 14px;
        }
        .nav-container nav.is-open { display: block; }
        .nav-container nav ul { flex-direction: column; align-items: stretch; gap: 0; }
        .nav-container nav li { width: 100%; }
        .nav-container nav a { display: flex; min-height: 44px; font-size: 15px; padding: 10px 4px; }
    }
    @media (max-width: 420px) {
        .nav-container { padding: 0 16px; }
        .nav-logo { width: 160px; }
    }

    /* --------------------------------------------------
       3. Hero Section
    -------------------------------------------------- */
    .hero {
      padding-top: 140px;
      padding-bottom: 100px;
      text-align: center;
      max-width: 980px;
      margin: 0 auto;
      padding-left: 20px;
      padding-right: 20px;
    }

    .hero-subtitle {
      font-size: 1.90rem;
      font-weight: 600;
      color: var(--accent-color);
      margin-bottom: 12px;
    }

    .hero-title {
      font-size: 56px;
      font-weight: 700;
      letter-spacing: -1.5px;
      line-height: 1.15;
      margin-bottom: 24px;
      color: var(--text-main);
    }

    .hero-description {
      font-size: 20px;
      color: var(--text-sub);
      font-weight: 400;
      max-width: 680px;
      margin: 0 auto 36px;
      word-break: keep-all;
    }

    .cta-button {
      display: inline-block;
      background-color: var(--accent-color);
      color: #fff;
      padding: 12px 26px;
      border-radius: 980px;
      font-size: 0.95rem;
      font-weight: 500;
      transition: all 0.2s ease;
    }

    .cta-button:hover {
      background-color: var(--accent-hover);
      transform: translateY(-1px);
    }

    /* --------------------------------------------------
       4. Main Services Section (Grid Layout)
    -------------------------------------------------- */
    .section-container {
      max-width: 1024px;
      margin: 0 auto;
      padding: 60px 20px 100px;
    }

    .section-header {
      margin-bottom: 48px;
      text-align: center;
    }

    .section-title {
      font-size: 32px;
      font-weight: 600;
      letter-spacing: -0.8px;
    }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }

    .card {
      background-color: var(--card-bg);
      border-radius: 20px;
      padding: 48px 40px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .card-category {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-sub);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }

    .card-title {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 16px;
      letter-spacing: -0.5px;
    }

    .card-desc {
      font-size: 16px;
      font-weight: 400;
      color: var(--text-sub);
      line-height: 1.6;
      word-break: keep-all;
    }

    .card-link {
      margin-top: 28px;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--accent-color);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* --------------------------------------------------
       5. Customer Support & Info Box
    -------------------------------------------------- */
    .info-box {
      background-color: var(--card-bg);
      border-radius: 20px;
      padding: 56px 40px;
      margin-top: 40px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 35px;
      text-align: center;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    .info-item h4 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .info-item p {
      font-size: 16px;
      font-weight: 400;
      color: var(--text-sub);
      line-height: 1.5;
    }

    /* --------------------------------------------------
       6. Footer
    -------------------------------------------------- */
    footer {
      border-top: 1px solid var(--border-color);
      padding: 40px 20px 60px;
      background-color: var(--bg-color);
      font-size: 16px;
      font-weight: 400;
      color: var(--text-sub);
    }

    .footer-container {
      max-width: 1024px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .footer-info {
      margin-bottom: 16px;
    }

    /* --------------------------------------------------
       7. Responsive Layout (Content)
    -------------------------------------------------- */
    @media (max-width: 768px) {
        .hero-title { font-size: 36px; }
        .card-grid { grid-template-columns: 1fr; }
        .info-box { grid-template-columns: 1fr; gap: 24px; text-align: left; }
        .hero { padding-top: 70px; }
    }

/* =========================================
   고정 이미지 + 텍스트 전환 배너
========================================= */

.cinematic-banner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 650px;
    padding: 80px 6%;
    gap: 30px;
    overflow: hidden;

    background: #ffffff;
}

/* 왼쪽 텍스트 영역 */

.cinematic-text-area {
    position: relative;
    flex: 1;
    height: 360px;
    min-width: 0;
}

.cinematic-text-slide {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease,
        visibility 0.9s;
}

.cinematic-text-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cinematic-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #F36523;
    margin-bottom: 25px;
}

.cinematic-text-slide h1 {
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -2px;
    color: #1d1d1f;
    margin-bottom: 28px;
    word-break: keep-all;
}

.cinematic-text-slide p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    word-break: keep-all;
}

.cinematic-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    background: #F36523;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.cinematic-button:hover {
    background: #d95113;
}

/* 오른쪽 고정 이미지 */

.cinematic-fixed-visual {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 490px;

    display: flex;
    align-items: center;
    justify-content: center;

}
.cinematic-fixed-visual img {
    position: absolute;

    width: 120%;
    max-width: 750px;
    max-height: 490px;
    height: auto;

    object-fit: contain;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;

    filter: drop-shadow(
        0 35px 35px rgba(0, 0, 0, 0.16)
    );

    animation: none;
    transform: none;
}

.cinematic-fixed-visual img.active {
    opacity: 1;
    visibility: visible;
}

/* 하단 조작 버튼 */

.cinematic-controls {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 20px;
}

.cinematic-controls button {
    border: none;
    cursor: pointer;
    background: transparent;
    color: #555;
}

.cinematic-prev,
.cinematic-next {
    width: 44px;
    height: 44px;
    font-size: 32px;
}

.cinematic-dots {
    display: flex;
    gap: 10px;
}

.cinematic-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: #bfc3ca;
}

.cinematic-dots button.active {
    width: 28px;
    border-radius: 10px;
    background: #F36523;
}

.cinematic-pause {
    width: 44px;
    height: 44px;
    font-size: 17px;
}

/* 모바일 */

@media (max-width: 768px) {

    .cinematic-banner {
        height: auto;
        min-height: 720px;
        flex-direction: column;
        justify-content: center;
        padding: 90px 20px 100px;
        gap: 25px;
    }

    .cinematic-text-area {
        flex: none;
        width: 100%;
        height: 350px;
    }

    .cinematic-text-slide {
        align-items: center;
        text-align: center;
    }

    .cinematic-text-slide h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .cinematic-text-slide p {
        font-size: 16px;
    }

    .cinematic-fixed-visual {
        flex: none;
        width: 100%;
    }

    .cinematic-fixed-visual img {
        max-width: 330px;
        max-height: 270px;
    }

    .cinematic-controls {
        bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-text-slide {
        transition: none;
        transform: none;
    }
}

/* --------------------------------------------------
   8. Site-wide search (v1.7)
-------------------------------------------------- */
.search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 44px; border: 0; background: transparent; color: #252525; cursor: pointer; border-radius: 8px; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: #F36523; background: #fff2eb; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-search[hidden] { display: none !important; }
.site-search { position: absolute; top: 100%; left: 0; width: 100%; z-index: 1200; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.12); border-top: 1px solid #eee; max-height: min(75vh, 640px); overflow: auto; }
.site-search-inner { max-width: 900px; margin: 0 auto; padding: 24px 24px 30px; }
#site-search-form { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #333; padding-bottom: 12px; }
#site-search-form svg { flex: 0 0 auto; color: #555; }
#site-search-input { min-width: 0; flex: 1; border: 0; outline: 0; font: inherit; font-size: 19px; background: transparent; color: #222; }
#site-search-input::-webkit-search-cancel-button { cursor: pointer; }
.site-search-submit { background: #F36523; color: #fff; border: 0; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.site-search-close { border: 0; background: transparent; color: #666; font-size: 28px; line-height: 1; cursor: pointer; padding: 2px 8px; }
.site-search-status { margin: 18px 0 10px; color: #666; font-size: 14px; }
.site-search-results { display: grid; gap: 10px; }
.site-search-result { display: block; padding: 14px 16px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.site-search-result:hover, .site-search-result:focus-visible { border-color: #F36523; background: #fff9f5; }
.site-search-result-title { display: block; font-weight: 700; font-size: 16px; color: #222; }
.site-search-result-description { display: block; margin-top: 4px; font-size: 13px; color: #666; line-height: 1.6; overflow-wrap: anywhere; }
.site-search-result-path { display: block; margin-top: 5px; font-size: 12px; color: #888; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .nav-container { position: relative; }
  .nav-container nav { order: 4; }
  .site-search { position: absolute; }
}
@media (max-width: 420px) {
  .nav-container { gap: 2px; }
  .search-toggle { width: 36px; }
  .nav-toggle { width: 36px; flex-basis: 36px; }
  .site-search-inner { padding: 16px 14px 24px; }
  #site-search-form { gap: 8px; }
  #site-search-input { font-size: 15px; }
  .site-search-submit { padding: 8px 10px; }
}
/* ===== 관리자 페이지 스타일 ===== */

.hidden {
    display: none !important;
}

.admin-shell {
    width: min(1100px, calc(100% - 40px));
    margin: 50px auto;
    padding-bottom: 80px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-head h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.admin-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.admin-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-card label {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.admin-card input:not([type="checkbox"]),
.admin-card textarea {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.admin-card textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-card input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.admin-note {
    padding: 16px;
    background: #fff7ed;
    border-radius: 10px;
    color: #9a3412;
}

.muted {
    color: #777;
    font-size: 14px;
}

.btn {
    display: inline-block;
    width: fit-content;
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    background: #F36523;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn.alt {
    background: #e5e7eb;
    color: #333;
}

#noticesTable,
#popupsTable {
    overflow-x: auto;
}

#noticesTable table,
#popupsTable table {
    width: 100%;
    border-collapse: collapse;
}

#noticesTable th,
#noticesTable td,
#popupsTable th,
#popupsTable td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

@media (max-width: 768px) {
    .admin-shell {
        width: calc(100% - 24px);
        margin: 24px auto;
    }

    .admin-card {
        padding: 20px;
    }

    .admin-head {
        align-items: flex-start;
        gap: 12px;
    }
}

/* =========================================
   CS이노베이션 공지사항 페이지 디자인
   ========================================= */

.content-wrap {
    width: min(1100px, calc(100% - 40px));
    margin: 60px auto 100px;
    min-height: 500px;
}

.content-wrap h1 {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
}

.content-wrap > .muted {
    font-size: 16px;
    color: #777;
    margin-bottom: 35px;
}

/* 공지사항 목록 */

.notice-list {
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #F36523;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

/* 공지사항 개별 항목 */

.notice-list > * {
    display: block;
    padding: 20px 24px;
    border-bottom: 1px solid #eeeeee;
    box-sizing: border-box;
}

.notice-list > *:last-child {
    border-bottom: none;
}

/* 제목 및 링크 */

.notice-list a {
    color: #222;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}

.notice-list a:hover {
    color: #F36523;
}

/* 날짜 및 부가정보 */

.notice-list small,
.notice-list time {
    color: #999;
    font-size: 13px;
}

/* 마우스 효과 */

.notice-list > *:hover {
    background: #fffaf6;
}

/* 모바일 */

@media (max-width: 768px) {

    .content-wrap {
        width: calc(100% - 30px);
        margin: 35px auto 70px;
    }

    .content-wrap h1 {
        font-size: 28px;
    }

    .notice-list > * {
        padding: 16px;
    }

    .notice-list a {
        font-size: 15px;
    }
}
