/* Omega Institute of Computer Applications and Business Management — main stylesheet */
:root {
  --navy: #0b1f4b;
  --navy-2: #12306e;
  --navy-3: #071536;
  --gold: #f5b81c;
  --gold-2: #ffd463;
  --blue: #1f6feb;
  --grey: #f3f5f9;
  --grey-2: #e4e8f0;
  --text: #24304a;
  --muted: #5d6b85;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 75, .10);
  --shadow-lg: 0 20px 50px rgba(11, 31, 75, .18);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-3); color: #cdd6ea; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 18px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #cdd6ea; }
.topbar a:hover { color: var(--gold); }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar-info i { color: var(--gold); margin-right: 6px; }
.topbar-social { display: flex; gap: 12px; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: relative; z-index: 110; }
.header-right { display: flex; align-items: center; gap: 22px; }
.header-call { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.header-call i { width: 44px; height: 44px; border-radius: 50%; background: var(--grey); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.header-call small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.header-call strong { font-size: 1rem; }
.nav-bar { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 6px 20px rgba(7,21,54,.2); }
@media (max-width: 1180px) { .header-call, .header-right .btn-enquiry { display: none; } .site-header { position: sticky; top: 0; box-shadow: 0 2px 18px rgba(11,31,75,.1); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); min-width: 0; }
.brand img { width: 62px; height: 62px; flex-shrink: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .2px; display: block; max-width: 400px; }
.brand-former { display: block; font-size: .78rem; color: var(--muted); font-style: italic; margin-top: 3px; }
.brand-former b { color: #b07d00; font-weight: 600; }

.main-nav > .container > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .dd-toggle { display: flex; align-items: center; gap: 6px; padding: 10px 11px; font-size: .86rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .3px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.main-nav a:hover, .main-nav .dd-toggle:hover, .main-nav .active > a, .main-nav .active > .dd-toggle { color: var(--blue); background: var(--grey); }
@media (min-width: 1181px) {
  .main-nav > .container > ul > li > a, .main-nav > .container > ul > li > .dd-toggle { color: #fff; padding: 16px 10px; border-radius: 0; position: relative; font-size: .82rem; }
  .main-nav > .container > ul > li > a::after, .main-nav > .container > ul > li > .dd-toggle::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
  .main-nav > .container > ul > li > a:hover, .main-nav > .container > ul > li > .dd-toggle:hover, .main-nav > .container > ul > li.active > a, .main-nav > .container > ul > li.active > .dd-toggle { background: rgba(255,255,255,.06); color: var(--gold); }
  .main-nav > .container > ul > li:hover > a::after, .main-nav > .container > ul > li:hover > .dd-toggle::after, .main-nav > .container > ul > li.active > a::after, .main-nav > .container > ul > li.active > .dd-toggle::after { transform: scaleX(1); }
  .dropdown { top: 100%; }
  .main-nav .nav-mobile-only { display: none; }
}
.main-nav .dd-toggle i { font-size: .65rem; transition: transform .25s; }
.dropdown { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s ease; }
.dropdown a { text-transform: none; font-weight: 500; font-size: .92rem; padding: 9px 12px; letter-spacing: 0; }
.dropdown a.current { color: var(--blue); background: var(--grey); }
@media (min-width: 1181px) {
  .main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav li:hover > .dd-toggle i { transform: rotate(180deg); }
}
.btn-enquiry { margin-left: 8px; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; flex-shrink: 0; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--white); box-shadow: var(--shadow-lg); padding: 80px 18px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; z-index: 200; }
  .main-nav.open { transform: none; }
  .main-nav > .container > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav .dd-toggle { width: 100%; justify-content: space-between; padding: 12px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 6px 12px; min-width: 0; }
  .main-nav li.open > .dropdown { display: block; }
  .main-nav li.open > .dd-toggle i { transform: rotate(180deg); }
  .btn-enquiry { margin: 14px 0 0; justify-content: center; }
  .nav-close { position: absolute; top: 18px; right: 18px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(7,21,54,.5); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}
@media (min-width: 1181px) { .nav-close, .nav-backdrop { display: none; } }
@media (max-width: 560px) {
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: .8rem; }
  .brand-former { font-size: .7rem; }
  .topbar-social { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: all .25s ease; font-family: inherit; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--navy) !important; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,184,28,.4); }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-outline { border-color: #fff; color: #fff !important; }
.btn-outline:hover { background: #fff; color: var(--navy) !important; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy) !important; }
.btn-outline-navy:hover { background: var(--navy); color: #fff !important; }
.btn-wa { background: #25d366; color: #fff !important; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn[aria-disabled="true"] { background: var(--grey-2); color: var(--muted) !important; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(88vh, 720px); min-height: 520px; overflow: hidden; background: var(--navy-3); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s ease; }
.slide.active .slide-bg { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,21,54,.93) 0%, rgba(11,31,75,.78) 45%, rgba(11,31,75,.25) 100%); }
.slide-content { position: relative; z-index: 2; max-width: 760px; color: #fff; }
.slide-kicker { display: inline-block; background: rgba(245,184,28,.16); border: 1px solid rgba(245,184,28,.5); color: var(--gold-2); padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 18px; }
.slide h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .4em; }
.slide p { font-size: 1.12rem; color: #d9e1f2; max-width: 600px; margin-bottom: 1.6em; }
.slide-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.slide.active .slide-content > * { animation: rise .9s ease both; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: .15s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: .3s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; z-index: 5; bottom: 28px; left: 0; right: 0; }
.hero-controls .container { display: flex; align-items: center; gap: 14px; }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: .2s; }
.hero-arrow:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: .3s; }
.hero-dots button.active { width: 34px; background: var(--gold); }
.hero-quick { position: relative; z-index: 6; margin-top: -60px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick-item { display: flex; gap: 14px; align-items: center; padding: 24px 22px; color: var(--text); border-right: 1px solid var(--grey-2); transition: .25s; }
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--navy); color: #fff; }
.quick-item:hover strong { color: var(--gold); }
.quick-item i { font-size: 1.6rem; color: var(--gold); width: 44px; text-align: center; }
.quick-item strong { display: block; color: var(--navy); font-size: 1rem; }
.quick-item span { font-size: .85rem; color: inherit; opacity: .8; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: 1fr 1fr; } .quick-item:nth-child(2) { border-right: 0; } .quick-item { border-bottom: 1px solid var(--grey-2); } }
@media (max-width: 520px) { .quick-grid { grid-template-columns: 1fr; } .quick-item { border-right: 0; } .hero { min-height: 600px; } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-grey { background: var(--grey); }
.bg-navy { background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: #d9e1f2; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #b07d00; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.bg-navy .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.bg-navy .section-head p { color: #b8c4de; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Image frame with gradient fallback when the photo has not been added yet */
.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; background-color: var(--navy-2); background-image: var(--img), linear-gradient(135deg, var(--navy-2), var(--navy) 55%, #1d4ea8); background-size: cover; background-position: center; min-height: 220px; }
.img-frame .img-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.55); font-size: .85rem; text-align: center; padding: 12px; z-index: 0; }
.img-frame .img-fallback i { font-size: 2.4rem; color: rgba(245,184,28,.7); }
.img-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.about-visual { position: relative; }
.about-visual .img-frame { min-height: 440px; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; z-index: 3; bottom: -26px; right: -10px; background: var(--gold); color: var(--navy); padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 250px; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1; }
.about-badge span { font-size: .85rem; font-weight: 600; }
@media (max-width: 560px) { .about-badge { right: 10px; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(245,184,28,.2); color: #b07d00; font-size: .65rem; display: flex; align-items: center; justify-content: center; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; position: relative; overflow: hidden; border: 1px solid var(--grey-2); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: var(--gold); font-size: 1.45rem; margin-bottom: 18px; transition: .3s; }
.card:hover .card-icon { background: var(--gold); color: var(--navy); transform: rotate(-6deg); }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); transition: width .35s; }
.feature-card:hover::after { width: 100%; }

/* Programme cards */
.prog-card { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.prog-top { padding: 36px 34px 30px; background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: #fff; position: relative; overflow: hidden; }
.prog-top::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(245,184,28,.12); right: -60px; top: -70px; }
.prog-code { font-family: var(--font-head); font-size: 3.4rem; color: var(--gold); line-height: 1; font-weight: 700; }
.prog-top h3 { color: #fff; margin: 8px 0 6px; font-size: 1.4rem; }
.prog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prog-meta span { background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 50px; font-size: .8rem; }
.prog-body { padding: 30px 34px 34px; flex: 1; display: flex; flex-direction: column; }
.prog-body .check-list { flex: 1; }

/* Highlights tabs */
.hl-col { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.hl-col h3 { display: flex; align-items: center; gap: 12px; }
.hl-col h3 span { background: var(--gold); color: var(--navy); padding: 2px 12px; border-radius: 8px; font-family: var(--font-body); font-size: .9rem; }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { display: flex; align-items: center; gap: 10px; background: var(--grey); padding: 13px 14px; border-radius: 10px; font-weight: 500; font-size: .93rem; transition: .25s; }
.chip i { color: var(--blue); }
.chip:hover { background: var(--navy); color: #fff; }
.chip:hover i { color: var(--gold); }
@media (max-width: 480px) { .chip-grid { grid-template-columns: 1fr; } }

/* Vision */
.vm-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 34px; height: 100%; }
.vm-card h3 { display: flex; align-items: center; gap: 12px; }
.vm-card h3 i { color: var(--gold); }
.vm-card ul { margin: 0; padding-left: 1.1em; }
.vm-card li { margin-bottom: 8px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.values span { background: rgba(245,184,28,.14); border: 1px solid rgba(245,184,28,.4); color: var(--gold-2); padding: 7px 18px; border-radius: 50px; font-weight: 600; font-size: .9rem; }
.light .vm-card { background: #fff; border-color: var(--grey-2); box-shadow: var(--shadow); color: var(--text); }
.light .vm-card h3 { color: var(--navy); }
.light .values span { background: var(--grey); color: var(--navy); border-color: var(--grey-2); }

/* Training list */
.train-item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 18px; transition: .25s; }
.train-item:hover { background: rgba(245,184,28,.12); border-color: rgba(245,184,28,.4); }
.train-item i { color: var(--gold); font-size: 1.3rem; margin-top: 4px; width: 26px; text-align: center; }
.train-item strong { color: #fff; display: block; }

/* Placement cards */
.place-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: .3s; border: 1px solid var(--grey-2); }
.place-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.place-card .img-frame { min-height: 0; aspect-ratio: 1 / 1; border-radius: 0; }
.place-info { padding: 18px 16px 22px; }
.place-info h3 { font-size: 1.08rem; margin-bottom: 4px; }
.place-info .company { color: var(--blue); font-weight: 700; }
.place-info .meta { font-size: .85rem; color: var(--muted); }
.tag { display: inline-block; background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn { border: 1px solid var(--grey-2); background: #fff; padding: 9px 20px; border-radius: 50px; cursor: pointer; font-weight: 600; color: var(--navy); font-family: inherit; transition: .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters select { border: 1px solid var(--grey-2); padding: 9px 16px; border-radius: 50px; font-family: inherit; font-weight: 600; color: var(--navy); background: #fff; }

/* Empty state notice */
.notice { background: var(--grey); border: 1px dashed #b9c3d6; border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); }
.notice i { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 10px; }
.bg-grey .notice { background: #fff; }

/* Campus cards */
.campus-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: block; }
.campus-card .img-frame { position: absolute; inset: 0; border-radius: 0; transition: transform .6s; }
.campus-card:hover .img-frame { transform: scale(1.07); }
.campus-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,21,54,.9), transparent 60%); z-index: 1; }
.campus-card h3 { position: absolute; z-index: 2; left: 22px; bottom: 16px; color: #fff; font-size: 1.2rem; margin: 0; }
.campus-card h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--gold); margin-top: 8px; transition: width .3s; }
.campus-card:hover h3::after { width: 70px; }

/* News */
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); transition: .3s; height: 100%; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.news-cat { background: rgba(31,111,235,.1); color: var(--blue); padding: 2px 10px; border-radius: 50px; font-weight: 700; }
.news-card h3 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; }
.news-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.news-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.news-cats span { font-size: .8rem; background: #fff; border: 1px solid var(--grey-2); padding: 5px 12px; border-radius: 50px; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.08); }
.gallery a::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; background: rgba(11,31,75,.55); opacity: 0; transition: .3s; }
.gallery a:hover::after { opacity: 1; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { position: fixed; inset: 0; background: rgba(4,10,28,.92); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; border-radius: 8px; }
.lightbox p { color: #fff; margin-top: 12px; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* Forms */
.form-wrap { background: #fff; border-radius: 20px; padding: 38px; box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-wrap { padding: 24px 18px; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #cfd6e4; border-radius: 10px; font-family: inherit; font-size: .95rem; color: var(--text); background: #fbfcfe; transition: .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.15); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field .error { color: #c0392b; font-size: .8rem; display: none; margin-top: 4px; }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field.invalid .error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .92rem; }
.form-status.ok { color: #1e8449; }
.form-status.err { color: #c0392b; }
.enquiry-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .enquiry-split { grid-template-columns: 1fr; } }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-line i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: rgba(245,184,28,.16); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-line strong { display: block; color: #fff; }
.contact-line a { color: #d9e1f2; }
.contact-line a:hover { color: var(--gold); }
.light .contact-line strong { color: var(--navy); }
.light .contact-line a, .light .contact-line span { color: var(--text); }
.light .contact-line i { background: var(--navy); }

/* ---------- Page banner & breadcrumb ---------- */
.page-banner { position: relative; padding: 90px 0 80px; background: linear-gradient(110deg, rgba(7,21,54,.95), rgba(18,48,110,.85)), var(--banner, none) center/cover, var(--navy); color: #fff; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(245,184,28,.08); }
.page-banner h1 { color: #fff; margin-bottom: 14px; position: relative; }
.breadcrumb { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; position: relative; }
.breadcrumb li { color: var(--gold-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9fb0d4; }
.breadcrumb a { color: #d9e1f2; }
.breadcrumb a:hover { color: var(--gold); }

/* Inner page content */
.content-block { margin-bottom: 50px; }
.content-block:last-child { margin-bottom: 0; }
.prose { max-width: 860px; }
.prose p { font-size: 1.03rem; }
.sidebar-layout { display: grid; grid-template-columns: 1fr 320px; gap: 46px; align-items: start; }
@media (max-width: 1000px) { .sidebar-layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 110px; display: grid; gap: 22px; }
.side-box { background: var(--grey); border-radius: var(--radius); padding: 26px; }
.side-box h3 { font-size: 1.1rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--grey-2); color: var(--text); font-weight: 500; }
.side-box li a:hover, .side-box li a.current { color: var(--blue); }
.side-cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #d9e1f2; }
.side-cta h3 { color: #fff; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 26px 0; }
.fact { background: var(--grey); border-radius: 12px; padding: 20px; border-top: 3px solid var(--gold); }
.fact span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.fact strong { color: var(--navy); font-size: 1.05rem; }
.step-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.step-list li { counter-increment: step; position: relative; padding: 16px 18px 16px 70px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--grey-2); }
.step-list li::before { content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.doc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.doc-table th, .doc-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--grey-2); vertical-align: top; }
.doc-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; }
.doc-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.sem-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--grey-2); overflow: hidden; }
.sem-card header { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sem-card header h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.sem-card .sem-body { padding: 22px 24px; }
.sem-card ol { margin: 0; padding-left: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.edit-note { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); background: #fff8e1; border: 1px solid #f3dd9b; padding: 8px 14px; border-radius: 8px; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 46px; align-items: start; }
.profile .img-frame { min-height: 380px; box-shadow: var(--shadow-lg); }
.profile-name { margin-top: 16px; text-align: center; }
.profile-name strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.25rem; }
.profile-name span { color: var(--muted); }
.quote-mark { font-size: 3rem; color: var(--gold); line-height: 1; }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .profile .img-frame { max-width: 340px; margin: 0 auto; } }
.map-frame { border: 0; width: 100%; height: 440px; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.cta-band { background: linear-gradient(120deg, var(--gold), #ffcf4a); padding: 50px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: 4px 0 0; color: var(--navy-2); }
.mag-preview { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: center; }
.mag-cover { aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(160deg, var(--navy-3), var(--navy-2)); box-shadow: 20px 20px 0 var(--gold), var(--shadow-lg); color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.mag-cover strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold); line-height: 1.1; }
@media (max-width: 800px) { .mag-preview { grid-template-columns: 1fr; } .mag-cover { max-width: 280px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #aebbd6; font-size: .93rem; }
.footer-top { padding: 70px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 1.02rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 18px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #aebbd6; }
.site-footer a:hover { color: var(--gold); }
.site-footer li a::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; color: var(--gold); font-size: .75rem; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 58px; height: 58px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1rem; line-height: 1.3; display: block; }
.footer-brand em { color: var(--gold-2); font-size: .8rem; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact li i { color: var(--gold); margin-top: 5px; width: 16px; }
.footer-contact li a::before { content: none; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.social-links a:hover { background: var(--gold); color: var(--navy); }
.useful-links { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.useful-links .container { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; font-size: .88rem; }
.useful-links strong { color: #fff; }
.footer-bottom { background: #050f28; padding: 18px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Floating buttons */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(37,211,102,.45); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
.to-top { position: fixed; right: 26px; bottom: 90px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: var(--gold); cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- PHP version additions ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.h3 { font-size: 1.3rem; }
.sem-card header .h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.vm-card .h3 { display: flex; align-items: center; gap: 12px; }
.vm-card .h3 i { color: var(--gold); }
.slide-title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .4em; }
.site-footer .footer-h { color: #fff; font-family: var(--font-body); font-size: 1.02rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer .footer-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.footer-contact address { font-style: normal; }
.side-box .side-h { font-size: 1.1rem; }
.side-cta .side-h { color: #fff; }
.faq { background: #fff; border: 1px solid var(--grey-2); border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Header brand: allow the long college name to wrap */
.brand > span { min-width: 0; }
.brand-name { overflow-wrap: anywhere; }
@media (max-width: 1180px) { .header-right { flex-shrink: 0; } }
/* brand-text fix */
.profile.mgmt { padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--grey-2); scroll-margin-top: 90px; }
.profile.mgmt:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pdf-frame { width: 100%; height: 80vh; min-height: 500px; border: 1px solid var(--grey-2); border-radius: var(--radius); }
.officer-card { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; }
.officer-card .img-frame { min-height: 0; aspect-ratio: 4 / 5; }
.officer-card h3 { margin-bottom: 4px; }
.officer-card p { margin: 0 0 8px; color: var(--text); }
@media (max-width: 560px) { .officer-card { grid-template-columns: 1fr; text-align: center; } .officer-card .img-frame { max-width: 200px; margin: 0 auto; } }

/* ---------- Info pages, feedback forms, news & events ---------- */
.page-figure { margin: 0 0 40px; background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.page-figure img { width: 100%; height: auto; border-radius: 8px; }
.page-figure figcaption { text-align: center; color: var(--muted); font-size: .9rem; padding-top: 10px; }
.doc-list { display: grid; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--grey-2); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.doc-item > i { color: #c0392b; font-size: 1.3rem; width: 22px; text-align: center; }
.doc-item > span { flex: 1; font-weight: 600; color: var(--navy); }
@media (max-width: 560px) { .doc-item { flex-wrap: wrap; } .doc-item > span { flex-basis: calc(100% - 40px); } }
.fb-head { grid-column: 1 / -1; margin: 18px 0 0; font-size: 1.1rem; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.field.rating { border: 1px solid var(--grey-2); border-radius: 12px; padding: 14px 16px; margin: 0; }
.field.rating legend { font-weight: 600; color: var(--navy); font-size: .93rem; padding: 0 6px; }
.rating-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rating-opts label { cursor: pointer; }
.rating-opts input { position: absolute; opacity: 0; }
.rating-opts span { display: inline-block; padding: 7px 14px; border: 1px solid #cfd6e4; border-radius: 50px; font-size: .86rem; transition: .2s; background: #fbfcfe; }
.rating-opts input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.rating-opts input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.field.rating.invalid { border-color: #c0392b; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.event-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-2); display: flex; flex-direction: column; }
.event-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.event-card:hover .event-img img { transform: scale(1.05); }
.event-body { padding: 20px 22px 24px; }
.event-body .h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
@media (max-width: 400px) { .event-grid { grid-template-columns: 1fr; } }
/* ICET code badge beside the college name */

.icet-badge { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 8px 16px; border: 2px solid var(--gold); border-radius: 12px; background: linear-gradient(135deg, #fff8e1, #fff); color: var(--navy); }
.icet-badge small { font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #b07d00; }
.icet-badge strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: 2px; }
@media (max-width: 700px) { .icet-badge { padding: 5px 10px; } .icet-badge strong { font-size: 1rem; } .icet-badge small { font-size: .58rem; } }
@media (max-width: 420px) { .icet-badge { display: none; } }

/* Homepage news: one row of 4 with thumbnails */
.news-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .news-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-row { grid-template-columns: 1fr; } }
.news-thumb a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-2); color: var(--text); transition: transform .3s, box-shadow .3s; }
.news-thumb a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb .img-frame { min-height: 0; aspect-ratio: 16 / 10; border-radius: 0; }
.news-thumb .img-frame img { transition: transform .5s; }
.news-thumb a:hover .img-frame img { transform: scale(1.06); }
.news-thumb-body { padding: 16px 18px 20px; }
.news-thumb-body h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Academics menu: MCA (blue) and MBA (gold) groups */
.dropdown li.nav-mca > a, .side-box li.nav-mca > a { background: #e8f0fe; border-left: 4px solid var(--blue); border-radius: 0; }
.dropdown li.nav-mba > a, .side-box li.nav-mba > a { background: #fff4d6; border-left: 4px solid var(--gold); border-radius: 0; }
.dropdown li.nav-first > a { border-top-left-radius: 8px; border-top-right-radius: 8px; margin-top: 6px; }
.dropdown li.nav-last > a { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; margin-bottom: 6px; }
.dropdown li.nav-mca > a:hover, .dropdown li.nav-mca > a.current { background: #d2e2fd; color: var(--navy); }
.dropdown li.nav-mba > a:hover, .dropdown li.nav-mba > a.current { background: #ffe9a8; color: var(--navy); }
.side-box li.nav-mca > a, .side-box li.nav-mba > a { padding-left: 12px; padding-right: 10px; border-bottom-color: rgba(255,255,255,.7); }
.side-box li.nav-first > a { margin-top: 6px; border-top-right-radius: 8px; }
.side-box li.nav-last > a { margin-bottom: 6px; border-bottom-right-radius: 8px; }
.side-box li.nav-mca > a.current, .side-box li.nav-mba > a.current { font-weight: 700; color: var(--navy); }

/* ICET badge sits on the right, beside Admission Enquiry */
.header-right { gap: 14px; }

/* Footer: MCA (blue) and MBA (gold) groups */
.site-footer li.f-mca, .site-footer li.f-mba { margin: 0; padding: 4px 10px; }
.site-footer li.f-mca { background: rgba(31,111,235,.14); border-left: 3px solid #5b9bff; }
.site-footer li.f-mba { background: rgba(245,184,28,.12); border-left: 3px solid var(--gold); }
.site-footer li:not(.f-mca) + li.f-mca, .site-footer li:not(.f-mba) + li.f-mba { margin-top: 8px; border-top-right-radius: 6px; }
.site-footer li.f-mca:has(+ li:not(.f-mca)), .site-footer li.f-mba:has(+ li:not(.f-mba)) { margin-bottom: 8px; border-bottom-right-radius: 6px; }

/* ---------- Responsive fixes (tested 320–1440px) ---------- */
/* 1. Feedback rating options: keep hidden radio inputs inside their label */
.rating-opts label { position: relative; }
.rating-opts input { left: 0; top: 0; width: 1px; height: 1px; margin: 0; }
/* 2. Grid/flex children may shrink so tables scroll inside their box instead of widening the page */
.grid > *, .split > *, .enquiry-split > *, .sidebar-layout > *, .form-grid > *, .profile > *, .mag-preview > * { min-width: 0; }
.sidebar-layout { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1000px) { .sidebar-layout { grid-template-columns: minmax(0, 1fr); } }
.table-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; }
.doc-table { min-width: 560px; }
/* 3. Long words in headings wrap on small phones */
h1, h2, h3, .brand-name { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
@media (max-width: 400px) { h2 { font-size: 1.4rem; } .page-banner h1 { font-size: 1.6rem; } .slide-title { font-size: 1.75rem; } }
/* 4. Subject chips: two equal columns that can shrink, one column on tablets */
.chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { min-width: 0; }
@media (max-width: 900px) and (min-width: 701px) { .chip-grid { grid-template-columns: minmax(0, 1fr); } }
/* 5. Long e-mail addresses / phone lists wrap on very small phones */
.contact-line > div { min-width: 0; }
.contact-line a, .contact-line span, .footer-contact a, .footer-contact span, .topbar a { overflow-wrap: anywhere; }
/* 6. Phone menu drawer fully hidden while closed; never allow sideways page scroll */
body { overflow-x: clip; }
@media (max-width: 1180px) {
  .main-nav { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .main-nav.open { visibility: visible; transition: transform .3s ease, visibility 0s; }
}
/* 7. Slider arrows sit above the overlapping quick-links card */
.hero-controls { bottom: 84px; }
/* 8. Phones: compact ICET badge, shorter top bar */
@media (max-width: 480px) {
  .icet-badge { display: flex; padding: 4px 8px; border-width: 1.5px; border-radius: 8px; }
  .icet-badge small { font-size: .52rem; letter-spacing: .5px; }
  .icet-badge strong { font-size: .9rem; letter-spacing: 1px; }
  .header-right { gap: 8px; }
  .topbar-info a[href^="mailto"] { display: none; }
}
@media (max-width: 340px) { .icet-badge { display: none; } }
/* 9. Phones: tighter college name so the header stays compact */
@media (max-width: 480px) {
  .header-inner { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: .7rem; line-height: 1.25; letter-spacing: 0; }
  .brand-former { font-size: .62rem; margin-top: 2px; }
}

/* Header logo banner (emblem + college name in one image) */
.brand-logo { flex: 0 1 auto; min-width: 0; }
.brand-logo img { display: block; width: auto; height: 74px; max-width: 100%; object-fit: contain; }
@media (max-width: 1180px) { .brand-logo img { height: 62px; } }
@media (max-width: 768px) { .brand-logo img { height: auto; width: 100%; max-height: 56px; } }
@media (max-width: 480px) { .brand-logo img { max-height: 46px; } }

/* Hero: light, transparent college illustration behind the slides */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("/assets/img/hero-illustration.svg") right center / auto 100% no-repeat; opacity: .22; }
.slide::after { background: linear-gradient(100deg, rgba(7,21,54,.92) 0%, rgba(11,31,75,.7) 50%, rgba(11,31,75,.35) 100%); }
.hero .slide-content { z-index: 3; }
.hero-controls { z-index: 6; }
@media (max-width: 900px) { .hero::before { background-position: 70% bottom; background-size: auto 70%; opacity: .14; } }
