/* Horizon College Kharian — public site styles */
:root {
  --navy: #0a2c5e;
  --navy-2: #003366;
  --blue: #034ea2;
  --blue-dark: #023d7a;
  --blue-soft: #eaf2ff;
  --accent: #f26b1d;
  --accent-dark: #d45810;
  --red: #c8102e;
  --bg: #f4f6fa;
  --white: #fff;
  --text: #2b3445;
  --muted: #667085;
  --border: #dde3ec;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(10, 44, 94, .08);
  --shadow-lg: 0 16px 40px rgba(10, 44, 94, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: var(--blue); }
.section-title p { color: var(--muted); max-width: 680px; margin: 8px auto 0; }
.section-title .bar { width: 64px; height: 4px; background: var(--accent); border-radius: 4px; margin: 12px auto 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.bg-white { background: var(--white); }

/* Buttons */
.btn { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 22px; border-radius: 8px; border: 0; cursor: pointer;
  font: 600 .95rem 'Poppins', sans-serif; text-decoration: none; transition: .2s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-light { background: var(--blue-soft); color: var(--blue); }
.btn-light:hover { background: #d6e6ff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* Top bar */
.topbar { background: var(--navy); color: #cfd9ea; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .tb-left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar i { color: var(--accent); margin-right: 5px; }

/* Header / nav */
.site-header { background: var(--navy-2); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .3px; }
.brand small { display: block; font-size: .72rem; color: #b8c7e0; font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .main-nav .dd > button {
  color: #fff; text-decoration: none; padding: 10px 11px; border-radius: 6px; font: 500 .92rem 'Poppins', sans-serif;
  background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.main-nav > a:hover, .main-nav .dd > button:hover, .main-nav a.active { color: var(--accent); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 20;
}
.dd:hover .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; color: var(--text); text-decoration: none; border-radius: 6px; font-size: .9rem; }
.dd-menu a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-cta { display: flex; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 1140px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--navy-2);
    flex-direction: column; align-items: stretch; padding: 80px 16px 24px; transition: right .3s; overflow-y: auto; gap: 2px;
  }
  .main-nav.open { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,.3); }
  .dd-menu { position: static; display: none; box-shadow: none; background: rgba(255,255,255,.06); }
  .dd-menu a { color: #fff; }
  .dd:hover .dd-menu { display: none; }
  .dd.open .dd-menu { display: block; }
  .nav-cta { flex-direction: column; margin-top: 12px; }
  .nav-close { display: block !important; position: absolute; top: 18px; right: 18px; }
}
.nav-close { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99; }
.nav-overlay.show { display: block; }

/* Admission ticker */
.ticker { background: var(--accent); color: #fff; font-size: .9rem; font-weight: 500; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-block; padding: 8px 0; animation: ticker 28s linear infinite; }
.ticker-inner span { margin: 0 40px; }
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* Hero slider */
.hero { position: relative; height: min(82vh, 640px); min-height: 460px; overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; }
.slide.poster .slide-bg { filter: blur(22px) brightness(.55); transform: scale(1.1); }
.slide.photo .slide-bg { animation: kenburns 12s ease-in-out infinite alternate; }
.slide.active.photo .slide-bg { animation-play-state: running; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,58,.88) 0%, rgba(6,26,58,.55) 55%, rgba(6,26,58,.15) 100%); }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; gap: 40px; }
.slide-text { flex: 1; color: #fff; max-width: 620px; }
.slide-text .eyebrow { display: inline-block; background: var(--accent); padding: 5px 14px; border-radius: 30px; font-size: .8rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 16px; }
.slide-text h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.2rem); margin-bottom: 14px; }
.slide-text p { font-size: 1.08rem; color: #dbe5f5; margin-bottom: 26px; }
.slide-text .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-poster { flex: 0 0 auto; height: 86%; max-height: 540px; }
.slide-poster img { height: 100%; width: auto; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); border: 4px solid rgba(255,255,255,.9); }
.slide.active .slide-text { animation: fadeUp .9s ease both; }
.slide.active .slide-poster { animation: fadeIn 1.1s ease both .2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.1rem; cursor: pointer; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: var(--accent); }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: .3s; }
.hero-dots button.active { width: 30px; background: var(--accent); }
@media (max-width: 800px) {
  .hero { height: 640px; min-height: 0; }
  .hero-arrow { display: none; }
  .slide-overlay { background: linear-gradient(180deg, rgba(6,26,58,.55), rgba(6,26,58,.88)); }
  /* Poster slides on phones: poster on top, short text + buttons below */
  .slide.poster .slide-bg { filter: blur(18px) brightness(.45); transform: scale(1.15); }
  .slide.poster .slide-content { flex-direction: column; justify-content: center; gap: 16px; padding-top: 18px; padding-bottom: 56px; text-align: center; }
  .slide.poster .slide-poster { display: block; order: -1; height: auto; }
  .slide.poster .slide-poster img { height: 360px; max-width: 100%; object-fit: contain; margin: 0 auto; border-width: 3px; }
  .slide.poster .slide-text { max-width: 100%; }
  .slide.poster .slide-text .eyebrow { display: none; }
  .slide.poster .slide-text h1 { font-size: 1.55rem; margin-bottom: 6px; }
  .slide.poster .slide-text p { font-size: .9rem; margin-bottom: 14px; }
  .slide.poster .slide-text .btns { justify-content: center; }
  .slide.poster .slide-text .btn { padding: 10px 16px; font-size: .88rem; }
}
@media (max-width: 380px) {
  .slide.poster .slide-poster img { height: 300px; }
  .hero { height: 590px; }
}

