/* ============================================================
   Glory Divine Skills Training Center
   Colour Scheme: Deep Blue · Gold/Yellow · Brown · White
   Every text/background pair is high-contrast and readable
   ============================================================ */

/* ══════════════ TOKENS ══════════════ */
:root {
  /* Blue */
  --blue:      #0A2240;   /* deep navy — dark sections, navbar, footer    */
  --blue-mid:  #1A3A6B;   /* medium blue — hover states, accents          */
  --blue-lt:   #2255A4;   /* lighter blue — links on white                */
  --blue-pale: #EBF2FF;   /* very light blue — tint background            */

  /* Yellow / Gold */
  --yellow:    #F5A800;   /* primary gold — buttons, dividers, highlights */
  --yellow-dk: #C98800;   /* dark gold — hover on yellow buttons          */
  --yellow-lt: #FFD055;   /* bright gold — on dark backgrounds            */
  --yellow-pale:#FFF8E1;  /* pale cream-yellow — section backgrounds      */

  /* Brown */
  --brown:     #6B3A00;   /* warm brown — headings on white               */
  --brown-dk:  #3D2000;   /* dark brown — stronger headings               */
  --brown-lt:  #A05C20;   /* lighter brown — secondary labels on white    */
  --brown-pale:#FFF3E0;   /* warm cream — card backgrounds                */

  /* Neutrals */
  --white:     #FFFFFF;
  --off:       #FAFAF8;
  --text:      #1A1000;   /* near-black warm — body text on white         */
  --text-md:   #4A3000;   /* dark brown-grey — secondary text on white    */
  --border:    #E0C99A;   /* warm golden border                           */
  --border-lt: #F0E0C0;
}

/* ══════════════ RESET & BASE ══════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ══════════════ TYPOGRAPHY ══════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--brown-dk);
}
.display-serif { font-family: 'Playfair Display', serif; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow-dk);
  display: block;
  margin-bottom: 8px;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--brown-dk);
  line-height: 1.15;
}
/* On dark (blue) backgrounds */
.on-dark .section-label   { color: var(--yellow-lt); }
.on-dark .section-heading { color: var(--white); }
.on-dark p, .on-dark li   { color: rgba(255,255,255,.82); }

.divider-bar {
  width: 54px; height: 4px;
  background: var(--yellow);
  border-radius: 3px;
  margin: 16px 0 26px;
}
.divider-bar.center { margin-inline: auto; }

/* ══════════════ BUTTONS ══════════════ */
/* Yellow button — dark text on yellow = high contrast */
.btn-yellow {
  background: var(--yellow);
  color: var(--brown-dk) !important;
  border: 2px solid var(--yellow);
  font-weight: 700;
  transition: .18s;
}
.btn-yellow:hover, .btn-yellow:focus {
  background: var(--yellow-dk);
  border-color: var(--yellow-dk);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Blue button — white text on blue = high contrast */
.btn-blue {
  background: var(--blue);
  color: var(--white) !important;
  border: 2px solid var(--blue);
  font-weight: 700;
  transition: .18s;
}
.btn-blue:hover, .btn-blue:focus {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Outline yellow — yellow border, yellow text on white */
.btn-outline-yellow {
  background: transparent;
  color: var(--yellow-dk) !important;
  border: 2px solid var(--yellow);
  font-weight: 700;
  transition: .18s;
}
.btn-outline-yellow:hover {
  background: var(--yellow);
  color: var(--brown-dk) !important;
}

/* White outline — for dark backgrounds */
.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.7);
  font-weight: 600;
  transition: .18s;
}
.btn-outline-white:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--brown-dk) !important;
}

.bg-blue    { background: var(--blue)   !important; }
.bg-yellow  { background: var(--yellow) !important; }
.bg-brown   { background: var(--brown)  !important; }
.text-yellow{ color: var(--yellow)  !important; }
.text-blue  { color: var(--blue)    !important; }
.text-brown { color: var(--brown-dk)!important; }

