/* ??????????????????????????????????????????????
   DR. RAVI KRISHNA — BLUE & GOLD PREMIUM THEME
   Dark / Light Mode + Redesigned Navigation
   ?????????????????????????????????????????????? */

/* ??? DARK THEME (default) ??? */
:root,
[data-theme="dark"] {
    --bg: #050b1a;
    --bg2: #07132b;
    --surface: rgba(7, 19, 43, .75);
    --surface2: rgba(10, 24, 52, .60);
    --surface-card: rgba(12, 28, 58, .65);
    --surface-hover: rgba(16, 36, 72, .70);

    --text: #ecf3ff;
    --text-secondary: #b0c4ff;
    --muted: #9fb4ff;
    --heading: #ffffff;

    --gold: #ffc94d;
    --gold2: #ffe08a;
  --gold-bg: rgba(214, 177, 94, .10);
    --gold-border: rgba(214, 177, 94, .22);

    --blue: #0a2fff;
    --cyan: #2bffff;
    --accent: linear-gradient(135deg, rgba(11, 58, 131, 1), rgba(214, 177, 94, 1));

    --nav-bg: rgba(6, 16, 34, .82);
    --nav-border: rgba(214, 177, 94, .18);
    --nav-link: #9fb4ff;
    --nav-link-hover: #ffffff;
    --nav-link-active-bg: rgba(11, 58, 131, .28);
  --nav-link-active-border: rgba(214, 177, 94, .26);

 --card-bg: rgba(7, 19, 43, .75);
    --card-border: rgba(214, 177, 94, .18);
    --card-shadow: 0 18px 45px rgba(0, 0, 0, .38);
    --card-light-bg: #ffffff;
    --card-light-text: #0a1430;
    --card-light-border: rgba(214, 177, 94, .24);
    --card-light-shadow: 0 14px 38px rgba(10, 20, 48, .10);

  --section-light-bg: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 255, .92));
  --section-light-text: #0a1430;

    --footer-bg: transparent;
    --footer-text: rgba(238, 244, 255, .72);
    --footer-border: rgba(214, 177, 94, .18);

    --body-bg:
        radial-gradient(1200px 700px at 10% 10%, rgba(11, 58, 131, .35), transparent 58%),
        radial-gradient(900px 600px at 85% 0%, rgba(214, 177, 94, .22), transparent 55%),
        radial-gradient(900px 600px at 70% 90%, rgba(59, 213, 255, .12), transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg2));

    --input-bg: #f9fafb;
    --input-border: rgba(214, 177, 94, .24);
    --input-text: #0a1430;

  --overlay-bg: rgba(6, 16, 34, .96);

    --role-bg: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
    --role-text: rgba(10, 20, 48, .92);
    --role-sub: rgba(10, 20, 48, .72);
    --role-cat: rgba(10, 20, 48, .60);
 --role-border: rgba(214, 177, 94, .30);
    --role-shadow: 0 12px 30px rgba(10, 20, 48, .10);

    --img-card-bg: #fff;
 --cap-text: rgba(10, 20, 48, .72);

    --media-row-bg: rgba(255, 255, 255, .84);
    --media-row-border: rgba(214, 177, 94, .22);
    --media-row-title: rgba(10, 20, 48, .92);
    --media-row-sub: rgba(10, 20, 48, .62);

    --wave-fill: #f7f4ee;
    --pill-bg: rgba(8, 18, 40, .55);

    --r-xl: 28px;
    --r-lg: 20px;
    --r-md: 16px;
}

