/* ════════════════════════════════════════════════════════════════
   BENGAL COLLEGE OF ENGINEERING AND TECHNOLOGY (BCET), DURGAPUR
   Official Theme Stylesheet — Matching https://bcetdgp.ac.in/
   Primary Accent: #ff5311 (BCET Orange) | Header & Nav System
   ════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Color System & CSS Variables (BCET Palette) ───────────── */
:root {
  /* BCET Brand Colors */
  --primary:        #ff5311;
  --primary-hover:  #e04408;
  --primary-dark:   #c83b05;
  --primary-light:  #fff3ee;
  --primary-tint:   rgba(255, 83, 17, 0.08);

  --secondary:      #046bd2;
  --secondary-dark: #0353a4;
  --secondary-light:#eaf4ff;

  --dark-slate:     #1e293b;
  --dark-mid:       #334155;
  --dark-charcoal:  #1f1f1f;
  --dark-bottom:    #161616;

  --white:          #ffffff;
  --off-white:      #f8fafc;
  --bg-page:        #f4f6fa;
  --text-dark:      #1e293b;
  --text-mid:       #475569;
  --text-light:     #64748b;
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
  --shadow:         0 2px 10px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 18px rgba(0,0,0,0.08);
  --shadow-lg:      0 10px 30px rgba(0,0,0,0.12);

  --radius-sm:      4px;
  --radius:         8px;
  --radius-lg:      12px;

  /* Legacy variable aliases for seamless compatibility with disclosure elements */
  --navy:           #1e293b;
  --navy-mid:       #334155;
  --navy-light:     #2a3b5c;
  --gold:           #ff5311;
  --gold-dark:      #e04408;
  --gold-light:     #fff3ee;
}

/* ── Accessibility Skip Link ──────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  background: var(--primary); color: var(--white); padding: .6rem 1.2rem;
  font-weight: 700; border-radius: 0 0 6px 0;
  box-shadow: var(--shadow-md);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ── Top Bar (Above Header) ───────────────────────────────── */
.topbar {
  display: none !important;
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-left {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.topbar-call-label {
  font-weight: 700; color: #1e293b; font-size: 0.78rem; letter-spacing: 0.5px;
}
.topbar a {
  color: #475569; display: inline-flex; align-items: center; gap: .35rem;
  font-size: 0.78rem; font-weight: 500;
}
.topbar a:hover { color: var(--primary); }

.top-phone-item {
  color: #1e293b !important; font-weight: 600 !important;
}
.top-phone-item:hover { color: var(--primary) !important; }

.topbar-seat-btn {
  background: #fa5b1e;
  background: linear-gradient(135deg, #ff5311 0%, #fa5b1e 100%);
  color: var(--white) !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(255, 83, 17, 0.25);
  transition: all .2s ease;
  margin-left: 0.25rem;
}
.topbar-seat-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(255, 83, 17, 0.35);
  transform: translateY(-1px);
}

.topbar-right {
  display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}
.topbar-right-links {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem;
}
.topbar-orange-link {
  color: var(--primary) !important;
  font-weight: 600;
}
.topbar-orange-link:hover {
  text-decoration: underline;
}
.topbar-sep {
  color: #cbd5e1;
}

.topbar-socials {
  display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem;
}
.social-link {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f1f5f9; color: #64748b;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.social-link:hover {
  background: var(--primary); color: var(--white) !important;
  transform: scale(1.08);
}
.social-link svg { width: 13px; height: 13px; fill: currentColor; }

/* ── Main Header (Logo & Quick Actions) ───────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #f1f5f9;
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.logo-wrap {
  display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
}
.site-logo {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform .2s ease;
}
.logo-wrap:hover .site-logo {
  transform: scale(1.01);
}

/* Fallback/accessible text inside logo */
.logo-text-meta {
  display: flex; flex-direction: column;
}
.logo-text-meta strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem; font-weight: 800; color: #1e293b;
  line-height: 1.2;
}
.logo-text-meta span {
  font-size: 0.72rem; color: #64748b; font-weight: 500;
  letter-spacing: 0.4px;
}

/* Header Action Buttons */
.header-actions {
  display: flex; align-items: center; gap: 0.85rem;
}
.hdr-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.hdr-btn-outline:hover {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 83, 17, 0.2);
}