/* ══════════════ TOP BAR (deep blue → white text) ══════════════ */
.topbar {
  background: var(--blue);
  padding: 6px 0;
  border-bottom: 2px solid var(--yellow);
}
.topbar .topbar-text {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.topbar .topbar-text i { color: var(--yellow); margin-right: 5px; }

/* ══════════════ NAVBAR (white bg → brown/blue text, yellow bottom) ══════════════ */
.main-navbar {
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 3px 16px rgba(10,34,64,.12);
}
.main-navbar .navbar-toggler {
  border: 2px solid var(--blue);
  background: none;
}
.main-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230A2240' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.main-navbar .nav-link {
  color: var(--blue) !important;      /* dark blue on white — clearly readable */
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: .15s;
}
.main-navbar .nav-link:hover {
  color: var(--brown-dk) !important;
  background: var(--yellow-pale);
}
.main-navbar .nav-link.active {
  color: var(--brown-dk) !important;
  background: var(--yellow);
  font-weight: 700;
}
.nav-crest {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.nav-crest-placeholder {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 900;
  color: var(--blue);
}
.nav-school-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 700;
  color: var(--brown-dk);             /* dark brown on white — readable */
  line-height: 1.2;
}
.nav-tagline {
  font-size: 10px;
  color: var(--blue-lt);
  letter-spacing: .07em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ══════════════ HERO (deep blue bg → yellow + white text) ══════════════ */
.hero-section {
  min-height: 100vh;
  background: var(--blue);            /* deep blue */
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
/* Yellow diagonal panel */
.hero-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42%;
  background: var(--yellow);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .1;
}
/* Gold accent line */
.hero-accent-line {
  position: absolute; top: 0; right: 40%;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--yellow), transparent);
  opacity: .5;
}
.hero-welcome {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);               /* gold on blue — vivid and clear */
  margin-bottom: 14px;
  display: block;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(245,168,0,.15);
  border: 1.5px solid var(--yellow);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 11px; font-weight: 700;
  color: var(--yellow);               /* gold on blue — strong contrast */
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 22px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 900;
  color: var(--white);                /* white on blue — maximum contrast */
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--yellow); } /* gold accent word */
.hero-sub {
  font-size: 16px;
  line-height: 1.78;
  color: rgba(255,255,255,.8);        /* near-white on blue — readable */
  max-width: 520px;
  margin-bottom: 36px;
}

/* Hero stat cards: white bg on blue section */
.hero-stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem; font-weight: 900;
  color: var(--yellow);               /* gold on blue — vivid */
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.75);       /* light on blue — readable */
  margin-top: 5px; font-weight: 500;
}
/* CTVET chip — yellow bg → dark text */
.ctvet-chip-card {
  background: var(--yellow);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.ctvet-chip-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brown-dk);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  color: var(--yellow);               /* gold on dark brown — clear */
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: -.5px;
}
.ctvet-chip-text strong { font-size: 13px; color: var(--brown-dk); display: block; font-weight: 800; }
.ctvet-chip-text span   { font-size: 11px; color: var(--brown);    font-weight: 500; }

/* ══════════════ GALLERY (cream bg → dark text) ══════════════ */
.gallery-strip {
  background: var(--yellow-pale);
  padding: 70px 0;
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
}
.gallery-strip .section-heading { color: var(--brown-dk); }
.gallery-strip .section-label   { color: var(--yellow-dk); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 4/3; border-radius: 10px;
  overflow: hidden; background: var(--border);
  border: 3px solid transparent;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.gallery-item:hover { border-color: var(--yellow); transform: scale(1.02); }
.gallery-item img   { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty {
  text-align: center; padding: 50px;
  color: var(--brown-lt); font-size: 15px;
}

/* ══════════════ ABOUT (white bg → dark text) ══════════════ */
.about-section { padding: 90px 0; background: var(--white); }

.about-crest-block {
  background: var(--blue);            /* blue block — white text inside */
  border-radius: 16px;
  padding: 50px 28px; text-align: center;
  border: 3px solid var(--yellow);
  box-shadow: 0 8px 32px rgba(10,34,64,.15);
}
.about-crest-block h4  { color: var(--white); font-size: 1.2rem; margin-bottom: 6px; }
.about-crest-block .address-text { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.5; }

.crest-circle {
  width: 140px; height: 140px; border-radius: 50%;
  border: 4px solid var(--yellow);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin: 0 auto 18px;
  box-shadow: 0 4px 20px rgba(245,168,0,.3);
}
.crest-circle img { width: 100%; height: 100%; object-fit: cover; }
.crest-placeholder { font-size: 60px; }

.ctvet-badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow);          /* gold bg */
  color: var(--brown-dk);             /* dark text on gold — clear */
  padding: 8px 18px; border-radius: 30px;
  font-size: 12px; font-weight: 800;
  margin-top: 16px; letter-spacing: .04em;
}