/* ??? LIGHT THEME ??? */
[data-theme="light"] {
    --bg: #f5f7fa;
    --bg2: #eef1f6;
    --surface: rgba(255, 255, 255, .92);
    --surface2: rgba(245, 247, 252, .85);
    --surface-card: rgba(255, 255, 255, .95);
    --surface-hover: rgba(240, 243, 250, .95);

    --text: #1a2340;
    --text-secondary: #4a5578;
    --muted: #5a6a8a;
    --heading: #0a1430;

    --gold: #c8960a;
    --gold2: #a87d08;
    --gold-bg: rgba(200, 150, 10, .08);
    --gold-border: rgba(200, 150, 10, .20);

    --accent: linear-gradient(135deg, #1a4a8a, #c8960a);

    --nav-bg: rgba(255, 255, 255, .88);
    --nav-border: rgba(200, 150, 10, .15);
    --nav-link: #4a5578;
    --nav-link-hover: #1a2340;
--nav-link-active-bg: rgba(26, 74, 138, .08);
    --nav-link-active-border: rgba(200, 150, 10, .30);

    --card-bg: #ffffff;
    --card-border: rgba(200, 150, 10, .18);
    --card-shadow: 0 8px 30px rgba(10, 20, 48, .06);
--card-light-bg: #ffffff;
    --card-light-text: #1a2340;
    --card-light-border: rgba(200, 150, 10, .18);
    --card-light-shadow: 0 8px 30px rgba(10, 20, 48, .06);

    --section-light-bg: linear-gradient(180deg, #f0f3f8, #e8ecf4);
  --section-light-text: #1a2340;

  --footer-bg: #f0f2f6;
    --footer-text: #5a6a8a;
    --footer-border: rgba(200, 150, 10, .15);

    --body-bg:
        radial-gradient(1200px 700px at 10% 10%, rgba(26, 74, 138, .06), transparent 58%),
        radial-gradient(900px 600px at 85% 0%, rgba(200, 150, 10, .06), transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg2));

    --input-bg: #ffffff;
    --input-border: #d0d5e0;
    --input-text: #1a2340;

    --overlay-bg: rgba(255, 255, 255, .97);

    --role-bg: #ffffff;
    --role-text: #1a2340;
    --role-sub: #4a5578;
    --role-cat: #7a869e;
    --role-border: rgba(200, 150, 10, .22);
    --role-shadow: 0 8px 24px rgba(10, 20, 48, .06);

    --img-card-bg: #ffffff;
    --cap-text: #4a5578;

    --media-row-bg: #f5f7fa;
    --media-row-border: rgba(200, 150, 10, .18);
    --media-row-title: #1a2340;
    --media-row-sub: #5a6a8a;

  --wave-fill: #f0f3f8;
    --pill-bg: rgba(26, 74, 138, .06);
}


/* ??? RESETS ??? */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans";
  color: var(--text);
    line-height: 1.55;
    background: var(--body-bg);
    background-attachment: fixed;
    transition: background .4s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }


/* ??????????????????????????????????????????
   NAVIGATION
   ?????????????????????????????????????????? */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    transition: background .3s ease, border-color .3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
 padding: 0;
    height: 72px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.brand img {
    height: 48px;
    width: 48px;
  object-fit: contain;
    border-radius: 14px;
}

.logo {
 width: 42px; height: 42px;
    border-radius: 14px;
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    position: relative; overflow: hidden;
    flex-shrink: 0;
}

.logo:after {
    content: "";
    position: absolute; inset: -30%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 45%);
    transform: rotate(18deg);
}

.brand h1 { margin: 0; font-size: 15px; font-weight: 700; color: var(--heading); }
.brand p  { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: .02em; }

/* Nav Links */
.links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--nav-link);
  padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all .2s ease;
    position: relative;
}

.links a:hover {
    color: var(--nav-link-hover);
    background: var(--gold-bg);
    border-color: var(--gold-border);
}

.links a.active {
    color: var(--nav-link-hover);
    background: var(--nav-link-active-bg);
    border-color: var(--nav-link-active-border);
    font-weight: 600;
}

.links a.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
  border-radius: 50%;
    background: var(--gold);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
  gap: 10px;
    flex-shrink: 0;
}