.hdr-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  background: transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.hdr-btn-secondary:hover {
  background: var(--secondary); color: var(--white);
  box-shadow: 0 4px 12px rgba(4, 107, 210, 0.2);
}

.hdr-btn-query {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.45rem 1.25rem;
  border-radius: 5px;
  background: var(--primary);
  color: var(--white) !important;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 3px 10px rgba(255, 83, 17, 0.3);
  transition: all .2s ease;
  white-space: nowrap;
}
.hdr-btn-query span { font-size: 0.7rem; font-weight: 500; opacity: 0.95; }
.hdr-btn-query strong { font-family: 'Montserrat', sans-serif; font-size: 0.84rem; font-weight: 800; letter-spacing: 0.3px; }
.hdr-btn-query:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 83, 17, 0.4);
}

/* ── Below Header (Official BCET Orange Navigation Bar) ────── */
.nav-bar-wrap {
  background: var(--primary);
  background: linear-gradient(90deg, #ff5311 0%, #fa5b1e 100%);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  position: sticky; top: 0; z-index: 500;
}
.nav-bar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.main-nav {
  display: flex; align-items: center; flex: 1;
}
.main-nav-list {
  display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.main-nav-list > li {
  position: relative;
}
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 0.85rem 0.95rem;
  color: var(--white);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer; transition: background .18s ease, color .18s ease;
  white-space: nowrap; border: none; background: transparent;
}
.nav-link:hover {
  background: rgba(0, 0, 0, 0.14);
  color: var(--white);
}
.nav-link.active {
  background: rgba(0, 0, 0, 0.22);
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--white);
}
.nav-link svg {
  width: 9px; height: 9px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* Dropdown Menus */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  min-width: 230px; padding: 0.4rem 0;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 600;
}
.main-nav-list > li:hover .dropdown,
.main-nav-list > li:focus-within .dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem; font-weight: 500; color: #334155;
  border-left: 3px solid transparent;
  transition: all .15s ease;
}
.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 1.35rem;
}

/* Hamburger (Mobile) */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 0.6rem; border: none; background: none;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--dark-slate); border-radius: 2px; transition: .2s ease;
}
.hamburger:hover span {
  background: var(--primary);
}

/* ── Page Hero / Banner ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 3.2rem 1.5rem 2.8rem;
  position: relative; overflow: hidden;
  border-top: 3px solid rgba(255, 255, 255, 0.1);
  border-bottom: 3px solid var(--primary);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(255, 83, 17, 0.22) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; position: relative; z-index: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: .45rem;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.9rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 12px; height: 12px; fill: none; stroke: var(--primary); stroke-width: 2.5; }
.breadcrumb span[aria-current="page"] {
  color: var(--white); font-weight: 600;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 83, 17, 0.15);
  border: 1px solid rgba(255, 83, 17, 0.4);
  border-radius: 50px; padding: .3rem .9rem;
  font-size: 0.72rem; font-weight: 700; color: #ff8554;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 0.9rem;
}
.hero-badge svg { width: 13px; height: 13px; fill: currentColor; }

.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -.5px; margin-bottom: 0.65rem;
  line-height: 1.2;
}
.page-hero h1 span {
  color: var(--primary);
  position: relative;
}
.page-hero p {
  font-size: 0.96rem; color: rgba(255, 255, 255, 0.82); max-width: 720px;
  line-height: 1.6;
}

/* ── Main Layout ─────────────────────────────────────────── */
.main-layout {
  max-width: 1240px; margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 275px 1fr; gap: 2.2rem;
  align-items: start;
}