/* Value list */
.value-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--yellow);
  margin-bottom: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--blue);                 /* blue text on white — clear */
  transition: .15s;
}
.value-item:hover { border-left-color: var(--brown); background: var(--yellow-pale); }
.value-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ══════════════ PROGRAMMES (light blue bg → dark text, blue card headers) ══════════════ */
.programmes-section {
  padding: 90px 0;
  background: var(--blue-pale);
  border-top: 1px solid #c8daf5;
  border-bottom: 1px solid #c8daf5;
}
.programmes-section .section-heading { color: var(--brown-dk); }
.programmes-section .section-label   { color: var(--blue-lt); }

.prog-card {
  background: var(--white);
  border-radius: 14px; overflow: hidden;
  border: 2px solid #c8daf5;
  box-shadow: 0 3px 14px rgba(10,34,64,.08);
  transition: transform .25s, box-shadow .25s, border-color .2s;
  height: 100%;
}
.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10,34,64,.16);
  border-color: var(--yellow);
}
/* Card header: deep blue bg → white text + gold right strip */
.prog-card-header {
  background: var(--blue);
  padding: 28px 22px 20px; position: relative;
}
.prog-card-header::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 5px; background: var(--yellow);
}
.prog-icon-wrap { font-size: 36px; margin-bottom: 12px; }
.prog-card-header h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);                /* white on blue — maximum contrast */
  margin-bottom: 5px;
}
.prog-level {
  font-size: 11px; color: var(--yellow);  /* gold on blue — vivid, readable */
  letter-spacing: .08em; font-weight: 700;
  text-transform: uppercase;
}
/* Card body: white bg → dark text */
.prog-card-body { padding: 20px 22px 24px; }
.prog-card-body p {
  font-size: 13px; line-height: 1.7;
  color: var(--text-md);
  margin-bottom: 16px;
}
.prog-topics { list-style: none; padding: 0; margin: 0; }
.prog-topics li {
  font-size: 13px; color: var(--text);   /* near-black on white */
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border-lt);
  font-weight: 500;
}
.prog-topics li:last-child { border-bottom: none; }
.prog-topics li::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow);           /* gold bullet */
  flex-shrink: 0;
}

/* ══════════════ WHY US (deep blue bg → white text + gold accents) ══════════════ */
.why-section {
  padding: 90px 0;
  background: var(--blue);
}
.why-section .section-label   { color: var(--yellow); }
.why-section .section-heading { color: var(--white); }
.why-section > .container > p { color: rgba(255,255,255,.75); }

.why-card {
  padding: 28px 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-top: 4px solid var(--yellow); /* gold top accent */
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  height: 100%;
  transition: background .2s, border-top-color .2s;
}
.why-card:hover {
  background: rgba(245,168,0,.1);
  border-top-color: var(--yellow-lt);
}
.why-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.why-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--white);                /* white on blue — clear */
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,.75);       /* light on blue — readable */
  margin: 0;
}

/* ══════════════ ADMISSIONS (white bg → dark text) ══════════════ */
.admissions-section {
  padding: 90px 0; background: var(--white);
  border-top: 1px solid var(--border-lt);
}
.step-item { display: flex; gap: 18px; }
.step-left  { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue);            /* blue circle */
  color: var(--white);                /* white number — clear */
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--yellow);    /* gold ring */
  flex-shrink: 0;
}
.step-line { width: 2px; flex: 1; background: var(--border); margin-top: 6px; }
.step-content { padding-bottom: 28px; }
.step-content h6 {
  font-weight: 700; color: var(--blue);   /* blue on white — vivid */
  margin-bottom: 4px; font-size: 15px;
}
.step-content p {
  font-size: 13px; color: var(--text-md);
  margin: 0; line-height: 1.6;
}