.cta {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ??? Buttons ??? */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid var(--gold-border);
    background: var(--gold-bg);
  color: var(--text);
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transition: all .22s ease;
  white-space: nowrap;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.btn.primary {
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 6px 22px rgba(11, 58, 131, .28);
}

.btn.primary:hover {
    box-shadow: 0 8px 28px rgba(11, 58, 131, .35);
}

.btn.soft {
    border: 1px solid rgba(59, 213, 255, .25);
    background: rgba(59, 213, 255, .08);
    color: var(--heading);
}

[data-theme="light"] .btn.soft {
    border: 1px solid rgba(26, 74, 138, .18);
    background: rgba(26, 74, 138, .05);
    color: var(--heading);
}

/* ??? Theme Toggle ??? */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--gold-border);
    background: var(--gold-bg);
    color: var(--gold);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  transition: all .25s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--gold-border);
    transform: rotate(15deg) scale(1.05);
}

[data-theme="dark"]  .theme-toggle .bi-moon-fill { display: none; }
[data-theme="dark"]  .theme-toggle .bi-sun-fill  { display: inline; }
[data-theme="light"] .theme-toggle .bi-sun-fill  { display: none; }
[data-theme="light"] .theme-toggle .bi-moon-fill { display: inline; }

/* ??? Mobile Menu ??? */
.mobile-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--gold-border);
    background: var(--gold-bg);
    color: var(--gold);
  font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0;
}

.mobile-toggle:hover { background: var(--gold-border); }

.mobile-drawer {
    display: none;
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--overlay-bg);
    backdrop-filter: blur(24px);
    z-index: 200;
    flex-direction: column;
    padding: 0;
    box-shadow: -10px 0 40px rgba(0,0,0,.25);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}

.mobile-drawer.open { right: 0; }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 190;
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-overlay.open { opacity: 1; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--nav-border);
}

.drawer-header span { font-weight: 700; font-size: 16px; color: var(--heading); }

.drawer-close {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--gold-border);
    background: var(--gold-bg);
    color: var(--text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.drawer-close:hover { background: var(--gold-border); }

.drawer-nav {
 display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all .2s ease;
}

.drawer-nav a i { font-size: 1.1rem; width: 22px; text-align: center; opacity: .6; }

.drawer-nav a:hover {
    background: var(--gold-bg);
    color: var(--heading);
}

.drawer-nav a:hover i { opacity: 1; }

.drawer-nav a.active {
    background: var(--nav-link-active-bg);
    color: var(--heading);
    font-weight: 600;
    border-left: 3px solid var(--gold);
}

.drawer-nav a.active i { opacity: 1; color: var(--gold); }

.drawer-cta {
    padding: 16px;
  display: flex;
    flex-direction: column;
    gap: 10px;
  border-top: 1px solid var(--nav-border);
    margin-top: auto;
}

.drawer-cta .btn { width: 100%; justify-content: center; padding: 12px; }

.drawer-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-footer span { font-size: 12px; color: var(--muted); }

/* ??? Responsive Nav ??? */
@media (max-width: 1040px) {
    .links a  { font-size: 12px; padding: 7px 8px; }
    .cta .btn { font-size: 12px; padding: 8px 12px; }
}

@media (max-width: 720px) {
    .mobile-toggle  { display: inline-flex; }
    .mobile-drawer  { display: flex; }
    .mobile-overlay { display: block; pointer-events: none; }
  .mobile-overlay.open { pointer-events: auto; }
    .links { display: none !important; }
    .cta   { display: none !important; }
}


/* ??????????????????????????????????????????
   HERO + PAGE HEADER
   ?????????????????????????????????????????? */
.hero {
    position: relative;
    padding: 56px 0 140px;
    overflow: hidden;
}

.hero-grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 26px;
    align-items: center;
    padding: 18px 0 30px;
}

.pill {
    display: inline-flex;
    gap: 10px; align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
 background: var(--pill-bg);
    color: var(--muted);
    font-size: 13px;
    width: fit-content;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 6px rgba(59, 213, 255, .12);
}

