/* =========================
   ACM + UPE Website Styles
   Fresh baseline stylesheet
   ========================= */

/* ---------- CSS Variables ---------- */
:root{
  --primary: #0a2463;
  --primary-light: #1e3a8a;
  --secondary: #00d4ff;
  --accent: #ff6b35;

  --dark: #0f172a;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --white: #ffffff;

  --gradient-1: linear-gradient(135deg, #0a2463 0%, #1e3a8a 100%);
  --gradient-2: linear-gradient(135deg, #00d4ff 0%, #0a2463 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /*BANNER IMAGE PATH (update as needed) */
  --hero-bg: url("/photos/banner/gsu-dbuilding1.jpg");
  --about-bg: url("/photos/banner/about-bg.jpg");
  --activities-bg: url("/photos/banner/cyber-image.jpg");
  --sig-bg: url("/photos/banner/collab.jpg");
  --membership-bg: url("/photos/banner/upe.jpg");
  --contact-bg: url("/photos/banner/contact.jpeg");
  --join-bg: url("/photos/banner/acm_chapter_banner.jpg");
  --highlight-bg: url("/photos/banner/highlight-bg.png");

}

/* Page-specific banner assignment */
.page-header-index{ --page-bg: var(--hero-bg); 
    --bg-pos: 40% 15%; 
    min-height: 290px;
    padding: 10px 0
}
.page-header-about{ --page-bg: var(--about-bg); }
.page-header-activities{ --page-bg: var(--activities-bg); }
.page-header-sig{ --page-bg: var(--sig-bg); }
.page-header-membership{ --page-bg: var(--membership-bg); }
.page-header-contact{ --page-bg: var(--contact-bg); }
.page-header-join{ --page-bg: var(--join-bg); } 
.page-header-highlight{ --page-bg: var(--highlight-bg); }


/* ---------- Reset + Base ---------- */
*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family: "Work Sans", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 90px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  position: relative;
}

/* Site-wide soft gradient accents (Option A style) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.12), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08), transparent 55%);
  pointer-events:none;
  z-index:-1;
}

h1,h2,h3,h4,h5,h6{
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

img{ max-width:100%; display:block; }

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accessibility ---------- */
:focus-visible{
  outline: 3px solid rgba(0, 212, 255, 0.55);
  outline-offset: 3px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid rgba(10,36,99,0.15);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  z-index: 2000;
}

/* ---------- Motion Preferences ---------- */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Navigation
   ========================= */
.navbar{
  position: fixed;
  top:0; left:0; right:0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  z-index: 1000;
  animation: navSlideDown 0.5s ease;
}

@keyframes navSlideDown{
  from{ transform: translateY(-100%); }
  to{ transform: translateY(0); }
}

.nav-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 18px;
}

.nav-logo{
  font-family: "Rajdhani", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.nav-logo-container{
  display:flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-university{
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.5px;
}

.nav-brands{
  display:flex;
  align-items:center;
  font-size: 28px;
  font-weight: 700;
  gap: 2px;
}

.logo-acm{ color: var(--primary); }
.logo-separator{ color: var(--secondary); font-weight: 500; }
.logo-upe{ color: var(--accent); }

.nav-links{
  display:flex;
  gap: 32px;
  align-items:center;
}

.nav-links a{
  text-decoration:none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta):hover{ color: var(--secondary); }

.nav-links a:not(.nav-cta).active::after,
.nav-links a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-6px;
  height: 2px;
  background: var(--secondary);
}

.nav-cta{
  background: var(--gradient-1);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(10,36,99,0.08);
}

.nav-cta:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-toggle{
  display:none;
  flex-direction: column;
  gap: 6px;
  cursor:pointer;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(10,36,99,0.10);
  background: rgba(255,255,255,0.70);
}

.nav-toggle span{
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================
   Hero Section
   ========================= */
.hero{
  position: relative;
  min-height: calc(82vh - 90px); /* subtract navbar height */
  display: flex;
  align-items: center;
  padding-top: 0;
  overflow: hidden;
}

/* Option 2: Banner background image 
.hero-background{
  position: absolute;
  inset: 0;
  z-index: 0;                 
  background:
    linear-gradient(
      90deg,
      rgba(248, 250, 252, 0.98) 0%,
      rgba(248, 250, 252, 0.92) 40%,
      rgba(248, 250, 252, 0.80) 65%,
      rgba(248, 250, 252, 0.55) 100%
    ),
    var(--hero-bg);
  background-size: cover;
  background-position: 70% 95%;
  background-repeat: no-repeat;
} */

.hero-content{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;

  /* Match navbar container geometry */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;   

  position: relative;
  z-index: 1;
}


.hero-text{ 
  animation: fadeInUp 0.8s ease both;
  animation-fill-mode: both;
  margin-top: 18px;
}

@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(30px); }
  to{ opacity:1; transform: translateY(0); }
}

