/* =========================
   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) */
  --tech-bg: url("/photos/banner/cybersecurity3-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-tech{ --page-bg: var(--tech-bg); 
  --bg-pos: 20% 80%;          /* adjust later if needed */
    position: relative;
	color: #fff;
	overflow: hidden;
	min-height: 300px;
    padding: 60px 0;
}

/* Gradient overlay */
.page-header-tech::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  
  /* Subtle contrast gradient */
  background: linear-gradient(
    135deg,
    rgba(6, 22, 64, 0.65) 0%,
    rgba(10, 36, 99, 0.65) 45%,
    rgba(15, 59, 140, 0.55) 100%
  );
}

/* Keep text above overlay */
.page-header-tech .container {
  position: relative;
  z-index: 1;
}

.brand-banner{
  background: radial-gradient(
      800px 300px at center,
      rgba(255,255,255,0.06),
      transparent 60%
    ),
    linear-gradient(135deg, #0b2f6b, #123a7a);
  padding: clamp(48px, 6vw, 88px) 0;
  text-align: center;
}
/* Girls Who Code brand banner */
.page-header.brand-banner{
  background:
    radial-gradient(
      800px 300px at center,
      rgba(255,255,255,0.06),
      transparent 60%
    ),
    linear-gradient(135deg, #0b2f6b, #123a7a);

  text-align: center;
}

/* Disable global header overlays for this banner */
.page-header.brand-banner::before,
.page-header.brand-banner::after{
  content: none;
  background: none;
}

.brand-subtitle{
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;

  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;

  color: rgba(255, 255, 255, 0.9);

  border-top: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}


.gwc-logo{
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
}


/* ---------- 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;
}
/*    qr block alignment    */
.qr-block{
  margin-top: 1.5rem; /* instead of auto */
  text-align: center;
}

.qr-code-wrap{
  margin: 1rem 0;
}
.qr-code-wrap img{
  display: block;
  margin: 0.75rem auto 0;
  max-width: 190px;
  height: auto;
}

.qr-code-id{
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

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

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

.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;
  font-weight: 500;
  opacity: 0.9;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover{
  background: rgba(20, 184, 166, 0.08);
  color: var(--white);
}

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

.btn-block{
  margin-top: 1rem;
  width: 100%;
  margin-top: 0.75rem;
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.35);
}

/* =========================
   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;
}

/* Normalize section headings spacing for this page */
.section-header h2,
.section-header-stacked h2 {
  margin: 0 0 14px;   /* remove big top margin, keep a small bottom gap */
  line-height: 1.1;
}

.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 */
}

.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 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms 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(-6px); /* slightly less aggressive than -8px */
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 212, 255, 0.35);
  background-color: #ffffff;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 212, 255, 0.02),
    rgba(0, 212, 255, 0.04)
  );
}

/* Logo emphasis */
.quick-link-card:hover .card-thumb{
  transform: scale(1.04);
  transition: transform 220ms ease;
}

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

.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 Links: image icon (replaces emoji-based .card-icon) */
.quick-link-card .card-thumb{
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: block;
  border-radius: 14px;

  object-fit: cover; /* default for photos */
}

/* Optional: use for logos/icons that should NOT be cropped */
.quick-link-card .card-thumb.contain{
  object-fit: contain;
  padding: 8px;             /* gives breathing room for transparent PNGs */
}

/* Photo-style cards (infrastructure, etc.) */
.quick-link-card .card-thumb.photo{
  background: rgba(0, 212, 255, 0.10);
  border: 1px solid rgba(10, 36, 99, 0.08);
}

/* Logo-style cards (Accenture, Get Into Energy, etc.) */
.quick-link-card .card-thumb.logo{
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  object-fit: contain;
  padding: 8px;

  background: #ffffff;
  border: 1px solid rgba(10, 36, 99, 0.08);
  border-radius: 14px;
}

/* Optional: keep hover behavior consistent and polished */
.quick-link-card:hover .card-thumb{
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}


.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);
  height: 100%;
  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);
  display: flex;
  flex-direction: column;
}

.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); }

.career-callout{
  margin: 18px 0 28px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(10, 36, 99, 0.05);
  border-left: 4px solid var(--primary);
  font-size: 14px;
  color: var(--dark);
}


/* 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;
}

/* CTA pills for light sections (Explore Opportunities, cards, content areas) */
.cta-pill-light{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  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: 740px;   /* ideal academic reading width */
  margin-top: 1rem;
  margin-bottom: 0;
}
/* 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-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;
}

/* 1) Assign the banner image for this page */
.page-header-gwc{
  position: relative;
  color: #fff;
  z-index: 0;

  --page-bg: var(--gwc-bg);
  --bg-pos: center;

  min-height: 280px;
  height: auto;
  padding: clamp(48px, 6vw, 88px) 0;
  overflow: visible; /* IMPORTANT: prevents top/bottom clipping on zoom */
}

.page-header-gwc > .container{
  position: relative;
  z-index: 1;
}