[data-theme="light"] .dot {
    background: var(--gold);
 box-shadow: 0 0 0 6px rgba(200, 150, 10, .12);
}

.hero h2 {
  margin: 14px 0 10px;
    font-size: 46px;
    letter-spacing: -.9px;
    line-height: 1.06;
    color: var(--heading);
}

.hero h2 span {
    background: linear-gradient(135deg, var(--gold), rgba(59, 213, 255, .92));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .hero h2 span {
    background: linear-gradient(135deg, #1a4a8a, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    max-width: 62ch;
}

.hero-actions {
  display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* Hero Card */
.hero-card {
 border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    border: 1px solid var(--gold-border);
    box-shadow: var(--card-shadow);
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

[data-theme="light"] .hero-card {
 background: rgba(255,255,255,.85);
    box-shadow: 0 12px 36px rgba(10,20,48,.08);
}

.hero-card:before {
 content: "";
    position: absolute; inset: -55%;
    background:
        radial-gradient(circle at 35% 25%, rgba(11,58,131,.26), transparent 45%),
        radial-gradient(circle at 80% 40%, rgba(214,177,94,.20), transparent 42%),
        radial-gradient(circle at 60% 85%, rgba(59,213,255,.14), transparent 45%);
    transform: rotate(10deg);
    pointer-events: none;
}

[data-theme="light"] .hero-card:before {
    background:
     radial-gradient(circle at 35% 25%, rgba(26,74,138,.06), transparent 45%),
        radial-gradient(circle at 80% 40%, rgba(200,150,10,.08), transparent 42%);
}

.profile {
    position: relative;
    display: flex; gap: 14px; align-items: center;
    padding: 10px;
 border-radius: 22px;
    background: rgba(6,16,34,.38);
    border: 1px solid rgba(255,255,255,.10);
}

[data-theme="light"] .profile {
    background: rgba(26,74,138,.04);
    border-color: rgba(200,150,10,.15);
}

.avatar {
    width: 90px; height: 90px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--gold-border);
    background: #0a1633;
    flex: 0 0 auto;
}

[data-theme="light"] .avatar { background: #f0f3f8; }

.avatar img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.profile h3   { margin: 0; font-size: 18px; color: var(--heading); }
.profile .sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; position: relative; }

.badge {
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--pill-bg);
    border: 1px solid var(--gold-border);
    color: var(--muted);
    font-size: 12px;
    transition: all .3s ease;
}

/* Wave */
.wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%; height: auto;
    z-index: 1;
}

.wave path { fill: var(--wave-fill); transition: fill .3s ease; }

[data-theme="light"] .wave path { fill: var(--wave-fill); }


/* ??????????????????????????????????????????
   SECTIONS
   ?????????????????????????????????????????? */
section { padding: 70px 0; }

.light {
    background: var(--section-light-bg);
    color: var(--section-light-text);
    transition: background .3s ease, color .3s ease;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
 gap: 16px;
    margin-bottom: 18px;
}

.section-title h3 { margin: 0; font-size: 30px; letter-spacing: -.4px; color: var(--heading); }
.section-title p  { margin: 0; max-width: 72ch; color: var(--muted); }

/* Inside .light sections use dark text for section titles */
.light .section-title h3 { color: var(--section-light-text); }
.light .section-title p  { color: var(--section-light-text); opacity: .6; }

.grid {
    display: grid;
  grid-template-columns: repeat(12, 1fr);
 gap: 16px;
}


/* ??? Cards ??? */
.card {
    border-radius: var(--r-lg);
    background: var(--card-light-bg);
    box-shadow: var(--card-light-shadow);
    border: 1px solid var(--card-light-border);
    padding: 18px;
    color: var(--card-light-text);
    transition: all .3s ease;
}

.card h4 { margin: 0 0 10px; color: var(--card-light-text); }

.card.dark {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.card.dark h4 { color: var(--text); }

/* Links inside dark cards are gold for visibility */
.card.dark a       { color: var(--gold); transition: opacity .2s ease; }
.card.dark a:hover { opacity: .8; }

/* Buttons inside dark cards keep their own colors */
.card.dark .btn  { color: var(--text); }
.card.dark .btn.primary { color: #ffffff; }
.card.dark .btn.soft    { color: var(--heading); }

[data-theme="light"] .card.dark {
    background: #1a2a4a;
    color: #ecf3ff;
    border-color: rgba(200,150,10,.18);
}

[data-theme="light"] .card.dark h4 { color: #ecf3ff; }

.list { margin: 0; padding-left: 18px; color: var(--card-light-text); opacity: .78; }


/* ??? Role Cards ??? */
.role-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.role {
    grid-column: span 6;
    border-radius: 22px;
    padding: 14px;
    background: var(--role-bg);
    border: 1px solid var(--role-border);
    box-shadow: var(--role-shadow);
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

.role:before {
    content: "";
    position: absolute; inset: -60%;
    background:
      radial-gradient(circle at 22% 28%, rgba(11,58,131,.18), transparent 45%),
      radial-gradient(circle at 80% 50%, rgba(214,177,94,.18), transparent 45%),
        radial-gradient(circle at 55% 85%, rgba(59,213,255,.12), transparent 45%);
    transform: rotate(12deg);
    pointer-events: none;
}

[data-theme="light"] .role:before {
    background:
        radial-gradient(circle at 22% 28%, rgba(26,74,138,.04), transparent 45%),
   radial-gradient(circle at 80% 50%, rgba(200,150,10,.06), transparent 45%);
}

.role .k {
    position: relative;
    display: inline-flex;
    gap: 8px; align-items: center;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--role-cat);
    margin-bottom: 6px;
}

.role .k .mini {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(214,177,94,.14);
}

.role .t {
    position: relative;
    font-weight: 900;
    color: var(--role-text);
    margin: 0; font-size: 16px; line-height: 1.25;
}

.role .d {
    position: relative;
    margin: 6px 0 0;
    color: var(--role-sub);
    font-size: 13px;
}


/* ??? Media Rows ??? */
.media-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--media-row-border);
    background: var(--media-row-bg);
    margin-top: 10px;
    transition: all .3s ease;
}

.media-row b    { color: var(--media-row-title); }
.media-row span { color: var(--media-row-sub); font-size: 13px; }

.media-row a {
    font-weight: 900;
    padding: 10px 12px;
border-radius: 14px;
    border: 1px solid var(--gold-border);
    background: var(--gold-bg);
    color: var(--media-row-title);
    transition: all .2s ease;
}

.media-row a:hover { transform: translateY(-1px); }


/* ??? Gallery ??? */
.img-card {
    grid-column: span 4;
    padding: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--card-light-border);
    box-shadow: var(--card-light-shadow);
    background: var(--img-card-bg);
    transition: all .3s ease;
}

.img-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(10,20,48,.14); }
.img-card img   { width: 100%; height: 240px; object-fit: cover; display: block; }
.cap{ padding: 12px 14px; color: var(--cap-text); font-size: 13px; }