/* Contact box: yellow-pale bg → dark text */
.contact-box {
  background: var(--yellow-pale);
  border-radius: 14px; padding: 30px;
  border: 2px solid var(--yellow);
}
.contact-box h4 { color: var(--brown-dk); margin-bottom: 20px; }

.contact-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--blue);            /* blue icon bg */
  color: var(--yellow);               /* gold icon — clear on blue */
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.contact-row strong {
  font-size: 11px; color: var(--blue); /* blue on cream — readable */
  display: block; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
}
.contact-row span {
  font-size: 13px; color: var(--text); /* dark on cream — clearly readable */
  line-height: 1.55; font-weight: 500;
}

/* ══════════════ FOOTER (deep blue bg → white/gold text) ══════════════ */
.site-footer {
  background: var(--blue);
  border-top: 5px solid var(--yellow);
}
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--yellow);               /* gold headings on blue — vivid */
  margin-bottom: 16px;
}
.footer-desc { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.7; }
.footer-link {
  color: rgba(255,255,255,.65) !important;
  text-decoration: none; display: block;
  padding: 4px 0; font-size: 13px; transition: color .15s;
}
.footer-link:hover { color: var(--yellow) !important; }
.footer-contact-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.footer-contact-row i { color: var(--yellow); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-row span { color: rgba(255,255,255,.75); font-size: 13px; }
.footer-bottom-text { color: rgba(255,255,255,.4); }

.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px;
  transition: .15s; border: 1px solid rgba(255,255,255,.12);
}
.social-btn:hover { background: var(--yellow); color: var(--brown-dk); border-color: var(--yellow); }

/* ══════════════ SIDEBAR (deep blue bg → white text) ══════════════ */
.dash-sidebar {
  width: 240px; background: var(--blue);
  min-height: 100vh; position: fixed; top: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
  border-right: 4px solid var(--yellow);
}
.dash-content { margin-left: 240px; min-height: 100vh; background: var(--off); }

.sidebar-brand-block {
  padding: 20px 16px; background: var(--brown-dk); /* even darker for contrast */
  border-bottom: 3px solid var(--yellow);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand-crest {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.sidebar-brand-crest img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 700;
  color: var(--white); line-height: 1.3;
}
.sidebar-nav-section {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  padding: 16px 18px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  color: rgba(255,255,255,.8);        /* light text on blue — readable */
  text-decoration: none; font-size: 13px; font-weight: 500;
  border-radius: 8px; margin: 2px 10px; transition: .15s;
}
.sidebar-link:hover  { background: rgba(245,168,0,.15); color: var(--yellow-lt); }
.sidebar-link.active {
  background: var(--yellow);          /* gold bg */
  color: var(--brown-dk);             /* dark text on gold — clear */
  font-weight: 700;
}
.sidebar-link i { font-size: 15px; width: 18px; text-align: center; }

/* ══════════════ DASH TOPBAR (white bg → blue text) ══════════════ */
.dash-topbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  border-left: 5px solid var(--yellow); /* gold accent */
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(10,34,64,.07);
}
.dash-topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--blue);                 /* blue on white — vivid */
}
.dash-topbar-meta { font-size: 13px; color: var(--text-md); }
.dash-main { padding: 28px; }

/* ══════════════ STAT CARDS (white bg) ══════════════ */
.stat-card {
  background: var(--white);
  border-radius: 12px; border: 1px solid var(--border);
  border-top: 4px solid var(--yellow); /* gold top bar */
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 8px rgba(10,34,64,.06);
  transition: border-top-color .2s, transform .2s;
}
.stat-card:hover { border-top-color: var(--blue); transform: translateY(-2px); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: var(--yellow-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 900;
  color: var(--blue);                 /* blue on white — vivid */
  line-height: 1;
}
.stat-lbl { font-size: 12px; color: var(--text-md); margin-top: 3px; font-weight: 500; }

/* ══════════════ PANEL CARDS ══════════════ */
.panel-card {
  background: var(--white);
  border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(10,34,64,.05);
}
.panel-header {
  padding: 14px 20px;
  border-bottom: 2px solid var(--border);
  background: var(--blue);            /* blue header */
  display: flex; align-items: center; justify-content: space-between;
}
.panel-header h5 {
  font-size: 14px; font-weight: 700;
  color: var(--yellow);               /* gold text on blue — vivid */
  margin: 0;
}
.panel-body { padding: 22px; }

/* ══════════════ DATA TABLE ══════════════ */
.data-table th {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--white);  /* white on blue */
  background: var(--blue);
  border-color: var(--blue-mid); white-space: nowrap; padding: 12px 14px;
}
.data-table td {
  font-size: 13px; color: var(--text);
  border-color: var(--border-lt); vertical-align: middle; padding: 12px 14px;
}
.data-table tbody tr:hover td { background: var(--yellow-pale); }