.hero-title{
  font-size: 50px;
  line-height: 1.05;          /* slightly tighter */
  margin-bottom: 20px;        /* was 24px */
  letter-spacing: -0.3px;     /* subtle refinement */
}

.title-line{
  display:block;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:text;
  color: transparent;
}

/* Homepage hero title (readability-first) */
.hero-title-line{
  display: block;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.15;
}

.hero-subtitle{
  font-size: 19px;                 /* down from 20px */
  color: rgba(100, 116, 139, 0.85);/* softer than full gray */
  max-width: 620px;               /* tighter reading width */
  margin-bottom: 28px;            /* was 32px */
}

.hero-buttons{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Optional “stats” block if used */
.hero-stats{
  display:grid;
  gap: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* =========================
   Hero Visual (Optional block)
   Use this ONLY if a page includes <div class="hero-visual">...
   Clean architecture: base + modifiers
   ========================= */
.hero-visual{
  display: flex;
  justify-content: flex-end;
  align-self: start;
  justify-self: end; /* grid-level right alignment */
}

.hero-visual-stack{
  width: min(460px, 100%);
  position: relative;
  transform: translateY(0px);
  width: min(520px, 100%);  /* slightly larger allowed width */
}

.hero-visual-frame{
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

/* Photo variant */
.hero-visual-frame.hero-photo{
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 36, 99, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.hero-photo .hero-visual-img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

/* Logo variant (ACM approved image) */
.hero-visual-frame.hero-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(10,36,99,0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.hero-logo .hero-visual-img{
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  filter: none;
}

.hero-visual-label{
  margin-top: 14px;
  text-align:center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.4px;
}

/* =========================
   Buttons
   ========================= */
.btn{
  display:inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration:none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary{
  background: var(--gradient-1);
  color: var(--white);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary{
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover{
  background: var(--primary);
  color: var(--white);
}

.btn-outline{
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover{
  background: var(--primary);
  color: var(--white);
}

.btn-large{
  padding: 18px 40px;
  font-size: 18px;
}

/* =========================
   Sections + Cards
   ========================= */
section{ padding: 48px 0; }

.section-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 32px;
  gap: 18px;
}

/* Tighter sections (cards, lists, transitions) */
.section-compact{
  padding: 56px 0;
}

/*.section-compact .about-text{
  padding-top: 16px;
}*/

/* Visual break sections (events, hero-adjacent) */
.section-soft{
  padding: 48px 0 80px;
}

.section-soft .events-grid{
  overflow: visible;
}

.section-soft .event-card{
  overflow: visible;
}

.section-header h2{
  font-size: 48px;
  color: var(--primary);
}

.view-all{
  color: var(--secondary);
  text-decoration:none;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.25s ease;
  display:inline-block;
}

.view-all:hover{ transform: translateX(4px); }

/* =========================
   Upcoming Events (Home)
   ========================= */
.upcoming-preview{
  padding: 56px 0 40px;              /* tighter bottom so it flows into What We Do */
  background: transparent;
  position: relative;
}

.upcoming-preview::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(226, 232, 240, 0.9); /* same “light-gray line” used elsewhere */
}

/* Tighten What We Do top spacing so it connects naturally */
.what-we-do{
  padding: 40px 0 56px;              /* keeps the section strong, reduces extra top feel */
}

@media (max-width: 700px){
  .upcoming-preview{
    padding: 48px 0 32px;
  }
  .what-we-do{
    padding: 32px 0 48px;
  }
  .page-header-inner{
    max-width: 100%;
  }
}

/* Quick Links */
.quick-links{
  padding: 56px 0;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  position: relative;
}

.quick-links::before{
  content:"";
  position:absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(226, 232, 240, 0.9); /* light-gray line */
}

.quick-link-card{
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.quick-link-card p{
  margin-bottom: auto; /* pushes arrow down consistently */
}

.quick-link-card img,
.card-thumb {
  height: 140px;                /* keep container height */
  object-fit: contain;          /* no cropping */
  object-position: center;
  padding: 12px;                /* creates visual breathing room */
  background: #fff;             /* or your card background */
  border-radius: 8px;
}

.card-arrow{
  margin-top: 18px;
}

.quick-links-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Two-column adaptive quick links layout */
.quick-links-two-col{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Maintain responsiveness on zoom and smaller screens */
@media (max-width: 900px){
  .quick-links-two-col{
    grid-template-columns: 1fr;
  }
  .footer-content{
    grid-template-columns: 1fr;
  }
}

/* Three-column adaptive quick links layout */
.quick-links-three-col{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Step down to two columns on smaller/zoomed views */
@media (max-width: 1050px){
  .quick-links-three-col{
    grid-template-columns: repeat(2, minmax(0, 1fr)); ;
  }
}

/* Step down to one column on mobile */
@media (max-width: 700px){
  .quick-links-three-col{
    grid-template-columns: 1fr;
  }
}

/* Optional: keeps cards aligned nicely in rows */
.quick-links-three-col .quick-link-card{
  height: 100%;
}

.quick-link-card{
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  text-decoration:none;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position:relative;
  overflow:hidden;
  border: 1px solid rgba(10,36,99,0.06);
}

.quick-link-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 4px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.quick-link-card:first-child{
  border-color: rgba(0, 212, 255, 0.35);
}

.quick-link-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.quick-link-card:hover::before{ transform: scaleX(1); }

.card-icon{
  font-size: 48px;
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.10);
  border: 1px solid rgba(10, 36, 99, 0.08);
  font-size: 30px;
}

.quick-link-card h3{
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--primary);
}

.quick-link-card p{
  color: var(--gray);
  margin-bottom: 16px;
}

.card-arrow{
  font-size: 24px;
  color: var(--secondary);
  transition: transform 0.25s ease;
  display:inline-block;
}

.quick-link-card:hover .card-arrow{ transform: translateX(8px); }

/* Events */
.events-grid{ 
   display:grid; 
   gap: 24px; 
   overflow: visible;
}

.event-card{
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display:grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 4px solid transparent;
  border: 1px solid rgba(10,36,99,0.06);
}

.event-card .btn {
  margin-top: 16px;
}

.event-card .btn-outline{
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.event-card .btn-outline:hover{
  background: var(--primary);
  color: var(--white);
}

.event-card .btn-outline:focus-visible{
  outline: 3px solid rgba(10, 36, 99, 0.45);
  outline-offset: 3px;
}

.event-card:hover{
  border-left-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.event-date{
  background: var(--gradient-1);
  color: var(--white);
  border-radius: 12px;
  padding: 16px;
  text-align:center;
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
}

.date-month{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.date-day{
  font-family: "Rajdhani", sans-serif;
  font-size: 36px;
  font-weight: 700;
}

.date-year{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}

.event-info h3{
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary);
}

.event-time{
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.event-desc{ 
  color: var(--gray); 
 }

/* About Preview */
.about-preview{ background: #f8fafc; }

.about-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:start;
}

.about-text h2{
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 24px;
}

.about-text p{
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 20px;
}

.about-text .btn{ margin-top: 16px; }

.about-highlights{ display:grid; gap: 24px; }

.highlight-item{
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(10,36,99,0.06);
}

.highlight-item:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.highlight-item h4{
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.highlight-item p{ color: var(--gray); }

/* CTA 
.cta-section{
  position: relative;
  background: var(--gradient-1);
  color: var(--white);
  padding: 64px 0;      /* was likely larger 
}

.cta-content{
  text-align:justify;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-content h2{
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--white);
}

.cta-content p{
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 72ch;      /* ideal readable line length 
  margin: 14px auto 0;
}

.cta-buttons{
  display:flex;
  gap: 16px;
  justify-content:center;
  flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cta-section .btn-primary{
  background: var(--white);
  color: var(--primary);
}

.cta-section .btn-outline{
  color: var(--white);
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.85);
}

.cta-section .btn-outline:hover{
  background: var(--white);
  color: var(--primary);
    background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,1);
}*/

/* =========================
   CTA Section (navigation-friendly)
   ========================= */
.cta-section{
  position: relative;
  background: var(--gradient-1);
  color: var(--white);
  padding: 64px 0;
}

/* Keep the CTA content contained and readable */
.cta-content{
  text-align: center;     /* scan-friendly */
  max-width: 920px;       /* prevents overly-wide lines */
  margin: 0 auto;
}

/* Title spacing */
.cta-content h2{
  margin-bottom: 12px;
}

/* Readable paragraph width (not full page) */
.cta-content p{
  max-width: 80ch;        /* comfortable reading width */
  margin: 14px auto 0;
  opacity: 0.95;
  line-height: 1.75;
}

/* Highlights row (your “pills” or tags) */
.cta-highlights{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 18px;
}

.cta-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Buttons layout */
.cta-buttons{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cta-buttons .btn{
  min-width: 280px;
}

/* CTA button variants (so they remain readable on the dark gradient) */
.cta-section .btn-primary{
  background: var(--white);
  color: var(--primary);
  border-color: transparent;
}

.cta-section .btn-outline{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.85);
}

.cta-section .btn-outline:hover{
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Mobile and zoom behavior */
@media (max-width: 700px){
  .cta-buttons .btn{
    width: 100%;
    max-width: 420px;
  }
}

/* Footer */
.footer{
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 24px;
}
.footer-about p{
  max-width: 420px;
  line-height: 1.6;
}

.footer-content{
  display: grid;
  grid-template-columns: 2fr .75fr 1.5fr 1.5fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-section h3, .footer-section h4{
  margin-bottom: 16px;
  color: var(--white);
}

.footer-section p{
  max-width: 300px;
  color: var(--light-gray);
  margin-bottom: 16px;
}

.footer-section ul{ list-style:none; }

.footer-section ul li{ margin-bottom: 12px; }

.footer-section ul li a{
  color: var(--light-gray);
  text-decoration:none;
  transition: color 0.25s ease;
}

.footer-section:first-child p{
  max-width: 360px;
  line-height: 1.7;
}

.footer-section ul li a:hover{ color: var(--secondary); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align:center;
  color: var(--light-gray);
}

/* Page Header (internal pages) */
.page-header{
  background: var(--gradient-1);
  color: var(--white);
  padding: 64px 0 56px;  /* slightly tighter than 120px */
  margin-top: 0px;
  position: relative;
  overflow:hidden;
}


.page-header::before,
.page-header::after{
  pointer-events: none;
}

.page-header .container{
  position: relative;
  z-index: 2;
}
.page-header-title{
  max-width: 720px;
  margin-bottom: 18px;
}

.page-header-lead{
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
}
/* About page header with background image */
.page-header-about{
	position: relative;
	color: #fff;
	overflow: hidden;
	z-index: 0;                  /* not negative */
    min-height: 300px;
    padding: 60px 0;
} 


.page-header-activities{
	position: relative;
	color: #fff;
	overflow: hidden;
	z-index: 0;                  /* not negative */
    min-height: 300px;
    padding: 60px 0;
}

.page-header-highlight{
	position: relative;
	color: #fff;
	overflow: hidden;
	z-index: 0;                  /* not negative */
    min-height: 300px;
    padding: 60px 0;
}

.page-header-sig{
	position: relative;
	color: #fff;
	overflow: hidden;
	z-index: 0;                  /* not negative */
    min-height: 300px;
    padding: 60px 0;
}

.page-header-membership{
	position: relative;
	color: #fff;
	overflow: hidden;
	z-index: 0;                  /* not negative */
    min-height: 300px;
    padding: 60px 0;
}

.page-header-contact{
	position: relative;
	color: #fff;
	overflow: hidden;
	z-index: 0;                  /* not negative */
    min-height: 300px;
    padding: 60px 0;
}

.page-header-join{
	position: relative;
	color: #fff;
	overflow: hidden;
	z-index: 0;                  /* not negative */
    min-height: 300px;
    padding: 60px 0;
}

/* Image layer */
/* Overlay layer (readability) */
/* Ensure text sits on top 
.page-header-about .container{
  position: relative;
  z-index: 2;
}

.page-header-activities .container{
  position: relative;
  z-index: 2;
}

.page-header-sig .container{
  position: relative;
  z-index: 2;
}

.page-header-membership .container{
  position: relative;
  z-index: 2;
}

.page-header-contact .container{
  position: relative;
  z-index: 2;
}

.page-header-join .container{
  position: relative;
  z-index: 2;
} */

/*.page-header-inner{
  max-width: 620px;
  padding: 34px 38px;
  border-radius: 18px;
    /* keep the card readable but lighter 
  background: rgba(10, 36, 99, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 44px rgba(0,0,0,0.20);
  }*/

.page-header::before{
  content: "";
  position: absolute;
  inset: 0;

  background-image: var(--page-bg);
  background-size: cover;
  background-position: var(--bg-pos, center);
  background-repeat: no-repeat;

  opacity: 0;
  transform: none;                 /* no movement */
  animation: bannerFadeIn 1600ms ease-in-out forwards;

  pointer-events: none;
  z-index: 0;
}

.page-header::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,36,99,0.88) 0%,
    rgba(10,36,99,0.88) 33%,
    rgba(10,36,99,0.55) 55%,
    rgba(10,36,99,0.22) 75%,
    rgba(10,36,99,0.06) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* 1) Stronger readability overlay (index only) */
.page-header-index::after{
  background: linear-gradient(
    90deg,
    rgba(10,36,99,0.92) 0%,
    rgba(10,36,99,0.88) 35%,
    rgba(10,36,99,0.55) 60%,
    rgba(10,36,99,0.10) 100%
  );
}

/* 2) Headline color (high contrast) */
.page-header-index h1,
.page-header-index .page-header-title{
  color: #ffffff;
  font-weight: 700;
  line-height: 1.15;
}

/* 3) Paragraph/lead text (readable but softer than headline) */
.page-header-index p,
.page-header-index .page-header-lead,
.page-header-index .hero-subtitle{
  color: rgba(255,255,255,0.92);
}

/* 4) Buttons: keep them readable on the banner */
.page-header-index .btn-outline{
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}
.page-header-index .btn-outline:hover{
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Index hero: make the secondary button readable at rest */
.page-header-index .btn-secondary{
  background-color: rgba(255,255,255,0.14) !important;
  opacity: 1 !important;
  color: #ffffff;
  border-color: rgba(255,255,255,0.75);
}

.page-header-index .btn-secondary:hover{
  background-color: #ffffff !important;
  color: var(--primary);
  border-color: #ffffff;
}

@keyframes bannerFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.page-header h1{
  font-size: 56px;
  margin-bottom: 16px;
}

.page-header p{
  font-size: 20px;
  opacity: 0.9;
  max-width: 700px;
}

/* Content Grid */
.content-section{ 
   padding: 60px 0 48px; 
 }

.content-grid{
  display: grid;
  margin-top: 24px;
  align-items: start;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  overflow: visible;
  align-items: stretch;
}

.grid-3{
  grid-template-columns: repeat(3, 1fr);
}


/* Officers */
.officers-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.officer-card{
  background: var(--white);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(10,36,99,0.06);
}

.officer-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.officer-image{
  width:100%;
  height: 280px;
  background: var(--gradient-1);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 80px;
}

.officer-info{ padding: 24px; }

.officer-info h3{
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}

.officer-role{
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.officer-info p{
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
}

.officer-contact{
  display:flex;
  gap: 12px;
  margin-top: 16px;
}

.officer-contact a{
  color: var(--gray);
  text-decoration:none;
  transition: color 0.25s ease;
}

.officer-contact a:hover{ color: var(--secondary); }

/* Forms */
.form-container{ max-width: 700px; margin: 0 auto; }

.form-group{ margin-bottom: 24px; }

.form-group label{
  display:block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select{
  width:100%;
  padding: 14px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  outline:none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.form-group textarea{
  min-height: 150px;
  resize: vertical;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1150px){
  .nav-links{
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 18px;
  }

  .nav-links.active{ transform: translateX(0); }
  .nav-toggle{ display:flex; }

  .hero-title{ font-size: 48px; }
  .hero-content{ grid-template-columns: 1fr; }
  .about-split{ grid-template-columns: 1fr; }

  .section-header{
    flex-direction: column;
    align-items:flex-start;
    gap: 16px;
  }

  .event-card{ 
  grid-template-columns: 1fr; 
  }

  .officers-grid{
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 640px){
  .hero-title{ font-size: 36px; }
  .hero-subtitle{ font-size: 16px; }
  .section-header h2{ font-size: 32px; }
  .quick-links-grid{ grid-template-columns: 1fr; }
  .cta-content h2{ font-size: 32px; }
}

@media (min-width: 1600px){
  .hero-background{
    background-position: 70% 97%;
  }
}

/* Utility */
.text-center{ text-align:center; }
.mb-2{ margin-bottom: 16px; }
.mb-4{ margin-bottom: 32px; }
.mt-4{ margin-top: 32px; }

/* Section header (stacked variant for home sections) */
.section-header-stacked{
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px; /* tighter so cards feel connected */
}

.section-header-stacked h2{
  margin: 0;
  line-height: 1.1;
}

.section-lead{
  margin-top: 10px;
  max-width: none;
  color: var(--gray);
  font-size: 18px;
}

.section-micro{
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--gray);
}

/* =========================
   What We Do
   ========================= */
.what-we-do{
  padding: 40px 0;
}

.what-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-top: 22px;
}

.what-text{
  max-width: 720px;
}

.what-block{
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10,36,99,0.08);
}

.what-block h3{
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}

.what-block p{
  color: var(--gray);
  font-size: 16px;
  margin: 0;
}

.what-note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10,36,99,0.04);
  border: 1px solid rgba(10,36,99,0.08);
  color: var(--dark);
}

.what-cards{
  display: grid;
  gap: 16px;
  align-content: start;
}

.mini-card{
  background: var(--white);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,36,99,0.06);
  overflow: visible;
  height: 100%;
}

.mini-card h4{
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--primary);
}

.mini-card p{
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 980px){
  .what-grid{
    grid-template-columns: 1fr;
  }
  .what-text{
    max-width: none;
  }
}

@media (max-width: 768px){
  .page-header-about,
  .page-header-activities,
  .page-header-highlight,
  .page-header-sig,
  .page-header-membership,
  .page-header-contact,
  .page-header-join{ --bg-pos: center; }
  .content-grid{ grid-template-columns: 1fr;}
}

.cta-section::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

.cta-points{
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
}

.cta-points li{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 600;
  font-size: 14px;
}

.cta-highlights{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 18px;
}

.cta-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- UPE Eligibility Table ---------- */
.upe-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.upe-table thead th{
  background: #0a2463; /* deep academic blue */
  color: #ffffff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}

.upe-table tbody td{
  padding: 12px 14px;
  border-top: 1px solid rgba(10, 36, 99, 0.15);
}

.upe-table tbody tr:nth-child(even){
  background: rgba(10, 36, 99, 0.04);
}

.upe-table td:nth-child(2),
.upe-table td:nth-child(3){
  text-align: center;
  font-weight: 500;
}

/* =========================
   MOBILE NAV FIX (PATCH)
   Paste at END of styles.css
   ========================= */

/* Mobile + tablet nav: keep hamburger visible and prevent overflow */
@media (max-width: 700px){
   body{ padding-top: 96px; }

 /* Let the header wrap instead of pushing the toggle off-screen */
  .nav-container{
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
	align-items: center;
  }

  /* Brand block takes full width and centers */
  .nav-logo{
    width: auto;                 /* allow space for hamburger */
    flex: 1;                     /* take remaining space */
    display: flex;
    justify-content: center;
  }

  .nav-logo-container{
    align-items: center;
    text-align: center;
  }

  /* Reduce brand sizing for phones so nothing overflows */
  .nav-brands{
    font-size: 22px;
  }

  .nav-university{
    font-size: 12px;
  }

  /* Keep hamburger visible and aligned */
  .nav-toggle{
    margin-left: auto;             /* pins hamburger to the right */
    flex-shrink: 0;                /* prevents shrinking */
  }

  /* Make dropdown sit directly under navbar (not a fixed overlay that misaligns) */
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;

    padding: 16px;
    gap: 14px;
    border-top: 1px solid rgba(10,36,99,0.10);
  }

  /* When your JS adds .active, show it cleanly */
  .nav-links.active{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Prevent side scrolling caused by wide items */
  .navbar{ overflow-x: clip; }
}

/* Tablet range: keep toggle reachable even when the logo is wider */
@media (min-width: 701px) and (max-width: 1150px){
  .nav-container{
    align-items: center;
  }
  .nav-toggle{
    margin-left: auto;
  }
  .nav-links{
    position: fixed; /* keep your existing behavior for tablets if you prefer */
    left: 0; right: 0;
  }
}

@media (max-width: 420px){
  .nav-brands{ font-size: 20px; }
}

/* =========================
   FOOTER MOBILE ALIGNMENT
   ========================= */
@media (max-width: 700px){
  .footer-content{
    grid-template-columns: 1fr !important;
    gap: 22px;
    text-align: center;
  }

  .footer-section p,
  .footer-section ul{
    margin-left: auto;
    margin-right: auto;
  }

  .footer-about p,
  .footer-section:first-child p{
    max-width: 52ch;
  }
}