/* ??? Footer ??? */
.footer {
    padding: 26px 0;
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    background: var(--footer-bg);
    transition: all .3s ease;
}


/* ??? Page Heading ??? */
.page-head    { padding: 40px 0 30px; }
.page-head h2 { margin: 0; font-size: 34px; letter-spacing: -.6px; color: var(--heading); }
.page-head p  { margin: 10px 0 0; color: var(--muted); max-width: 72ch; }


/* ??? Forms (Contact page) ??? */
.form-input {
    padding: 10px 14px;
  border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 14px;
  width: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,150,10,.12);
}

textarea.form-input { resize: vertical; }


/* ??? Responsive ??? */
@media (max-width: 1040px) {
    .hero-grid    { grid-template-columns: 1fr; }
    .hero h2   { font-size: 40px; }
    .role         { grid-column: span 12; }
    .img-card     { grid-column: span 12; }
    .img-card img { height: 260px; }
}

@media (max-width: 720px) {
    .hero h2 { font-size: 34px; }
}


/* ??????????????????????????????????????????
   BANNER CAROUSEL
   ?????????????????????????????????????????? */
.banner-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
 border: 1px solid var(--gold-border);
    aspect-ratio: 21 / 8;
    background: var(--surface);
}

.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.banner-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,11,26,.82) 0%, rgba(5,11,26,.45) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
}

