
/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --primary:#1F3A93;
  --primary-rgb:31,58,147;
  --secondary:#0B1F3A;
  --secondary-rgb:11,31,58;
  --accent:#D4AF37;
  --accent-rgb:212,175,55;
  --accent-light:#E9CE83;
  --bg:#F5F7FA;
  --card:#FFFFFF;
  --text:#222222;
  --text-soft:#5B6472;
  --steel:#A9B8D6;
  --hairline:rgba(11,31,58,0.10);

  --font-display:'Cinzel', 'Georgia', serif;
  --font-body:'Inter', -apple-system, sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --radius:10px;
  --shadow-sm: 0 2px 10px rgba(11,31,58,0.06);
  --shadow-md: 0 10px 34px rgba(11,31,58,0.12);
  --shadow-gold: 0 8px 24px rgba(212,175,55,0.25);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}

body{
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  font-size:1rem;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

body.font-lg{font-size:1.125rem;}
body.contrast-mode{ --bg:#FFFFFF; --text:#000000; --text-soft:#222222; }
body.contrast-mode .navbar, body.contrast-mode footer{ filter:none; }

::selection{ background:var(--accent); color:var(--secondary); }

a{ color:var(--primary); text-decoration:none; }
img{max-width:100%;}

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--accent); color:var(--secondary);
  padding:.75rem 1.25rem; z-index:2000; font-weight:700; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}

h1,h2,h3,h4,.font-display{
  font-family:var(--font-display);
  color:var(--secondary);
  letter-spacing:.02em;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:.6rem;
}
.eyebrow::before{
  content:"";
  width:26px; height:1px; background:var(--accent);
  display:inline-block;
}

.section-title{
  font-size:clamp(1.7rem, 3vw, 2.5rem);
  font-weight:700;
  margin:.5rem 0 1rem;
}
.section-lede{
  color:var(--text-soft);
  max-width:640px;
  font-size:1.05rem;
}
.section-pad{
    padding:100px 0;
}

@media (max-width:768px){ .section-pad{padding:3.5rem 0;} }

.btn{ border-radius:4px; font-weight:600; letter-spacing:.02em; padding:.72rem 1.6rem; }
.btn-gold{
  background:var(--accent); border:1px solid var(--accent); color:var(--secondary);
}
.btn-gold:hover{ background:var(--accent-light); border-color:var(--accent-light); color:var(--secondary); }
.btn-outline-light-custom{
  background:transparent; border:1.5px solid rgba(255,255,255,.55); color:#fff;
}
.btn-outline-light-custom:hover{ background:rgba(255,255,255,.12); border-color:#fff; color:#fff; }
.btn-navy{ background:var(--primary); border:1px solid var(--primary); color:#fff; }
.btn-navy:hover{ background:var(--secondary); border-color:var(--secondary); color:#fff; }
.btn-outline-navy{ background:transparent; border:1.5px solid var(--primary); color:var(--primary); }
.btn-outline-navy:hover{ background:var(--primary); color:#fff; }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.topbar{
  background:var(--secondary);
  color:#c9d3e6;
  font-family:var(--font-mono);
  font-size:.76rem;
  letter-spacing:.03em;
  padding:.4rem 0;
  border-bottom:1px solid rgba(212,175,55,.25);
}
.topbar a{ color:#c9d3e6; }
.topbar a:hover{ color:var(--accent); }
.topbar .divider{ opacity:.35; margin:0 .6rem; }
.access-controls button{
  background:transparent; border:1px solid rgba(255,255,255,.25); color:#c9d3e6;
  font-family:var(--font-mono); font-size:.72rem; width:26px; height:22px; line-height:1;
  border-radius:3px; margin-left:4px;
}
.access-controls button:hover{ border-color:var(--accent); color:var(--accent); }
.access-controls button.active{ background:var(--accent); color:var(--secondary); border-color:var(--accent); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce{
  background:linear-gradient(90deg, var(--primary), #294bb5);
  color:#fff; font-size:.86rem; padding:.55rem 0; position:relative;
}
.announce strong{ color:var(--accent-light); }
.announce .close-announce{
  background:transparent; border:0; color:#fff; opacity:.75; font-size:1.1rem; line-height:1;
}
.announce .close-announce:hover{ opacity:1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-afwc{
  background:#fff;
  padding:.7rem 0;
  transition:box-shadow .25s ease, padding .25s ease;
  border-bottom:1px solid var(--hairline);
}
.navbar-afwc.scrolled{ box-shadow:var(--shadow-md); padding:.4rem 0; }
.brand-lockup{ display:flex; align-items:center; gap:.7rem; }
.brand-crest{
  width:46px; height:46px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #2a4bab, var(--secondary));
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--accent);
  flex-shrink:0;
}
.brand-crest svg{ width:26px; height:26px; }
.brand-text .name{ font-family:var(--font-display); font-weight:700; color:var(--secondary); font-size:1.02rem; line-height:1.15; display:block; }
.brand-text .sub{ font-family:var(--font-mono); font-size:.62rem; letter-spacing:.14em; color:var(--primary); text-transform:uppercase; }

.navbar-afwc .nav-link{
  color:var(--secondary); font-weight:600; font-size:.86rem; letter-spacing:.02em;
  padding:.5rem .85rem !important; position:relative;
}
.navbar-afwc .nav-link:hover, .navbar-afwc .nav-link:focus{ color:var(--primary); }
.navbar-afwc .nav-link::after{
  content:""; position:absolute; left:.85rem; right:.85rem; bottom:.15rem; height:2px;
  background:var(--accent); transform:scaleX(0); transition:transform .2s ease; transform-origin:left;
}
.navbar-afwc .nav-link:hover::after{ transform:scaleX(1); }
.dropdown-menu{ border:none; box-shadow:var(--shadow-md); border-radius:8px; padding:.5rem; }
.dropdown-item{ font-size:.86rem; font-weight:500; border-radius:5px; padding:.55rem .8rem; }
.dropdown-item:hover{ background:var(--bg); color:var(--primary); }
.nav-apply-btn{
  background:var(--secondary); color:#fff !important; border-radius:4px; padding:.5rem 1.1rem !important;
  border:1px solid var(--secondary);
}
.nav-apply-btn:hover{ background:var(--primary); border-color:var(--primary); }

.navbar-afwc .navbar-toggler{
    border:none;
    box-shadow:none;
}

.navbar-afwc .navbar-toggler:focus,
.navbar-afwc .navbar-toggler:active,
.navbar-afwc .navbar-toggler:focus-visible{
    border:none;
    box-shadow:none !important;
    outline:none !important;
}

/* Sticky mobile apply button */
.sticky-apply{
  position:fixed; right:1.1rem; bottom:1.1rem; z-index:1040;
  background:var(--accent); color:var(--secondary); font-weight:700;
  padding:.75rem 1.2rem; border-radius:50px; box-shadow:var(--shadow-gold);
  display:flex; align-items:center; gap:.5rem; font-size:.86rem;
  opacity:0; pointer-events:none; transform:translateY(12px);
  transition:opacity .3s ease, transform .3s ease;
}
.sticky-apply.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
.sticky-apply:hover{ background:var(--accent-light); color:var(--secondary); }

/* ===================================================
   AFWC Brandmark — scoped, safe alongside other styles
   =================================================== */
.afwc-brandmark{
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

/* Logo frame — single navy border, nothing else */
.afwc-brandmark__frame{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid black;
  overflow: hidden;
}

.afwc-brandmark__logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text lockup — tight, confident, two bold lines */
.afwc-brandmark__text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}

.afwc-brandmark__name{
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: #0B1F3A;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.afwc-brandmark__sub{
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4AF37;
  -webkit-text-stroke: 0.2px #0B1F3A;
}

@media (max-width: 576px){
  .afwc-brandmark{ gap: 0.6rem; }
  .afwc-brandmark__frame{ width: 46px; height: 46px; }
  .afwc-brandmark__name{ font-size: 0.9rem; }
  .afwc-brandmark__sub{ font-size: 0.76rem; letter-spacing: 0.06em; }
}

/* ============================================================
   HERO — radar / compass motif
   ============================================================ */
.hero{
  position:relative;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(212,175,55,.14), transparent 60%),
    linear-gradient(160deg, var(--secondary) 0%, #10254a 55%, var(--primary) 145%);
  color:#fff;
  overflow:hidden;
  padding-top:6.5rem;
  padding-bottom:0;
}
.hero-grid-lines{
  position:absolute; inset:0; opacity:.14; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom, black, transparent 85%);
}
.radar-wrap{
  position:absolute; top:50%; right:-10%; transform:translateY(-46%);
  width:min(58vw, 720px); height:min(58vw, 720px); pointer-events:none;
  opacity:.55;
}
@media (max-width:991px){ .radar-wrap{ opacity:.28; right:-24%; } }
.radar-ring{
  position:absolute; border:1px solid rgba(212,175,55,.35); border-radius:50%; inset:0;
}
.radar-ring.r2{ inset:12%; }
.radar-ring.r3{ inset:24%; }
.radar-ring.r4{ inset:36%; }
.radar-cross{
  position:absolute; inset:0;
  background:
    linear-gradient(rgba(212,175,55,.3) 1px, transparent 1px) center/100% 1px no-repeat,
    linear-gradient(90deg, rgba(212,175,55,.3) 1px, transparent 1px) center/1px 100% no-repeat;
}
.radar-sweep{
  position:absolute; inset:0; border-radius:50%; overflow:hidden;
  animation: sweep 6s linear infinite;
}
.radar-sweep::before{
  content:""; position:absolute; inset:0;
  background:conic-gradient(from 0deg, rgba(212,175,55,.55), transparent 22%, transparent 100%);
}
@keyframes sweep{ from{ transform:rotate(0deg);} to{ transform:rotate(360deg);} }
.radar-dot{
  position:absolute; width:6px; height:6px; border-radius:50%; background:var(--accent-light);
  box-shadow:0 0 10px 3px rgba(212,175,55,.6);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip{ 0%,100%{opacity:.35;} 50%{opacity:1;} }

.hero-content{ position:relative; z-index:2; padding-bottom:3.5rem; }
.hero-eyebrow{
  font-family:var(--font-mono); font-size:.78rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--accent-light); display:inline-flex; align-items:center; gap:.6rem; margin-bottom:1.1rem;
}
.hero-eyebrow::before{ content:""; width:30px; height:1px; background:var(--accent-light); }
.hero h1{
  color:#fff; font-size:clamp(2.1rem, 4.6vw, 3.6rem); line-height:1.12; font-weight:700;
  max-width:760px;
}
.hero h1 em{
  font-style:normal; color:var(--accent-light);
}
.hero p.lead{
  color:rgba(255,255,255,.82); max-width:560px; font-size:1.08rem; margin-top:1.2rem;
}
.hero-cta{ margin-top:2rem; display:flex; gap:.9rem; flex-wrap:wrap; }
.hero-coords{
  font-family:var(--font-mono); font-size:.72rem; color:rgba(255,255,255,.55);
  margin-top:2.2rem; letter-spacing:.06em;
}

/* Stats strip — instrument-panel style, overlaps hero bottom edge */
.stats-strip{
  position:relative; z-index:3; margin-top:2.5rem;
  background:var(--card);
  border-radius:14px;
  box-shadow:var(--shadow-md);
  transform:translateY(46%);
  border-top:3px solid var(--accent);
}
.stat-item{
  padding:1.6rem 1rem; text-align:center; border-right:1px solid var(--hairline);
}
.stat-item:last-child{ border-right:none; }
.stat-num{
  font-family:var(--font-mono); font-weight:700; font-size:clamp(1.6rem,2.6vw,2.2rem);
  color:var(--primary); display:block; letter-spacing:.01em;
}
.stat-num .plus{ color:var(--accent); }
.stat-label{
  font-size:.74rem; text-transform:uppercase; letter-spacing:.09em; color:var(--text-soft); font-weight:600;
  margin-top:.3rem;
}
.hero-spacer{ height:0; }
@media (min-width: 768px){ .hero-spacer-fill{ padding-bottom:6.5rem; } }
@media (max-width: 767px){
  .stats-strip{ transform:none; margin-top:2rem; border-radius:10px; }
  .stat-item{ border-right:none; border-bottom:1px solid var(--hairline); }
  .stat-item:last-child{ border-bottom:none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-visual{
  position:relative; border-radius:14px; overflow:hidden;
  background:linear-gradient(155deg, var(--secondary), var(--primary));
  aspect-ratio:4/3.1; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md);
}
.about-visual svg{ width:58%; opacity:.92; }
.about-visual .frame-corner{
  position:absolute; width:26px; height:26px; border:2px solid var(--accent);
}
.fc-tl{ top:14px; left:14px; border-right:0; border-bottom:0; }
.fc-br{ bottom:14px; right:14px; border-left:0; border-top:0; }
.about-list{ list-style:none; padding:0; margin:1.5rem 0 0; }
.about-list li{
  display:flex; gap:.85rem; padding:.6rem 0; border-bottom:1px dashed var(--hairline);
}
.about-list li:last-child{ border-bottom:none; }
.about-list i{ color:var(--accent); font-size:1.05rem; margin-top:.15rem; }

.about-visual{
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(155deg, var(--secondary), var(--primary));
    aspect-ratio: 4 / 3.1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
}

/* White glowing circle behind the logo */
.about-visual::before{
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.75) 45%,
        rgba(255,255,255,0.25) 75%,
        rgba(255,255,255,0) 100%
    );
    z-index: 1;
}

/* Logo */
.college-logo{
    width: 200px;
    max-width: 70%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.2));
}

/* Keep the frame corners above everything */
.about-visual .frame-corner{
    z-index: 3;
}



/* ============================================================
   COMMANDANT SECTION
============================================================ */

.commandant-section{
    position:relative;
    overflow:hidden;
    background:var(--secondary);
    color:#fff;
}

/* Background Pattern */

.commandant-section::before{
    content:"";
    position:absolute;
    inset:0;
    opacity:.06;
    pointer-events:none;

    background-image:
        radial-gradient(circle,#fff 1px,transparent 1px);

    background-size:22px 22px;

    animation:commandantPatternMove 20s linear infinite;
}


/* ============================================================
   COMMANDANT PORTRAIT
============================================================ */

.commandant-portrait{

    position:relative;

    padding:18px;

    border-radius:22px;

    overflow:hidden;

    background:linear-gradient(
        160deg,
        #284b92,
        var(--secondary)
    );

    border:2px solid rgba(212,175,55,.35);

    box-shadow:
        0 20px 45px rgba(0,0,0,.35),
        inset 0 0 0 1px rgba(255,255,255,.05);

    animation:
        portraitFloat 8s ease-in-out infinite,
        borderGlow 6s ease-in-out infinite;
}

/* Soft Glow */

.commandant-portrait::before{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:radial-gradient(
        circle at center,
        rgba(255,255,255,.18),
        rgba(255,255,255,.08) 45%,
        transparent 75%
    );

}


/* ============================================================
   IMAGE
============================================================ */

.commandant-img{

    position:relative;

    z-index:2;

    display:block;

    width:100%;

    animation:imageZoom 20s ease-in-out infinite;

}


/* ============================================================
   TEXT
============================================================ */

/* Eyebrow */

.commandant-section .eyebrow{

    display:inline-block;

    opacity:0;

    transform:translateY(-20px);

}

/* Quote */

.commandant-section .quote-mark{

    font-family:var(--font-display);

    font-size:3.5rem;

    color:var(--accent);

    line-height:1;

    opacity:.85;

    animation:quoteFloat 8s ease-in-out infinite;

}

/* Welcome */

.commandant-section blockquote{

    font-size:1.15rem;

    line-height:1.9;

    color:rgba(255,255,255,.92);

    opacity:0;

    transform:translateX(40px);

    animation-delay:.4s;

}

/* Signature */

.commandant-section .commandant-sig{

    margin-top:2rem;

    color:var(--accent-light);

    font-family:var(--font-display);

    font-size:1.2rem;

    opacity:0;

    transform:translateY(20px);

    animation-delay:1.2s;

}

/* Title */

.commandant-section .text-white-50{

    opacity:0;

    animation-delay:1.5s;

}

.commandant-section .eyebrow,
.commandant-section blockquote,
.commandant-section .commandant-sig,
.commandant-section .text-white-50{

    opacity:0;

}

/* Run every time the section enters the viewport */

.commandant-section.animate-now .eyebrow{
    animation:eyebrowReveal .8s ease forwards;
}

.commandant-section.animate-now blockquote{
    animation:welcomeReveal 1.3s ease forwards;
    animation-delay:.3s;
}

.commandant-section.animate-now .commandant-sig{
    animation:signatureReveal 1s ease forwards;
    animation-delay:1s;
}

.commandant-section.animate-now .text-white-50{
    animation:fadeIn 1s ease forwards;
    animation-delay:1.3s;
}



/* ============================================================
   ANIMATIONS
============================================================ */

/* Portrait */

@keyframes portraitFloat{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-10px);

    }

}

/* Border */

@keyframes borderGlow{

    0%,100%{

        box-shadow:
            0 20px 45px rgba(0,0,0,.35),
            0 0 10px rgba(212,175,55,.18);

    }

    50%{

        box-shadow:
            0 20px 45px rgba(0,0,0,.35),
            0 0 24px rgba(212,175,55,.45);

    }

}

/* Image */

@keyframes imageZoom{

    0%,100%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.04);

    }

}

/* Quote */

@keyframes quoteFloat{

    0%,100%{

        transform:
            translateY(0)
            rotate(0deg);

    }

    50%{

        transform:
            translateY(-5px)
            rotate(-6deg);

    }

}

/* Eyebrow */