/* =========================
   GWC banner: image + animation only
   ========================= */

/* 2) Keep ONLY the fade-in image layer */
.page-header-gwc::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;
  animation: bannerFadeIn 1600ms ease-in-out forwards;
  z-index: 0;
  pointer-events: none;
}


/* 3) Remove the global dark overlay for this page */
.page-header-gwc::after{
  content: none;
}

/* GWC banner: no color overlays, image-only fade-in */
.page-header.page-header-gwc::after{
  content: none !important;
  background: none !important;
}

.page-header.page-header-gwc::before{
  background-color: transparent !important;
  background-image: var(--page-bg) !important;
}


/* 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: 2.5rem;
  overflow: visible;
  align-items: stretch;
}

.content-grid.grid-2{
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 2.5rem;
  align-items: start;
}
/* Equal-width responsive grid (cards, features, skills) */
.content-grid.grid-equal{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Keep the QR card from stretching oddly */
.content-grid > aside.highlight-item{
  max-width: 360px;
  justify-self: end;
}

/* Tighten vertical rhythm inside the Get Involved column */
#get-involved .section-header{
  margin-bottom: 1.25rem;
}

#get-involved h4{
  margin-top: 0;
}

/* Make the QR card intentionally narrow */
#get-involved .highlight-item{
  max-width: 320px;
  justify-self: end;
}

/* Reduce internal padding slightly */
#get-involved .highlight-item{
  padding: 1.5rem;
}


.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); }

.contact-list{
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

.contact-list li{
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* 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: 600px){
  .gwc-logo{
    max-width: 260px;
  }
}

@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%;
  }
}

@media (max-width: 640px){
  .op-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .op-actions .btn{
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce){
  .mini-card,
  .btn{
    transition: none;
    transform: none;
  }
}



/* 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{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.mini-card:hover{
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mini-card:focus-within{
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25);
}

/* Mini-card heading accent */
.mini-card h4 {
  display: flex;
  line-height: 1.25;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;  
  margin: 0 0 0.5rem;
  position: relative;
  padding-left: 14px;
  margin-bottom: 0.5rem;
}

.mini-card h4::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #14b8a6; /* teal accent */
  opacity: 0.75;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.mini-card:hover h4::before {
  transform: scale(1.05);
  transition: transform 160ms ease;
}

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

/* Framed mini-card section */
.mini-card-group {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.mini-card .op-actions{
  margin-top: auto;
}

/* Button group normalization */
.op-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}


/* If a card includes actions later, keep them aligned at the bottom */
.mini-card .op-actions,
.mini-card .card-actions{
  margin-top: auto;
  padding-top: 1rem;
}

/* 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-sig,
  .page-header-membership,
  .page-header-contact,
  .page-header-join{ --bg-pos: center; }
  .page-header-gwc,
  .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 (min-width: 1400px) {
  .page-header-lead {
    max-width: 720px;
  }
}

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

@media (max-width: 480px){
  .content-grid.grid-equal{
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* =========================
   GWC WHO WE ARE: Mobile fix
   ========================= */

@media (max-width: 768px){
  /* Make the two-column grid stack cleanly */
  #gwc-who .content-grid.grid-2{
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Let the right QR card expand to full width */
  #gwc-who .content-grid > aside.highlight-item{
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  /* Prevent long emails from forcing odd wrapping */
  #gwc-who .mini-card a{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Optional: center the QR block on mobile for balance */
  #gwc-who .qr-block{
    text-align: center;
  }

  /* Optional: keep QR image from getting too large */
  #gwc-who .qr-code-wrap img{
    max-width: 220px;
  }
}

/* =========================
   Mobile safety patch
   Append at end of cloud-styles.css (or global styles)
   No class renames required
   ========================= */

@media (max-width: 980px){

  /* Banner spacing + readability */
  .page-header { padding: 56px 0; }
  .page-header-title { font-size: clamp(34px, 6vw, 44px); }
  .page-header-lead { font-size: 16px; max-width: 40ch; }

  /* Any 3-column and 2-column card grids collapse cleanly */
  .quick-links-three-col,
  .quick-links-two-col,
  .content-grid.grid-equal{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* “How sessions work” layout (two-column) stacks */
  .what-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Event cards stack so the date column does not squeeze text */
  .events-grid{
    gap: 14px;
  }
  .event-card{
    grid-template-columns: 1fr;
  }
  .event-date{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
    border-radius: 12px;
  }
}

@media (max-width: 520px){

  /* Reduce horizontal padding so cards do not feel tight */
  .container{ padding-left: 16px; padding-right: 16px; }

  /* Keep long headings from feeling oversized */
  h2{ font-size: clamp(22px, 5.4vw, 28px); }
  .event-info h3{ font-size: 18px; }

  /* Buttons should wrap, not overflow */
  .cta-buttons,
  .op-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .btn{ width: 100%; text-align: center; }
}


/* =========================
   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;
  }
}