/* Quick stats */
.stats { margin-top: -50px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 24px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat i { font-size: 1.6rem; color: var(--accent); }
.stat strong { display: block; font-size: 1.7rem; color: var(--navy); margin-top: 4px; }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }
.card .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.5rem; margin-bottom: 16px; }
.program-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 4px solid var(--blue); }
.program-card:nth-child(2) { border-top-color: var(--accent); }
.program-card:nth-child(3) { border-top-color: var(--red); }
.program-card:nth-child(4) { border-top-color: #1a8f4c; }
.program-card .more { margin-top: auto; padding-top: 14px; color: var(--blue); font-weight: 600; font-size: .9rem; }
.program-card .count { display: inline-block; font-size: .78rem; background: var(--blue-soft); color: var(--blue); padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }

/* Notices (admission posters) */
.notice-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.notice { flex: 0 0 280px; scroll-snap-align: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: zoom-in; }
.notice img { width: 100%; height: 360px; object-fit: cover; object-position: top; }
.notice .nb { padding: 14px 16px; }
.notice .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; background: #fff1e8; color: var(--accent-dark); padding: 2px 10px; border-radius: 20px; }
.notice h4 { margin-top: 8px; font-size: 1rem; }
.notice p { color: var(--muted); font-size: .88rem; }
.track-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.track-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--navy); }
.track-nav button:hover { background: var(--blue); color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.lightbox.show { display: flex; }
.lightbox img { max-height: 92vh; max-width: 95vw; border-radius: 8px; }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* Why us / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 34px; position: relative; }
.check-list li::before { content: "\2713"; font-weight: 700; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: #d8f1e3; color: #1a8f4c; font-size: .78rem; display: grid; place-items: center; }
.about-visual { position: relative; }
.about-visual img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-height: 460px; object-fit: cover; object-position: top; }
.about-visual .badge { position: absolute; bottom: -18px; left: -18px; background: var(--accent); color: #fff; padding: 16px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.about-visual .badge strong { font-size: 1.6rem; display: block; line-height: 1; }
@media (max-width: 600px) { .about-visual .badge { left: 10px; } }

/* People cards (faculty / toppers) */
.person { text-align: center; padding: 22px 16px; }
.person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--blue-soft); }
.person h4 { font-size: 1rem; }
.person p { font-size: .86rem; color: var(--muted); }
.person .dept { display: inline-block; margin-top: 8px; font-size: .74rem; background: var(--blue-soft); color: var(--blue); padding: 2px 10px; border-radius: 20px; }
.person .visiting { background: #fff1e8; color: var(--accent-dark); }
.person .pos { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: .78rem; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.chip { padding: 7px 16px; border-radius: 30px; border: 1px solid var(--border); background: #fff; cursor: pointer; font: 500 .86rem 'Poppins', sans-serif; color: var(--text); text-decoration: none; }
.chip.active, .chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Events / stories */
.event-card { padding: 0; overflow: hidden; }
.event-card img { height: 200px; width: 100%; object-fit: cover; }
.event-card .eb { padding: 20px; }
.event-date { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent-dark); margin-bottom: 6px; }
.quote { position: relative; }
.quote::before { content: "\201C"; font-size: 4rem; line-height: 1; color: var(--blue-soft); position: absolute; top: 6px; right: 18px; font-family: Georgia, serif; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Page banner */
.page-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 56px 0 50px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); }
.page-banner h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-banner p { color: #d3def0; margin-top: 6px; max-width: 720px; }
.crumbs { font-size: .85rem; color: #b8c7e0; margin-bottom: 8px; }
.crumbs a { color: #fff; text-decoration: none; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 26px; border-radius: 10px; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; font-size: .92rem; }
table.data th { background: var(--blue); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; border: 1px solid var(--blue-dark); }
table.data td { padding: 11px 14px; border: 1px solid var(--border); vertical-align: top; }
table.data tr:nth-child(even) td { background: #f8fafd; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data .prog-cell { font-weight: 600; color: var(--navy); background: #f0f5fc !important; }

/* Academic program layout (sidebar + tabs) — same feel as the original BS/ADP pages */
.academic { display: grid; grid-template-columns: 290px 1fr; min-height: 70vh; }
.acad-side { background: var(--blue); color: #fff; padding: 22px 16px; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; }
.acad-side h2 { color: #fff; font-size: 1.15rem; margin: 6px 6px 14px; }
.acad-side .levels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 4px 16px; }
.acad-side .levels a { font-size: .74rem; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.acad-side .levels a.active { background: #fff; color: var(--blue); font-weight: 600; }
.acad-side ul { list-style: none; }
.acad-side li a { display: block; padding: 10px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-size: .9rem; transition: .2s; }
.acad-side li a:hover { background: rgba(255,255,255,.12); }
.acad-side li a.active { background: var(--navy); box-shadow: inset 4px 0 0 var(--accent); font-weight: 600; }
.acad-main { padding: 30px 34px 50px; min-width: 0; }
.acad-main h1.page-title { font-size: 1.8rem; color: var(--navy); text-align: center; margin-bottom: 16px; }
.sub-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; position: sticky; top: 76px; background: var(--bg); padding: 10px 0; z-index: 5; }
.sub-nav button { padding: 9px 18px; border-radius: 8px; border: 0; background: #e3e8f0; color: var(--text); cursor: pointer; font: 500 .88rem 'Poppins', sans-serif; transition: .2s; }
.sub-nav button:hover { background: #d3dbe7; }
.sub-nav button.active { background: var(--blue); color: #fff; }
.tab-pane { display: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; animation: fadeUp .4s ease; }
.tab-pane.active { display: block; }
.tab-pane h2 { color: var(--blue); font-size: 1.4rem; margin-bottom: 14px; }
.tab-pane h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.tab-pane h4 { font-size: 1rem; margin: 20px 0 8px; color: var(--navy); }
.tab-pane ul, .tab-pane ol, .rich ul, .rich ol { padding-left: 22px; margin: 8px 0; }
.tab-pane li, .rich li { margin: 4px 0; }
.tab-pane p { margin: 8px 0; }
.uni-block { border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.uni-block h3 { margin: 0 0 6px; }
.uni-block .age { display: inline-block; margin-top: 8px; background: var(--blue-soft); color: var(--blue); font-size: .82rem; padding: 3px 12px; border-radius: 20px; font-weight: 600; }
.uni-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.uni-tabs button { padding: 8px 14px; border-radius: 6px; border: 0; background: var(--blue-soft); color: var(--blue); cursor: pointer; font: 600 .86rem 'Poppins', sans-serif; }
.uni-tabs button.active { background: var(--blue); color: #fff; }
.semester-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.semester-card { background: #f8fafd; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.semester-card h4 { margin: 0 0 10px; color: var(--blue); }
.subject-badge { display: inline-block; background: #fff; border: 1px solid #cfdcf0; color: var(--navy); font-size: .82rem; padding: 4px 10px; border-radius: 6px; margin: 3px 2px; text-decoration: none; }
a.subject-badge:hover { background: var(--blue); color: #fff; }
.assess { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.assess-card { border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.assess-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin: 12px 0 8px; font-size: .78rem; color: #fff; font-weight: 600; }
.assess-bar span { display: grid; place-items: center; }
.assess-bar .int { background: var(--blue); } .assess-bar .ext { background: var(--accent); } .assess-bar .lab { background: #1a8f4c; }
.side-toggle { display: none; }
@media (max-width: 900px) {
  .academic { grid-template-columns: 1fr; }
  .acad-side { position: fixed; left: -300px; top: 0; height: 100vh; width: 280px; z-index: 150; transition: left .3s; }
  .acad-side.open { left: 0; box-shadow: 10px 0 30px rgba(0,0,0,.3); }
  .acad-main { padding: 20px 16px 40px; }
  .side-toggle { display: inline-flex; margin-bottom: 14px; }
  .tab-pane { padding: 20px 16px; }
  .sub-nav { top: 76px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .sub-nav button { flex: 0 0 auto; }
}

/* Info cards (admission page style) */
.info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; text-decoration: none; color: var(--text); transition: transform .3s; display: block; }
.info-card:hover { transform: translateY(-8px); }
.info-card i { font-size: 2rem; color: var(--blue); margin-bottom: 12px; }
.info-card h3 { font-size: 1rem; }
.steps { counter-reset: step; list-style: none; }
.steps li { position: relative; padding: 12px 0 12px 56px; min-height: 52px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.note { background: #fff8e6; border-left: 4px solid #f0b400; padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: .92rem; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 5px; color: var(--navy); }
.input, textarea.input, select.input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font: 400 .95rem 'Poppins', sans-serif; background: #fbfcfe; margin-bottom: 14px; }
.input:focus { outline: 2px solid #9cc0f5; border-color: var(--blue); background: #fff; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .92rem; }
.alert-success { background: #e7f6ee; color: #146c3c; border: 1px solid #bfe6cf; }
.alert-error { background: #fdecec; color: #a4161a; border: 1px solid #f5c2c2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-item i { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.map { border: 0; width: 100%; height: 280px; border-radius: 12px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #e2481c 100%); color: #fff; border-radius: 16px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band .btn-outline:hover { color: var(--accent); }

/* Footer */
.site-footer { background: #0b1b33; color: #b5c0d3; padding-top: 56px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #b5c0d3; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; }
.site-footer li { margin: 7px 0; font-size: .9rem; }
.site-footer .brand img { width: 46px; height: 46px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0; font-size: .84rem; text-align: center; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 90; text-decoration: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .ticker-inner, .slide-bg { animation: none !important; } }

/* Print (need-based form) */
@media print {
  .topbar, .site-header, .site-footer, .ticker, .no-print, .wa-float { display: none !important; }
  body { background: #fff; }
  .form-card { box-shadow: none; padding: 0; }
}
@media (max-width: 600px) {
  .topbar .tb-left span:nth-child(2) { display: none; }
  .topbar .container { justify-content: center; padding-top: 5px; padding-bottom: 5px; }
  .section { padding: 44px 0; }
  .section-title h2 { font-size: 1.6rem; }
  .cta-band { padding: 26px 20px; }
  .btn { white-space: normal; text-align: center; }
  .form-card { padding: 18px 14px; }
}

/* ---------- v4: mobile menu, program tabs, tab pager ---------- */
.nav-head, .nav-foot { display: none; }
@media (max-width: 1140px) {
  .main-nav { padding: 0; height: 100vh; height: 100dvh; gap: 0; display: flex; }
  .main-nav > a, .main-nav .dd > button { padding: 13px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.07); width: 100%; justify-content: space-between; }
  .main-nav .dd-menu a { padding: 11px 32px; border-radius: 0; }
  .nav-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; background: rgba(0,0,0,.12); }
  .nav-head img { background: #fff; border-radius: 8px; padding: 2px; }
  .nav-head strong { display: block; font-size: 1rem; }
  .nav-head small { display: block; font-size: .72rem; color: #b8c7e0; }
  .nav-close, .nav-close[style] { display: block !important; position: static !important; margin-left: auto; font-size: 1.4rem; }
  .nav-cta { margin: 16px 20px 0; }
  .nav-cta .btn { width: 100%; padding: 12px; }
  .nav-foot { display: block; margin-top: auto; padding: 18px 20px 22px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav-foot > a { color: #fff; text-decoration: none; font-size: .9rem; display: block; margin-bottom: 12px; }
  .nav-foot > a i { color: var(--accent); margin-right: 6px; }
  .nav-social { display: flex; gap: 10px; }
  .nav-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; text-decoration: none; }
  .nav-social a:hover { background: var(--accent); }
}

/* Program tabs: on phones every tab is visible (no sideways scrolling) */
@media (max-width: 900px) {
  .sub-nav { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 6px; overflow: visible; padding: 0; margin-bottom: 18px; }
  .sub-nav button { padding: 10px 6px; font-size: .8rem; line-height: 1.25; border: 1px solid #d3dbe7; }
  .sub-nav button.active { border-color: var(--blue); box-shadow: 0 4px 12px rgba(3,78,162,.25); }
  .acad-main h1.page-title { font-size: 1.45rem; }
}

/* Tab content fills the screen, and ends with Previous / Next buttons instead of running into the footer */
.acad-main { min-height: calc(100vh - 76px); }
.tab-pane { min-height: 55vh; }
.tab-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }
.tab-pager button { flex: 1; max-width: 260px; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfdcf0; background: var(--blue-soft); color: var(--blue); font: 600 .88rem 'Poppins', sans-serif; cursor: pointer; }
.tab-pager button.next { margin-left: auto; background: var(--blue); color: #fff; border-color: var(--blue); }
.tab-pager button:hover { filter: brightness(.95); }
.tab-pager small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; }

/* Footer contact buttons */
.footer-connect { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-connect a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; color: #fff !important; font-size: .86rem; font-weight: 500; }
.footer-connect .wa { background: #25d366; }
.footer-connect .fb { background: #1877f2; }
.footer-connect a:hover { filter: brightness(1.08); }
@media (max-width: 900px) {
  .sub-nav button[data-tab="apply"] { background: var(--accent); color: #fff; border-color: var(--accent); }
  .sub-nav button[data-tab="apply"]:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