[data-theme="light"] .banner-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.60) 50%, transparent 100%);
}

.banner-overlay h3 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    max-width: 520px;
    line-height: 1.15;
}

[data-theme="light"] .banner-overlay h3 { color: var(--heading); }

.banner-overlay p {
  margin: 0 0 16px;
    font-size: 14px;
    color: rgba(238,244,255,.8);
    max-width: 440px;
}

[data-theme="light"] .banner-overlay p { color: var(--muted); }

.banner-overlay .btn { width: fit-content; }

/* Dots */
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.banner-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    background: transparent;
    cursor: pointer;
    transition: all .25s ease;
    padding: 0;
}

.banner-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

[data-theme="light"] .banner-dot { border-color: rgba(10,20,48,.3); }

/* Arrows */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(5,11,26,.45);
    color: #fff;
  font-size: 1.1rem;
    display: flex;
    align-items: center;
  justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all .2s ease;
    backdrop-filter: blur(6px);
}

.banner-arrow:hover {
    background: rgba(5,11,26,.7);
    border-color: var(--gold);
}

[data-theme="light"] .banner-arrow {
    background: rgba(255,255,255,.7);
    border-color: rgba(200,150,10,.25);
    color: var(--heading);
}

.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }

@media (max-width: 720px) {
    .banner-carousel    { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
    .banner-overlay     { padding: 20px 22px; }
    .banner-overlay h3  { font-size: 18px; }
    .banner-overlay p   { font-size: 12px; }
}


/* ??????????????????????????????????????????
   NOTIFICATION BAR
   ?????????????????????????????????????????? */
.notification-bar {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--gold-border);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 0;
}

/* Inside .light sections give the bar a translucent light bg */
.light .notification-bar {
    background: rgba(10, 20, 48, .06);
}

[data-theme="light"] .notification-bar {
  background: rgba(26, 74, 138, .04);
}

.notification-track {
    display: flex;
    animation: notifScroll 20s linear infinite;
    width: max-content;
}

.notification-track:hover { animation-play-state: paused; }

.notif-item {
display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    white-space: nowrap;
    font-size: 13px;
color: var(--text);
    flex-shrink: 0;
}

/* Notification text inside .light sections needs dark color */
.light .notif-item {
    color: var(--section-light-text);
}

.light .notif-item a {
    color: var(--gold);
}

.notif-item .notif-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 8px;
    font-size: 12px;
    flex-shrink: 0;
}

