/* 한올입시학원 — 전통 입시학원 스타일
   navy #1a2744 / burgundy #7a1f2b / gray / white
   border-radius 0, dense GNB, square buttons */

:root{
  --navy:#1a2744;
  --navy-2:#121b30;
  --navy-3:#0c1322;
  --burg:#7a1f2b;
  --burg-2:#5c1620;
  --gold:#c4a35a;
  --ink:#1c1c1c;
  --text:#2a2a2a;
  --muted:#666;
  --line:#ccc;
  --line-2:#ddd;
  --bg:#f2f2f2;
  --white:#fff;
}

*{box-sizing:border-box;margin:0;padding:0;border-radius:0}
html{scroll-behavior:auto}
html,body{height:100%}
body{
  font-family:'Malgun Gothic','맑은 고딕','Pretendard','Noto Sans KR',Dotum,Gulim,sans-serif;
  color:var(--text);
  background:var(--white);
  font-size:14px;
  line-height:1.6;
  letter-spacing:-0.01em;
}
img{max-width:100%;display:block;border:0;border-radius:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit;border-radius:0}
table{border-collapse:collapse;width:100%;border-radius:0}
ul,ol{list-style:none}

.wrap{width:min(1100px,calc(100% - 32px));margin:0 auto}

/* ========== UTIL + GNB ========== */
.utilbar{
  background:var(--navy-3);
  color:#c8c8c8;
  font-size:12px;
  height:28px;
  line-height:28px;
  border-bottom:1px solid #1e2433;
}
.utilbar .wrap{display:flex;justify-content:space-between;align-items:center}
.utilbar span + span::before{content:"|";margin:0 10px;color:#4a5060}
.utilbar a{color:#c8c8c8}
.utilbar a:hover{color:#fff}

.gnb{
  background:var(--navy);
  height:74px;
  position:sticky;top:0;z-index:50;
  border-bottom:3px solid var(--burg);
}
.gnb .wrap{
  height:74px;
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;
}
.logo{
  display:block;
  width:auto;max-width:240px;height:42px;
  overflow:hidden;
  flex-shrink:0;
  border-radius:0;
}
.logo img{
  width:auto;max-width:240px;height:100%;
  object-fit:contain;object-position:left center;
  object-position:center;
  display:block;
  border-radius:0;
}

.gnb-nav{display:flex;align-items:stretch;height:74px;gap:0;flex:1;justify-content:flex-end}
.gnb-nav > a,
.gnb-item > a{
  color:#e4e4e4;
  font-size:14px;font-weight:700;
  padding:0 13px;
  display:flex;align-items:center;
  height:74px;
  border-bottom:3px solid transparent;
  margin-bottom:-3px;
  white-space:nowrap;
}
.gnb-nav > a:hover,
.gnb-item > a:hover{color:#fff;background:#223154}
.gnb-nav > a.is-on,
.gnb-item.is-on > a,
.gnb-item > a.is-on{color:#fff;border-bottom-color:var(--gold)}

.gnb-item{position:relative;display:flex;align-items:stretch}
.gnb-sub{
  display:none;
  position:absolute;
  top:74px;left:0;
  background:var(--navy-2);
  min-width:148px;
  border:1px solid #2a3548;
  z-index:60;
  border-radius:0;
}
.gnb-item:hover .gnb-sub{display:block}
.gnb-sub a{
  display:block;
  height:38px;line-height:38px;
  padding:0 16px;
  color:#d7d7d7;
  font-size:13px;font-weight:600;
  border-bottom:1px solid #2a3548;
}
.gnb-sub a:hover{background:#223154;color:#fff}

.gnb-util{display:flex;align-items:center;margin-left:4px;flex-shrink:0}
.btn-menu{
  display:none;width:36px;height:36px;background:transparent;border:1px solid #3a4560;
  position:relative;cursor:pointer;border-radius:0;
}
.btn-menu span,.btn-menu::before,.btn-menu::after{
  content:"";position:absolute;left:8px;right:8px;height:1px;background:#fff;
}
.btn-menu span{top:17px}
.btn-menu::before{top:11px}
.btn-menu::after{bottom:11px}

/* ========== HERO ========== */
.hero{
  position:relative;
  min-height:360px;
  height:48vh;
  max-height:480px;
  background:#121b30 center/cover no-repeat;
  display:flex;align-items:center;
  border-radius:0;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(12,19,34,.82) 0%,rgba(12,19,34,.50) 50%,rgba(12,19,34,.22) 100%);
}
.hero-inner{position:relative;z-index:1;color:#fff;padding:48px 0}
.hero h1{
  font-size:34px;font-weight:800;line-height:1.3;
  letter-spacing:-.02em;margin-bottom:12px;
}
.hero p{font-size:15px;color:#ddd;max-width:560px}
.hero-actions{margin-top:22px;display:flex;gap:8px}

.page-hero{
  position:relative;
  min-height:180px;height:200px;
  background:#121b30 center/cover no-repeat;
  display:flex;align-items:flex-end;
  border-radius:0;
}
.page-hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(12,19,34,.84) 0%,rgba(12,19,34,.45) 70%,rgba(12,19,34,.2) 100%);
}
.page-hero .wrap{position:relative;z-index:1;padding:0 0 28px;color:#fff}
.page-hero .crumb{font-size:12px;color:#bbb;margin-bottom:8px}
.page-hero .crumb span{color:var(--gold)}
.page-hero h1{font-size:26px;font-weight:800;letter-spacing:-.02em}
.page-hero p{margin-top:6px;color:#ddd;font-size:14px;max-width:640px}

/* ========== BUTTONS — square only ========== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:36px;padding:0 16px;
  font-size:13px;font-weight:700;
  border:1px solid var(--navy);border-radius:0;
  cursor:pointer;background:var(--navy);color:#fff;
}
.btn:hover{background:#243456}
.btn-burg{background:var(--burg);border-color:var(--burg);color:#fff}
.btn-burg:hover{background:var(--burg-2)}
.btn-line{background:transparent;border-color:#fff;color:#fff}
.btn-line:hover{background:#fff;color:var(--navy)}
.btn-line-navy{background:#fff;border-color:var(--navy);color:var(--navy)}
.btn-line-navy:hover{background:var(--navy);color:#fff}

/* ========== SECTIONS ========== */
.sec{padding:48px 0}
.sec-gray{background:var(--bg)}
.sec-navy{background:var(--navy);color:#fff}
.sec-head{margin-bottom:20px;border-bottom:2px solid var(--navy);padding-bottom:10px}
.sec-head h2{font-size:20px;font-weight:800;letter-spacing:-.02em;color:var(--navy);line-height:1.3}
.sec-navy .sec-head{border-bottom-color:#3a4560}
.sec-navy .sec-head h2{color:#fff}
.sec-head p{margin-top:8px;color:var(--muted);max-width:720px;font-size:13px}

.split{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}
.split img{width:100%;height:280px;object-fit:cover;border:1px solid var(--line);border-radius:0}
.split h3{font-size:18px;font-weight:800;color:var(--navy);margin-bottom:12px}
.split p + p{margin-top:10px}

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

/* tables */
.spec{
  background:#fff;border:1px solid #ccc;
}
.spec th,.spec td{
  border:1px solid #ccc;
  padding:9px 12px;font-size:13px;text-align:left;
}
.spec thead th{
  background:#1a2744;color:#fff;font-weight:700;
  font-size:13px;
}
.spec tbody th{background:#f4f5f7;color:var(--navy);font-weight:700;width:22%}
.spec tbody tr:hover td{background:#f7f7f7}
.spec a{color:var(--burg);font-weight:700}
.spec a:hover{text-decoration:underline}

/* local nav */
.lnb{
  background:#fff;border-bottom:1px solid var(--line);
}
.lnb .wrap{display:flex;flex-wrap:wrap}
.lnb a{
  height:42px;display:flex;align-items:center;
  padding:0 16px;font-size:13px;font-weight:700;color:var(--muted);
  border-right:1px solid var(--line-2);
}
.lnb a:hover,.lnb a.is-on{color:var(--navy);box-shadow:inset 0 -2px 0 var(--burg)}

/* news / notice list */
.news-list{border-top:2px solid var(--navy)}
.news-row{
  display:grid;grid-template-columns:110px 70px 1fr;
  gap:14px;align-items:center;
  padding:14px 4px;border-bottom:1px solid var(--line);
}
.news-row .date{font-size:13px;color:var(--muted);font-weight:600}
.news-row .cat{
  font-size:11px;font-weight:800;color:var(--burg);
  border:1px solid var(--burg);text-align:center;padding:2px 0;
  border-radius:0;
}
.news-row h3{font-size:15px;font-weight:700;color:var(--navy)}
.news-row p{font-size:13px;color:var(--muted);margin-top:3px}
a.news-row{color:inherit}
a.news-row:hover h3{color:var(--burg)}

/* form */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-grid .full{grid-column:1/-1}
.field label{display:block;font-size:12px;font-weight:700;color:var(--navy);margin-bottom:5px}
.field input,.field select,.field textarea{
  width:100%;border:1px solid #ccc;background:#fff;
  padding:8px 10px;border-radius:0;
}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--navy);
}
.form-note{margin-top:10px;font-size:12px;color:var(--muted)}
.form-ok{
  margin-bottom:14px;padding:12px 14px;
  background:#fff4f4;border:1px solid var(--burg);color:var(--navy);font-size:14px;font-weight:700;
  border-radius:0;
}

/* info boxes */
.info-box{background:var(--bg);border:1px solid #ccc;padding:18px;border-radius:0}
.info-box h4{font-size:14px;font-weight:800;color:var(--navy);margin-bottom:8px}
.info-box li{font-size:13px;padding:3px 0;color:var(--text)}
.info-box li span{display:inline-block;width:72px;color:var(--muted)}

/* teachers */
.teacher-grid{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:start;margin-bottom:0}
.teacher-grid img{
  width:120px;height:150px;object-fit:cover;
  border:1px solid #ccc;border-radius:0;
}

/* footer */
.footer{background:#0c1322;color:#9aa0a8;font-size:13px}
.footer-top{border-bottom:1px solid #1e2433;padding:32px 0 26px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:24px}
.footer h4{color:#fff;font-size:13px;margin-bottom:10px;font-weight:800}
.footer a{color:#9aa0a8}
.footer a:hover{color:#fff}
.footer li{margin:5px 0}
.footer-logo{color:#fff;font-size:16px;font-weight:800;margin-bottom:8px}
.footer-bot{
  padding:14px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;
  color:#7a8088;font-size:12px;
}

.cta-bar{
  background:var(--navy);color:#fff;padding:32px 0;
  border-top:3px solid var(--burg);
}
.cta-bar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px}
.cta-bar h2{font-size:20px;font-weight:800}
.cta-bar p{color:#c8c8c8;margin-top:4px;font-size:13px}

.anchor{scroll-margin-top:100px}
.prose p{margin:0 0 12px}
.prose p:last-child{margin-bottom:0}
.news-article{max-width:820px}
.news-article .date-line{font-size:13px;color:var(--muted);margin-bottom:12px}
.news-article h2{font-size:20px;color:var(--navy);margin:0 0 14px}
.rel-list{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}
.rel-list a{display:block;padding:7px 0;border-bottom:1px solid var(--line-2);font-size:13px;font-weight:700;color:var(--navy)}
.rel-list a span{font-weight:600;color:var(--muted);margin-right:10px}

/* home widgets — 3 columns like 한빛 */
.home-widgets{background:#e8eaee;border-top:1px solid #ccc;border-bottom:1px solid #ccc;padding:16px 0}
.home-widgets-grid{display:grid;grid-template-columns:1.3fr .95fr 1.2fr;gap:8px}
.home-widgets .box{background:#fff;border:1px solid #ccc;padding:12px 14px;border-radius:0}
.home-widgets h3{
  font-size:14px;color:var(--navy);
  border-bottom:2px solid var(--navy);
  padding-bottom:7px;margin-bottom:8px;
  display:flex;justify-content:space-between;align-items:center;
}
.home-widgets h3 a{font-size:12px;font-weight:600;color:var(--muted)}
.home-widgets .board li{border-bottom:1px dotted #ccc}
.home-widgets .board a{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:13px}
.home-widgets .board a:hover{color:var(--navy);font-weight:700}
.home-widgets .board span{color:#888;flex-shrink:0}
.home-widgets .tel{font-size:28px;font-weight:800;color:var(--navy);letter-spacing:-.03em;margin:6px 0 6px}
.home-widgets .tel-note{font-size:12px;color:var(--burg);font-weight:700;margin-bottom:6px}
.home-widgets .box p{font-size:13px;color:var(--text);line-height:1.55}
.home-widgets .mini{width:100%;border:1px solid #ccc}
.home-widgets .mini th{background:#1a2744;color:#fff;text-align:left;padding:5px 7px;font-size:11px;font-weight:700}
.home-widgets .mini td{border:1px solid #ccc;padding:5px 7px;font-size:12px}

.note-virtual{font-size:12px;color:var(--muted);margin-top:8px}

@media (max-width:980px){
  .hero h1{font-size:24px}
  .split,.grid-2,.footer-grid,.form-grid,.cta-bar .wrap,.news-row,.home-widgets-grid{
    grid-template-columns:1fr;
  }
  .gnb-nav{
    display:none;position:absolute;left:0;right:0;top:102px;
    background:var(--navy);flex-direction:column;height:auto;
    border-bottom:1px solid #2a3548;
  }
  .gnb-nav.open{display:flex}
  .gnb-nav > a,
  .gnb-item > a{
    height:42px;border-bottom:1px solid #2a3548;border-left:3px solid transparent;margin-bottom:0;
  }
  .gnb-nav > a.is-on,
  .gnb-item.is-on > a{border-bottom-color:#2a3548;border-left-color:var(--gold)}
  .gnb-item{flex-direction:column;height:auto}
  .gnb-sub{display:block;position:static;border:0;background:#0c1322}
  .btn-menu{display:block}
  .hero,.page-hero{height:auto;min-height:240px}
  .split img{height:200px}
  .footer-bot{flex-direction:column;align-items:flex-start}
  .logo{width:150px;height:36px}
  .teacher-grid{grid-template-columns:90px 1fr}
  .teacher-grid img{width:90px;height:112px}
}
