:root {
    --afsn-navy: #0d1b3d;
    --afsn-navy-deep: #0a1a3f;  
    --afsn-orange: #b63806;
    --afsn-orange-light: #b63806;
    --afsn-ink: #1a1a1a;
    --afsn-paper: #f6f4ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 0;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
}

/* Top navbar overlay — Oxford-style, sits directly on the photo */
.fh-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    background: transparent;
}

.fh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: #fff;
    padding: 8px 16px 8px 8px;
}

.fh-logo img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: contain;
}

.fh-logo span {
    color: var(--afsn-navy, #0d1b3d);
    font-weight: 700;
    font-size: 1.05rem;
}

.fh-navlinks {
    display: flex;
    gap: 28px;
}

.fh-navlinks a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.fh-navlinks a:hover {
    opacity: 0.75;
}

.fh-navactions {
    display: flex;
    gap: 10px;
}

.fh-action-btn {
    background: var(--afsn-navy, #0a1a3f); 
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fh-action-btn:hover {
    background: var(--afsn-orange, #b63806); 
}

@media (max-width: 900px) {
    .fh-navbar {
        padding: 18px 20px;
    }
    .fh-navlinks {
        display: none;
    }
    .fh-action-btn span {
        display: none;
    }
    .fh-logo span {
        display: none;
    }
}

/* ---------- Search + toggle strip ---------- */
.afsn-search-strip {
    background: var(--afsn-navy, #0a1a3f); 
    padding: 34px 40px;
}

.ass-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.ass-text h3 {
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    max-width: 420px;
}

.ass-controls {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.ass-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    cursor: pointer;
}

.ass-radio input {
    display: none;
}

.ass-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    position: relative;
    flex-shrink: 0;
}

.ass-radio input:checked + .ass-dot {
    border-color: #0a1a3f;  
}

.ass-radio input:checked + .ass-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #0a1a3f;  
}

.ass-search-box {
    display: flex;
    min-width: 260px;
}

.ass-search-box input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.ass-search-box input:focus {
    outline: none;
}

.ass-search-box button {
    background: var(--afsn-orange, #b63806);   
    border: none;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ass-search-box button:hover {
    background: var(--afsn-orange-light, #b63806); 
}

/* ---------- Three-photo feature row ---------- */
.afsn-feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.afr-card {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    text-decoration: none;
}

.afr-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.afr-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,17,39,0.85) 0%, rgba(7,17,39,0.15) 55%, transparent 100%);
}

.afr-label {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (hover: hover) {
    .afr-card:hover img {
        transform: scale(1.06);
    }
}

/* ---------- Split event banner ---------- */
.afsn-event-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--afsn-navy, #0a1a3f);  
    min-height: 280px;
}

.aeb-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 60px;
    color: #fff;
}

.aeb-text h3 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1.3;
    margin: 0 0 14px;
    max-width: 420px;
}

.aeb-text p {
    color: rgba(255,255,255,0.78);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 26px;
    max-width: 400px;
}

.aeb-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #b63806;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 24px;
    width: fit-content;
    transition: background 0.2s ease;
}

.aeb-link:hover {
    background: var(--afsn-orange, #b63806);
    color: #fff;
}

.aeb-image {
    overflow: hidden;
}

.aeb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

/* Featured Story Hero — afsn-style layout, AFSN palette */
.feature-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: #fff;
    margin: 0;
}

.feature-hero-bg {
    position: absolute;
    inset: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(15%);
}

.feature-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7,17,39,0.92) 0%, rgba(7,17,39,0.55) 45%, rgba(7,17,39,0.15) 75%);
}

/* Content block */
.feature-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 0 40px 60px;
}

.feature-hero-badge {
    display: inline-block;
    background: #b63806;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    margin-bottom: 22px;
}

.feature-hero-badge-class{
    display: inline-block;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
}

.feature-hero-content h1 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0 0 20px;
}

.feature-hero-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 30px;
    max-width: 560px;
}

.fh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #b63806;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 26px;
}

.fh-cta:hover {
    background: #b63806;
    color: #fff;
}

/* Bottom toggle bar */
.feature-hero-toggle {
    position: relative;
    z-index: 2;
    background: var(--afsn-navy, #0a1a3f);   
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 22px 20px;
}

.fh-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.fh-toggle.active {
    color: #fff;
}

.fh-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    position: relative;
}

.fh-toggle.active .fh-radio {
   border-color: var(--afsn-navy, #0a1a3f);  
}

.fh-toggle.active .fh-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--afsn-navy, #0a1a3f);  
}