/* ── Sidebar / Sticky Nav ────────────────────────────────── */
.sidebar { position: sticky; top: 70px; }
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border);
}
.sidebar-header {
  background: var(--dark-slate);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 1rem 1.25rem;
  color: var(--white); font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: 0.8rem 1.25rem; font-size: 0.86rem; font-weight: 500;
  color: #475569; border-bottom: 1px solid var(--border-light);
  border-left: 4px solid transparent;
  transition: all .16s ease;
  cursor: pointer;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover {
  background: #f8fafc; color: var(--primary);
  border-left-color: rgba(255, 83, 17, 0.3);
  padding-left: 1.45rem;
}
.sidebar-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 1.45rem;
}
.sidebar-nav a svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.8; flex-shrink: 0;
}

/* UGC Notice Box in Sidebar */
.ugc-box {
  margin-top: 1.3rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); overflow: hidden;
}
.ugc-box-head {
  background: var(--primary);
  padding: .75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--white); display: flex; align-items: center; gap: .45rem;
}
.ugc-box-head svg { width: 14px; height: 14px; fill: currentColor; }
.ugc-box-body { padding: .95rem 1.1rem; font-size: 0.8rem; line-height: 1.6; color: #475569; }
.ugc-box-body strong { color: #1e293b; }
.ugc-link {
  display: block; margin-top: .8rem;
  background: var(--dark-slate); color: var(--white) !important;
  text-align: center; padding: .55rem 1rem; border-radius: 5px;
  font-size: 0.78rem; font-weight: 700; transition: background .2s ease;
}
.ugc-link:hover { background: var(--primary) !important; }

/* ── Content Area ────────────────────────────────────────── */
.content-area { min-width: 0; }

/* Notice Banner */
.notice-bar {
  background: #fff8f5;
  border: 1px solid #fed7aa; border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 0.95rem 1.25rem;
  font-size: 0.84rem; color: #334155; margin-bottom: 2rem;
  display: flex; gap: .8rem; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.notice-bar svg {
  width: 19px; height: 19px; flex-shrink: 0; fill: var(--primary);
  margin-top: .1rem;
}

/* Section Blocks (Right Side Tab Display) */
.section-block {
  display: none;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 1.8rem; overflow: hidden;
  animation: tabFadeIn .22s ease-in-out;
}
.section-block.active {
  display: block;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.6rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, #f8fafc 0%, #fffbf8 100%);
  user-select: none;
}
.section-icon {
  width: 44px; height: 44px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #fa5b1e 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 3px 8px rgba(255, 83, 17, 0.28);
}
.section-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.section-title-wrap { flex: 1; }
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.22rem; font-weight: 700; color: #1e293b;
  letter-spacing: -.2px;
}
.section-subtitle { font-size: 0.8rem; color: #64748b; margin-top: .15rem; }
.section-badge {
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(255, 83, 17, 0.25);
  font-size: 0.72rem; font-weight: 700; padding: .28rem .75rem;
  border-radius: 50px; letter-spacing: .5px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .35rem;
}

.section-body { display: block; }
.section-body-inner { padding: 1.5rem 1.75rem 2rem; }

/* Sub-section Heading */
.sub-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: #1e293b;
  border-bottom: 2px solid #e2e8f0; padding-bottom: .45rem;
  margin: 1.5rem 0 .95rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.sub-heading::before {
  content: ''; display: inline-block; width: 4px; height: 14px;
  background: var(--primary); border-radius: 2px;
}
.sub-heading:first-child { margin-top: 0; }

/* Tab Navigation Buttons (Prev / Next) */
.tab-nav-buttons {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  gap: 1rem; flex-wrap: wrap;
}
.tab-nav-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--off-white); color: #1e293b;
  border: 1px solid var(--border); border-radius: 6px;
  padding: .65rem 1.25rem; font-size: 0.84rem; font-weight: 600;
  transition: all .2s ease; cursor: pointer;
}
.tab-nav-btn:hover {
  background: var(--dark-slate); color: var(--white) !important;
  border-color: var(--dark-slate);
  transform: translateY(-1px);
}
.tab-nav-btn.next {
  background: var(--primary); color: var(--white) !important;
  border-color: var(--primary);
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(255, 83, 17, 0.25);
}
.tab-nav-btn.next:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(255, 83, 17, 0.35);
}