@keyframes eyebrowReveal{

    from{

        opacity:0;

        transform:translateY(-20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* Paragraph */

@keyframes welcomeReveal{

    from{

        opacity:0;

        transform:translateX(40px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

/* Signature */

@keyframes signatureReveal{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* Small title */

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/* Background */

@keyframes commandantPatternMove{

    from{

        background-position:0 0;

    }

    to{

        background-position:22px 22px;

    }

}
/* ============================================================
   ANIMATIONS START ONLY WHEN VISIBLE
============================================================ */

.commandant-section .commandant-portrait,
.commandant-section .commandant-img,
.commandant-section .quote-mark,
.commandant-section .eyebrow,
.commandant-section blockquote,
.commandant-section .commandant-sig,
.commandant-section .text-white-50,
.commandant-section::before{

    animation-play-state:paused;

}
.commandant-section.animate-now .commandant-portrait,
.commandant-section.animate-now .commandant-img,
.commandant-section.animate-now .quote-mark,
.commandant-section.animate-now .eyebrow,
.commandant-section.animate-now blockquote,
.commandant-section.animate-now .commandant-sig,
.commandant-section.animate-now .text-white-50,
.commandant-section.animate-now::before{

    animation-play-state:running;

}
/* ============================================================
   VMV — Vision / Mission / Core Values
   ============================================================ */
.vmv-card{
  background:var(--card); border-radius:12px; padding:2.1rem 1.8rem; height:100%;
  border-top:3px solid var(--accent); box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease;
}
.vmv-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.vmv-icon{
  width:52px; height:52px; border-radius:50%; background:var(--bg);
  display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem;
  color:var(--primary); font-size:1.4rem; border:1px solid var(--hairline);
}

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why-section{
    position:relative;
    padding:100px 0;
    overflow:hidden;

    background:
        linear-gradient(rgba(8,20,55,.65),rgba(8,20,55,.75)),
        url("../images/9.jpg") center center/cover no-repeat;
}

.why-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            135deg,
            rgba(0,0,0,.15),
            rgba(0,31,84,.35)
        );
}

.why-section > .container{
    position:relative;
    z-index:2;
}

/* Heading */

.why-section .eyebrow{
    color:#d4af37;
    text-transform:uppercase;
    letter-spacing:3px;
    font-size:.9rem;
    font-weight:700;
    display:inline-block;
    margin-bottom:15px;
}

.why-section .section-title{
    color:#fff;
    font-size:2.6rem;
    font-weight:700;
    margin-bottom:20px;
}

.why-section .section-lede{
    color:rgba(255,255,255,.85);
    line-height:1.9;
}

/* Button */

.why-section .btn-navy{
    background:#c5a200;
    color:#fff;
    border:none;
    border-radius:40px;
    padding:14px 32px;
    transition:.35s ease;
}

.why-section .btn-navy:hover{
    background:#fff;
    color:#1b2958;
    transform:translateY(-3px);
}

/* Cards */

.why-section .why-item{

    display:flex;
    gap:20px;

    height:100%;

    padding:28px;

    border-radius:18px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    transition:.35s ease;
}

.why-section .why-item:hover{

    transform:translateY(-8px);

    background:rgba(255,255,255,.14);

    box-shadow:0 18px 40px rgba(0,0,0,.35);
}

.why-section .why-num{

    min-width:55px;

    color:#d4af37;

    font-size:2rem;

    font-weight:700;

    line-height:1;
}

.why-section .why-item h5{

    color:#fff;

    font-weight:700;

    margin-bottom:10px;
}

.why-section .why-item p{

    color:rgba(255,255,255,.82);

    margin:0;

    line-height:1.8;
}

/* Responsive */

@media (max-width:768px){

    .why-section{
        padding:70px 0;
    }

    .why-section .section-title{
        font-size:2rem;
    }

    .why-section .why-item{
        padding:22px;
    }

}

/* ============================================================
   COURSES
   ============================================================ */
.course-card{
  background:var(--card); border-radius:12px; overflow:hidden; height:100%;
  box-shadow:var(--shadow-sm); transition:transform .25s ease, box-shadow .25s ease;
  border:1px solid var(--hairline);
}
.course-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.course-head{
  background:linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff; padding:1.6rem 1.6rem 1.3rem;
  position:relative;
}
.course-tag{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--accent-light); display:block; margin-bottom:.4rem;
}
.course-head h3{ color:#fff; font-size:1.22rem; margin:0; }
.course-body{ padding:1.4rem 1.6rem 1.7rem; }
.course-meta{ display:flex; gap:1.2rem; font-size:.82rem; color:var(--text-soft); margin-bottom:.9rem; font-family:var(--font-mono); }
.course-meta span{ display:flex; align-items:center; gap:.4rem; }
.course-body p{ font-size:.92rem; color:var(--text-soft); }
.course-link{ font-weight:700; font-size:.86rem; display:inline-flex; align-items:center; gap:.4rem; color:var(--primary); }
.course-link i{ transition:transform .2s ease; }
.course-link:hover i{ transform:translateX(4px); }

/* ============================================================
   NEWS
   ============================================================ */
.news-card{ background:var(--card); border-radius:12px; overflow:hidden; box-shadow:var(--shadow-sm); height:100%; border:1px solid var(--hairline); transition:box-shadow .25s ease, transform .25s ease;}
.news-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.news-thumb{
  aspect-ratio:16/10; background:linear-gradient(135deg, var(--primary), var(--secondary));
  position:relative; display:flex; align-items:center; justify-content:center;
}
.news-thumb i{ font-size:2.2rem; color:rgba(255,255,255,.5); }
.news-date-badge{
  position:absolute; top:.8rem; left:.8rem; background:var(--accent); color:var(--secondary);
  font-family:var(--font-mono); font-weight:700; font-size:.72rem; padding:.3rem .6rem; border-radius:4px;
}
.news-body{ padding:1.3rem 1.4rem 1.5rem; }
.news-cat{ font-family:var(--font-mono); font-size:.7rem; color:var(--primary); text-transform:uppercase; letter-spacing:.08em; font-weight:700; }
.news-body h5{ font-size:1.02rem; margin:.5rem 0 .6rem; color:var(--secondary); line-height:1.4; }
.news-body p{ font-size:.88rem; color:var(--text-soft); margin-bottom:.7rem; }

/* ============================================================
   EVENTS TIMELINE
   ============================================================ */
.events-section{ background:var(--secondary); color:#fff; }
.event-row{
  display:flex; align-items:center; gap:1.5rem; padding:1.3rem 0; border-bottom:1px solid rgba(255,255,255,.12);
}
.event-row:last-child{ border-bottom:none; }
.event-date{
  font-family:var(--font-mono); text-align:center; flex-shrink:0; width:70px;
  border-right:1px solid rgba(212,175,55,.4); padding-right:1.1rem;
}
.event-date .day{ font-size:1.6rem; font-weight:700; color:var(--accent-light); display:block; line-height:1; }
.event-date .mon{ font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.6); }
.event-info h5{ color:#fff; font-size:1rem; margin:0 0 .25rem; font-family:var(--font-body); font-weight:700; }
.event-info span{ font-size:.82rem; color:rgba(255,255,255,.6); font-family:var(--font-mono); }
.event-arrow{ margin-left:auto; color:var(--accent-light); flex-shrink:0; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:130px; gap:.6rem; }
.gallery-grid .g-item:nth-child(1){ grid-column:span 2; grid-row:span 2; }
.gallery-grid .g-item:nth-child(4){ grid-row:span 2; }
@media (max-width:767px){
  .gallery-grid{ grid-template-columns:repeat(2,1fr); grid-auto-rows:120px; }
  .gallery-grid .g-item:nth-child(1){ grid-column:span 2; grid-row:span 1; }
  .gallery-grid .g-item:nth-child(4){ grid-row:span 1; }
}
.g-item{
  position:relative; border-radius:8px; overflow:hidden;
  background:linear-gradient(135deg, var(--primary), var(--secondary));
  display:flex; align-items:center; justify-content:center;
}
.g-item i{ color:rgba(255,255,255,.45); font-size:1.6rem; }
.g-item .g-label{
  position:absolute; inset:auto 0 0 0; padding:.6rem .8rem; font-size:.76rem; color:#fff; font-weight:600;
  background:linear-gradient(to top, rgba(11,31,58,.85), transparent); opacity:0; transition:opacity .25s ease;
}
.g-item:hover .g-label{ opacity:1; }
.g-item:hover{ box-shadow:inset 0 0 0 3px var(--accent); }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-strip{ background:var(--card); border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); }
.partner-logo{
  height:64px; display:flex; align-items:center; justify-content:center; color:var(--text-soft);
  font-family:var(--font-mono); font-size:.72rem; text-align:center; letter-spacing:.05em;
  border:1px dashed var(--hairline); border-radius:8px; padding:.5rem; opacity:.75; transition:opacity .2s ease;
}
.partner-logo:hover{ opacity:1; color:var(--primary); border-color:var(--primary); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section{
  background:
    radial-gradient(700px 340px at 15% 20%, rgba(212,175,55,.18), transparent 60%),
    linear-gradient(120deg, var(--primary), var(--secondary));
  color:#fff; position:relative; overflow:hidden;
}
.cta-section h2{ color:#fff; }
.cta-section p{ color:rgba(255,255,255,.82); }

/* ============================================================
   FOOTER
   ============================================================ */
footer{ background:var(--secondary); color:rgba(255,255,255,.72); font-size:.9rem; }
footer h6{ color:#fff; font-family:var(--font-body); font-weight:700; font-size:.86rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1.1rem; }
footer a{ color:rgba(255,255,255,.68); }
footer a:hover{ color:var(--accent-light); }
footer ul{ list-style:none; padding:0; margin:0; }
footer li{ margin-bottom:.55rem; }
.footer-top{ padding:4rem 0 2.5rem; }
.footer-brand .name{ font-family:var(--font-display); color:#fff; font-size:1.15rem; font-weight:700; }
.footer-crest{
  width:44px; height:44px; border-radius:50%; border:2px solid var(--accent);
  background:radial-gradient(circle at 35% 30%, #2a4bab, var(--secondary));
  display:flex; align-items:center; justify-content:center;
}
.social-row a{
  width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:inline-flex; align-items:center; justify-content:center; margin-right:.5rem; transition:.2s;
}
.social-row a:hover{ background:var(--accent); border-color:var(--accent); color:var(--secondary); }
.newsletter-form input{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); color:#fff;
  border-radius:4px 0 0 4px;
}
.newsletter-form input::placeholder{ color:rgba(255,255,255,.45); }
.newsletter-form input:focus{ background:rgba(255,255,255,.12); box-shadow:none; border-color:var(--accent); color:#fff; }
.newsletter-form .btn{ border-radius:0 4px 4px 0; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding:1.3rem 0; font-size:.82rem; }
.footer-bottom a{ margin-left:1.2rem; }
.footer-emergency{
  background:rgba(212,175,55,.1); border:1px solid rgba(212,175,55,.3); border-radius:8px; padding:1rem 1.2rem; font-size:.84rem;
}

/* back to top */
.back-to-top{
  position:fixed; right:1.1rem; bottom:5.2rem; z-index:1039;
  width:42px; height:42px; border-radius:50%; background:var(--secondary); color:var(--accent-light);
  display:flex; align-items:center; justify-content:center; border:1px solid var(--accent);
  opacity:0; pointer-events:none; transform:translateY(10px); transition:.3s;
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }

/* reveal on scroll */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* search modal */
.search-modal .modal-content{ background:var(--secondary); border:1px solid var(--accent); }
.search-modal input{
  background:transparent; border:none; border-bottom:2px solid var(--accent); color:#fff; font-size:1.4rem;
  font-family:var(--font-display); padding:.6rem 0;
}
.search-modal input:focus{ box-shadow:none; background:transparent; color:#fff; }
.search-modal input::placeholder{ color:rgba(255,255,255,.4); }

/* styling for welcome bar on the indexHeader page */
.topbar{
    color:#fff;
    height:42px;
    display:flex;
    align-items:center;
}

/* This is the viewport inside the Bootstrap container */
.welcome-wrapper{
    width:100%;
    overflow:hidden;
    white-space:nowrap;
}

/* This is the moving text */
.welcome-scroll{
    display:inline-block;
    padding-left:100%;
    animation: marquee 35s linear infinite;
}

@keyframes marquee{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-100%);
    }
}

/* styling for the gallery page/section */
/* ===================================================
   AFWC Gallery Page — fully scoped, safe alongside other styles
   =================================================== */
.afwc-gallery-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

.afwc-gp-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-gp-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-gp-title{
  font-family:'Cinzel', Georgia, serif;
  color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight:700;
  margin: .6rem 0 .9rem;
  position:relative; z-index:1;
}
.afwc-gp-lede{ color: rgba(255,255,255,.8); max-width: 620px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-gp-coords{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem; letter-spacing:.08em; color: rgba(255,255,255,.55);
  margin-top: 1.6rem; position:relative; z-index:1;
}

/* Filter tabs */
.afwc-gp-tabs{
  display:flex; flex-wrap:wrap; gap:.6rem;
  margin: -1.7rem auto 2.5rem;
  background:#fff;
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 10px 30px rgba(11,31,58,0.14);
  position:relative; z-index:2;
}
.afwc-gp-tab{
  border: 1px solid rgba(11,31,58,0.12);
  background: transparent;
  color:#0B1F3A;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:.82rem;
  padding: .5rem 1rem;
  border-radius: 30px;
  cursor:pointer;
  transition: all .2s ease;
}
.afwc-gp-tab:hover{ border-color:#1F3A93; color:#1F3A93; }
.afwc-gp-tab.active{
  background:#1F3A93;
  border-color:#1F3A93;
  color:#fff;
}

/* Masonry-style grid */
.afwc-gp-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 1rem;
}
.afwc-gp-tall{ grid-row: span 2; }
.afwc-gp-wide{ grid-column: span 2; }

@media (max-width: 991px){
  .afwc-gp-grid{ grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 767px){
  .afwc-gp-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .afwc-gp-wide{ grid-column: span 2; }
  .afwc-gp-tall{ grid-row: span 1; }
}

.afwc-gp-item{
  position:relative;
  margin:0;
  border-radius: 10px;
  overflow:hidden;
  cursor:pointer;
  background: linear-gradient(135deg, #1F3A93, #0B1F3A); /* shows while image loads */
  outline: none;

  /* scroll-reveal starting state */
  opacity: 0;
  transform: translateY(28px) scale(.97);
  transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease;
}
.afwc-gp-item.afwc-gp-in{ opacity:1; transform: translateY(0) scale(1); }
.afwc-gp-item.afwc-gp-hidden{ display:none; }

.afwc-gp-item:hover,
.afwc-gp-item:focus-visible{
  box-shadow: 0 14px 30px rgba(11,31,58,.35);
  transform: translateY(-4px) scale(1.01);
}
.afwc-gp-item.afwc-gp-in:hover{ transform: translateY(-4px) scale(1.01); }

/* The actual photo */
.afwc-gp-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  transition: transform .5s ease, opacity .4s ease;

  /* fade-in-on-load: starts invisible, JS adds .afwc-gp-loaded once decoded */
  opacity: 0;
}
.afwc-gp-media.afwc-gp-loaded{ opacity: 1; }
.afwc-gp-item:hover .afwc-gp-media{ transform: scale(1.06); }

/* Play icon overlay for video tiles */
.afwc-gp-play{
  position:absolute; top:50%; left:50%; transform: translate(-50%, -50%);
  font-size: 2.6rem; color: rgba(255,255,255,.9);
  text-shadow: 0 4px 14px rgba(0,0,0,.5);
  pointer-events:none;
  transition: transform .25s ease;
}
.afwc-gp-item:hover .afwc-gp-play{ transform: translate(-50%, -50%) scale(1.1); }

.afwc-gp-item figcaption{
  position:absolute; inset:auto 0 0 0;
  padding: .9rem 1rem 1rem;
  background: linear-gradient(to top, rgba(11,31,58,.92), transparent);
  display:flex; flex-direction:column; gap:.15rem;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 2;
}
.afwc-gp-item:hover figcaption,
.afwc-gp-item:focus-visible figcaption{ opacity:1; transform: translateY(0); }

.afwc-gp-cat{
  font-family:'JetBrains Mono', monospace;
  font-size:.65rem; letter-spacing:.1em; text-transform:uppercase;
  color:#D4AF37; font-weight:600;
}
.afwc-gp-cap{ color:#fff; font-weight:600; font-size:.88rem; }

.afwc-gp-empty{
  text-align:center; padding: 3rem 0; color:#5B6472; font-style:italic;
}

/* Lightbox */
.afwc-gp-lightbox{
  position: fixed; inset:0; z-index: 2000;
  background: rgba(11,31,58,.96);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transition: opacity .3s ease;
}
.afwc-gp-lightbox.afwc-gp-open{ opacity:1; visibility:visible; }

.afwc-gp-lb-stage{ width:min(760px, 88vw); text-align:center; }

.afwc-gp-lb-media{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:100%; aspect-ratio: 16/10;
  border-radius: 12px;
  overflow:hidden;
  background: linear-gradient(135deg, #1F3A93, #0B1F3A);
  border: 1px solid rgba(212,175,55,.4);
}
.afwc-gp-lb-media img,
.afwc-gp-lb-media video{
  width:100%; height:100%; object-fit: contain; background:#000;
  opacity:0; transition: opacity .35s ease;
}
.afwc-gp-lb-media img.afwc-gp-loaded,
.afwc-gp-lb-media video.afwc-gp-loaded{ opacity:1; }

.afwc-gp-lb-spinner{
  width:34px; height:34px; border-radius:50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #D4AF37;
  animation: afwc-gp-spin .8s linear infinite;
}
@keyframes afwc-gp-spin{ to{ transform: rotate(360deg); } }

.afwc-gp-lb-info{ margin-top: 1.2rem; display:flex; flex-direction:column; gap:.3rem; }
.afwc-gp-lb-title{ color:#fff; font-family:'Cinzel', Georgia, serif; font-size:1.15rem; }

.afwc-gp-lb-close{
  position:absolute; top:1.4rem; right:1.6rem;
  background:transparent; border:1px solid rgba(255,255,255,.3); color:#fff;
  width:40px; height:40px; border-radius:50%; font-size:1.4rem; line-height:1;
  cursor:pointer; transition:.2s;
}
.afwc-gp-lb-close:hover{ border-color:#D4AF37; color:#D4AF37; }

.afwc-gp-lb-nav{
  background:transparent; border:1px solid rgba(255,255,255,.3); color:#fff;
  width:46px; height:46px; border-radius:50%; font-size:1.2rem;
  cursor:pointer; transition:.2s; flex-shrink:0; margin: 0 1.2rem;
}
.afwc-gp-lb-nav:hover{ border-color:#D4AF37; color:#D4AF37; }
@media (max-width: 576px){
  .afwc-gp-lb-nav{ position:absolute; top:50%; transform:translateY(-50%); margin:0; }
  .afwc-gp-lb-prev{ left: .6rem; }
  .afwc-gp-lb-next{ right: .6rem; }
}

/* Intro reveal */
.afwc-gp-reveal{
  opacity:0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.afwc-gp-reveal.afwc-gp-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-gp-item, .afwc-gp-reveal, .afwc-gp-media, .afwc-gp-lb-media img, .afwc-gp-lb-media video{
    transition: none !important; opacity:1 !important; transform:none !important;
  }
}

/* styling for the news page/section */
/* ===================================================
   AFWC News & Events Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-news-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

.afwc-np-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-np-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-np-title{
  font-family:'Cinzel', Georgia, serif;
  color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight:700;
  margin: .6rem 0 .9rem;
  position:relative; z-index:1;
}
.afwc-np-lede{ color: rgba(255,255,255,.8); max-width: 620px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-np-coords{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem; letter-spacing:.08em; color: rgba(255,255,255,.55);
  margin-top: 1.6rem; position:relative; z-index:1;
}

/* Toolbar: search + filter tabs */
.afwc-np-toolbar{
  margin: -1.7rem auto 2.5rem;
  background:#fff;
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 10px 30px rgba(11,31,58,0.14);
  position:relative; z-index:2;
  display:flex; flex-direction:column; gap:.9rem;
}

.afwc-np-search{
  position:relative;
  display:flex; align-items:center;
  border: 1.5px solid rgba(11,31,58,0.14);
  border-radius: 8px;
  padding: .55rem .9rem;
  transition: border-color .2s ease;
}
.afwc-np-search:focus-within{ border-color:#1F3A93; }
.afwc-np-search i{ color:#5B6472; margin-right:.6rem; font-size:.95rem; }
.afwc-np-search input{
  flex:1; border:none; outline:none; font-family:'Inter', sans-serif;
  font-size:.9rem; color:#222; background:transparent;
}
.afwc-np-search input::placeholder{ color:#9aa4b2; }
.afwc-np-search-clear{
  background:transparent; border:none; color:#5B6472; font-size:1.2rem;
  line-height:1; cursor:pointer; padding:0 .2rem;
}
.afwc-np-search-clear:hover{ color:#1F3A93; }

.afwc-np-tabs{ display:flex; flex-wrap:wrap; gap:.6rem; }
.afwc-np-tab{
  border: 1px solid rgba(11,31,58,0.12);
  background: transparent;
  color:#0B1F3A;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:.82rem;
  padding: .5rem 1rem;
  border-radius: 30px;
  cursor:pointer;
  transition: all .2s ease;
}
.afwc-np-tab:hover{ border-color:#1F3A93; color:#1F3A93; }
.afwc-np-tab.active{
  background:#1F3A93;
  border-color:#1F3A93;
  color:#fff;
}

/* Scroll-reveal for cards + intro */
.afwc-np-reveal,
.afwc-np-card-col{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.afwc-np-reveal.afwc-np-in,
.afwc-np-card-col.afwc-np-in{
  opacity: 1;
  transform: translateY(0);
}

/* Hide filtered-out / off-page cards */
.afwc-np-card-col.afwc-np-hidden{ display:none; }

.afwc-np-empty{
  text-align:center; padding: 3rem 0; color:#5B6472; font-style:italic;
}

/* Date/time meta line inside existing news-card */
.news-meta{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem;
  color:#5B6472;
  letter-spacing:.02em;
  margin-bottom:.9rem !important;
}

/* Pagination */
.afwc-np-pagination{
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  margin-top: 2.5rem; flex-wrap:wrap;
}
.afwc-np-page-btn{
  min-width:38px; height:38px; padding:0 .5rem; border-radius:8px;
  border:1px solid rgba(11,31,58,0.14); background:#fff; color:#0B1F3A;
  font-family:'JetBrains Mono', monospace; font-weight:600; font-size:.85rem; cursor:pointer;
  transition: all .2s ease; display:flex; align-items:center; justify-content:center;
}
.afwc-np-page-btn:hover:not(:disabled){ border-color:#1F3A93; color:#1F3A93; }
.afwc-np-page-btn.active{ background:#1F3A93; border-color:#1F3A93; color:#fff; }
.afwc-np-page-btn:disabled{ opacity:.35; cursor:not-allowed; }

.afwc-np-page-info{
  font-family:'JetBrains Mono', monospace; font-size:.76rem; color:#5B6472;
  text-align:center; margin-top: .9rem;
}

@media (prefers-reduced-motion: reduce){
  .afwc-np-reveal, .afwc-np-card-col{ transition:none !important; opacity:1 !important; transform:none !important; }
}


/* styling for preloader */
/* ===================================================
   AFWC Preloader — scoped, safe alongside existing styles
   =================================================== */
.afwc-preloader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity .45s ease, visibility .45s ease;
}
.afwc-preloader.afwc-preloader-hide{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.afwc-preloader-mark{
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.afwc-preloader-ring{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.afwc-preloader-track{
  fill: none;
  stroke: rgba(212,175,55,0.18);
  stroke-width: 3;
}
.afwc-preloader-arc{
  fill: none;
  stroke: #D4AF37;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 200;
  animation: afwc-preloader-spin 1.1s linear infinite;
}
@keyframes afwc-preloader-spin{
  0%{ transform: rotate(0deg); stroke-dashoffset: 200; }
  50%{ stroke-dashoffset: 40; }
  100%{ transform: rotate(360deg); stroke-dashoffset: 200; }
}

/* Logo sits centered inside the spinning ring */
.afwc-preloader-logo{
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  animation: afwc-preloader-pulse 1.6s ease-in-out infinite;
}
@keyframes afwc-preloader-pulse{
  0%, 100%{ opacity: .75; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.06); }
}

.afwc-preloader-text{
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.afwc-preloader-name{
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .04em;
}
.afwc-preloader-sub{
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-top: .2rem;
}

@media (prefers-reduced-motion: reduce){
  .afwc-preloader-arc, .afwc-preloader-logo{ animation: none; }
}

/* styling for error 404 page/section */
/* ===================================================
   AFWC 404 Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-404-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(212,175,55,.14), transparent 60%),
    linear-gradient(160deg, #0B1F3A 0%, #10254a 55%, #1F3A93 145%);
  color: #fff;
  padding: 6rem 0;
}

.afwc-404-grid-lines{
  position:absolute; inset:0; opacity:.14; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(circle at 50% 50%, black, transparent 75%);
}

.afwc-404-radar{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:min(80vw, 820px); height:min(80vw, 820px); pointer-events:none; opacity:.35;
}
.afwc-404-ring{
  position:absolute; border:1px solid rgba(212,175,55,.35); border-radius:50%; inset:0;
}
.afwc-404-ring.r2{ inset:16%; }
.afwc-404-ring.r3{ inset:32%; }
.afwc-404-cross{
  position:absolute; inset:0;
  background:
    linear-gradient(rgba(212,175,55,.3) 1px, transparent 1px) center/100% 1px no-repeat,
    linear-gradient(90deg, rgba(212,175,55,.3) 1px, transparent 1px) center/1px 100% no-repeat;
}
.afwc-404-sweep{
  position:absolute; inset:0; border-radius:50%; overflow:hidden;
  animation: afwc-404-spin 7s linear infinite;
}
.afwc-404-sweep::before{
  content:""; position:absolute; inset:0;
  background:conic-gradient(from 0deg, rgba(212,175,55,.5), transparent 20%, transparent 100%);
}
@keyframes afwc-404-spin{ from{ transform:rotate(0deg);} to{ transform:rotate(360deg);} }

.afwc-404-content{
  position: relative;
  z-index: 2;
  text-align: center;
}
.afwc-404-reveal{
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: afwc-404-fadeup .8s ease forwards .1s;
}
@keyframes afwc-404-fadeup{
  to{ opacity: 1; transform: translateY(0); }
}

.afwc-404-code{
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(212,175,55,.7);
  margin: 1rem 0 .5rem;
  letter-spacing: .02em;
}

.afwc-404-title{
  font-family: 'Cinzel', Georgia, serif;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .9rem;
}

.afwc-404-lede{
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
  margin: 0 auto 2rem;
  max-width: 520px;
}

/* Search bar */
.afwc-404-search{
  display:flex; align-items:center;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: .5rem .5rem .5rem 1rem;
  max-width: 460px;
  margin: 0 auto 2rem;
  transition: border-color .2s ease;
}
.afwc-404-search:focus-within{ border-color:#D4AF37; }
.afwc-404-search i{ color: rgba(255,255,255,.5); margin-right:.6rem; }
.afwc-404-search input{
  flex:1; background:transparent; border:none; outline:none; color:#fff;
  font-family:'Inter', sans-serif; font-size:.92rem;
}
.afwc-404-search input::placeholder{ color: rgba(255,255,255,.45); }
.afwc-404-search-btn{
  background:#D4AF37; color:#0B1F3A; border:none; border-radius:5px;
  font-weight:700; font-size:.82rem; padding:.55rem 1.1rem; cursor:pointer;
  transition: background .2s ease;
}
.afwc-404-search-btn:hover{ background:#E9CE83; }

.afwc-404-actions{
  display:flex; gap:.9rem; justify-content:center; flex-wrap:wrap; margin-bottom: 3rem;
}

/* Quick links */
.afwc-404-quicklinks-label{
  display:block;
  font-family:'JetBrains Mono', monospace;
  font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 1.1rem;
}
.afwc-404-links-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 576px){
  .afwc-404-links-grid{ grid-template-columns: repeat(2, 1fr); }
}
.afwc-404-links-grid a{
  display:flex; align-items:center; gap:.5rem; justify-content:center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: .7rem .6rem;
  color: rgba(255,255,255,.85);
  font-size: .82rem; font-weight: 600;
  text-decoration:none;
  transition: all .2s ease;
}
.afwc-404-links-grid a:hover{
  border-color:#D4AF37; color:#D4AF37; background: rgba(212,175,55,.08);
  transform: translateY(-2px);
}
.afwc-404-links-grid i{ font-size: .95rem; }

.afwc-404-coords{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem; letter-spacing:.08em; color: rgba(255,255,255,.4);
  margin-top: 2.8rem;
}

@media (prefers-reduced-motion: reduce){
  .afwc-404-sweep{ animation: none; }
  .afwc-404-reveal{ animation: none; opacity: 1; transform: none; }
}

/* styling for organizational_structure page/section */
/* ===================================================
   AFWC Organizational Structure — scoped, safe alongside existing styles
   =================================================== */
.afwc-org-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

.afwc-org-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-org-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-org-title{
  font-family:'Cinzel', Georgia, serif;
  color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight:700;
  margin: .6rem 0 .9rem;
  position:relative; z-index:1;
}
.afwc-org-lede{ color: rgba(255,255,255,.8); max-width: 640px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-org-coords{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem; letter-spacing:.08em; color: rgba(255,255,255,.55);
  margin-top: 1.6rem; position:relative; z-index:1;
}

/* Summary cards */
.afwc-org-summary{ margin: -1.7rem auto 3rem; position:relative; z-index:2; }
.afwc-org-summary-card{
  background:#fff; border-radius: 12px; padding: 1.4rem 1.1rem; text-align:center;
  box-shadow: 0 10px 26px rgba(11,31,58,0.12); height:100%;
  border-top: 3px solid #D4AF37;
}
.afwc-org-summary-icon{
  width:46px; height:46px; border-radius:50%; background:#F5F7FA;
  display:flex; align-items:center; justify-content:center; margin: 0 auto .8rem;
  color:#1F3A93; font-size:1.2rem; border:1px solid rgba(11,31,58,0.1);
}
.afwc-org-summary-card h5{
  font-family:'Inter', sans-serif; font-weight:700; font-size:.92rem; color:#0B1F3A; margin-bottom:.3rem;
}
.afwc-org-summary-card p{ font-size:.8rem; color:#5B6472; margin:0; }

/* Figure / image display */
.afwc-org-figure{ margin-bottom: 3.5rem; }
.afwc-org-figure-eyebrow{
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.16em;
  text-transform:uppercase; color:#D4AF37; font-weight:600;
}
.afwc-org-figure-head{
  display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:1rem;
  margin-bottom: 1.4rem;
}
.afwc-org-figure-head h2{
  font-family:'Cinzel', Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color:#0B1F3A; margin: .3rem 0 0;
}
.afwc-org-figure-actions{ display:flex; gap:.7rem; flex-wrap:wrap; }

.afwc-org-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  border: 1.5px solid #1F3A93; color:#1F3A93; background:transparent;
  font-weight:600; font-size:.84rem; padding:.6rem 1.1rem; border-radius:6px;
  cursor:pointer; text-decoration:none; transition: all .2s ease;
}
.afwc-org-btn:hover{ background:#1F3A93; color:#fff; }
.afwc-org-btn-gold{ border-color:#D4AF37; color:#0B1F3A; background:#D4AF37; }
.afwc-org-btn-gold:hover{ background:#E9CE83; border-color:#E9CE83; color:#0B1F3A; }

.afwc-org-frame{
  position:relative;
  background:#fff;
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(11,31,58,0.1);
  cursor: zoom-in;
  outline: none;
}
.afwc-org-frame:focus-visible{ outline: 3px solid #D4AF37; outline-offset: 3px; }

.afwc-org-corner{
  position:absolute; width:22px; height:22px; border: 2px solid #D4AF37;
}
.afwc-org-corner-tl{ top:10px; left:10px; border-right:0; border-bottom:0; }
.afwc-org-corner-tr{ top:10px; right:10px; border-left:0; border-bottom:0; }
.afwc-org-corner-bl{ bottom:10px; left:10px; border-right:0; border-top:0; }
.afwc-org-corner-br{ bottom:10px; right:10px; border-left:0; border-top:0; }

.afwc-org-img{
  width:100%; height:auto; display:block; border-radius:6px;
  background: linear-gradient(135deg, #eef1f6, #dde3ec);
}

.afwc-org-frame-hint{
  position:absolute; bottom: 1.6rem; right: 1.6rem;
  background: rgba(11,31,58,0.85); color:#fff;
  font-size:.74rem; font-weight:600; padding:.4rem .8rem; border-radius:20px;
  display:flex; align-items:center; gap:.35rem;
  opacity:0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.afwc-org-frame:hover .afwc-org-frame-hint{ opacity:1; transform: translateY(0); }

.afwc-org-figure-caption{
  font-size:.85rem; color:#5B6472; margin-top: 1rem;
}

/* Glossary */
.afwc-org-glossary{
  background:#fff; border-radius: 14px; padding: 2rem;
  box-shadow: 0 10px 30px rgba(11,31,58,0.08);
}
.afwc-org-glossary-head{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:1.2rem;
  margin-bottom: 1.6rem;
}
.afwc-org-glossary-head h2{
  font-family:'Cinzel', Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color:#0B1F3A; margin: .3rem 0 .3rem;
}
.afwc-org-glossary-lede{ color:#5B6472; font-size:.9rem; margin:0; }

.afwc-org-glossary-search{
  display:flex; align-items:center;
  border: 1.5px solid rgba(11,31,58,0.14); border-radius: 8px;
  padding: .55rem .9rem; min-width: 260px;
  transition: border-color .2s ease;
}
.afwc-org-glossary-search:focus-within{ border-color:#1F3A93; }
.afwc-org-glossary-search i{ color:#5B6472; margin-right:.6rem; }
.afwc-org-glossary-search input{
  border:none; outline:none; flex:1; font-family:'Inter', sans-serif; font-size:.88rem;
}

.afwc-org-glossary-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem 1.4rem;
}
@media (max-width: 900px){ .afwc-org-glossary-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .afwc-org-glossary-grid{ grid-template-columns: 1fr; } }

.afwc-org-glossary-item{
  display:flex; align-items:baseline; gap:.7rem;
  padding: .7rem .2rem; border-bottom: 1px dashed rgba(11,31,58,0.1);
}
.afwc-org-glossary-item.afwc-org-hidden{ display:none; }

.afwc-org-abbr{
  font-family:'JetBrains Mono', monospace; font-weight:700; font-size:.82rem;
  color:#1F3A93; background:#F5F7FA; border-radius:5px; padding:.2rem .5rem;
  flex-shrink:0; min-width:64px; text-align:center;
}
.afwc-org-full{ font-size:.85rem; color:#333; }

.afwc-org-glossary-empty{
  text-align:center; padding: 2rem 0; color:#5B6472; font-style:italic;
}

/* Lightbox */
.afwc-org-lightbox{
  position: fixed; inset:0; z-index: 2000;
  background: rgba(11,31,58,.96);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; padding: 2rem;
  transition: opacity .3s ease;
}
.afwc-org-lightbox.afwc-org-open{ opacity:1; visibility:visible; }
.afwc-org-lb-stage{ width:100%; max-width: 1100px; text-align:center; }
.afwc-org-lb-media{
  position:relative; display:flex; align-items:center; justify-content:center;
  min-height: 300px;
}
.afwc-org-lb-media img{
  max-width:100%; max-height: 82vh; border-radius: 8px;
  border: 1px solid rgba(212,175,55,.4);
  opacity:0; transition: opacity .35s ease;
}
.afwc-org-lb-media img.afwc-org-loaded{ opacity:1; }
.afwc-org-lb-spinner{
  width:34px; height:34px; border-radius:50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #D4AF37;
  animation: afwc-org-spin .8s linear infinite;
}
@keyframes afwc-org-spin{ to{ transform: rotate(360deg); } }
.afwc-org-lb-close{
  position:absolute; top:1.4rem; right:1.6rem;
  background:transparent; border:1px solid rgba(255,255,255,.3); color:#fff;
  width:40px; height:40px; border-radius:50%; font-size:1.4rem; line-height:1;
  cursor:pointer; transition:.2s;
}
.afwc-org-lb-close:hover{ border-color:#D4AF37; color:#D4AF37; }

/* Reveal */
.afwc-org-reveal{
  opacity:0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.afwc-org-reveal.afwc-org-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-org-reveal, .afwc-org-lb-media img{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* styling for history page/section */
/* ===================================================
   AFWC History Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-history-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

.afwc-history-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-history-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-history-title{
  font-family:'Cinzel', Georgia, serif;
  color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight:700;
  margin: .6rem 0 .9rem;
  position:relative; z-index:1;
}
.afwc-history-lede{ color: rgba(255,255,255,.8); max-width: 640px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-history-coords{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem; letter-spacing:.08em; color: rgba(255,255,255,.55);
  margin-top: 1.6rem; position:relative; z-index:1;
}

/* Narrative */
.afwc-history-narrative{ padding: 4.5rem 0; }

.afwc-history-visual{
  position:relative; border-radius:14px; overflow:hidden;
  background:linear-gradient(155deg, #0B1F3A, #1F3A93);
  aspect-ratio:4/3.4; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 34px rgba(11,31,58,0.12);
}
.afwc-history-visual svg{ width:56%; opacity:.92; }
.afwc-history-corner{ position:absolute; width:26px; height:26px; border:2px solid #D4AF37; }
.afwc-history-corner-tl{ top:14px; left:14px; border-right:0; border-bottom:0; }
.afwc-history-corner-br{ bottom:14px; right:14px; border-left:0; border-top:0; }

.afwc-history-h2{
  font-family:'Cinzel', Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color:#0B1F3A;
  font-weight:700;
  margin: .6rem 0 1.1rem;
}
.afwc-history-p{
  color:#5B6472;
  font-size: 1rem;
  line-height:1.75;
  margin-bottom: 1.1rem;
}

.afwc-history-quote{
  border-left: 3px solid #D4AF37;
  padding: .3rem 0 .3rem 1.4rem;
  margin-top: 1.6rem;
}
.afwc-history-quote-mark{
  font-family:'Cinzel', Georgia, serif;
  font-size: 2.2rem;
  color:#D4AF37;
  line-height:1;
  display:block;
  opacity:.8;
}
.afwc-history-quote p{
  font-style: italic;
  color:#0B1F3A;
  font-size: 1rem;
  margin: .3rem 0 .5rem;
}
.afwc-history-quote-source{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:#5B6472;
}

/* Timeline */
.afwc-history-timeline-wrap{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  padding: 4.5rem 0;
  margin: 1rem 0 4.5rem;
}
.afwc-history-section-head{ margin-bottom: 3rem; }

.afwc-history-timeline{
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.afwc-history-timeline::before{
  content:"";
  position:absolute;
  left: 68px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(212,175,55,.3);
}
@media (max-width: 576px){
  .afwc-history-timeline::before{ left: 26px; }
}

.afwc-history-tl-item{
  display:flex;
  gap: 1.6rem;
  padding-bottom: 2.4rem;
  position: relative;
}
.afwc-history-tl-item:last-child{ padding-bottom: 0; }

.afwc-history-tl-marker{
  flex-shrink:0;
  width: 88px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  position:relative;
  z-index:1;
}
@media (max-width: 576px){ .afwc-history-tl-marker{ width: 52px; } }

.afwc-history-tl-year{
  background: #D4AF37;
  color:#0B1F3A;
  font-family:'JetBrains Mono', monospace;
  font-weight:700;
  font-size:.72rem;
  padding: .4rem .6rem;
  border-radius: 20px;
  text-align:center;
  white-space:nowrap;
  box-shadow: 0 0 0 4px rgba(11,31,58,1), 0 0 0 5px rgba(212,175,55,.4);
}

.afwc-history-tl-content{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  flex: 1;
}
.afwc-history-tl-content h5{
  font-family:'Inter', sans-serif;
  font-weight:700;
  color:#fff;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.afwc-history-tl-content p{
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  line-height:1.7;
  margin:0;
}

.afwc-history-tl-note{
  text-align:center;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  max-width: 640px;
  margin: 3rem auto 0;
}

/* Permanent site callout */
.afwc-history-callout{
  display:flex;
  gap: 1.4rem;
  align-items:flex-start;
  background:#fff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(11,31,58,0.08);
  border-left: 4px solid #D4AF37;
}
.afwc-history-callout-icon{
  width: 52px; height: 52px; border-radius: 50%;
  background: #F5F7FA;
  display:flex; align-items:center; justify-content:center;
  color:#1F3A93; font-size: 1.4rem; flex-shrink:0;
  border: 1px solid rgba(11,31,58,0.1);
}
.afwc-history-callout-body h5{
  font-family:'Inter', sans-serif;
  font-weight:700;
  color:#0B1F3A;
  margin-bottom: .5rem;
}
.afwc-history-callout-body p{
  color:#5B6472;
  font-size:.92rem;
  margin:0;
  line-height:1.7;
}

/* Reveal */
.afwc-history-reveal{
  opacity:0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.afwc-history-reveal.afwc-history-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-history-reveal{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* styling for the leadership section/page */
/* ===================================================
   AFWC Leadership Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-lead-page{ background: var(--bg, #F5F7FA); padding-bottom: 2rem; }

.afwc-lead-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-lead-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-lead-title{
  font-family:'Cinzel', Georgia, serif; color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight:700;
  margin: .6rem 0 .9rem; position:relative; z-index:1;
}
.afwc-lead-lede{ color: rgba(255,255,255,.8); max-width: 660px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-lead-coords{
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.08em;
  color: rgba(255,255,255,.55); margin-top: 1.6rem; position:relative; z-index:1;
}

/* ---------- Commandant featured ---------- */
.afwc-lead-commandant-wrap{ margin: -2.2rem auto 5rem; position:relative; z-index: 3; }

.afwc-lead-commandant{
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(11,31,58,0.16);
  display:grid;
  grid-template-columns: 340px 1fr;
  overflow:hidden;
}
@media (max-width: 860px){
  .afwc-lead-commandant{ grid-template-columns: 1fr; }
}

/* Commandant photo — framed, locked, bulletproof sizing */
.afwc-lead-comd-media{
  position:relative;
  background: linear-gradient(160deg, #0B1F3A, #1F3A93);
  padding: 1.6rem;
  display:flex;
  align-items:center;
  justify-content:center;
}
.afwc-lead-comd-frame{
  width:100%;
  height:100%;
}
.afwc-lead-comd-photo-box{
  position:relative;
  width:100%;
  aspect-ratio: 3 / 3.6;
  border-radius: 8px;
  overflow:hidden;
  background:#0B1F3A;
  border: 3px solid rgba(212,175,55,.9);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* Bulletproof image forcing — applies to Commandant AND every Director/DS photo */
.afwc-lead-force-fit{
  position:absolute !important;
  top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  min-width:100% !important;
  min-height:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  object-fit:cover !important;
  object-position: center top !important;
  display:block !important;
  transition: transform .5s ease;
}
.afwc-lead-commandant:hover .afwc-lead-comd-img{ transform: scale(1.05); }

.afwc-lead-comd-insignia{
  position:absolute; bottom: 1.6rem; right: 1.6rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: #D4AF37; color:#0B1F3A;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  z-index: 2;
  transform: scale(0);
  animation: afwc-lead-pop .5s cubic-bezier(.34,1.56,.64,1) forwards .5s;
}
@keyframes afwc-lead-pop{ to{ transform: scale(1); } }

.afwc-lead-comd-body{ padding: 2.6rem 2.8rem; }
.afwc-lead-comd-name{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight:700; margin: .5rem 0 .3rem;
}
.afwc-lead-comd-role{
  display:block; font-family:'JetBrains Mono', monospace; font-size:.78rem;
  letter-spacing:.05em; color:#1F3A93; font-weight:600; margin-bottom: 1.3rem;
}
.afwc-lead-comd-bio{ color:#5B6472; font-size: .96rem; line-height:1.8; margin-bottom: 1.4rem; }

.afwc-lead-comd-quote{
  border-left: 3px solid #D4AF37;
  padding: .2rem 0 .2rem 1.3rem;
  margin-bottom: 1.6rem;
}
.afwc-lead-quote-mark{
  font-family:'Cinzel', Georgia, serif; font-size: 1.8rem; color:#D4AF37; line-height:1; opacity:.85;
}
.afwc-lead-comd-quote p{
  font-style: italic; color:#0B1F3A; font-size:.95rem; margin: .2rem 0 0;
}

.afwc-lead-comd-meta{ display:flex; gap: 1.8rem; flex-wrap:wrap; }
.afwc-lead-comd-meta div{
  display:flex; align-items:center; gap:.5rem;
  font-family:'JetBrains Mono', monospace; font-size:.76rem; color:#5B6472;
}
.afwc-lead-comd-meta i{ color:#D4AF37; }

/* ---------- Section bands / heads ---------- */
.afwc-lead-section-band{ background:#fff; padding: 4.5rem 0; }
.afwc-lead-admin-band{ background: var(--bg, #F5F7FA); }
.afwc-lead-ds-wrap{ padding: 4.5rem 0; }

.afwc-lead-section-head{ text-align:center; max-width:640px; margin: 0 auto 3rem; }
.afwc-lead-h2{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A;
  font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight:700; margin: .6rem 0 .7rem;
}
.afwc-lead-section-lede{ color:#5B6472; font-size:.96rem; margin:0; }

/* ---------- Card grid (Directors) ---------- */
.afwc-lead-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
@media (max-width: 991px){ .afwc-lead-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .afwc-lead-grid{ grid-template-columns: 1fr; } }

.afwc-lead-grid-ds{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px){ .afwc-lead-grid-ds{ grid-template-columns: repeat(2, 1fr); } }

.afwc-lead-card{
  background:#fff; border-radius: 12px; overflow:hidden;
  box-shadow: 0 8px 22px rgba(11,31,58,0.08);
  border: 1px solid rgba(11,31,58,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.afwc-lead-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11,31,58,0.18);
}

/* Director / Directing Staff card photo — framed, locked, gold-bordered like the Commandant */
.afwc-lead-card-photo-frame{
  position:relative;
  background:#fff;
  padding: .9rem .9rem 0;
}
.afwc-lead-card-media{
  position:relative;
  width:100%;
  aspect-ratio: 4 / 4.4;
  border-radius: 8px;
  overflow:hidden;
  background: linear-gradient(160deg, #0B1F3A, #1F3A93);
  border: 3px solid rgba(212,175,55,.9);
  box-shadow: 0 8px 20px rgba(11,31,58,.18);
}
.afwc-lead-card:hover .afwc-lead-card-media .afwc-lead-force-fit{ transform: scale(1.08); }

.afwc-lead-rank-tag{
  position:absolute; top: 1.3rem; left: 1.3rem;
  background: rgba(212,175,55,0.95); color:#0B1F3A;
  font-family:'JetBrains Mono', monospace; font-weight:700; font-size:.68rem;
  padding: .3rem .6rem; border-radius: 4px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

.afwc-lead-card-body{ padding: 1.2rem 1.3rem 1.4rem; }
.afwc-lead-card-body h5{
  font-family:'Inter', sans-serif; font-weight:700; color:#0B1F3A;
  font-size: .98rem; margin-bottom: .2rem;
}
.afwc-lead-card-role{
  display:block; font-family:'JetBrains Mono', monospace; font-size:.7rem;
  letter-spacing:.04em; color:#1F3A93; font-weight:600; margin-bottom: .7rem;
}
.afwc-lead-card-body p{ color:#5B6472; font-size:.85rem; line-height:1.65; margin:0; }

/* Directing Staff cards use a slightly shorter frame since there's no bio text below */
.afwc-lead-card-ds .afwc-lead-card-media{ aspect-ratio: 4 / 3.8; }
.afwc-lead-card-ds .afwc-lead-card-body{ padding: 1.1rem 1.2rem; text-align:center; }
.afwc-lead-card-ds .afwc-lead-card-role{ margin-bottom:0; }

/* ---------- Administrative officers list ---------- */
.afwc-lead-admin-list{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 767px){ .afwc-lead-admin-list{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .afwc-lead-admin-list{ grid-template-columns: 1fr; } }

.afwc-lead-admin-item{
  display:flex; align-items:center; gap: .9rem;
  background:#fff; border-radius: 10px; padding: 1.1rem 1.2rem;
  border: 1px solid rgba(11,31,58,0.08);
  box-shadow: 0 6px 16px rgba(11,31,58,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.afwc-lead-admin-item:hover{ transform: translateY(-3px); box-shadow: 0 12px 26px rgba(11,31,58,0.12); }
.afwc-lead-admin-item i{
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg, #F5F7FA); color:#1F3A93;
  display:flex; align-items:center; justify-content:center;
  font-size: 1.1rem; flex-shrink:0;
}
.afwc-lead-admin-item strong{ display:block; font-size:.88rem; color:#0B1F3A; }
.afwc-lead-admin-item span{ display:block; font-size:.74rem; color:#5B6472; font-family:'JetBrains Mono', monospace; }

/* ---------- Scroll reveal ---------- */
.afwc-lead-reveal{
  opacity:0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.afwc-lead-reveal.afwc-lead-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-lead-reveal, .afwc-lead-force-fit, .afwc-lead-comd-insignia{
    transition:none !important; animation:none !important; opacity:1 !important; transform:none !important;
  }
}
.afwc-lead-comd-photo-box{
  position:relative;
  width:100%;
  aspect-ratio: 3 / 3.6;
  border-radius: 8px;
  overflow:hidden;
  background:#0B1F3A;
  border: 3px solid rgba(212,175,55,.9);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  padding: 14px;              /* ← ADD THIS — controls how much navy shows around the photo */
}

/* Director / Directing Staff photo — OUTER box: padding + navy background shows here */
.afwc-lead-card-media{
  position:relative;
  width:100%;
  aspect-ratio: 4 / 4.4;
  border-radius: 8px;
  overflow:hidden;
  background: linear-gradient(160deg, #0B1F3A, #1F3A93);
  border: 3px solid rgba(212,175,55,.9);
  box-shadow: 0 8px 20px rgba(11,31,58,.18);

  /* This padding is what forces the navy background to show around the photo */
  padding: 14px;

  /* Center the smaller inner photo box inside the padded area */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* INNER box — this is what actually holds and sizes the photo */
.afwc-lead-card-photo-inner{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

/* The image now fills only the INNER box, not the outer padded box */
.afwc-lead-card-photo-inner .afwc-lead-force-fit{
  position:absolute !important;
  top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  min-width:100% !important;
  min-height:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:none !important;
  border-radius:4px !important;
  object-fit:cover !important;
  object-position: center top !important;
  display:block !important;
  transition: transform .5s ease;
}

.afwc-lead-card:hover .afwc-lead-card-photo-inner .afwc-lead-force-fit{ transform: scale(1.08); }

/* Directing Staff cards keep their shorter frame */
.afwc-lead-card-ds .afwc-lead-card-media{ aspect-ratio: 4 / 3.8; }

.afwc-lead-force-fit{
  /* ...all your existing rules stay exactly the same... */
  border-radius: 4px !important;   /* ← change this one line from 0 to 4px */
}

/* styling for the academics page */
/* ===================================================
   AFWC Academics Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-acad-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

.afwc-acad-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-acad-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-acad-title{
  font-family:'Cinzel', Georgia, serif; color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight:700;
  margin: .6rem 0 .9rem; position:relative; z-index:1;
}
.afwc-acad-lede{ color: rgba(255,255,255,.8); max-width: 660px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-acad-coords{
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.08em;
  color: rgba(255,255,255,.55); margin-top: 1.6rem; position:relative; z-index:1;
}

/* Programme selector pills */
.afwc-acad-selector{
  display:flex; flex-wrap:wrap; gap:.7rem;
  margin: -1.7rem auto 3rem;
  background:#fff;
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 10px 30px rgba(11,31,58,0.14);
  position:relative; z-index:2;
}
.afwc-acad-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  border: 1px solid rgba(11,31,58,0.12);
  background: transparent;
  color:#0B1F3A;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:.85rem;
  padding: .65rem 1.2rem;
  border-radius: 30px;
  cursor:pointer;
  transition: all .2s ease;
}
.afwc-acad-pill:hover{ border-color:#1F3A93; color:#1F3A93; }
.afwc-acad-pill.active{
  background:#1F3A93;
  border-color:#1F3A93;
  color:#fff;
}
.afwc-acad-pill i{ font-size:.9rem; }

/* Programme panels */
.afwc-acad-programme.afwc-acad-hidden{ display:none; }

.afwc-acad-verified-tag,
.afwc-acad-unverified-tag{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:'JetBrains Mono', monospace; font-size:.74rem; font-weight:600;
  padding: .5rem 1rem; border-radius: 20px; margin-bottom: 1.4rem;
}
.afwc-acad-verified-tag{
  background: rgba(31,58,147,0.08); color:#1F3A93; border: 1px solid rgba(31,58,147,0.25);
}
.afwc-acad-unverified-tag{
  background: rgba(212,175,55,0.12); color:#8a6c1f; border: 1px solid rgba(212,175,55,0.4);
}

.afwc-acad-panel{
  background:#fff; border-radius: 16px; padding: 2.6rem;
  box-shadow: 0 10px 34px rgba(11,31,58,0.1);
  margin-bottom: 4rem;
}
@media (max-width: 576px){ .afwc-acad-panel{ padding: 1.6rem; } }

.afwc-acad-panel-head{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:2rem;
  padding-bottom: 2rem; margin-bottom: 2rem;
  border-bottom: 1px solid rgba(11,31,58,0.08);
}
.afwc-acad-panel-tag{
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; color:#D4AF37; font-weight:700;
}
.afwc-acad-panel-head h2{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight:700; margin: .5rem 0 .8rem;
}
.afwc-acad-panel-lede{ color:#5B6472; font-size:.98rem; max-width: 520px; margin:0; line-height:1.7; }

.afwc-acad-stat-cluster{ display:flex; gap: 1.4rem; flex-wrap:wrap; align-items:flex-start; }
.afwc-acad-stat{
  text-align:center; min-width: 72px;
  background: var(--bg, #F5F7FA); border-radius: 10px; padding: .9rem .6rem;
  border-top: 3px solid #D4AF37;
}
.afwc-acad-stat span{
  display:block; font-family:'JetBrains Mono', monospace; font-weight:700;
  font-size:1.5rem; color:#1F3A93;
}
.afwc-acad-stat small{
  display:block; font-size:.66rem; text-transform:uppercase; letter-spacing:.06em;
  color:#5B6472; font-weight:600; margin-top:.2rem;
}

/* Detail cards */
.afwc-acad-detail-row{ margin-bottom: 2.6rem; }
.afwc-acad-detail-card{
  background: var(--bg, #F5F7FA); border-radius: 12px; padding: 1.5rem 1.6rem; height:100%;
  border-left: 3px solid #1F3A93;
}
.afwc-acad-detail-icon{
  width:42px; height:42px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center; margin-bottom: .9rem;
  color:#1F3A93; font-size:1.1rem; border:1px solid rgba(11,31,58,0.08);
}
.afwc-acad-detail-card h5{ font-family:'Inter', sans-serif; font-weight:700; color:#0B1F3A; font-size:.98rem; margin-bottom:.5rem; }
.afwc-acad-detail-card p{ color:#5B6472; font-size:.88rem; line-height:1.7; margin:0; }

/* Subheads */
.afwc-acad-subhead{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size:1.2rem; font-weight:700;
  margin: 0 0 1.4rem; padding-top: .5rem;
}

/* Phase track */
.afwc-acad-phases{ margin-bottom: 2.8rem; }
.afwc-acad-phase-track{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
@media (max-width: 991px){ .afwc-acad-phase-track{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .afwc-acad-phase-track{ grid-template-columns: 1fr; } }

.afwc-acad-phase{
  background: linear-gradient(160deg, #0B1F3A, #1F3A93);
  border-radius: 12px; padding: 1.5rem 1.3rem; color:#fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.afwc-acad-phase:hover{ transform: translateY(-6px); box-shadow: 0 16px 30px rgba(11,31,58,0.22); }
.afwc-acad-phase-num{
  font-family:'Cinzel', Georgia, serif; font-size:1.6rem; font-weight:700; color:#D4AF37; margin-bottom:.6rem;
}
.afwc-acad-phase-body h5{ font-size:.94rem; font-weight:700; color:#fff; margin-bottom:.7rem; }
.afwc-acad-phase-body ul{ padding-left: 1.1rem; margin:0; }
.afwc-acad-phase-body li{ font-size:.78rem; color: rgba(255,255,255,.8); line-height:1.6; margin-bottom:.4rem; }

/* Learning objectives */
.afwc-acad-objectives{ margin-bottom: 2.8rem; }
.afwc-acad-obj-item{
  display:flex; align-items:flex-start; gap:.7rem;
  background: var(--bg, #F5F7FA); border-radius: 10px; padding: 1rem 1.1rem; height:100%;
}
.afwc-acad-obj-item i{ color:#1F3A93; font-size:1rem; margin-top:.1rem; flex-shrink:0; }
.afwc-acad-obj-item span{ font-size:.86rem; color:#333; line-height:1.5; }

/* Study tours */
.afwc-acad-tours{ margin-bottom: 2.8rem; }
.afwc-acad-tour-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.afwc-acad-tour-item{
  display:flex; align-items:center; gap:.7rem;
  border: 1px dashed rgba(11,31,58,0.16); border-radius: 10px; padding: .9rem 1rem;
}
.afwc-acad-tour-item i{ color:#D4AF37; font-size:1.05rem; flex-shrink:0; }
.afwc-acad-tour-item span{ font-size:.84rem; color:#333; }

/* Fellowship callout */
.afwc-acad-fellowship{
  display:flex; gap: 1.3rem; align-items:flex-start;
  background: linear-gradient(135deg, #1F3A93, #0B1F3A);
  border-radius: 12px; padding: 1.6rem 1.8rem; color:#fff;
}
.afwc-acad-fellowship-icon{
  width:54px; height:54px; border-radius:50%; background:#D4AF37; color:#0B1F3A;
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0;
}
.afwc-acad-fellowship h5{ font-family:'Cinzel', Georgia, serif; color:#fff; font-size:1.05rem; margin-bottom:.5rem; }
.afwc-acad-fellowship p{ color: rgba(255,255,255,.82); font-size:.88rem; line-height:1.7; margin:0; }
.afwc-acad-fellowship strong{ color:#D4AF37; }

/* Unconfirmed programme note */
.afwc-acad-tbc-note{
  background: rgba(212,175,55,0.08);
  border: 1px dashed rgba(212,175,55,0.4);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size:.85rem;
  color:#5B6472;
  margin-top: 1rem;
}

/* Reveal */
.afwc-acad-reveal{
  opacity:0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.afwc-acad-reveal.afwc-acad-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-acad-reveal{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* styling for departments section/page */
/* ===================================================
   AFWC Departments Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-dept-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

.afwc-dept-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-dept-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-dept-title{
  font-family:'Cinzel', Georgia, serif; color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight:700;
  margin: .6rem 0 .9rem; position:relative; z-index:1;
}
.afwc-dept-lede{ color: rgba(255,255,255,.8); max-width: 660px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-dept-coords{
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.08em;
  color: rgba(255,255,255,.55); margin-top: 1.6rem; position:relative; z-index:1;
}

/* Selector pills */
.afwc-dept-selector{
  display:flex; flex-wrap:wrap; gap:.7rem;
  margin: -1.7rem auto 3rem;
  background:#fff;
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 10px 30px rgba(11,31,58,0.14);
  position:relative; z-index:2;
}
.afwc-dept-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  border: 1px solid rgba(11,31,58,0.12);
  background: transparent;
  color:#0B1F3A;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:.85rem;
  padding: .65rem 1.2rem;
  border-radius: 30px;
  cursor:pointer;
  transition: all .2s ease;
}
.afwc-dept-pill:hover{ border-color:#1F3A93; color:#1F3A93; }
.afwc-dept-pill.active{ background:#1F3A93; border-color:#1F3A93; color:#fff; }
.afwc-dept-pill i{ font-size:.9rem; }

/* Panels */
.afwc-dept-panel-wrap.afwc-dept-hidden{ display:none; }

.afwc-dept-panel{
  background:#fff; border-radius: 16px; padding: 2.6rem;
  box-shadow: 0 10px 34px rgba(11,31,58,0.1);
  margin-bottom: 4rem;
}
@media (max-width: 576px){ .afwc-dept-panel{ padding: 1.6rem; } }

.afwc-dept-panel-head{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:2rem;
  padding-bottom: 2rem; margin-bottom: 2rem;
  border-bottom: 1px solid rgba(11,31,58,0.08);
}
.afwc-dept-panel-tag{
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; color:#D4AF37; font-weight:700;
}
.afwc-dept-panel-head h2{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight:700; margin: .5rem 0 .8rem;
}
.afwc-dept-panel-lede{ color:#5B6472; font-size:.98rem; max-width: 500px; margin:0; line-height:1.7; }

/* Head-of-department card */
.afwc-dept-head-card{
  display:flex; align-items:center; gap:1rem;
  background: var(--bg, #F5F7FA); border-radius: 12px; padding: 1.1rem 1.4rem;
  border-top: 3px solid #D4AF37;
  min-width: 260px;
}
.afwc-dept-head-avatar{
  width:52px; height:52px; border-radius:50%;
  background: linear-gradient(160deg, #0B1F3A, #1F3A93);
  display:flex; align-items:center; justify-content:center;
  color:#D4AF37; font-size:1.4rem; flex-shrink:0;
}
.afwc-dept-head-label{
  display:block; font-family:'JetBrains Mono', monospace; font-size:.68rem;
  letter-spacing:.05em; text-transform:uppercase; color:#5B6472; margin-bottom:.2rem;
}
.afwc-dept-head-card strong{ font-family:'Inter', sans-serif; color:#0B1F3A; font-size:.98rem; }

/* Detail cards */
.afwc-dept-detail-row{ margin-bottom: 2.6rem; }
.afwc-dept-detail-card{
  background: var(--bg, #F5F7FA); border-radius: 12px; padding: 1.5rem 1.6rem; height:100%;
  border-left: 3px solid #1F3A93;
}
.afwc-dept-detail-icon{
  width:42px; height:42px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center; margin-bottom: .9rem;
  color:#1F3A93; font-size:1.1rem; border:1px solid rgba(11,31,58,0.08);
}
.afwc-dept-detail-card h5{ font-family:'Inter', sans-serif; font-weight:700; color:#0B1F3A; font-size:.98rem; margin-bottom:.5rem; }
.afwc-dept-detail-card p{ color:#5B6472; font-size:.88rem; line-height:1.7; margin:0; }

/* Sub-offices */
.afwc-dept-suboffices{ margin-bottom: 2.6rem; }
.afwc-dept-subhead{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size:1.15rem; font-weight:700;
  margin: 0 0 .8rem;
}
.afwc-dept-inferred-note{
  background: rgba(212,175,55,0.08);
  border: 1px dashed rgba(212,175,55,0.4);
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size:.8rem;
  color:#5B6472;
  margin-bottom: 1.4rem;
}
.afwc-dept-office-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.4rem;
}
@media (max-width: 700px){ .afwc-dept-office-grid{ grid-template-columns: 1fr; } }

.afwc-dept-office-item{
  display:flex; align-items:baseline; gap:.7rem;
  padding: .6rem .2rem; border-bottom: 1px dashed rgba(11,31,58,0.1);
}
.afwc-dept-abbr{
  font-family:'JetBrains Mono', monospace; font-weight:700; font-size:.78rem;
  color:#1F3A93; background: var(--bg, #F5F7FA); border-radius:5px; padding:.2rem .5rem;
  flex-shrink:0; min-width: 68px; text-align:center;
}
.afwc-dept-office-item span:last-child{ font-size:.85rem; color:#333; }

/* Contact strip */
.afwc-dept-contact{
  display:flex; flex-wrap:wrap; gap: 1.4rem;
  border-top: 1px solid rgba(11,31,58,0.08);
  padding-top: 1.6rem;
}
.afwc-dept-contact-item{
  display:flex; align-items:center; gap:.6rem;
  font-family:'JetBrains Mono', monospace; font-size:.78rem; color:#5B6472;
}
.afwc-dept-contact-item i{ color:#D4AF37; font-size:.95rem; }

/* Reveal */
.afwc-dept-reveal{
  opacity:0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.afwc-dept-reveal.afwc-dept-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-dept-reveal{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* styling for the contact section/page */
/* ===================================================
   AFWC Contact Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-contact-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

.afwc-contact-intro{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.afwc-contact-intro::before{
  content:"";
  position:absolute; inset:0; opacity:.12; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-contact-title{
  font-family:'Cinzel', Georgia, serif; color:#fff;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight:700;
  margin: .6rem 0 .9rem; position:relative; z-index:1;
}
.afwc-contact-lede{ color: rgba(255,255,255,.8); max-width: 640px; font-size: 1.02rem; position:relative; z-index:1; }
.afwc-contact-coords{
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.08em;
  color: rgba(255,255,255,.55); margin-top: 1.6rem; position:relative; z-index:1;
}

/* Contact info cards */
.afwc-contact-cards{ margin: -1.7rem auto 3rem; position:relative; z-index:2; }
.afwc-contact-card{
  background:#fff; border-radius: 12px; padding: 1.6rem 1.3rem; text-align:center; height:100%;
  box-shadow: 0 10px 26px rgba(11,31,58,0.12);
  border-top: 3px solid #D4AF37;
  transition: transform .25s ease, box-shadow .25s ease;
}
.afwc-contact-card:hover{ transform: translateY(-6px); box-shadow: 0 16px 34px rgba(11,31,58,0.18); }
.afwc-contact-card-icon{
  width:50px; height:50px; border-radius:50%;
  background: var(--bg, #F5F7FA);
  display:flex; align-items:center; justify-content:center; margin: 0 auto .9rem;
  color:#1F3A93; font-size:1.25rem; border:1px solid rgba(11,31,58,0.1);
}
.afwc-contact-card h5{ font-family:'Inter', sans-serif; font-weight:700; color:#0B1F3A; font-size:.94rem; margin-bottom:.6rem; }
.afwc-contact-card p{ font-size:.84rem; color:#5B6472; margin:0; line-height:1.6; }
.afwc-contact-card a{ color:#1F3A93; font-weight:600; text-decoration:none; }
.afwc-contact-card a:hover{ text-decoration:underline; }
.afwc-contact-note{ display:block; font-family:'JetBrains Mono', monospace; font-size:.68rem; color:#9aa4b2; margin-top:.5rem; }

/* Map + Form section */
.afwc-contact-main{ margin-bottom: 3rem; }

.afwc-contact-map-wrap,
.afwc-contact-form-wrap{
  background:#fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 10px 34px rgba(11,31,58,0.1);
  height:100%;
}
@media (max-width: 576px){
  .afwc-contact-map-wrap, .afwc-contact-form-wrap{ padding: 1.4rem; }
}

.afwc-contact-map-eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.1em;
  text-transform:uppercase; color:#D4AF37; font-weight:700;
}
.afwc-contact-map-head h3,
.afwc-contact-form-wrap h3{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A;
  font-size: 1.35rem; font-weight:700; margin: .5rem 0 1.2rem;
}
.afwc-contact-form-lede{ color:#5B6472; font-size:.9rem; margin: -.8rem 0 1.4rem; }

.afwc-contact-map-frame{
  width:100%; aspect-ratio: 4/3.2; border-radius: 10px; overflow:hidden;
  background: linear-gradient(135deg, #1F3A93, #0B1F3A);
}
.afwc-contact-map-frame iframe{ width:100%; height:100%; display:block; }

.afwc-contact-map-note{
  margin-top: 1.1rem; font-size:.82rem; color:#5B6472;
  background: rgba(212,175,55,0.08);
  border: 1px dashed rgba(212,175,55,0.4);
  border-radius: 8px; padding: .8rem 1rem;
}

/* Form fields */
.afwc-contact-field{ margin-bottom: 1.2rem; }
.afwc-contact-field label{
  display:block; font-family:'Inter', sans-serif; font-weight:600; font-size:.85rem;
  color:#0B1F3A; margin-bottom: .4rem;
}
.afwc-contact-field label span{ color:#c0392b; }

.afwc-contact-field input,
.afwc-contact-field select,
.afwc-contact-field textarea{
  width:100%;
  border: 1.5px solid rgba(11,31,58,0.14);
  border-radius: 8px;
  padding: .7rem .9rem;
  font-family:'Inter', sans-serif;
  font-size:.9rem;
  color:#222;
  background:#fff;
  transition: border-color .2s ease;
}
.afwc-contact-field input:focus,
.afwc-contact-field select:focus,
.afwc-contact-field textarea:focus{
  outline:none; border-color:#1F3A93;
}
.afwc-contact-field textarea{ resize: vertical; min-height: 110px; }

.afwc-contact-field.afwc-contact-invalid input,
.afwc-contact-field.afwc-contact-invalid select,
.afwc-contact-field.afwc-contact-invalid textarea{
  border-color:#c0392b;
}
.afwc-contact-error{
  display:none;
  font-size:.76rem; color:#c0392b; margin-top:.35rem;
}
.afwc-contact-field.afwc-contact-invalid .afwc-contact-error{ display:block; }

.afwc-contact-submit{
  width:100%;
  background:#1F3A93; color:#fff; border:none; border-radius: 8px;
  padding: .9rem 1.4rem; font-weight:700; font-size:.92rem;
  cursor:pointer; transition: background .2s ease;
  display:flex; align-items:center; justify-content:center;
}
.afwc-contact-submit:hover{ background:#0B1F3A; }
.afwc-contact-submit:disabled{ opacity:.7; cursor:not-allowed; }

.afwc-contact-success{
  display:flex; align-items:center; gap:.6rem;
  background: rgba(31,58,147,0.08);
  border: 1px solid rgba(31,58,147,0.25);
  color:#1F3A93; border-radius: 8px; padding: .9rem 1.1rem;
  font-size:.86rem; margin-top: 1.2rem;
}
.afwc-contact-success i{ font-size:1.2rem; flex-shrink:0; }

/* Office hours strip */
.afwc-contact-hours{
  display:flex; align-items:center; gap:1.2rem;
  background:#fff; border-radius: 12px; padding: 1.4rem 1.8rem;
  box-shadow: 0 10px 26px rgba(11,31,58,0.08);
  border-left: 4px solid #D4AF37;
}
.afwc-contact-hours-icon{
  width:48px; height:48px; border-radius:50%; background: var(--bg, #F5F7FA);
  display:flex; align-items:center; justify-content:center; color:#1F3A93; font-size:1.2rem; flex-shrink:0;
}
.afwc-contact-hours-body h5{ font-family:'Inter', sans-serif; font-weight:700; color:#0B1F3A; margin-bottom:.3rem; font-size:.95rem; }
.afwc-contact-hours-body p{ color:#5B6472; font-size:.85rem; margin:0; }

/* Reveal */
.afwc-contact-reveal{
  opacity:0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.afwc-contact-reveal.afwc-contact-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-contact-reveal{ transition:none !important; opacity:1 !important; transform:none !important; }
}
.afwc-contact-map-placeholder{
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem;
  background: linear-gradient(135deg, #1F3A93, #0B1F3A);
  color:#fff; cursor:pointer;
  transition: filter .2s ease;
}
.afwc-contact-map-placeholder:hover{ filter: brightness(1.1); }
.afwc-contact-map-placeholder i{ font-size: 2.2rem; color:#D4AF37; }
.afwc-contact-map-placeholder span{ font-weight:700; font-size:.92rem; }
.afwc-contact-map-placeholder small{ font-family:'JetBrains Mono', monospace; font-size:.72rem; color: rgba(255,255,255,.65); }



/* styling for the library section/page */
/* ===================================================
   AFWC Library Page — v2, scoped, safe alongside existing styles
   =================================================== */
.afwc-lib-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

/* ---------- Intro ---------- */
.afwc-lib-intro{

    position:relative;

    overflow:hidden;

    padding:5rem 0 4rem;

    color:#fff;

    isolation:isolate;

    background:
        linear-gradient(
            rgba(11,31,58,.85),
            rgba(11,31,58,.85)
        ),
        url("../images/books.png")
        center center/cover no-repeat;

}
.afwc-lib-intro::before{

    content:"";

    position:absolute;

    inset:0;

    background:inherit;

    transform:scale(1.08);

    animation:libraryBackground 30s ease-in-out infinite;

    z-index:-2;

}
.afwc-lib-intro::after{

    content:"";

    position:absolute;

    inset:0;

    background:

    radial-gradient(

        circle at center,

        transparent 30%,

        rgba(0,0,0,.18) 100%

    );

    z-index:-1;

}
.afwc-lib-intro-lines{

    position:absolute;

    inset:0;

    opacity:.10;

    pointer-events:none;

    background-image:

    linear-gradient(

        rgba(255,255,255,.45) 1px,

        transparent 1px

    ),

    linear-gradient(

        90deg,

        rgba(255,255,255,.45) 1px,

        transparent 1px

    );

    background-size:60px 60px;

    mask-image:

    radial-gradient(

        circle at 70% 30%,

        black,

        transparent 75%

    );

    animation:gridMove 30s linear infinite;

}
.afwc-lib-title{

    font-family:'Cinzel',serif;

    color:#fff;

    font-size:clamp(2rem,4vw,3rem);

    font-weight:700;

    margin:.6rem 0 1rem;

    position:relative;

    text-shadow:

        0 2px 8px rgba(0,0,0,.30),

        0 0 25px rgba(212,175,55,.12);

}
.afwc-lib-lede{

    color:rgba(255,255,255,.88);

    max-width:620px;

    font-size:1.05rem;

    line-height:1.9;

}
.afwc-lib-coords{

    margin-top:2.3rem;

    color:rgba(255,255,255,.65);

    font-family:'JetBrains Mono',monospace;

    letter-spacing:.12em;

}

.afwc-lib-stats{

    display:flex;

    gap:1.8rem;

    justify-content:flex-end;

}

@media(max-width:991px){

.afwc-lib-stats{

    justify-content:flex-start;

    margin-top:2rem;

}

}

.afwc-lib-stat{

    text-align:center;

    transition:.4s;

}

.afwc-lib-stat:hover{

    transform:translateY(-6px);

}

.afwc-lib-stat span{

    display:block;

    color:#D4AF37;

    font-family:'JetBrains Mono',monospace;

    font-size:2.2rem;

    font-weight:700;

    text-shadow:

        0 0 12px rgba(212,175,55,.35);

}

.afwc-lib-stat small{

    display:block;

    margin-top:.5rem;

    color:rgba(255,255,255,.70);

    font-size:.7rem;

    text-transform:uppercase;

    letter-spacing:.08em;

}
/* Slow background zoom */

@keyframes libraryBackground{

    0%,100%{

        transform:scale(1.08);

    }

    50%{

        transform:scale(1.14);

    }

}

/* Grid movement */

@keyframes gridMove{

    from{

        background-position:0 0,0 0;

    }

    to{

        background-position:60px 60px,60px 60px;

    }

}
@media (max-width: 991px){ .afwc-lib-stats{ justify-content:flex-start; margin-top: 1.6rem; } }
.afwc-lib-stat{ text-align:center; }
.afwc-lib-stat span{
  display:block; font-family:'JetBrains Mono', monospace; font-weight:700;
  font-size: 2rem; color:#D4AF37; line-height:1;
}
.afwc-lib-stat small{
  display:block; font-size:.68rem; text-transform:uppercase; letter-spacing:.08em;
  color: rgba(255,255,255,.55); margin-top:.5rem; font-weight:600;
}

/* ---------- Featured spotlight ---------- */
.afwc-lib-spotlight{
  position:relative;
  margin: -2rem auto 3rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11,31,58,0.2);
  display:flex; align-items:stretch; overflow:hidden;
  z-index: 3;
}
@media (max-width: 767px){ .afwc-lib-spotlight{ flex-direction:column; } }

.afwc-lib-spotlight-spine{
  width: 10px; flex-shrink:0;
  background: linear-gradient(180deg, #D4AF37, #1F3A93);
}
@media (max-width: 767px){ .afwc-lib-spotlight-spine{ width:100%; height:10px; } }

.afwc-lib-spotlight-body{ padding: 2.6rem 3rem; flex:1; position:relative; z-index:2; }
@media (max-width: 576px){ .afwc-lib-spotlight-body{ padding: 2rem 1.6rem; } }

.afwc-lib-spotlight-eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:'JetBrains Mono', monospace; font-size:.72rem; letter-spacing:.12em;
  text-transform:uppercase; color:#D4AF37; font-weight:700;
}
.afwc-lib-spotlight-body h2{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight:700; margin: .6rem 0 .8rem;
}
.afwc-lib-spotlight-body > p{ color:#5B6472; font-size:.98rem; max-width: 480px; line-height:1.7; margin-bottom: 1.4rem; }
.afwc-lib-spotlight-meta{ display:flex; align-items:center; gap:1.2rem; margin-bottom: 1.6rem; flex-wrap:wrap; }
.afwc-lib-spotlight-meta > span:first-child{
  font-family:'JetBrains Mono', monospace; font-size:.78rem; color:#5B6472; display:flex; align-items:center; gap:.5rem;
}
.afwc-lib-spotlight-btn{
  display:inline-flex; align-items:center;
  background:#1F3A93; color:#fff; text-decoration:none;
  padding: .8rem 1.6rem; border-radius: 8px; font-weight:700; font-size:.9rem;
  transition: background .2s ease, transform .2s ease;
}
.afwc-lib-spotlight-btn:hover{ background:#0B1F3A; transform: translateY(-2px); }

.afwc-lib-spotlight-mark{
  position:absolute; right: -1.5rem; bottom: -1.5rem;
  font-size: 11rem; color: rgba(31,58,147,0.05); z-index:1; pointer-events:none;
}
@media (max-width: 767px){ .afwc-lib-spotlight-mark{ display:none; } }

/* ---------- Toolbar ---------- */
.afwc-lib-toolbar{
  background:#fff; border-radius: 12px; padding: 1.1rem;
  box-shadow: 0 8px 24px rgba(11,31,58,0.08);
  display:flex; flex-direction:column; gap:.9rem; margin-bottom: 1.6rem;
}
.afwc-lib-search{
  position:relative; display:flex; align-items:center;
  border: 1.5px solid rgba(11,31,58,0.12); border-radius: 8px; padding: .6rem .95rem;
  transition: border-color .2s ease;
}
.afwc-lib-search:focus-within{ border-color:#1F3A93; }
.afwc-lib-search i{ color:#5B6472; margin-right:.6rem; }
.afwc-lib-search input{ flex:1; border:none; outline:none; font-family:'Inter', sans-serif; font-size:.9rem; background:transparent; }
.afwc-lib-search input::placeholder{ color:#9aa4b2; }
.afwc-lib-search-clear{ background:transparent; border:none; color:#5B6472; font-size:1.2rem; cursor:pointer; }
.afwc-lib-search-clear:hover{ color:#1F3A93; }

.afwc-lib-tabs{ display:flex; flex-wrap:wrap; gap:.6rem; }
.afwc-lib-tab{
  border: 1px solid rgba(11,31,58,0.12); background: transparent; color:#0B1F3A;
  font-family:'Inter', sans-serif; font-weight:600; font-size:.82rem;
  padding: .5rem 1rem; border-radius: 30px; cursor:pointer; transition: all .2s ease;
}
.afwc-lib-tab:hover{ border-color:#1F3A93; color:#1F3A93; }
.afwc-lib-tab.active{ background:#1F3A93; border-color:#1F3A93; color:#fff; }

/* ---------- Legend ---------- */
.afwc-lib-legend{
  display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; margin-bottom: 2.2rem; font-size:.84rem;
}
.afwc-lib-legend-text{ color:#5B6472; }
.afwc-lib-legend-text a{ color:#1F3A93; font-weight:600; }
.afwc-lib-legend-divider{ width:1px; height:16px; background: rgba(11,31,58,0.15); margin: 0 .3rem; }
@media (max-width: 576px){ .afwc-lib-legend-divider{ display:none; } }

.afwc-lib-tag{
  display:inline-flex; align-items:center; gap:.35rem;
  font-family:'JetBrains Mono', monospace; font-size:.66rem; font-weight:700;
  padding: .28rem .6rem; border-radius: 20px;
}
.afwc-lib-tag-open{ background: rgba(31,58,147,0.08); color:#1F3A93; }
.afwc-lib-tag-restricted{ background: rgba(212,175,55,0.16); color:#8a6c1f; }

/* ---------- Shelf / cards ---------- */
.afwc-lib-shelf{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 991px){ .afwc-lib-shelf{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .afwc-lib-shelf{ grid-template-columns: 1fr; } }

.afwc-lib-book{
  position:relative;
  background:#fff;
  border-radius: 12px;
  padding: 1.6rem 1.4rem 1.4rem;
  padding-left: 1.7rem;
  box-shadow: 0 6px 18px rgba(11,31,58,0.07);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow:hidden;
}
.afwc-lib-book:hover{ transform: translateY(-8px); box-shadow: 0 20px 40px rgba(11,31,58,0.16); }
.afwc-lib-book.afwc-lib-hidden{ display:none; }

.afwc-lib-book-spine{
  position:absolute; top:0; left:0; bottom:0; width: 6px;
}
.afwc-lib-spine-navy{ background: linear-gradient(180deg, #1F3A93, #0B1F3A); }
.afwc-lib-spine-gold{ background: linear-gradient(180deg, #D4AF37, #b8933f); }
.afwc-lib-spine-locked{ background: repeating-linear-gradient(135deg, #D4AF37, #D4AF37 4px, #8a6c1f 4px, #8a6c1f 8px); }

.afwc-lib-book-icon{
  width:46px; height:46px; border-radius: 10px;
  background: linear-gradient(160deg, #0B1F3A, #1F3A93);
  color:#D4AF37; display:flex; align-items:center; justify-content:center;
  font-size:1.25rem; margin-bottom: 1rem;
}
.afwc-lib-icon-locked{ background: linear-gradient(160deg, #4a4028, #8a6c1f); color:#fff2cc; }

.afwc-lib-book-type{
  font-family:'JetBrains Mono', monospace; font-size:.65rem; letter-spacing:.1em;
  text-transform:uppercase; color:#D4AF37; font-weight:700;
}
.afwc-lib-book h5{
  font-family:'Cinzel', Georgia, serif; font-weight:700; color:#0B1F3A;
  font-size: 1rem; margin: .5rem 0 .6rem; line-height:1.35;
}
.afwc-lib-book p{ font-size:.82rem; color:#5B6472; line-height:1.6; margin-bottom: 1.2rem; min-height: 2.6em; }

.afwc-lib-book-footer{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 1rem; border-top: 1px dashed rgba(11,31,58,0.1);
}
.afwc-lib-book-download{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background: var(--bg, #F5F7FA); color:#1F3A93; border: 1px solid rgba(11,31,58,0.12);
  display:flex; align-items:center; justify-content:center; font-size:1rem;
  text-decoration:none; cursor:pointer; transition: all .2s ease;
}
.afwc-lib-book-download:hover{ background:#1F3A93; color:#fff; border-color:#1F3A93; transform: scale(1.08); }
.afwc-lib-book-download.afwc-lib-locked{ background: rgba(212,175,55,0.14); color:#8a6c1f; border-color: rgba(212,175,55,0.4); }
.afwc-lib-book-download.afwc-lib-locked:hover{ background:#D4AF37; color:#0B1F3A; border-color:#D4AF37; }

/* ---------- Empty state ---------- */
.afwc-lib-empty{ text-align:center; padding: 4rem 0; }
.afwc-lib-empty i{ font-size: 2.4rem; color: rgba(11,31,58,0.15); display:block; margin-bottom: 1rem; }
.afwc-lib-empty p{ color:#5B6472; font-style:italic; margin:0; }

/* ---------- Callout ---------- */
.afwc-lib-callout{
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #1F3A93, #0B1F3A);
  border-radius: 16px; padding: 2.4rem 2.6rem;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 1.6rem;
  color:#fff;
}
@media (max-width: 576px){ .afwc-lib-callout{ padding: 1.8rem; } }
.afwc-lib-callout-text{ max-width: 560px; }
.afwc-lib-callout-text h3{
  font-family:'Cinzel', Georgia, serif; color:#fff; font-size: 1.3rem; font-weight:700; margin: .6rem 0 .7rem;
}
.afwc-lib-callout-text p{ color: rgba(255,255,255,.78); font-size:.9rem; line-height:1.7; margin:0; }
.afwc-lib-callout-btn{
  display:inline-flex; align-items:center; flex-shrink:0;
  background:#D4AF37; color:#0B1F3A; text-decoration:none;
  padding: .85rem 1.6rem; border-radius: 8px; font-weight:700; font-size:.9rem;
  transition: background .2s ease, transform .2s ease;
}
.afwc-lib-callout-btn:hover{ background:#E9CE83; transform: translateY(-2px); }

/* ---------- Login modal ---------- */
.afwc-lib-modal{
  position: fixed; inset:0; z-index: 2000;
  background: rgba(11,31,58,.78);
  display:flex; align-items:center; justify-content:center; padding: 1.5rem;
  opacity:0; visibility:hidden; transition: opacity .3s ease;
}
.afwc-lib-modal.afwc-lib-modal-open{ opacity:1; visibility:visible; }
.afwc-lib-modal-box{
  position:relative; background:#fff; border-radius: 16px; padding: 2.6rem 2.2rem;
  max-width: 400px; width:100%; text-align:center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transform: translateY(14px) scale(.97); transition: transform .3s ease;
}
.afwc-lib-modal.afwc-lib-modal-open .afwc-lib-modal-box{ transform: translateY(0) scale(1); }
.afwc-lib-modal-close{
  position:absolute; top:1rem; right:1.1rem; background:transparent; border:none;
  font-size:1.5rem; color:#9aa4b2; cursor:pointer; line-height:1;
}
.afwc-lib-modal-close:hover{ color:#0B1F3A; }
.afwc-lib-modal-icon{
  width:64px; height:64px; border-radius:50%; margin: 0 auto 1.3rem;
  background: linear-gradient(160deg, #f0d998, #D4AF37); color:#0B1F3A;
  display:flex; align-items:center; justify-content:center; font-size:1.7rem;
}
.afwc-lib-modal-box h4{ font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size:1.25rem; margin-bottom:.7rem; }
.afwc-lib-modal-box p{ color:#5B6472; font-size:.88rem; margin-bottom:1.7rem; line-height:1.65; }
.afwc-lib-modal-actions{ display:flex; gap:.7rem; flex-wrap:wrap; justify-content:center; }
.afwc-lib-modal-btn{
  flex:1; min-width:130px; padding:.7rem 1rem; border-radius:6px; font-weight:700; font-size:.84rem;
  text-decoration:none; border: 1.5px solid #1F3A93; color:#1F3A93; transition: all .2s ease;
}
.afwc-lib-modal-btn:hover{ background:#1F3A93; color:#fff; }
.afwc-lib-modal-btn-gold{ background:#D4AF37; border-color:#D4AF37; color:#0B1F3A; }
.afwc-lib-modal-btn-gold:hover{ background:#E9CE83; border-color:#E9CE83; color:#0B1F3A; }

/* ---------- Reveal ---------- */
.afwc-lib-reveal{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.afwc-lib-reveal.afwc-lib-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-lib-reveal, .afwc-lib-book{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* styling for participant login section/page */
/* ===================================================
   AFWC Login Page — scoped, safe alongside existing styles
   =================================================== */
.afwc-login-page{
  min-height: 100vh;
  display:flex;
  align-items:center;
  position: relative;
  padding: 2rem 1rem;

  background-image:
    linear-gradient(160deg, rgba(11,31,58,0.68), rgba(31,58,147,0.62)),
    url('../images/9.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px){
  /* background-attachment:fixed can cause performance/scroll issues on mobile — disable there */
  .afwc-login-page{ background-attachment: scroll; }
}

.afwc-login-shell{
  max-width: 1100px;
  width:100%;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow:hidden;
  box-shadow: 0 30px 70px rgba(11,31,58,0.22);
  min-height: 640px;
}
@media (max-width: 900px){
  .afwc-login-shell{ grid-template-columns: 1fr; }
}

/* ---------- Left branding panel ---------- */
.afwc-login-brand{
  position:relative;
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 55%, #1F3A93 150%);
  color:#fff;
  padding: 3.2rem 3rem;
  display:flex; flex-direction:column; justify-content:center;
  overflow:hidden;
}
@media (max-width: 900px){ .afwc-login-brand{ padding: 3rem 1.8rem 2rem; } }

.afwc-login-brand-lines{
  position:absolute; inset:0; opacity:.1; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
}

.afwc-login-radar{
  position:absolute; top:50%; right:-18%; transform:translateY(-50%);
  width: 480px; height: 480px; opacity:.3; pointer-events:none;
}
@media (max-width: 900px){ .afwc-login-radar{ opacity:.16; } }
.afwc-login-ring{ position:absolute; border:1px solid rgba(212,175,55,.4); border-radius:50%; inset:0; }
.afwc-login-ring.r2{ inset:16%; }
.afwc-login-ring.r3{ inset:32%; }
.afwc-login-sweep{
  position:absolute; inset:0; border-radius:50%; overflow:hidden;
  animation: afwc-login-spin 7s linear infinite;
}
.afwc-login-sweep::before{
  content:""; position:absolute; inset:0;
  background:conic-gradient(from 0deg, rgba(212,175,55,.5), transparent 20%, transparent 100%);
}
@keyframes afwc-login-spin{ to{ transform:rotate(360deg); } }

.afwc-login-brand-content{ position:relative; z-index:2; }

.afwc-login-crest{
  width:64px; height:64px; border-radius:50%;
  border: 2px solid #D4AF37;
  padding: 4px;
  margin-bottom: 1.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.afwc-login-crest img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }

.afwc-login-brand-content h1{
  font-family:'Cinzel', Georgia, serif; color:#fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight:700; line-height:1.25;
  margin: .8rem 0 1.1rem;
}
.afwc-login-brand-content > p{
  color: rgba(255,255,255,.75); font-size:.94rem; line-height:1.75; max-width: 380px; margin-bottom: 2.2rem;
}

.afwc-login-brand-features{ display:flex; flex-direction:column; gap: 1rem; margin-bottom: 2.5rem; }
.afwc-login-feature{ display:flex; align-items:center; gap:.8rem; font-size:.86rem; color: rgba(255,255,255,.85); }
.afwc-login-feature i{
  width:34px; height:34px; border-radius:50%; background: rgba(212,175,55,.15);
  color:#D4AF37; display:flex; align-items:center; justify-content:center; font-size:.95rem; flex-shrink:0;
}

.afwc-login-coords{
  font-family:'JetBrains Mono', monospace; font-size:.7rem; letter-spacing:.08em; color: rgba(255,255,255,.45);
}

/* ---------- Right form panel ---------- */
.afwc-login-form-panel{
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  padding: 3rem 2.8rem;
}
@media (max-width: 900px){ .afwc-login-form-panel{ padding: 2.2rem 1.6rem 2.6rem; } }

.afwc-login-form-wrap{ width:100%; max-width: 400px; }

.afwc-login-back{
  display:inline-flex; align-items:center;
  font-family:'JetBrains Mono', monospace; font-size:.76rem; color:#5B6472;
  text-decoration:none; margin-bottom: 1.8rem; transition: color .2s ease;
}
.afwc-login-back:hover{ color:#1F3A93; }

/* Role tabs */
.afwc-login-role-tabs{
  display:flex; background: var(--bg, #F5F7FA); border-radius: 10px; padding: .3rem;
  margin-bottom: 1.8rem; gap:.2rem;
}
.afwc-login-role-tab{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:.3rem;
  background:transparent; border:none; border-radius: 8px; padding: .6rem .4rem;
  font-family:'Inter', sans-serif; font-weight:600; font-size:.7rem; color:#5B6472;
  cursor:pointer; transition: all .2s ease;
}
.afwc-login-role-tab i{ font-size:1.05rem; }
.afwc-login-role-tab:hover{ color:#1F3A93; }
.afwc-login-role-tab.active{ background:#fff; color:#1F3A93; box-shadow: 0 3px 10px rgba(11,31,58,0.1); }

.afwc-login-heading{ margin-bottom: 1.8rem; }
.afwc-login-heading h2{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size: 1.4rem; font-weight:700; margin-bottom:.4rem;
}
.afwc-login-heading p{ color:#5B6472; font-size:.86rem; margin:0; }

/* Fields */
.afwc-login-field{ margin-bottom: 1.2rem; }
.afwc-login-field label{
  display:block; font-family:'Inter', sans-serif; font-weight:600; font-size:.82rem;
  color:#0B1F3A; margin-bottom: .45rem;
}
.afwc-login-field label span{ color:#c0392b; }

.afwc-login-input-wrap{
  position:relative; display:flex; align-items:center;
  border: 1.5px solid rgba(11,31,58,0.14); border-radius: 8px;
  transition: border-color .2s ease;
}
.afwc-login-input-wrap:focus-within{ border-color:#1F3A93; }
.afwc-login-input-wrap i:first-child{ color:#9aa4b2; margin-left: .9rem; font-size:.92rem; }
.afwc-login-input-wrap input{
  flex:1; border:none; outline:none; background:transparent;
  padding: .75rem .8rem; font-family:'Inter', sans-serif; font-size:.9rem; color:#222;
}
.afwc-login-input-wrap input::placeholder{ color:#b3bac4; }

.afwc-login-toggle-pw{
  background:transparent; border:none; color:#9aa4b2; padding: 0 .9rem;
  cursor:pointer; font-size:.92rem;
}
.afwc-login-toggle-pw:hover{ color:#1F3A93; }

.afwc-login-field.afwc-login-invalid .afwc-login-input-wrap{ border-color:#c0392b; }
.afwc-login-error{ display:none; font-size:.76rem; color:#c0392b; margin-top:.4rem; }
.afwc-login-field.afwc-login-invalid .afwc-login-error{ display:block; }

/* Remember / forgot row */
.afwc-login-row-between{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 1.6rem; flex-wrap:wrap; gap:.6rem;
}
.afwc-login-checkbox{ display:flex; align-items:center; gap:.5rem; font-size:.83rem; color:#5B6472; cursor:pointer; }
.afwc-login-checkbox input{ accent-color:#1F3A93; width:15px; height:15px; }
.afwc-login-forgot{ font-size:.83rem; color:#1F3A93; font-weight:600; text-decoration:none; }
.afwc-login-forgot:hover{ text-decoration:underline; }

/* Submit */
.afwc-login-submit{
  width:100%; background:#1F3A93; color:#fff; border:none; border-radius: 8px;
  padding: .9rem 1.4rem; font-weight:700; font-size:.92rem; cursor:pointer;
  transition: background .2s ease; display:flex; align-items:center; justify-content:center;
}
.afwc-login-submit:hover{ background:#0B1F3A; }
.afwc-login-submit:disabled{ opacity:.7; cursor:not-allowed; }

/* Alerts */
.afwc-login-alert{
  display:flex; align-items:center; gap:.6rem;
  border-radius: 8px; padding: .8rem 1rem; font-size:.84rem; margin-top: 1.1rem;
}
.afwc-login-alert i{ font-size:1.1rem; flex-shrink:0; }
.afwc-login-alert-error{ background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.25); color:#c0392b; }
.afwc-login-alert-success{ background: rgba(31,58,147,0.08); border: 1px solid rgba(31,58,147,0.25); color:#1F3A93; }

/* Divider */
.afwc-login-divider{
  display:flex; align-items:center; text-align:center; margin: 1.8rem 0 1.2rem;
  color:#9aa4b2; font-size:.72rem; font-family:'JetBrains Mono', monospace; letter-spacing:.06em; text-transform:uppercase;
}
.afwc-login-divider::before, .afwc-login-divider::after{
  content:""; flex:1; height:1px; background: rgba(11,31,58,0.1);
}
.afwc-login-divider span{ padding: 0 .9rem; }

.afwc-login-help{ display:flex; flex-wrap:wrap; gap: 1.2rem; justify-content:center; margin-bottom: 1.6rem; }
.afwc-login-help a{
  display:flex; align-items:center; gap:.45rem; font-size:.8rem; color:#5B6472; text-decoration:none;
}
.afwc-login-help a:hover{ color:#1F3A93; }

.afwc-login-footnote{
  font-size:.72rem; color:#9aa4b2; text-align:center; line-height:1.6; margin:0;
  border-top: 1px solid rgba(11,31,58,0.08); padding-top: 1.2rem;
}

/* styling for the participant_dashboard section/page */
/* ===================================================
   AFWC Participant Dashboard — scoped, safe alongside existing styles
   =================================================== */
.afwc-dash-page{ background: var(--bg, #F5F7FA); padding-bottom: 5rem; }

/* Welcome banner */
.afwc-dash-welcome{
  background: linear-gradient(160deg, #0B1F3A 0%, #16305c 60%, #1F3A93 140%);
  color:#fff; padding: 3rem 0; position:relative; overflow:hidden;
}
.afwc-dash-welcome-lines{
  position:absolute; inset:0; opacity:.1; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.afwc-dash-welcome-row{
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; position:relative; z-index:1;
}
.afwc-dash-welcome-user{ display:flex; align-items:center; gap:1.3rem; }
.afwc-dash-avatar{
  width:64px; height:64px; border-radius:50%; flex-shrink:0;
  border: 2px solid #D4AF37;
  background: linear-gradient(160deg, #1F3A93, #0B1F3A);
  display:flex; align-items:center; justify-content:center;
}
.afwc-dash-avatar i{
  font-size: 1.7rem;
  color: #D4AF37;
}
.afwc-dash-avatar img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.afwc-dash-welcome-user h1{
  font-family:'Cinzel', Georgia, serif; color:#fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight:700; margin: .5rem 0 .4rem;
}
.afwc-dash-welcome-sub{ font-family:'JetBrains Mono', monospace; font-size:.78rem; color: rgba(255,255,255,.7); margin:0; }
.afwc-dash-logout{
  display:inline-flex; align-items:center;
  border: 1.5px solid rgba(255,255,255,.3); color:#fff; text-decoration:none;
  padding: .6rem 1.2rem; border-radius: 6px; font-weight:600; font-size:.84rem;
  transition: all .2s ease;
}
.afwc-dash-logout:hover{ background: rgba(255,255,255,.1); border-color:#D4AF37; color:#D4AF37; }

/* Quick stats */
.afwc-dash-stats{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: -1.6rem auto 2.5rem; position:relative; z-index:2;
}
@media (max-width: 767px){ .afwc-dash-stats{ grid-template-columns: repeat(2, 1fr); } }

.afwc-dash-stat-card{
  background:#fff; border-radius: 12px; padding: 1.2rem 1.3rem;
  display:flex; align-items:center; gap: .9rem;
  box-shadow: 0 10px 26px rgba(11,31,58,0.12);
  border-top: 3px solid #D4AF37;
}
.afwc-dash-stat-icon{
  width:44px; height:44px; border-radius:50%; background: var(--bg, #F5F7FA);
  display:flex; align-items:center; justify-content:center; color:#1F3A93; font-size:1.1rem; flex-shrink:0;
}
.afwc-dash-stat-card span{ display:block; font-family:'JetBrains Mono', monospace; font-weight:700; font-size:1rem; color:#0B1F3A; }
.afwc-dash-stat-card small{ display:block; font-size:.7rem; color:#5B6472; margin-top:.2rem; }

/* Card component (reused throughout dashboard) */
.afwc-dash-card{
  background:#fff; border-radius: 14px; padding: 1.8rem;
  box-shadow: 0 6px 20px rgba(11,31,58,0.07);
  margin-bottom: 1.6rem;
}
@media (max-width: 576px){ .afwc-dash-card{ padding: 1.3rem; } }

.afwc-dash-card-head{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.8rem;
  margin-bottom: 1.4rem;
}
.afwc-dash-card-head h3{
  font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size: 1.1rem; font-weight:700; margin:0;
  display:flex; align-items:center;
}
.afwc-dash-card-head h3 i{ color:#D4AF37; }
.afwc-dash-view-all{ font-size:.82rem; font-weight:700; color:#1F3A93; text-decoration:none; }
.afwc-dash-view-all:hover{ text-decoration:underline; }

/* Progress bar */
.afwc-dash-progress-track{
  height: 10px; background: var(--bg, #F5F7FA); border-radius: 20px; overflow:hidden; margin-bottom: 1.4rem;
}
.afwc-dash-progress-fill{
  height:100%; background: linear-gradient(90deg, #1F3A93, #D4AF37); border-radius: 20px;
  transition: width 1s ease;
}
.afwc-dash-progress-phases{ display:flex; flex-wrap:wrap; gap: 1rem 1.6rem; }
.afwc-dash-progress-phases span{ display:flex; align-items:center; gap:.5rem; font-size:.82rem; }
.afwc-dash-phase-done{ color:#1F3A93; font-weight:600; }
.afwc-dash-phase-done i{ color:#1F3A93; }
.afwc-dash-phase-active{ color:#0B1F3A; font-weight:700; }
.afwc-dash-phase-active i{ color:#D4AF37; }
.afwc-dash-phase-pending{ color:#9aa4b2; }
.afwc-dash-phase-pending i{ color:#c7ccd3; }

/* Library resource list */
.afwc-dash-lib-tabs{ display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom: 1.3rem; }
.afwc-dash-lib-tab{
  border: 1px solid rgba(11,31,58,0.12); background:transparent; color:#0B1F3A;
  font-size:.78rem; font-weight:600; padding: .4rem .9rem; border-radius: 20px; cursor:pointer; transition: all .2s ease;
}
.afwc-dash-lib-tab:hover{ border-color:#1F3A93; color:#1F3A93; }
.afwc-dash-lib-tab.active{ background:#1F3A93; border-color:#1F3A93; color:#fff; }

.afwc-dash-lib-item{
  display:flex; gap: 1rem; align-items:flex-start;
  padding: 1rem 0; border-bottom: 1px dashed rgba(11,31,58,0.1);
}
.afwc-dash-lib-item:last-child{ border-bottom:none; }
.afwc-dash-lib-item.afwc-dash-lib-hidden{ display:none; }

.afwc-dash-lib-icon{
  width:42px; height:42px; border-radius: 10px; flex-shrink:0;
  background: linear-gradient(160deg, #0B1F3A, #1F3A93); color:#D4AF37;
  display:flex; align-items:center; justify-content:center; font-size:1.05rem;
}
.afwc-dash-icon-unlocked{ background: linear-gradient(160deg, #b8933f, #D4AF37); color:#0B1F3A; }

.afwc-dash-lib-info{ flex:1; }
.afwc-dash-lib-tag{
  display:inline-flex; align-items:center; gap:.3rem;
  font-family:'JetBrains Mono', monospace; font-size:.64rem; font-weight:700;
  color:#8a6c1f; background: rgba(212,175,55,0.14); padding:.2rem .5rem; border-radius: 20px;
}
.afwc-dash-tag-open{ color:#1F3A93; background: rgba(31,58,147,0.08); }
.afwc-dash-lib-info h5{ font-family:'Inter', sans-serif; font-weight:700; color:#0B1F3A; font-size:.92rem; margin: .5rem 0 .3rem; }
.afwc-dash-lib-info p{ font-size:.82rem; color:#5B6472; margin:0; line-height:1.55; }

.afwc-dash-lib-download{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background: var(--bg, #F5F7FA); color:#1F3A93; border: 1px solid rgba(11,31,58,0.12);
  display:flex; align-items:center; justify-content:center; font-size:1rem;
  text-decoration:none; transition: all .2s ease;
}
.afwc-dash-lib-download:hover{ background:#1F3A93; color:#fff; }

/* Upcoming events */
.afwc-dash-event-row{
  display:flex; align-items:center; gap:1.1rem;
  padding: .9rem 0; border-bottom: 1px dashed rgba(11,31,58,0.1);
}
.afwc-dash-event-row:last-child{ border-bottom:none; }
.afwc-dash-event-date{
  width:52px; height:52px; border-radius: 10px; background: var(--bg, #F5F7FA); flex-shrink:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border-top: 3px solid #D4AF37;
}
.afwc-dash-event-date span{ font-family:'JetBrains Mono', monospace; font-weight:700; font-size:1.05rem; color:#1F3A93; line-height:1; }
.afwc-dash-event-date small{ font-size:.62rem; text-transform:uppercase; color:#5B6472; }
.afwc-dash-event-info h5{ font-size:.9rem; font-weight:700; color:#0B1F3A; margin:0 0 .2rem; }
.afwc-dash-event-info span{ font-size:.78rem; color:#5B6472; }

/* Profile card */
.afwc-dash-profile{ text-align:center; }
.afwc-dash-profile-avatar{
  width:80px; height:80px; border-radius:50%; margin: 0 auto 1rem;
  border: 3px solid #D4AF37;
  background: linear-gradient(160deg, #1F3A93, #0B1F3A);
  display:flex; align-items:center; justify-content:center;
}
.afwc-dash-profile-avatar i{
  font-size: 2.1rem;
  color: #D4AF37;
}
.afwc-dash-profile-avatar img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.afwc-dash-profile h5{ font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size:1.05rem; margin-bottom:.3rem; }
.afwc-dash-profile-role{ font-family:'JetBrains Mono', monospace; font-size:.72rem; color:#1F3A93; font-weight:600; }

.afwc-dash-profile-details{ margin: 1.3rem 0; text-align:left; }
.afwc-dash-profile-details div{
  display:flex; align-items:center; gap:.6rem; font-size:.82rem; color:#5B6472;
  padding: .5rem 0; border-bottom: 1px dashed rgba(11,31,58,0.08);
}
.afwc-dash-profile-details div:last-child{ border-bottom:none; }
.afwc-dash-profile-details i{ color:#D4AF37; width:16px; text-align:center; }

.afwc-dash-profile-btn{
  display:inline-block; width:100%; text-align:center;
  border: 1.5px solid #1F3A93; color:#1F3A93; text-decoration:none;
  padding: .6rem 1rem; border-radius: 6px; font-weight:600; font-size:.84rem; transition: all .2s ease;
}
.afwc-dash-profile-btn:hover{ background:#1F3A93; color:#fff; }

/* Quick links */
.afwc-dash-quicklinks{ display:grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.afwc-dash-quicklinks a{
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  text-align:center; text-decoration:none;
  background: var(--bg, #F5F7FA); border-radius: 10px; padding: 1rem .6rem;
  color:#0B1F3A; font-size:.78rem; font-weight:600; transition: all .2s ease;
}
.afwc-dash-quicklinks a:hover{ background:#1F3A93; color:#fff; transform: translateY(-2px); }
.afwc-dash-quicklinks i{ font-size:1.2rem; color:#D4AF37; }
.afwc-dash-quicklinks a:hover i{ color:#fff; }

/* Fellowship card */
.afwc-dash-fellowship-card{
  background: linear-gradient(135deg, #1F3A93, #0B1F3A); color:#fff;
  border-radius: 14px; padding: 1.8rem; text-align:center;
}
.afwc-dash-fellowship-icon{
  width:52px; height:52px; border-radius:50%; background:#D4AF37; color:#0B1F3A;
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin: 0 auto 1rem;
}
.afwc-dash-fellowship-card h5{ font-family:'Cinzel', Georgia, serif; color:#fff; font-size:1.05rem; margin-bottom:.6rem; }
.afwc-dash-fellowship-card p{ font-size:.82rem; color: rgba(255,255,255,.75); line-height:1.6; margin-bottom: 1.2rem; }
.afwc-dash-fellowship-card strong{ color:#D4AF37; }
.afwc-dash-fellowship-bar{
  height:8px; background: rgba(255,255,255,.15); border-radius:20px; overflow:hidden; margin-bottom: .6rem;
}
.afwc-dash-fellowship-fill{ height:100%; background:#D4AF37; border-radius:20px; transition: width 1s ease; }
.afwc-dash-fellowship-pct{ font-family:'JetBrains Mono', monospace; font-size:.75rem; color:#D4AF37; font-weight:700; }

/* Reveal */
.afwc-dash-reveal{ opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.afwc-dash-reveal.afwc-dash-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .afwc-dash-reveal, .afwc-dash-progress-fill, .afwc-dash-fellowship-fill{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* styling for the admin_dashboard section/page */
/* ===================================================
   AFWC Admin Dashboard — scoped, safe alongside existing styles
   =================================================== */
.afwc-admin-page{ background: var(--bg, #F5F7FA); min-height: 100vh; }

.afwc-admin-shell{ display:flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.afwc-admin-sidebar{
  width: 260px; flex-shrink:0;
  background: linear-gradient(180deg, #0B1F3A, #16305c);
  color:#fff; display:flex; flex-direction:column;
  position: sticky; top:0; height:100vh; overflow-y:auto;
  transition: transform .3s ease;
}
.afwc-admin-sidebar-brand{
  display:flex; align-items:center; gap:.8rem; padding: 1.6rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.afwc-admin-crest{ width:38px; height:38px; border-radius:50%; border:2px solid #D4AF37; padding:2px; flex-shrink:0; }
.afwc-admin-crest img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.afwc-admin-brand-name{ display:block; font-family:'Cinzel', Georgia, serif; font-weight:700; font-size:.95rem; }
.afwc-admin-brand-sub{ display:block; font-family:'JetBrains Mono', monospace; font-size:.65rem; color:#D4AF37; letter-spacing:.06em; }

.afwc-admin-nav{ flex:1; padding: 1.2rem .9rem; }
.afwc-admin-nav-label{
  display:block; font-family:'JetBrains Mono', monospace; font-size:.62rem; letter-spacing:.1em;
  text-transform:uppercase; color: rgba(255,255,255,.4); margin: 1.2rem .6rem .5rem;
}
.afwc-admin-nav-label:first-child{ margin-top:0; }
.afwc-admin-nav-item{
  display:flex; align-items:center; gap:.7rem; width:100%; text-align:left;
  background:transparent; border:none; color: rgba(255,255,255,.75);
  font-size:.85rem; font-weight:500; padding: .65rem .8rem; border-radius: 8px;
  cursor:pointer; transition: all .2s ease; margin-bottom:.2rem;
}
.afwc-admin-nav-item i{ font-size:.95rem; width:18px; }
.afwc-admin-nav-item:hover{ background: rgba(255,255,255,.06); color:#fff; }
.afwc-admin-nav-item.active{ background:#D4AF37; color:#0B1F3A; font-weight:700; }

.afwc-admin-sidebar-footer{ padding: 1.2rem 1.4rem; border-top: 1px solid rgba(255,255,255,.1); }
.afwc-admin-sidebar-footer a{ color: rgba(255,255,255,.7); font-size:.84rem; text-decoration:none; display:flex; align-items:center; }
.afwc-admin-sidebar-footer a:hover{ color:#D4AF37; }

@media (max-width: 991px){
  .afwc-admin-sidebar{ position: fixed; z-index: 1000; transform: translateX(-100%); }
  .afwc-admin-sidebar.afwc-admin-sidebar-open{ transform: translateX(0); }
}

/* ---------- Main area ---------- */
.afwc-admin-main{ flex:1; min-width:0; padding: 0 0 4rem; }

.afwc-admin-topbar{
  display:flex; align-items:center; gap:1rem;
  background:#fff; padding: 1rem 1.6rem; box-shadow: 0 2px 10px rgba(11,31,58,0.06);
  position: sticky; top:0; z-index: 10;
}
.afwc-admin-sidebar-toggle{
  display:none; background:transparent; border:none; font-size:1.3rem; color:#0B1F3A; cursor:pointer;
}
@media (max-width: 991px){ .afwc-admin-sidebar-toggle{ display:block; } }

.afwc-admin-topbar-search{
  flex:1; max-width:360px; display:flex; align-items:center;
  background: var(--bg, #F5F7FA); border-radius:8px; padding:.55rem .9rem;
}
.afwc-admin-topbar-search i{ color:#9aa4b2; margin-right:.6rem; }
.afwc-admin-topbar-search input{ border:none; outline:none; background:transparent; flex:1; font-size:.85rem; }

.afwc-admin-topbar-actions{ margin-left:auto; display:flex; align-items:center; gap:1rem; }
.afwc-admin-icon-btn{
  position:relative; background: var(--bg, #F5F7FA); border:none; width:38px; height:38px; border-radius:50%;
  color:#1F3A93; cursor:pointer; font-size:.95rem;
}
.afwc-admin-badge{
  position:absolute; top:-4px; right:-4px; background:#c0392b; color:#fff;
  font-size:.6rem; font-weight:700; width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.afwc-admin-admin-chip{ display:flex; align-items:center; gap:.6rem; font-size:.84rem; font-weight:600; color:#0B1F3A; }
.afwc-admin-admin-avatar{
  width:34px; height:34px; border-radius:50%; background: linear-gradient(160deg, #1F3A93, #0B1F3A);
  color:#D4AF37; display:flex; align-items:center; justify-content:center; font-size:1rem;
}

/* ---------- Panels ---------- */
.afwc-admin-panel{ padding: 2rem 1.8rem 0; }
.afwc-admin-panel.afwc-admin-hidden{ display:none; }
.afwc-admin-panel-head{ margin-bottom: 1.8rem; }
.afwc-admin-panel-head h2{ font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size:1.5rem; font-weight:700; margin-bottom:.4rem; }
.afwc-admin-panel-head p{ color:#5B6472; font-size:.88rem; margin:0; }

/* Stat grid (overview) */
.afwc-admin-stat-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:1rem; margin-bottom: 1.8rem; }
@media (max-width: 767px){ .afwc-admin-stat-grid{ grid-template-columns: repeat(2, 1fr); } }
.afwc-admin-stat-card{
  background:#fff; border-radius:12px; padding:1.3rem; display:flex; align-items:center; gap:.9rem;
  box-shadow: 0 6px 18px rgba(11,31,58,0.07); border-top:3px solid #D4AF37;
}
.afwc-admin-stat-card i{ font-size:1.5rem; color:#1F3A93; }
.afwc-admin-stat-card span{ display:block; font-family:'JetBrains Mono', monospace; font-weight:700; font-size:1.3rem; color:#0B1F3A; }
.afwc-admin-stat-card small{ display:block; font-size:.72rem; color:#5B6472; margin-top:.2rem; }

/* Generic card */
.afwc-admin-card{ background:#fff; border-radius:14px; padding:1.6rem; box-shadow: 0 6px 18px rgba(11,31,58,0.06); margin-bottom:1.4rem; }
.afwc-admin-card-head{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.7rem; margin-bottom:1.3rem; }
.afwc-admin-card-head h3{ font-family:'Cinzel', Georgia, serif; color:#0B1F3A; font-size:1.02rem; font-weight:700; margin:0; display:flex; align-items:center; }
.afwc-admin-card-head h3 i{ color:#D4AF37; }

/* Activity list */
.afwc-admin-activity-item{ display:flex; gap:.9rem; padding:.8rem 0; border-bottom:1px dashed rgba(11,31,58,0.1); }
.afwc-admin-activity-item:last-child{ border-bottom:none; }
.afwc-admin-activity-item i{ width:36px; height:36px; border-radius:50%; background: var(--bg, #F5F7FA); color:#1F3A93; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:.9rem; }
.afwc-admin-activity-item strong{ display:block; font-size:.85rem; color:#0B1F3A; }
.afwc-admin-activity-item span{ display:block; font-size:.76rem; color:#5B6472; margin-top:.15rem; }

/* Quick actions */
.afwc-admin-quick-actions{ display:grid; grid-template-columns: repeat(2, 1fr); gap:.8rem; }
.afwc-admin-quick-btn{
  display:flex; flex-direction:column; align-items:center; gap:.5rem; text-align:center;
  background: var(--bg, #F5F7FA); border:none; border-radius:10px; padding:1.1rem .7rem;
  color:#0B1F3A; font-size:.78rem; font-weight:600; cursor:pointer; transition: all .2s ease;
}
.afwc-admin-quick-btn:hover{ background:#1F3A93; color:#fff; }
.afwc-admin-quick-btn i{ font-size:1.3rem; color:#D4AF37; }

/* Forms */
.afwc-admin-form{ display:block; }
.afwc-admin-field{ margin-bottom:1.1rem; }
.afwc-admin-field label{ display:block; font-weight:600; font-size:.82rem; color:#0B1F3A; margin-bottom:.4rem; }
.afwc-admin-field input, .afwc-admin-field select, .afwc-admin-field textarea{
  width:100%; border:1.5px solid rgba(11,31,58,0.14); border-radius:8px; padding:.65rem .85rem;
  font-size:.87rem; color:#222; background:#fff; transition:border-color .2s ease;
}
.afwc-admin-field input:focus, .afwc-admin-field select:focus, .afwc-admin-field textarea:focus{ outline:none; border-color:#1F3A93; }
.afwc-admin-field textarea{ resize:vertical; }
.afwc-admin-field input[readonly]{ background: var(--bg, #F5F7FA); color:#9aa4b2; }

.afwc-admin-role-toggle{ display:flex; background: var(--bg, #F5F7FA); border-radius:8px; padding:.3rem; margin-bottom:1.2rem; }
.afwc-admin-role-toggle button{
  flex:1; background:transparent; border:none; padding:.6rem; border-radius:6px;
  font-size:.82rem; font-weight:600; color:#5B6472; cursor:pointer; transition:.2s;
}
.afwc-admin-role-toggle button.active{ background:#fff; color:#1F3A93; box-shadow: 0 3px 8px rgba(11,31,58,0.1); }

.afwc-admin-submit{
  background:#1F3A93; color:#fff; border:none; border-radius:8px; padding:.75rem 1.4rem;
  font-weight:700; font-size:.85rem; cursor:pointer; transition: background .2s ease;
}
.afwc-admin-submit:hover{ background:#0B1F3A; }

.afwc-admin-alert-success{
  display:flex; align-items:center; gap:.6rem; background: rgba(31,58,147,0.08); border:1px solid rgba(31,58,147,0.25);
  color:#1F3A93; border-radius:8px; padding:.7rem 1rem; font-size:.82rem; margin-top:1rem;
}

/* Repeatable list (objectives) */
.afwc-admin-repeat-item{ display:flex; gap:.6rem; margin-bottom:.7rem; }
.afwc-admin-repeat-item input{ flex:1; border:1.5px solid rgba(11,31,58,0.14); border-radius:8px; padding:.6rem .85rem; font-size:.85rem; }
.afwc-admin-remove-row{ background: rgba(192,57,43,0.08); border:none; color:#c0392b; width:38px; border-radius:8px; cursor:pointer; }
.afwc-admin-add-row{ background:transparent; border:1.5px dashed rgba(11,31,58,0.2); color:#1F3A93; border-radius:8px; padding:.5rem 1rem; font-size:.82rem; font-weight:600; cursor:pointer; }
.afwc-admin-add-row:hover{ border-color:#1F3A93; }

/* Table */
.afwc-admin-table-filter{ display:flex; gap:.4rem; }
.afwc-admin-table-filter button{
  background:transparent; border:1px solid rgba(11,31,58,0.12); border-radius:20px; padding:.35rem .8rem;
  font-size:.74rem; font-weight:600; color:#5B6472; cursor:pointer;
}
.afwc-admin-table-filter button.active{ background:#1F3A93; border-color:#1F3A93; color:#fff; }

.afwc-admin-table-wrap{ overflow-x:auto; }
.afwc-admin-table{ width:100%; border-collapse: collapse; font-size:.83rem; }
.afwc-admin-table th{
  text-align:left; font-family:'JetBrains Mono', monospace; font-size:.66rem; text-transform:uppercase;
  letter-spacing:.05em; color:#9aa4b2; padding:.6rem .5rem; border-bottom: 2px solid rgba(11,31,58,0.08);
}
.afwc-admin-table td{ padding:.75rem .5rem; border-bottom: 1px solid rgba(11,31,58,0.06); color:#333; }
.afwc-admin-row-actions{ display:flex; gap:.4rem; }
.afwc-admin-row-actions button{
  width:30px; height:30px; border-radius:6px; border:1px solid rgba(11,31,58,0.1); background: var(--bg, #F5F7FA);
  color:#5B6472; cursor:pointer; font-size:.8rem;
}
.afwc-admin-row-actions button:hover{ background:#1F3A93; color:#fff; }

.afwc-admin-pill{ font-size:.68rem; font-weight:700; padding:.25rem .6rem; border-radius:20px; }
.afwc-admin-pill-blue{ background: rgba(31,58,147,0.1); color:#1F3A93; }
.afwc-admin-pill-gold{ background: rgba(212,175,55,0.16); color:#8a6c1f; }
.afwc-admin-pill-green{ background: rgba(39,174,96,0.12); color:#219150; }
.afwc-admin-pill-gray{ background: rgba(90,100,114,0.12); color:#5B6472; }

/* Inline quick-add form (events) */
.afwc-admin-inline-form{ display:flex; gap:.6rem; flex-wrap:wrap; }
.afwc-admin-inline-form input{ flex:1; min-width:120px; border:1.5px solid rgba(11,31,58,0.14); border-radius:8px; padding:.6rem .8rem; font-size:.83rem; }
.afwc-admin-inline-form button{ background:#1F3A93; color:#fff; border:none; width:42px; border-radius:8px; cursor:pointer; }

/* Dropzone */
.afwc-admin-dropzone{
  position:relative; border: 2px dashed rgba(11,31,58,0.18); border-radius:12px;
  padding: 2.2rem 1.5rem; text-align:center; color:#5B6472; cursor:pointer; transition: border-color .2s ease;
}
.afwc-admin-dropzone:hover{ border-color:#1F3A93; }
.afwc-admin-dropzone i{ font-size:2rem; color:#D4AF37; display:block; margin-bottom:.6rem; }
.afwc-admin-dropzone span{ font-size:.84rem; }
.afwc-admin-dropzone input{ position:absolute; inset:0; opacity:0; cursor:pointer; }

/* Thumb grid (gallery) */
.afwc-admin-thumb-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:.9rem; }
.afwc-admin-thumb{
  position:relative; aspect-ratio: 1/1; border-radius:10px;
  background: linear-gradient(160deg, #0B1F3A, #1F3A93); display:flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,.4); font-size:1.6rem;
}
.afwc-admin-thumb button{
  position:absolute; top:.5rem; right:.5rem; width:28px; height:28px; border-radius:50%;
  background: rgba(192,57,43,.9); color:#fff; border:none; font-size:.75rem; cursor:pointer;
}

.afwc-admin-org-current{
  display:flex; align-items:center; gap:.7rem; background: var(--bg, #F5F7FA); border-radius:8px;
  padding:.8rem 1rem; margin-bottom:1.3rem; font-size:.84rem; color:#5B6472;
}
.afwc-admin-org-current i{ color:#1F3A93; font-size:1.3rem; }

.afwc-admin-add-btn{
  background: var(--bg, #F5F7FA); border:1px solid rgba(11,31,58,0.12); border-radius:8px;
  padding:.5rem 1rem; font-size:.8rem; font-weight:600; color:#1F3A93; cursor:pointer;
}
.afwc-admin-add-btn:hover{ background:#1F3A93; color:#fff; }