/* ============================================================
   CSJMSS — pages.css
   Page-specific styles + the shared INSTITUTION SHELL + gallery.
   ============================================================ */

/* ---------- Master-page responsive collapses ---------- */
@media (max-width: 760px) {
  #about-news,
  #contact-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   INSTITUTION SHELL — shared by all 7 institution microsites
   ============================================================ */

/* Top utility bar above the standard header: back-link + tag */
.inst-topbar { background: #061f4d; color: #cfe0f7; font-size: .82rem; }
.inst-topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.inst-topbar .back { color: var(--gold); font-weight: 700; }
.inst-topbar .tag { opacity: .8; }

/* Institution hero (richer than page-hero) */
.inst-hero { background: var(--grad-hero); color: #fff; padding: 50px 0; position: relative; overflow: hidden; }
.inst-hero::after { content: ""; position: absolute; right: -100px; top: -100px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 60%); border-radius: 50%; }
.inst-hero .crumb { font-size: .82rem; opacity: .75; margin-bottom: 8px; position: relative; z-index: 1; }
.inst-hero .crumb a { color: var(--gold); }
.inst-hero h1 { color: #fff; position: relative; z-index: 1; }
.inst-hero .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .92rem; position: relative; z-index: 1; }
.inst-hero .meta b { color: #ffd66b; }

/* 7-tab sub-nav */
.sub-nav { background: var(--navy); position: sticky; top: 64px; z-index: 900; box-shadow: var(--shadow-sm); overflow-x: auto; }
.sub-nav ul { display: flex; gap: 2px; }
.sub-nav a { color: #cfe0f7; padding: 14px 18px; display: inline-block; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.sub-nav a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.sub-nav a.active { background: var(--gold); color: var(--navy-deep); }

/* Institution body content blocks */
.inst-body { padding: 50px 0; }
.prose { max-width: 820px; }
.prose h2 { margin: 24px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul.bullets { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose ul.bullets li { color: var(--text-muted); margin-bottom: 6px; }

/* Content grid (overview blocks) */
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .content-grid { grid-template-columns: 1fr; } }

/* ---------- Courses ---------- */
.course-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.course-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.course-card h3 { color: var(--navy); margin-bottom: 10px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.course-meta .pill { background: var(--bg-tint); color: var(--navy); border-radius: 20px; padding: 4px 12px; font-size: .78rem; font-weight: 600; }
.course-card .fees { font-weight: 700; color: var(--blue-bright); }
@media (max-width: 700px) { .course-list { grid-template-columns: 1fr; } }

/* ---------- Faculty grid ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.faculty-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 16px; }
.faculty-card .ph { width: 86px; height: 86px; border-radius: 50%; background: var(--bg-tint); color: var(--navy); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 12px; }
.faculty-card h3 { font-size: 1rem; }
.faculty-card .qual { font-size: .82rem; color: var(--text-muted); }
.faculty-card .desig { font-size: .82rem; color: var(--blue-bright); font-weight: 600; }
@media (max-width: 940px) { .faculty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .faculty-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Admissions info table ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.info-table th { background: var(--bg-tint); color: var(--navy); font-size: .9rem; }
.info-table td { color: var(--text-muted); font-size: .92rem; }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button { border: none; padding: 0; cursor: pointer; background: var(--bg-tint); border-radius: var(--radius); aspect-ratio: 4/3; overflow: hidden; position: relative; }
.gallery button .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--navy); opacity: .5; font-size: 1.5rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }

.lightbox { position: fixed; inset: 0; background: rgba(8,42,99,.92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox .lb-inner { background: #fff; border-radius: var(--radius); padding: 30px; max-width: 600px; text-align: center; }
.lightbox .lb-inner .lb-ph { aspect-ratio: 4/3; background: var(--bg-tint); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--navy); font-size: 2rem; margin-bottom: 14px; }
.lightbox .close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---------- Facility chips ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facility-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.facility-card .fi { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-tint); color: var(--navy); display: grid; place-items: center; font-size: 1.4rem; margin: 0 auto 10px; }
.facility-card h3 { font-size: 1rem; }
@media (max-width: 700px) { .facility-grid { grid-template-columns: 1fr; } }