/* Document Grid */
.doc-grid {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.doc-card {
  display: flex; align-items: center; gap: .85rem;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem 1.15rem;
  transition: all .2s ease;
}
.doc-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md); border-color: var(--primary);
  transform: translateY(-2px);
}
.doc-icon {
  display: none !important;
}

.doc-info { flex: 1; min-width: 0; }
.doc-name {
  font-size: 0.88rem; font-weight: 600; color: #1e293b;
  line-height: 1.35; margin: 0;
}
.doc-meta { display: none; }
.doc-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--dark-slate); color: var(--white);
  padding: .38rem .85rem; border-radius: 5px;
  font-size: 0.74rem; font-weight: 600; margin-top: 0; margin-left: auto;
  transition: background .2s ease; white-space: nowrap; cursor: pointer; flex-shrink: 0;
}
.doc-btn:hover { background: var(--primary); }
.doc-btn:focus, .doc-btn:focus-visible { outline: none; box-shadow: none; }
.doc-btn svg { width: 11px; height: 11px; fill: currentColor; }

/* Information Tables */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin-top: .4rem; }
.info-table th {
  background: var(--dark-slate); color: var(--white);
  padding: .7rem 1rem; text-align: left; font-weight: 600;
  font-size: 0.8rem; letter-spacing: .3px;
  border-top: 2px solid var(--primary);
}
.info-table th:first-child { border-radius: 0; }
.info-table td {
  padding: .65rem 1rem; border-bottom: 1px solid var(--border);
  color: #475569; vertical-align: top;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: rgba(248, 250, 252, 0.85); }
.info-table td:first-child { font-weight: 600; color: #1e293b; width: 38%; }

/* Annexure List */
.annexure-list { display: grid; gap: .55rem; }
.annexure-item {
  display: flex; align-items: center; gap: .8rem;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 7px; padding: .65rem 1rem;
  font-size: 0.83rem; transition: all .2s ease;
}
.annexure-item:hover {
  border-color: var(--primary); background: #fffaf8;
  transform: translateX(2px);
}
.annexure-num {
  font-size: 0.68rem; font-weight: 800; background: var(--dark-slate);
  color: var(--white); border-radius: 5px; padding: .22rem .5rem;
  flex-shrink: 0; min-width: 40px; text-align: center;
}
.annexure-label { flex: 1; color: #334155; font-weight: 500; }
.annexure-dl {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--primary); color: var(--white);
  padding: .28rem .7rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; cursor: pointer;
  transition: all .2s ease; flex-shrink: 0;
}
.annexure-dl:hover { background: var(--primary-dark); }
.annexure-dl svg { width: 10px; height: 10px; fill: currentColor; }

/* Stats Row */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 1rem; margin: 1.2rem 0 .7rem;
}
.stat-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: 3px solid var(--primary);
  border-radius: var(--radius); padding: 1.1rem 1rem; color: var(--white);
  text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1;
}
.stat-label { font-size: 0.73rem; color: rgba(255, 255, 255, 0.8); margin-top: .4rem; letter-spacing: .3px; }

/* ── Footer (Official BCET Charcoal Dark Theme) ───────────── */
.site-footer {
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.75);
  border-top: 4px solid var(--primary);
  padding: 3.5rem 1.5rem 0;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 2.5rem;
}
.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem;
}
.footer-logo img {
  max-height: 52px; width: auto; object-fit: contain;
  background: #ffffff; padding: 4px 8px; border-radius: 4px;
}
.footer-brand-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--white); font-size: 1.05rem; font-weight: 700; line-height: 1.25;
  margin-bottom: 0.8rem;
}
.footer-desc {
  font-size: 0.82rem; line-height: 1.65; color: #a1a1aa; margin-bottom: 1.2rem;
}
.footer-contact-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: 0.8rem; color: #cbd5e1;
}
.footer-contact-item {
  display: flex; gap: .6rem; align-items: flex-start;
}
.footer-contact-item svg {
  width: 15px; height: 15px; fill: var(--primary);
  flex-shrink: 0; margin-top: .2rem;
}
.footer-contact-item a { color: #cbd5e1; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-social { display: flex; gap: .55rem; margin-top: 1.2rem; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.footer-social a:hover {
  background: var(--primary); color: var(--white);
  transform: translateY(-2px);
}
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--white); margin-bottom: 1.1rem;
  position: relative; padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px; background: var(--primary);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col li { }