.fh-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #0a1a3f;  
    display: none;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.fh-mobile-menu.open {
    display: flex;
}

.fh-mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    margin-bottom: 30px;
}

.fh-mobile-links {
    display: flex;
    flex-direction: column;
}

.fh-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.fh-mobile-links a i {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
}

.fh-mobile-cta {
    margin-top: auto;
    padding-top: 30px;
}

.fh-mobile-cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.fh-mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--afsn-navy,  #0a1a3f);    
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-hero-content {
        padding: 0 20px 45px;
    }
    .feature-hero-toggle {
        gap: 30px;
        padding: 18px 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .feature-hero {
        min-height: 78vh;
    }
    .feature-hero-content h1 {
        font-size: 1.7rem;
    }
    .feature-hero-content p {
        font-size: 0.95rem;
    }
}

/* ---------- Filter bar ---------- */
.gallery-filter-bar {
    position: sticky;
    top: 78px; /* sits just under the fixed navbar */
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.gallery-filter-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #d8d8d8;
    color: var(--afsn-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--afsn-orange);
    color: var(--afsn-orange);
}

.filter-btn.active {
    background: var(--afsn-navy);
    border-color: var(--afsn-navy);
    color: #fff;
}

.filter-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: #888;
}

/* ---------- Grid (masonry via CSS columns) ---------- */
.gallery-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px 90px;
}

.gallery-grid {
    columns: 4 260px;
    column-gap: 14px;
}

.gallery-item {
    margin: 0 0 14px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .gallery-item:hover img {
        transform: scale(1.06);
    }
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 14px;
    background: linear-gradient(to top, rgba(7,17,39,0.92) 0%, rgba(7,17,39,0.4) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
    opacity: 1;
    transform: translateY(0);
}

.cap-title {
    font-size: 0.92rem;
    font-weight: 600;
}

.cap-meta {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.75);
}

/* Hidden state used by the filter script */
.gallery-item.is-hidden {
    display: none;
}

.gallery-empty {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 60px 20px;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(7, 17, 39, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.open {
    display: flex;
}

.lightbox-figure {
    max-width: 90vw;
    max-height: 86vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-figure img {
    max-width: 90vw;
    max-height: 74vh;
    object-fit: contain;
    display: block;
}

.lightbox-figure figcaption {
    color: #fff;
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 600px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--afsn-orange);
    border-color: var(--afsn-orange);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-nav.prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .gallery-grid {
        columns: 3 220px;
    }
}

@media (max-width: 768px) {
    .gallery-header {
        padding: 130px 20px 55px;
    }
    .gallery-filter-bar {
        top: 70px;
    }
    .gallery-filter-inner {
        padding: 14px 20px;
    }
    .gallery-main {
        padding: 30px 16px 70px;
    }
    .gallery-grid {
        columns: 2 160px;
        column-gap: 10px;
    }
    .gallery-item {
        margin-bottom: 10px;
    }
    .lightbox-nav {
        width: 38px;
        height: 38px;
    }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .gallery-header h1 {
        font-size: 1.9rem;
    }
    .gallery-header p {
        font-size: 0.95rem;
    }
    .gallery-grid {
        columns: 2 130px;
    }
    .filter-btn {
        font-size: 0.78rem;
        padding: 7px 14px;
    }
    .filter-count {
        width: 100%;
        margin-left: 0;
        order: 10;
    }
    .lightbox {
        padding: 16px;
    }
    .lightbox-figure figcaption {
        font-size: 0.85rem;
    }
}


/* ================= ALU CAMPUS HERO BANNER ================= */

.afsn-alu-hero {
  position: relative;
  min-height: 60vh;
  background-image: url('images/alu-campus.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;   /* was: center */
  overflow: hidden;
}

.afsn-alu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 17, 39, 0.25) 0%,
    rgba(7, 17, 39, 0.55) 50%,
    rgba(7, 17, 39, 0.9) 100%
  );
  z-index: 1;
}

.afsn-alu-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 40px 80px;   /* was: 60px 40px — extra bottom padding added */
  color: #fff;
}

.afsn-alu-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--afsn-orange,  #b63806);   
  margin: 0 0 16px;
}

.afsn-alu-hero-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 15px;
}

.afsn-alu-hero-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  max-width: 560px;
}

.afsn-alu-hero-btn {
  display: inline-block;
  background: var(--afsn-orange,  #b63806);  
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.afsn-alu-hero-btn:hover { background: #b63806; }   

@media (max-width: 768px) {
  .afsn-alu-hero { min-height: 50vh; }
  .afsn-alu-hero-content { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .afsn-alu-hero { min-height: 45vh; }
}