/* ══════════════ PHOTO UPLOAD ══════════════ */
.photo-upload-zone {
  border: 2px dashed var(--yellow);
  border-radius: 12px; padding: 40px;
  text-align: center; cursor: pointer;
  background: var(--yellow-pale);
  transition: .2s;
}
.photo-upload-zone:hover { border-color: var(--blue); background: var(--blue-pale); }
.photo-upload-zone p { color: var(--text-md); font-weight: 500; }

.photo-thumb-wrap {
  aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  background: var(--border); position: relative;
  border: 2px solid transparent; transition: .15s;
}
.photo-thumb-wrap:hover { border-color: var(--yellow); }
.photo-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-del-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  background: var(--blue); color: var(--yellow);
  border: none; border-radius: 50%; font-size: 13px;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; opacity: 0; transition: .15s; font-weight: 700;
}
.photo-thumb-wrap:hover .photo-del-btn { opacity: 1; }

.crest-upload-box {
  border: 2px dashed var(--yellow);
  border-radius: 12px; padding: 30px;
  text-align: center; cursor: pointer;
  background: var(--yellow-pale); transition: .2s;
}
.crest-upload-box:hover { border-color: var(--blue); background: var(--blue-pale); }
.crest-upload-box p { color: var(--text-md); }

/* ══════════════ GRADE PILLS ══════════════ */
.grade-A { background:#D1FAE5;color:#065F46;font-weight:700;padding:3px 10px;border-radius:12px; }
.grade-B { background:#DBEAFE;color:#1E40AF;font-weight:700;padding:3px 10px;border-radius:12px; }
.grade-C { background:#FEF3C7;color:#78350F;font-weight:700;padding:3px 10px;border-radius:12px; }
.grade-D { background:#FEE2E2;color:#991B1B;font-weight:700;padding:3px 10px;border-radius:12px; }
.grade-F { background:#F3F4F6;color:#374151;font-weight:700;padding:3px 10px;border-radius:12px; }

/* ══════════════ STUDENT ID CARD (blue bg → white/gold text) ══════════════ */
.id-card {
  background: linear-gradient(145deg, var(--brown-dk) 0%, var(--blue) 100%);
  border-radius: 16px; border: 3px solid var(--yellow);
  padding: 28px; color: var(--white);
  position: relative; overflow: hidden;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(10,34,64,.3);
}
.id-card::after {
  content: '';
  position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(245,168,0,.12);
}
.id-card-crest {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--yellow);
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 14px;
}
.id-card-crest img { width: 100%; height: 100%; object-fit: cover; }
.id-field-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--yellow); display: block; margin-bottom: 2px; font-weight: 700;
}
.id-field-value { font-size: 13px; font-weight: 700; color: var(--white); }

/* ══════════════ LOGIN PAGE (blue+brown gradient → white card) ══════════════ */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--brown-dk) 0%, var(--blue) 60%, #0a3a6b 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: var(--white); border-radius: 16px;
  padding: 40px 36px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  border-top: 5px solid var(--yellow);
}
.login-school-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--blue); margin-bottom: 4px;  /* blue on white */
}
.login-portal-label { font-size: 13px; color: var(--brown-lt); font-weight: 600; }
.login-crest {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--yellow);
  background: var(--yellow-pale);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin: 0 auto 14px;
}
.login-crest img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.form-label { color: var(--blue); font-weight: 700; font-size: 13px; }
.form-control, .form-select {
  border-color: var(--border); color: var(--text); background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 .2rem rgba(245,168,0,.25); color: var(--text);
}
.form-control::placeholder { color: var(--brown-lt); opacity: 1; }
.input-group-text { background: var(--yellow-pale); border-color: var(--border); color: var(--blue); }