.footer-col a {
  font-size: 0.82rem; color: #a1a1aa; transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.footer-col a::before {
  content: '›'; font-size: 1.1rem; line-height: 1; color: var(--primary);
}
.footer-col a:hover {
  color: var(--white); transform: translateX(3px);
}

/* Quick Enrollment Widget in Footer */
.footer-query-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 1.1rem;
}
.footer-query-card p {
  font-size: 0.78rem; color: #a1a1aa; margin-bottom: 0.8rem;
}
.footer-input {
  width: 100%; padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px; color: var(--white);
  font-size: 0.78rem; margin-bottom: 0.6rem;
}
.footer-input:focus {
  outline: none; border-color: var(--primary);
}
.footer-query-btn {
  width: 100%; padding: 0.6rem;
  background: var(--primary); color: var(--white);
  border: none; border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: background .2s ease;
}
.footer-query-btn:hover {
  background: var(--primary-dark);
}

/* Footer Bottom Bar */
.footer-bottom {
  background: #161616;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 3rem; padding: 1.15rem 0;
}
.footer-bottom-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.76rem; color: #71717a; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom-inner a { color: #a1a1aa; }
.footer-bottom-inner a:hover { color: var(--primary); }

/* ── Scroll to Top ───────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 83, 17, 0.4);
  cursor: pointer; border: none; opacity: 0; pointer-events: none;
  transition: all .3s ease;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 83, 17, 0.5);
}
.scroll-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

/* ── Mobile Navigation Drawer ────────────────────────────── */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.mobile-nav {
  position: fixed; top: 0; left: -290px; bottom: 0; width: 290px;
  background: var(--white); z-index: 950; overflow-y: auto;
  transition: left .3s ease; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { left: 0; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav-head {
  background: var(--primary); padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-head strong {
  color: var(--white); font-family: 'Montserrat', sans-serif;
  font-size: .95rem; font-weight: 700;
}
.mobile-close {
  background: none; border: none; color: var(--white);
  cursor: pointer; font-size: 1.6rem; line-height: 1;
}
.mobile-nav-list a {
  display: block; padding: .85rem 1.3rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; color: #334155;
  transition: all .15s ease;
}
.mobile-nav-list a:hover {
  background: var(--primary-light); color: var(--primary);
  padding-left: 1.5rem;
}

/* ── Responsive Media Queries ────────────────────────────── */
@media (max-width: 1024px) {
  .header-actions .hdr-btn-secondary { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .header-actions { display: none; }
  .site-header { padding: 0.5rem 0; }
  .site-logo { max-height: 50px; }
}

@media (max-width: 650px) {
  .topbar { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 2.5rem 1rem 2rem; }
  .section-body-inner { padding: 1.2rem 1rem 1.5rem; }
}

/* ── Document Preview Modal ──────────────────────────────── */
.doc-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.doc-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.doc-modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; max-height: 90vh;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(12px) scale(0.97);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
}
.doc-modal-overlay.open .doc-modal {
  transform: translateY(0) scale(1);
}
.doc-modal-header {
  padding: 1.1rem 1.4rem;
  background: #f8fafc; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.doc-modal-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: #fee2e2; color: #dc2626;
  font-weight: 800; font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}
.doc-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: #1e293b;
  margin: 0; line-height: 1.25;
}
.doc-modal-status {
  font-size: 0.74rem; color: #059669; font-weight: 600;
  display: flex; align-items: center; gap: 0.3rem; margin-top: 2px;
}
.doc-modal-close {
  background: none; border: none; font-size: 1.6rem; color: #64748b;
  cursor: pointer; line-height: 1; padding: 0.2rem 0.5rem; border-radius: 4px;
}
.doc-modal-close:hover { color: var(--primary); background: #f1f5f9; }
.doc-modal-body {
  padding: 1.4rem; overflow-y: auto;
}
.doc-modal-cert {
  border: 2px solid #e2e8f0; border-radius: 8px; padding: 1.4rem;
  background: #fffdfc; position: relative;
}
.cert-header {
  text-align: center; border-bottom: 2px dashed #cbd5e1; padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}
.cert-header h4 {
  font-family: 'Montserrat', sans-serif; font-size: 0.96rem; font-weight: 800;
  color: #1e293b; margin: 0.4rem 0 0.2rem;
}
.cert-header p {
  font-size: 0.72rem; color: #64748b; margin-bottom: 0.6rem;
}
.cert-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 0.68rem; font-weight: 800; padding: 3px 10px; border-radius: 50px;
  border: 1px solid rgba(255,83,17,0.3); text-transform: uppercase; letter-spacing: 0.5px;
}
.cert-content {
  font-size: 0.82rem; color: #475569; line-height: 1.65; margin-bottom: 1.4rem;
}
.cert-info-row {
  display: flex; justify-content: space-between; padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9; font-size: 0.8rem;
}
.cert-info-row strong { color: #1e293b; }
.cert-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #e2e8f0; padding-top: 1rem; gap: 1rem; flex-wrap: wrap;
}
.cert-seal {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.68rem;
  font-weight: 700; color: #1e293b; line-height: 1.2;
}
.cert-actions { display: flex; gap: 0.5rem; }
.cert-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1rem; border-radius: 5px; font-size: 0.76rem;
  font-family: 'Montserrat', sans-serif; font-weight: 700; cursor: pointer;
  border: none; transition: all .2s ease;
}
.cert-btn.primary {
  background: var(--primary); color: #fff;
}
.cert-btn.primary:hover { background: var(--primary-dark); }
.cert-btn.secondary {
  background: #f1f5f9; color: #1e293b; border: 1px solid #cbd5e1;
}
.cert-btn.secondary:hover { background: #e2e8f0; }

/* ── Picture Gallery Grid ────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem; margin-top: 1.3rem;
}
.gallery-card {
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.gallery-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.gallery-thumb {
  height: 145px; background: linear-gradient(135deg, #1e293b, #334155);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8); position: relative;
}
.gallery-thumb svg { width: 36px; height: 36px; stroke-width: 1.5; }
.gallery-thumb-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.gallery-card-info {
  padding: 0.95rem;
}
.gallery-card-title {
  font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700;
  color: #1e293b; line-height: 1.3; margin-bottom: 0.25rem;
}
.gallery-card-desc {
  font-size: 0.74rem; color: #64748b; line-height: 1.45;
}

/* ── Administration Profile Pages Styling ─────────────────── */
.admin-profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 860px) {
  .admin-profile-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }
}
.admin-sidebar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.admin-photo-frame {
  width: 220px;
  height: 260px;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}
.admin-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.admin-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  padding: 1rem;
  text-align: center;
}
.admin-photo-placeholder svg {
  width: 54px;
  height: 54px;
  stroke: #94a3b8;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 0.6rem;
}
.admin-photo-placeholder span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-photo-placeholder small {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 3px;
}
.admin-contact-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.1rem;
  font-size: 0.85rem;
  text-align: left;
}
.admin-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: #334155;
  word-break: break-word;
}
.admin-contact-item:last-child {
  margin-bottom: 0;
}
.admin-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}
.admin-contact-item a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}
.admin-contact-item a:hover {
  text-decoration: underline;
  color: var(--primary);
}
.admin-message-content {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #334155;
}
.admin-message-content p {
  margin-bottom: 1.1rem;
}
.admin-message-quote {
  border-left: 4px solid var(--primary);
  padding: 0.8rem 1.2rem;
  background: #fff8f5;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e293b;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

/* Print Styles */
@media print {
  .site-header, .topbar, .nav-bar-wrap, .sidebar, .scroll-top, .tab-nav-buttons, .site-footer, .doc-modal-overlay {
    display: none !important;
  }
  .main-layout { grid-template-columns: 1fr; padding: 0; }
  .section-block { display: block !important; margin-bottom: 2rem; page-break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
  .section-body { display: block !important; }
}