.notif-type.info    { background: rgba(59,130,246,.15);  color: #3b82f6; }
.notif-type.success { background: rgba(16,185,129,.15);  color: #10b981; }
.notif-type.warning { background: rgba(245,158,11,.15);  color: #f59e0b; }
.notif-type.urgent  { background: rgba(239,68,68,.15);   color: #ef4444; }

.notif-item a {
  color: var(--gold);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    transition: all .2s ease;
}

.notif-item a:hover { transform: translateY(-1px); }

.notif-divider {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: .4;
    flex-shrink: 0;
}

@keyframes notifScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ??????????????????????????????????????????
   EVENT UPDATE CARDS
   ?????????????????????????????????????????? */
.events-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.events-scroll::-webkit-scrollbar { display: none; }

.event-card {
min-width: 310px;
    max-width: 340px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--r-lg);
  border: 1px solid var(--card-light-border);
    background: var(--card-light-bg);
    box-shadow: var(--card-light-shadow);
    overflow: hidden;
  transition: all .3s ease;
}

[data-theme="light"] .event-card {
  background: #ffffff;
    border-color: var(--card-light-border);
    box-shadow: var(--card-light-shadow);
}

.event-card:hover { transform: translateY(-4px); }

.event-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.event-card-body { padding: 16px; }

.event-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    margin-bottom: 8px;
}

.event-card-body h4 {
    margin: 0 0 6px;
 font-size: 15px;
    font-weight: 700;
    color: var(--card-light-text);
    line-height: 1.3;
}

.event-card-body p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--card-light-text);
    opacity: .6;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
 gap: 14px;
    font-size: 12px;
    color: var(--card-light-text);
 opacity: .5;
    flex-wrap: wrap;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-meta i { font-size: 13px; opacity: .6; }


/* ??????????????????????????????????????????
   HOME DYNAMIC STRIP
   ?????????????????????????????????????????? */
.home-dynamic-strip {
    position: relative;
    z-index: 3;
    padding: 0 0 20px;
}

.home-dynamic-strip .container {
  display: flex;
    flex-direction: column;
    gap: 20px;
}

.strip-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.strip-section-label i {
    font-size: 1rem;
  color: var(--gold);
}

.strip-section-label span {
    font-size: 14px;
    font-weight: 700;
    color: var(--section-light-text);
    letter-spacing: .02em;
}


/* ??????????????????????????????????????????
   GALLERY FILTERS + LIGHTBOX
   ?????????????????????????????????????????? */
.gallery-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gallery-filter-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--gold-border);
    background: var(--gold-bg);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.gallery-filter-btn:hover {
    color: var(--heading);
    border-color: var(--gold);
}

.gallery-filter-btn.active {
    background: var(--accent);
    color: #ffffff;
border-color: transparent;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-grid .img-card {
    grid-column: span 1;
    opacity: 1;
    transform: scale(1);
    transition: all .35s ease;
}

.gallery-grid .img-card.hidden { display: none; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    border-radius: var(--r-lg);
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-caption {
    margin-top: 14px;
    font-size: 15px;
    color: rgba(255,255,255,.8);
  text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
 align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--gold);
}

.lightbox-nav.lb-prev { left: 20px; }
.lightbox-nav.lb-next { right: 20px; }

/* Home Gallery Section */
.home-gallery-section { padding: 60px 0; }
.home-gallery-section .section-title { margin-bottom: 20px; }
.home-gallery-section .section-title h3 { color: var(--heading); }
.home-gallery-section .section-title p  { color: var(--muted); }

/* Home Gallery Horizontal Scroll */
.gallery-scroll-wrapper {
    position: relative;
}

.gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 6px;
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-scroll .img-card {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    grid-column: unset;
    opacity: 1;
    transform: scale(1);
    transition: all .35s ease;
}

.gallery-scroll .img-card.hidden { display: none; }

.gallery-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--gold-border);
    background: var(--card-light-bg);
    color: var(--heading);
    font-size: 1.1rem;
    display: flex;
  align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
  transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
}

.gallery-scroll-arrow:hover {
    background: var(--gold-bg);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.08);
}

.gallery-scroll-prev { left: -18px; }
.gallery-scroll-next { right: -18px; }

@media (max-width: 720px) {
    .gallery-scroll .img-card { min-width: 240px; }
    .gallery-scroll-arrow { display: none; }
}

/* Gallery cursor */
.gallery-grid .img-card       { cursor: pointer; }
.gallery-grid .img-card:hover { transform: translateY(-4px) scale(1.01); }

@media (max-width: 720px) {
    .gallery-grid       { grid-template-columns: 1fr; }
  .events-scroll      { gap: 12px; }
    .event-card { min-width: 260px; }
    .banner-overlay h3  { font-size: 16px; }
    .lightbox-nav    { width: 38px; height: 38px; font-size: 1rem; }
}