/* ══════════════ BADGES ══════════════ */
.badge.bg-yellow { background: var(--yellow) !important; color: var(--brown-dk) !important; font-weight: 700; }
.badge.bg-blue   { background: var(--blue)   !important; color: var(--white)    !important; }
.badge.bg-brown  { background: var(--brown)  !important; color: var(--white)    !important; }
.badge.bg-active { background: var(--blue)   !important; color: var(--white)    !important; }
.badge.bg-inactive { background: var(--brown)!important; color: var(--white)    !important; }

/* ══════════════ LIGHTBOX ══════════════ */
.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,34,64,.96); z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: 8px; border: 3px solid var(--yellow); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: var(--yellow); border: none;
  color: var(--brown-dk); font-size: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════ SETUP PAGE ══════════════ */
.setup-wrapper {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--brown-dk) 0%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}

/* ══════════════ SCROLL REVEAL ══════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 991px) {
  .dash-sidebar { transform: translateX(-100%); transition: .3s; }
  .dash-sidebar.open { transform: none; }
  .dash-content { margin-left: 0; }
  .hero-panel, .hero-accent-line { display: none; }
  .hero-section { padding-top: 70px; padding-bottom: 50px; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2.2rem; }
  .section-heading { font-size: 1.7rem; }
  .login-card { padding: 28px 20px; }
  .dash-main { padding: 16px; }
  .contact-box { padding: 20px; }
}

/* ══════════════ PRINT ══════════════ */
@media print {
  .dash-sidebar, .dash-topbar, .btn { display: none !important; }
  .dash-content { margin-left: 0; }
  .id-card { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   MARQUEE WELCOME BANNER
══════════════════════════════════════════════════════════ */
.welcome-marquee-wrap {
  background: var(--blue);
  border-bottom: 3px solid var(--yellow);
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.welcome-marquee-inner {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: .04em;
  padding: 14px 40px;
  animation: marqueeScroll 14s linear infinite alternate;
}
.welcome-marquee-wrap:hover .welcome-marquee-inner {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(60vw); }
  100% { transform: translateX(-60%); }
}

/* ══════════════════════════════════════════════════════════
   GALLERY — caption overlay
══════════════════════════════════════════════════════════ */
.gallery-item { position: relative; }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,34,64,.85));
  color: var(--white);
  font-size: 12px; font-weight: 600;
  padding: 20px 10px 8px;
  opacity: 0; transition: opacity .2s;
  text-align: center;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox caption */
.lightbox-inner { display: flex; flex-direction: column; align-items: center; }
.lightbox-caption {
  color: var(--yellow); font-size: 13px; font-weight: 600;
  margin-top: 12px; text-align: center;
  max-width: 600px;
}

/* ══════════════════════════════════════════════════════════
   VIDEOS SECTION
══════════════════════════════════════════════════════════ */
.videos-section {
  padding: 80px 0;
  background: var(--blue);
  border-top: 4px solid var(--yellow);
}
.videos-section .section-heading { color: var(--white); }
.videos-section .section-label   { color: var(--yellow); }

.video-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(10,34,64,.15);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(10,34,64,.25);
  border-color: var(--yellow);
}
.video-thumb-wrap {
  background: var(--blue);
  position: relative;
}
.video-player {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
}
.video-card-body {
  padding: 16px 18px 18px;
  background: var(--white);
}
.video-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700;
  color: var(--blue); margin-bottom: 6px;
}
.video-desc {
  font-size: 13px; color: var(--text-md);
  margin: 0; line-height: 1.6;
}

/* Admin video card */
.video-admin-card {
  background: var(--white);
  border-radius: 12px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10,34,64,.07);
  transition: border-color .2s;
}
.video-admin-card:hover { border-color: var(--yellow); }

