:root{
    --red:#b90920; --red2:#e60814; --red-bright:#ff1f2e;
    --ink:#111; --dark:#0d0d0d; --dark2:#161616;
    --gray:#8a8a8a; --line:#e7e7e7; --bg:#f5f5f5;
    --wrap:1180px; --header-h:84px;
  }
  *{box-sizing:border-box; margin:0; padding:0}
  html{scroll-behavior:smooth}
  body{font-family:"Pretendard","Pretendard Variable",system-ui,sans-serif; color:var(--ink); background:#fff;
       line-height:1.5; -webkit-font-smoothing:antialiased; overflow-x:hidden}
  img{max-width:100%; display:block}
  a{color:inherit; text-decoration:none}
  .wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px}
  .red{color:var(--red2)}
  .kw{color:var(--red2); font-weight:900}

  /* ===== 서브페이지 공통 (고정 헤더 아래 여백 + 상단 배너) ===== */
  .subhero{padding:calc(var(--header-h) + 74px) 0 74px; text-align:center; color:#fff; position:relative; overflow:hidden;
           background:var(--dark)}
  .subhero.bg::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,.7)); z-index:1}
  .subhero>*{position:relative; z-index:2}
  .subhero .badge{margin-bottom:20px}
  .subhero h1{font-size:clamp(30px,5vw,54px); font-weight:900; letter-spacing:-.02em; line-height:1.2}
  .subhero p{margin-top:16px; font-size:clamp(15px,2vw,19px); opacity:.85; line-height:1.7}
  .page-pad{padding-top:var(--header-h)}   /* 배너 없이 바로 흰 콘텐츠 시작하는 페이지용 */

  /* ===== Header ===== */
  header{position:fixed; top:0; left:0; right:0; height:var(--header-h); z-index:100;
         background:rgba(255,255,255,.97); backdrop-filter:blur(6px); border-bottom:1px solid var(--line);
         display:flex; align-items:center; transition:height .2s}
  .hd{display:flex; align-items:center; justify-content:space-between; width:100%}
  .logo{display:flex; align-items:center; gap:12px}
  .logo img{width:52px; height:auto}
  .logo b{font-size:19px; font-weight:800; color:var(--red)}
  nav ul{display:flex; gap:38px; list-style:none; align-items:center}
  nav a{font-size:16.5px; font-weight:700; color:#1a1a1a; padding:6px 0; position:relative; letter-spacing:-.02em}
  nav a:hover{color:var(--red2)}
  /* 네비 간격 */
  nav>ul{gap:30px}
  nav a::after{content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--red2); transition:width .25s}
  nav a:hover::after{width:100%}
  .nav-toggle{display:none; background:none; border:0; font-size:26px; cursor:pointer; color:var(--red)}
  /* 드롭다운 서브메뉴 */
  nav .has-sub{position:relative}
  nav .has-sub>a{padding-right:14px}
  nav .has-sub>a::after{content:"▾"; position:absolute; right:0; top:9px; font-size:10px; opacity:.55; width:auto; height:auto; background:none}
  nav .sub{position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(6px); background:#fff;
           border:1px solid var(--line); border-radius:10px; box-shadow:0 14px 34px rgba(0,0,0,.13); padding:8px 0;
           min-width:180px; list-style:none; opacity:0; visibility:hidden; transition:.2s}
  nav .has-sub:hover .sub{opacity:1; visibility:visible; transform:translateX(-50%) translateY(0)}
  nav .sub li{display:block}
  nav .sub a{display:block; padding:11px 22px; font-size:15px; font-weight:600; white-space:nowrap; color:#333}
  nav .sub a::after{display:none}
  nav .sub a:hover{color:var(--red2); background:#faf3f4}

  /* ===== Hero ===== */
  .hero{position:relative; height:100vh; min-height:640px; color:#fff; overflow:hidden}
  .hero .slide{position:absolute; inset:0; opacity:0; transition:opacity 1s ease; background-size:cover; background-position:center}
  .hero .slide::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.45) 55%,rgba(0,0,0,.7))}
  .hero .slide.on{opacity:1}
  .hero .inner{position:relative; z-index:2; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:0 24px}
  .hero h1{font-size:clamp(34px,6vw,72px); font-weight:900; letter-spacing:-.02em; line-height:1.15; text-shadow:0 4px 24px rgba(0,0,0,.5)}
  .hero p{margin-top:22px; font-size:clamp(15px,2.1vw,21px); font-weight:500; line-height:1.7; opacity:.95}
  .hero .cta{margin-top:34px; display:inline-block; background:var(--red2); color:#fff; font-weight:700; font-size:16px;
             padding:15px 34px; border-radius:6px; box-shadow:0 10px 30px rgba(185,9,32,.5); transition:transform .15s, background .15s}
  .hero .cta:hover{background:var(--red); transform:translateY(-2px)}
  .hero .dots{position:absolute; z-index:3; bottom:96px; left:0; right:0; display:flex; gap:11px; justify-content:center}
  .hero .dots button{width:11px; height:11px; border-radius:50%; border:0; background:rgba(255,255,255,.45); cursor:pointer; padding:0}
  .hero .dots button.on{background:#fff}

  /* ===== Section base ===== */
  section{position:relative}
  .sec{padding:110px 0}
  .sec.dark{background:var(--dark); color:#fff}
  .sec.gray{background:var(--bg)}
  .badge{display:inline-block; border:1.5px solid var(--red2); color:var(--red2); font-weight:700; font-size:15px;
          padding:7px 22px; border-radius:30px; margin-bottom:26px}
  .sec-head{text-align:center; margin-bottom:56px}
  .sec-head h2{font-size:clamp(28px,4.3vw,48px); font-weight:900; letter-spacing:-.02em; line-height:1.25}
  .sec-head .sub{margin-top:14px; font-size:clamp(15px,1.9vw,19px); font-weight:500; color:inherit; opacity:.75}

  /* reveal */
  .rv{opacity:0; transform:translateY(34px); transition:opacity .7s ease, transform .7s ease}
  .rv.in{opacity:1; transform:none}

  /* ===== Problems / Solutions ===== */
  .ps-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px; max-width:960px; margin:0 auto}
  .ps-card{border-radius:16px; padding:44px 30px; text-align:center; background:#1c1c1c}
  .ps-card.sol{background:#1c1114; border:1.5px solid var(--red2)}
  .ps-card img{width:96px; height:96px; object-fit:contain; margin:0 auto 18px}
  .ps-card h3{font-size:25px; font-weight:800; margin-bottom:12px}
  .ps-card.sol h3{color:var(--red-bright)}
  .ps-card p{font-size:15px; line-height:1.7; color:#b9b9b9}

  /* ===== Point 01 table ===== */
  .p01 h2 .big{font-size:1.28em}
  .compare{max-width:760px; margin:8px auto 0; border-radius:16px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.4)}

  /* ===== Point 02 avengers ===== */
  .avengers{text-align:center}
  .avengers h2{font-size:clamp(28px,4.6vw,52px); font-weight:900; line-height:1.3}
  .avengers .lead{margin-top:22px; font-size:clamp(15px,1.9vw,18px); color:#cfcfcf; line-height:1.8}
  .videos{display:grid; grid-template-columns:1fr 1fr; gap:26px; max-width:900px; margin:56px auto 0}
  .vthumb{position:relative; border-radius:14px; overflow:hidden; aspect-ratio:16/10; background:#000; box-shadow:0 18px 44px rgba(0,0,0,.45)}
  .vthumb img{width:100%; height:100%; object-fit:cover; transition:transform .4s}
  .vthumb:hover img{transform:scale(1.05)}
  .vthumb .play{position:absolute; inset:0; display:flex; align-items:center; justify-content:center}
  .vthumb .play span{width:74px; height:74px; border-radius:50%; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center}
  .vthumb .play span::before{content:""; border-left:22px solid #fff; border-top:13px solid transparent; border-bottom:13px solid transparent; margin-left:5px}
  .stories{display:grid; grid-template-columns:1fr 1fr; gap:26px; max-width:900px; margin:34px auto 0}
  .stories img{border-radius:14px; box-shadow:0 16px 40px rgba(0,0,0,.4)}

  /* ===== Point 03 ===== */
  .cards3{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:70px}
  .icard{background:#fff; border:1px solid var(--line); border-radius:16px; padding:30px 24px; text-align:center; box-shadow:0 10px 30px rgba(0,0,0,.05)}
  .icard img{width:88px; height:88px; object-fit:contain; margin:0 auto 16px}
  .icard h4{font-size:20px; font-weight:800; margin-bottom:8px}
  .icard p{font-size:14px; color:#777; line-height:1.6}
  .concern{text-align:center; margin:10px 0 50px}
  .concern h3{font-size:clamp(24px,3.6vw,38px); font-weight:900; margin-bottom:38px}
  .pills{display:flex; flex-wrap:wrap; gap:18px; justify-content:center; margin-bottom:20px}
  .pill{display:flex; align-items:center; gap:16px; background:#fff5f5; border-radius:60px; padding:16px 34px 16px 16px; box-shadow:0 6px 18px rgba(185,9,32,.08)}
  .pill img{width:54px; height:54px; object-fit:contain}
  .pill b{font-size:18px; font-weight:700}
  .feat3{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px}
  .feat{background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 12px 34px rgba(0,0,0,.08)}
  .feat img{aspect-ratio:4/3; object-fit:cover; width:100%}
  .feat .ft{padding:22px}
  .feat h4{font-size:18px; font-weight:800; margin-bottom:8px}
  .feat p{font-size:14px; color:#777; line-height:1.6}

  /* dahago steps */
  .dahago{margin-top:80px; text-align:center}
  .dahago>img{max-width:min(420px,100%); margin:0 auto 40px}
  .steps{max-width:620px; margin:0 auto; display:flex; flex-direction:column; gap:30px}
  .step .tag{display:inline-block; border:1.6px solid var(--red2); color:var(--red2); font-weight:800; font-size:18px; padding:9px 26px; border-radius:40px; margin-bottom:12px}
  .step p{font-size:17px; color:#555; font-weight:500}

  /* ===== Point 04 infra ===== */
  .infra3{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:8px}
  .infra{background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 14px 40px rgba(0,0,0,.08)}
  .infra img{aspect-ratio:16/10; object-fit:cover; width:100%}
  .infra .it{padding:26px}
  .infra h4{font-size:20px; font-weight:800; margin-bottom:10px; color:var(--red)}
  .infra p{font-size:14.5px; color:#666; line-height:1.7}

  /* ===== Branches ===== */
  .branches{background:var(--dark); color:#fff; text-align:center}
  .brand-row{display:flex; gap:18px; align-items:center; justify-content:center; flex-wrap:wrap; margin:34px 0 20px}
  .brand-row .lg{background:#fff; border-radius:10px; padding:14px 22px; height:60px; display:flex; align-items:center}
  .brand-row .lg img{height:30px; width:auto}
  .brand-row .plus{font-size:28px; color:#fff; font-weight:300}
  .branches .trust{font-size:clamp(17px,2.3vw,24px); font-weight:800; margin-bottom:36px}
  .map-img{max-width:1000px; margin:0 auto; border-radius:16px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.5)}

  /* ===== Footer ===== */
  footer{background:#1a1a1a; color:#cfcfcf; padding:64px 0 130px}
  .fcols{display:grid; grid-template-columns:1fr 1fr; gap:30px 60px; margin-bottom:40px}
  .fcol h5{font-size:17px; font-weight:800; color:#fff; margin-bottom:6px}
  .fcol h5 span{color:var(--red-bright)}
  .fcol p{font-size:14px; color:#9a9a9a}
  .fmeta{border-top:1px solid #333; padding-top:26px; font-size:13px; color:#8a8a8a; display:flex; gap:8px; flex-wrap:wrap}
  .fmeta span{color:#555}

  /* ===== Bottom sticky CTA ===== */
  .bottombar{position:fixed; left:0; right:0; bottom:0; z-index:90; background:var(--red); color:#fff;
             display:flex; align-items:center; justify-content:center; gap:26px; padding:14px 24px; box-shadow:0 -6px 24px rgba(0,0,0,.25)}
  .bottombar strong{font-size:clamp(14px,2vw,19px); font-weight:800}
  .bottombar em{font-style:normal; font-weight:600; opacity:.92; font-size:clamp(13px,1.8vw,17px)}
  .bottombar .apply{background:#fff; color:var(--red); font-weight:800; padding:11px 30px; border-radius:6px; font-size:15px; white-space:nowrap; transition:transform .15s}
  .bottombar .apply:hover{transform:scale(1.04)}

  /* floating chat */
  .chat{position:fixed; right:22px; bottom:86px; z-index:91; width:60px; height:60px; border-radius:50%;
        background:var(--red2); box-shadow:0 8px 24px rgba(185,9,32,.5); display:flex; align-items:center; justify-content:center; cursor:pointer}
  .chat img{width:40px; height:40px}

  /* ===== Responsive ===== */
  @media (max-width:900px){
    :root{--header-h:66px}
    .sec{padding:74px 0}
    nav>ul{position:fixed; inset:var(--header-h) 0 auto 0; background:#fff; flex-direction:column; gap:0; padding:8px 0; border-bottom:1px solid var(--line);
           transform:translateY(-120%); transition:transform .3s; box-shadow:0 12px 24px rgba(0,0,0,.1); max-height:calc(100vh - var(--header-h)); overflow-y:auto}
    nav.open>ul{transform:none}
    nav a{display:block; padding:15px 24px; width:100%; font-size:16px}
    /* 모바일 서브메뉴: 펼쳐서 들여쓰기 노출 */
    /* 중첩 ul.sub도 nav ul{display:flex} 를 상속받아 가로로 펼쳐지던 문제 → 세로 스택 */
    nav .sub{display:block; position:static; transform:none!important; opacity:1; visibility:visible; box-shadow:none; border:0; border-radius:0; padding:0; background:#f7f7f7; min-width:0; width:100%}
    nav .sub a{padding:12px 24px 12px 44px; font-size:15px}
    nav .has-sub>a::after{display:none}
    .nav-toggle{display:block}
    .logo b{font-size:16px}
    .ps-grid,.videos,.stories,.cards3,.feat3,.infra3{grid-template-columns:1fr; gap:16px}
    .pills{flex-direction:column; align-items:stretch}
    .pill{justify-content:flex-start}
    .fcols{grid-template-columns:1fr}
    .hero .dots{bottom:120px}
    .bottombar{flex-direction:row; gap:12px}
    .bottombar em{display:none}
    .chat{bottom:120px; width:52px; height:52px}
  }

/* ===== 합격 사례 카드 (홈·입학결과 공용) ===== */
.wins{display:grid; grid-template-columns:repeat(2,1fr); gap:18px; max-width:1080px; margin:0 auto}
.win{position:relative; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:16px;
     padding:30px 34px; min-height:250px; box-shadow:0 10px 28px rgba(0,0,0,.06); border-left:5px solid var(--red2);
     display:flex; flex-direction:column; justify-content:center; text-align:left}
/* 인물 영상 — 카드 우측에 크게, 배경처럼 은은하게 */
.win .face{position:absolute; top:0; right:0; width:48%; height:100%; object-fit:cover; object-position:top center;
           z-index:0; opacity:.92; pointer-events:none}
.win::after{content:; position:absolute; inset:0; z-index:1; pointer-events:none;
            background:linear-gradient(90deg,#fff 0%,#fff 46%,rgba(255,255,255,.86) 58%,rgba(255,255,255,.25) 78%,rgba(255,255,255,0) 100%)}
.win .txt{position:relative; z-index:2; max-width:62%}
.win h3{font-size:clamp(19px,2.1vw,24px); font-weight:900; letter-spacing:-.03em; line-height:1.3; color:#111}
.win h3 em{font-style:normal; color:#111; background:linear-gradient(transparent 62%, #ffe0e3 62%)}
.win h3 b{color:var(--red2)}
.win p{margin-top:14px; font-size:clamp(17px,1.9vw,20px); line-height:1.55; color:#333; font-weight:700; letter-spacing:-.02em}
.win p b{color:var(--red2); font-weight:900}
.win .won{margin-top:15px; padding-top:13px; border-top:1px dashed #e2e2e2; font-size:16px; font-weight:800; color:#222}
.win .won b{color:var(--red2)}
.win .who{display:block; margin-top:10px; font-size:12.5px; color:#aaa; font-weight:700}
.wins .win:last-child:nth-child(odd){grid-column:1 / -1}
.wins .win:last-child:nth-child(odd) .face{width:34%}
.wins .win:last-child:nth-child(odd) .txt{max-width:60%}
@media (max-width:1000px){ .wins{grid-template-columns:1fr}
                           .wins .win:last-child:nth-child(odd){grid-column:auto}
                           .wins .win:last-child:nth-child(odd) .face{width:48%}
                           .wins .win:last-child:nth-child(odd) .txt{max-width:62%} }
@media (max-width:640px){ .win{padding:26px 22px; min-height:220px}
                          .win .face{width:56%; opacity:.7}
                          .win .txt{max-width:76%}
                          .win::after{background:linear-gradient(90deg,#fff 0%,#fff 40%,rgba(255,255,255,.9) 62%,rgba(255,255,255,.45) 88%,rgba(255,255,255,.2) 100%)} }

/* ===== 비교표 (홈 Point 01) ===== */
.compare .cmp{width:100%; border-collapse:separate; border-spacing:0; background:#fff; border-radius:16px; overflow:hidden;
              font-size:15.5px; color:#222}
.compare .cmp th, .compare .cmp td{padding:16px 18px; text-align:left; vertical-align:middle; border-bottom:1px solid #eee}
.compare .cmp thead th{font-size:16.5px; font-weight:900; padding:18px; text-align:center; letter-spacing:-.02em}
.compare .cmp thead th.us{background:var(--red2); color:#fff}
.compare .cmp thead th:not(.us){background:#f2f2f2; color:#666}
.compare .cmp thead td{background:#fafafa}
.compare .cmp tbody th{width:22%; background:#fafafa; font-size:14px; font-weight:700; color:#888}
.compare .cmp td.us{font-weight:800; color:#111; background:#fff7f8; border-left:2px solid var(--red2); border-right:2px solid var(--red2)}
.compare .cmp td.us b{color:var(--red2)}
.compare .cmp td:not(.us):not(:first-child){color:#999; font-weight:600}
.compare .cmp small{display:block; margin-top:3px; font-size:12.5px; font-weight:600; color:#999}
.compare .cmp td.us small{color:#b90920}
.compare .cmp tbody tr:last-child th, .compare .cmp tbody tr:last-child td{border-bottom:0}
@media (max-width:640px){ .compare .cmp{font-size:13.5px} .compare .cmp th,.compare .cmp td{padding:12px 10px}
                          .compare .cmp tbody th{width:26%; font-size:12.5px} }

/* 섹션 하단 더보기 버튼 */
.btn-more{display:inline-block; background:var(--red2); color:#fff; font-size:16px; font-weight:800;
          padding:15px 34px; border-radius:40px; box-shadow:0 12px 30px rgba(185,9,32,.35); transition:.15s}
.btn-more:hover{background:var(--red-bright); transform:translateY(-2px)}

/* ===== 히어로 영상 배경 ===== */
.hero .hero-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0}
.hero::after{content:""; position:absolute; inset:0; z-index:1;
             background:linear-gradient(180deg, rgba(8,8,12,.72) 0%, rgba(8,8,12,.55) 45%, rgba(8,8,12,.86) 100%)}
.hero .hero-tag{display:inline-block; margin-bottom:20px; font-size:13.5px; font-weight:800; letter-spacing:.06em;
                color:#fff; border:1px solid rgba(255,255,255,.45); border-radius:30px; padding:7px 18px;
                backdrop-filter:blur(4px)}
.hero h1 em{font-style:normal; color:#ff2b3d; text-shadow:0 4px 24px rgba(0,0,0,.6)}
.hero .hero-btns{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:34px}
.hero .hero-btns .cta{margin-top:0}
.hero .cta.ghost{background:rgba(255,255,255,.12); border:1.5px solid rgba(255,255,255,.6); box-shadow:none;
                 backdrop-filter:blur(6px)}
.hero .cta.ghost:hover{background:rgba(255,255,255,.22)}

/* ===== 신뢰 3요소 ===== */
.trust3{background:#0f0f12; color:#fff; padding:70px 0}
.trust3 .tcols{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; max-width:1080px; margin:0 auto}
.trust3 .tcol{position:relative; padding:30px 28px 32px; border:1px solid rgba(255,255,255,.14); border-radius:18px;
             background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02))}
.trust3 .tno{display:inline-block; font-size:12.5px; font-weight:900; letter-spacing:.08em; color:var(--red-bright);
            border:1px solid rgba(230,8,20,.5); border-radius:20px; padding:4px 12px}
.trust3 h3{margin-top:14px; font-size:23px; font-weight:900; letter-spacing:-.03em; line-height:1.35}
.trust3 h3 b{color:var(--red-bright)}
.trust3 p{margin-top:13px; font-size:15px; line-height:1.85; color:rgba(255,255,255,.72); font-weight:500}
.trust3 p b{color:#fff; font-weight:800}
@media (max-width:900px){ .trust3 .tcols{grid-template-columns:1fr; gap:16px} .trust3{padding:52px 0} }

/* 신뢰 사실 바 */
.trust3 .tfacts{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; max-width:1080px; margin:26px auto 0;
               list-style:none; padding:0}
.trust3 .tfacts li{text-align:center; padding:18px 14px; border-radius:14px; background:rgba(255,255,255,.05);
                  border:1px solid rgba(255,255,255,.1)}
.trust3 .tfacts b{display:block; font-size:18px; font-weight:900; letter-spacing:-.02em; color:#fff}
.trust3 .tfacts span{display:block; margin-top:5px; font-size:12.5px; color:rgba(255,255,255,.6); font-weight:600}
@media (max-width:900px){ .trust3 .tfacts{grid-template-columns:repeat(2,1fr)} }

/* A안 로고 (방패 엠블럼 + 워드마크 일체형 SVG) */
.logo .logo-mark{width:auto; height:38px; display:block}
@media (max-width:900px){ .logo .logo-mark{height:32px} }