/* ══════════════════════════════════════════════════════════
   SCHOOL PHOTO THEME — hero section with image overlay
══════════════════════════════════════════════════════════ */
.hero-section {
  background-image:
    linear-gradient(to right, rgba(10,34,64,.82) 45%, rgba(10,34,64,.35) 100%),
    url('../uploads/gallery/school_students1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Gallery grid — 2 columns mobile, 3 tablet, 4 desktop */
@media(min-width:1200px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media(min-width:768px) and (max-width:1199px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .welcome-marquee-inner { font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════
   PROGRAMME CARD — Fashion design level pill colour
══════════════════════════════════════════════════════════ */
.prog-level-fashion { color: var(--yellow-lt) !important; font-size: 11px; font-weight: 800; }

/* ══════════════════════════════════════════════════════════
   THEME SWITCHER — 4 THEMES
   Applied via data-theme attribute on <html> element
   Saved to localStorage so choice persists across pages
══════════════════════════════════════════════════════════ */

/* ── THEME 1: Yellow · Blue · Brown (DEFAULT) ── */
/* Already defined in :root — no override needed */

/* ── THEME 2: Magenta · Black · White ── */
[data-theme="magenta"] {
  --blue:       #111111;
  --blue-mid:   #222222;
  --blue-lt:    #C2006B;
  --blue-pale:  #FFF0F8;
  --yellow:     #C2006B;
  --yellow-dk:  #8C004D;
  --yellow-lt:  #F5007D;
  --yellow-pale:#FFF0F8;
  --brown:      #C2006B;
  --brown-dk:   #8C004D;
  --brown-lt:   #E5007A;
  --brown-pale: #FFF0F8;
  --border:     #F5C0DE;
  --border-lt:  #FAE0EF;
}

/* ── THEME 3: Forest Green · Gold · Cream ── */
[data-theme="green"] {
  --blue:       #1B5E20;
  --blue-mid:   #2E7D32;
  --blue-lt:    #388E3C;
  --blue-pale:  #F1F8E9;
  --yellow:     #F9A825;
  --yellow-dk:  #F57F17;
  --yellow-lt:  #FFD54F;
  --yellow-pale:#FFFDE7;
  --brown:      #4E342E;
  --brown-dk:   #3E2723;
  --brown-lt:   #795548;
  --brown-pale: #EFEBE9;
  --border:     #C8E6C9;
  --border-lt:  #DCEDC8;
}

/* ── THEME 4: Royal Purple · Gold · White ── */
[data-theme="purple"] {
  --blue:       #4A148C;
  --blue-mid:   #6A1B9A;
  --blue-lt:    #7B1FA2;
  --blue-pale:  #F3E5F5;
  --yellow:     #FFD600;
  --yellow-dk:  #F9A825;
  --yellow-lt:  #FFEE58;
  --yellow-pale:#FFFDE7;
  --brown:      #4A148C;
  --brown-dk:   #311B92;
  --brown-lt:   #6A1B9A;
  --brown-pale: #EDE7F6;
  --border:     #CE93D8;
  --border-lt:  #E1BEE7;
}

/* ══════════════════════════════════════════════════════════
   THEME SWITCHER WIDGET
══════════════════════════════════════════════════════════ */
.theme-switcher {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  box-shadow: -4px 4px 20px rgba(0,0,0,.25);
}
.theme-tab {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  outline: none;
  transition: filter .2s, transform .2s;
  color: var(--white);
}
.theme-tab:hover { filter: brightness(1.15); }
.theme-tab.active { filter: brightness(1.25); box-shadow: inset 3px 0 0 rgba(255,255,255,.5); }

/* Tab colours */
.theme-tab[data-set="default"] { background: #0A2240; }
.theme-tab[data-set="magenta"] { background: #C2006B; }
.theme-tab[data-set="green"]   { background: #1B5E20; }
.theme-tab[data-set="purple"]  { background: #4A148C; }

/* Collapse toggle button */
.theme-switcher-toggle {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%) translateX(56px);
  z-index: 9997;
  transition: transform .3s;
}
.theme-switcher.open ~ .theme-switcher-toggle,
.theme-switcher-toggle.open {
  transform: translateY(-50%) translateX(0);
}

/* Mobile responsive */
@media(max-width: 576px) {
  .welcome-marquee-inner { font-size: 16px; padding: 10px 20px; }
  .theme-switcher { top: auto; bottom: 80px; transform: none; border-radius: 12px 0 0 12px; }
  .theme-tab { padding: 10px 6px; font-size: 10px; }
}
