/*
Theme Name:   APQEC Child
Theme URI:    https://apqec.com
Description:  APQEC Child Theme for Hello Elementor
Author:       APQEC Dev
Template:     hello-elementor
Version:      1.0.0
Text Domain:  apqec-child
*/

/* ============================================================
   CSS TOKENS
   ============================================================ */
:root {
  --color-primary:      #1E5EAD;
  --color-primary-dark: #1352A1;
  --color-navy:         #0F2745;
  --color-orange:       #FF5903;
  --color-green:        #07EE9E;
  --color-cyan:         #00DEEE;
  --color-gold:         #E6B73B;
  --color-black:        #000000;
  --color-white:        #FFFFFF;

  --font-heading: 'Raleway', sans-serif;
  --font-body:    'Kumbh Sans', sans-serif;

  --radius-card: 12px;
  --radius-btn:  6px;
  --transition:  0.3s ease;
  --container:   1200px;
  --section-pad: 80px 0;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--color-navy); background: #fff; overflow-x: hidden; line-height: 1.6; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; transition: color var(--transition); }
ul    { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; color: var(--color-navy); }
h1 { font-size: clamp(2rem,5vw,3.5rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.5rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.75rem); }
p  { font-family: var(--font-body); line-height: 1.7; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.apqec-container   { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.apqec-section     { padding: var(--section-pad); }
.apqec-section-header { text-align: center; margin-bottom: 48px; }
.apqec-section-header h2 { margin-bottom: 12px; }
.apqec-section-header p  { color: #666; max-width: 600px; margin: 0 auto; }

.apqec-section--dark { background: var(--color-navy); color: #fff; }
.apqec-section--dark h1,
.apqec-section--dark h2,
.apqec-section--dark h3 { color: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.apqec-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent;
}
.apqec-btn--primary       { background: var(--color-cyan); color: var(--color-navy); border-color: var(--color-cyan); }
.apqec-btn--primary:hover { background: transparent; color: var(--color-cyan); }
.apqec-btn--outline       { background: transparent; color: #fff; border-color: #fff; }
.apqec-btn--outline:hover { background: #fff; color: var(--color-navy); }
.apqec-btn--outline-cyan       { background: transparent; color: var(--color-cyan); border-color: var(--color-cyan); }
.apqec-btn--outline-cyan:hover { background: var(--color-cyan); color: var(--color-navy); }

/* ============================================================
   EYEBROW
   ============================================================ */
.apqec-eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: .8rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--color-cyan); border: 1px solid var(--color-cyan);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 16px;
}

/* ============================================================
   APQEC MATURE HEADER
   ============================================================ */
/* 1. Header Wrapper */
.apqec-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 25px 0;
    background: transparent; /* Changed to transparent to match hero */
}

.apqec-header.scrolled {
    background-color: #0F2745 !important;
    padding: 15px 0;
}

/* 2. Inner Container - The Secret to Centering */
.apqec-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes Logo left and CTA right */
}

/* 3. Logo & Right Side (Equal widths so Center stays Center) */
.apqec-header__logo-wrap, 
.apqec-header__right {
    flex: 1; 
}

.apqec-header__right {
    display: flex;
    justify-content: flex-end;
}

/* Hide Home link specifically on the homepage */
.home .apqec-menu-list li.menu-item-home {
    display: none !important;
}

/* 4. The Menu (The fix for the stacking issue) */
.apqec-header__nav-desktop {
    flex: 3; /* Gives the menu room */
    display: flex;
    justify-content: center;
}

/* Strip WordPress Default UL styles */
.apqec-menu-list {
    display: flex !important; /* Force horizontal row */
    flex-direction: row !important;
    list-style: none !important; /* Remove bullets */
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px; /* Space between links */
}

.apqec-menu-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.apqec-menu-list li a {
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-decoration: none;
    white-space: nowrap;
}

/* Logo Sizing */
.apqec-header__logo img {
    height: 28px; /* Matching the edited image's slim look */
    width: auto;
}

/* Sponsor Button Styling - Updated for Image Icon */
.apqec-header__sponsor {
    border: 1px solid rgba(255,255,255,0.6);
    padding: 12px 18px;
	border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;

    /* Use flexbox to align image and text vertically */
    display: inline-flex !important;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.apqec-header__sponsor:hover {
    background: #fff;
    color: #000;
}

/* New CSS rule for the sponsor icon image */
.apqec-sponsor-icon {
    height: 14px; /* Set a fixed height that matches the text size */
    width: auto;  
    display: block;
    margin: 0;
}

.apqec-sponsor-icon:hover {
/*     background: #fff; */
/*     color: #000000; */
}

/* Responsive Hamburger */
.apqec-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.apqec-hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* Mobile Breakpoint */
@media (max-width: 1100px) {
    .apqec-header__nav-desktop,
    .apqec-header__sponsor {
        display: none;
    }
    
    .apqec-hamburger {
        display: flex;
    }

    .apqec-header__inner {
        padding: 0 20px;
    }
}

/* ============================================================
   HOMEPAGE HERO — taken from ola.html, converted to WordPress
   ============================================================ */
.apqec-hero-home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #1E5EAD 0%, #1352A1 100%);
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Centre content wrapper */
.apqec-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

/* African map — behind heading, inside .apqec-hero-content */
.apqec-hero-map {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  max-width: 700px;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
}
.apqec-hero-map svg { width: 100%; height: auto; display: block; }

/* Title — sits above map via z-index on siblings */
.apqec-hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 4.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

/* Gold underline SVG */
.apqec-hero-underline {
  position: relative; z-index: 1;
  display: block; width: 100%;
  margin: 12px auto 0;
  line-height: 0;
}
.apqec-hero-underline svg { width: 100%; height: auto; display: block; }

/* Subtitle */
.apqec-hero-subtext {
  position: relative; z-index: 1;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  margin: 24px auto;
}
.apqec-hero-num { color: var(--color-cyan); font-weight: 700; }

/* CTA button */
.apqec-hero-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  border: 2px solid var(--color-cyan);
  color: #fff;
  padding: 18px 36px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.apqec-hero-cta:hover { background: var(--color-cyan); color: var(--color-navy); }

/* ============================================================
   FLOATING BADGES — positions taken from ola.html exactly
   ============================================================ */
.apqec-b {
  position: absolute;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600; font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  z-index: 1;
}
/* Top badges */
.apqec-b1 { background: #FF5903; color: #fff; top: 15%; left: 5%;   transform: rotate(-25deg); }
.apqec-b2 { background: #07EE9E; color: #004d40; top: 12%; left: 25%; transform: rotate(-20deg); }
.apqec-b3 { background: #0F2745; color: #fff; top: 12%; right: 35%; transform: rotate(20deg); }
.apqec-b4 { background: #FF5903; color: #fff; top: 15%; right: 8%;  transform: rotate(15deg); }
/* Bottom badges */
.apqec-b5  { background: #fff;     color: #000;    bottom: 15%; left: 0%;   transform: rotate(-10deg); }
.apqec-b6  { background: #07EE9E; color: #004d40; bottom: 12%; left: 0%;  transform: rotate(-10deg); }
.apqec-b7  { background: #FF5903; color: #fff;    bottom: 13%; left: 0%;  transform: rotate(5deg); }
.apqec-b8  { background: #E6B73B; color: #444;    bottom: 15%; right: 0%; transform: rotate(-5deg); }
.apqec-b9  { background: #07EE9E; color: #004d40; bottom: 13%; right: 0%; transform: rotate(5deg); }
.apqec-b10 { background: #0F2745; color: #fff;    bottom: 20%; right: 10%; transform: rotate(12deg); }

/* ============================================================
   TICKER — taken from ola.html
   ============================================================ */
.apqec-ticker-wrap {
  position: absolute; bottom: 0; width: 100%;
  background: #0F2745; padding: 14px 0;
  overflow: hidden; white-space: nowrap; z-index: 4;
}
.apqec-ticker {
  display: inline-block;
  animation: apqec-scroll 30s linear infinite;
  font-family: var(--font-body);
  font-weight: 700; font-size: .85rem;
  text-transform: uppercase; color: #fff;
}
.apqec-ticker span { margin: 0 20px; }
.apqec-ticker span::after { content: " \2731 "; margin-left: 20px; opacity: .45; color: var(--color-cyan); }
@keyframes apqec-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   INNER PAGE HERO (non-homepage)
   ============================================================ */
.apqec-hero {
  background: var(--color-primary);
  padding: 130px 20px 70px;
  position: relative; overflow: hidden;
  min-height: 420px; display: flex; align-items: center;
}
.apqec-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,222,238,.08) 0%, transparent 50%);
  z-index: 0;
}
.apqec-hero__inner { max-width: var(--container); margin: 0 auto; position: relative; z-index: 1; }
.apqec-hero__eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--color-cyan);
  border: 1px solid rgba(0,222,238,.4); padding: 5px 16px; border-radius: 20px; margin-bottom: 20px;
}
.apqec-hero__title { font-family: var(--font-heading); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.apqec-hero__subtitle { font-family: var(--font-body); color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 600px; margin-bottom: 32px; }
.apqec-hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   LOGOS ROW
   ============================================================ */
/* ============================================================
   JOIN ENGINEERS FROM — Logo grid

   ============================================================ */

.apqec-logos-section {
  background: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

/* Section heading — reuses existing h2 type scale */
.apqec-logos-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 56px;
}

/* 8-column grid on desktop — 2 neat rows of 8 */
.apqec-partners-grid,
.apqec-logos-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 48px 32px;
  align-items: center;
  justify-items: center;
}

/* Logo image — standardised height, grayscale default */
.apqec-logo-item img {
  max-width: 100%;
  height: auto;
  max-height: 36px;
  display: block;
/*   filter: grayscale(100%); */
  opacity: 0.6;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}

.apqec-logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 4 columns */
@media (max-width: 1024px) {
  .apqec-partners-grid,
  .apqec-logos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
  }
}

/* Large mobile: 3 columns */
@media (max-width: 768px) {
  .apqec-logos-section {
    padding: 60px 0;
  }
  .apqec-logos-section__title {
    font-size: 1.3rem;
    margin-bottom: 40px;
  }
  .apqec-partners-grid,
  .apqec-logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
  }
}

/* Small mobile: 2 columns */
@media (max-width: 480px) {
  .apqec-logos-section {
    padding: 48px 0;
  }
  .apqec-logos-section__title {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
  .apqec-partners-grid,
  .apqec-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
  .apqec-logo-item img {
    max-height: 28px;
  }
}

/* ============================================================
   STATS BAR
   ============================================================ */

.apqec-stats-bar {
  background: rgba(0, 222, 238, 0.08); 
  padding: 72px 20px;
  width: 100%;
}

.apqec-stats-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 16px;
}

.apqec-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 140px;
}

/* Separator lines between items */
.apqec-stat-item + .apqec-stat-item {
  border-left: 1px solid rgba(0, 222, 238, 0.25);
}

.apqec-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: 10px;
  /* smooth counter animation */
  transition: color 0.3s ease;
  display: block;
}

.apqec-stat-label {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: keep flex but shrink font */
@media (max-width: 1024px) {
  .apqec-stats-bar {
    padding: 56px 20px;
  }
  /* Remove border separators on wrap — they look broken */
  .apqec-stat-item + .apqec-stat-item {
    border-left: none;
  }
  .apqec-stat-item {
    min-width: 120px;
  }
}

/* Mobile: 2-column grid */
@media (max-width: 600px) {
  .apqec-stats-bar {
    padding: 48px 16px;
  }
  .apqec-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 8px;
  }
  .apqec-stat-item {
    min-width: unset;
    border-left: none !important;
  }
  /* Last item alone on bottom row: centre it */
  .apqec-stat-item:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

/* ============================================================
   TRACKS INTRO & GRID STYLES
   ============================================================ */
.apqec-tracks-intro {
    padding: 100px 0;
    background: #FFFFFF;
}

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

/* Red Intro Text */
.apqec-intro-text {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    text-align: center;
}

.apqec-intro-text h2 {
    font-family: 'Raleway', sans-serif;
    color: #E31B23; /* Bright Red from design */
    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Grid Layout */
.apqec-tracks-grid {
    display: flex;
    background: #000000; /* Black background for the grid container */
    border-radius: 12px;
    overflow: hidden;
}

.apqec-track-card {
    flex: 1;
    padding: 50px 30px;
    border-right: 1px solid #333333; /* Vertical dividers */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.apqec-track-card:last-child {
    border-right: none;
}

/* Update the icon wrapper to handle font icons */
.apqec-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

/* Style for Boxicons (i tags) */
.apqec-icon-wrapper i {
    font-size: 24px;
    color: #FFFFFF;
}

/* Style for Google Symbols (span tags) */
.apqec-icon-wrapper .material-symbols-outlined {
    font-size: 24px;
    color: #FFFFFF;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Specific color for the outlined icon version */
.apqec-icon-wrapper.blue-outline .material-symbols-outlined {
    color: #2D63ED;
}

/* ============================================================
   ICON WRAPPER BACKGROUNDS & CENTERING
   ============================================================ */

.apqec-icon-wrapper {
    width: 56px;           /* Size of the circle */
    height: 56px;          /* Size of the circle */
    border-radius: 50%;    /* Makes it a perfect circle */
    display: flex;         /* Essential for centering icon */
    align-items: center;   /* Vertical center */
    justify-content: center; /* Horizontal center */
    margin-bottom: 25px;
    transition: transform 0.3s ease; /* Subtle animation on hover */
}

/* Ensure the icons inside are white and the right size */
.apqec-icon-wrapper i,
.apqec-icon-wrapper .material-symbols-outlined {
    color: #FFFFFF;
    font-size: 26px;
    display: block;
}

/* Specific Background Styles */

.apqec-icon-wrapper.blue { 
    background: #2D63ED; 
}

.apqec-icon-wrapper.dark-blue { 
    background: #1C3FAA; 
}

.apqec-icon-wrapper.blue-outline { 
    border: 2px solid #2D63ED; 
    background: transparent;   } 

/* For the outlined version, make the icon color match the border */
.apqec-icon-wrapper.blue-outline i,
.apqec-icon-wrapper.blue-outline .material-symbols-outlined {
    color: #2D63ED; 
}

.apqec-icon-wrapper.blue-grad { 
    background: radial-gradient(circle at center, #2D63ED 0%, #1C3FAA 100%); 
}

/* Hover effect for the whole card to make the icon pop */
.apqec-track-card:hover .apqec-icon-wrapper {
    transform: translateY(-5px);
}


/* Card Typography */
.apqec-track-card h3 {
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.apqec-track-card p {
    color: #BBBBBB; /* Muted gray text */
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Small orange checkmark bullet effect */
.apqec-track-card p::before {
    content: '✓';
    color: #F7931E;
    font-weight: bold;
    margin-right: 10px;
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */
@media (max-width: 992px) {
    .apqec-tracks-grid {
        flex-wrap: wrap;
    }
    .apqec-track-card {
        flex: 50%; /* 2x2 grid on tablets */
        border-bottom: 1px solid #333333;
    }
    .apqec-track-card:nth-child(even) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .apqec-intro-text h2 {
        font-size: 20px;
    }
    .apqec-track-card {
        flex: 100%; /* Single column on mobile */
        border-right: none;
    }
}

/* DEEP DIVE */

/* Section Base */
.apqec-deep-dive {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.apqec-section-title {
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 42px;
    color: #0F2745;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* Grid Layout */
.apqec-deep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on Desktop */
    gap: 25px;
}

/* Card Styling */
.apqec-deep-card {
    border-radius: 12px;
    padding: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease;
}

.apqec-deep-card:hover {
    transform: translateY(-5px);
}

/* Card Typography */
.apqec-deep-card h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    color: #0F2745;
    text-transform: uppercase;
    margin: 0;
}

.apqec-deep-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
    color: #FFFFFF; /* White text for the gold card */
}

.apqec-track-number {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #0F2745;
}

/* Color Variants from Inspo */
.apqec-deep-card.gold { background-color: #E6B33E; }
.apqec-deep-card.gold h3 { color: #FFFFFF; }
.apqec-deep-card.gold .apqec-track-number { color: #FFFFFF; }

.apqec-deep-card.light-grey { background-color: #EBEBEB; }
.apqec-deep-card.mint { background-color: #E6FBF5; }
.apqec-deep-card.cream { background-color: #FEF9EB; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .apqec-deep-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet */
    }
}

@media (max-width: 768px) {
    .apqec-deep-grid {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
    }
    .apqec-section-title {
        font-size: 32px;
    }
    .apqec-deep-card {
        min-height: 300px;
        padding: 30px;
    }
}

/* ============================================================
   MEET OUR SPEAKERS SECTION
   ============================================================ */

/* ---- Section wrapper ---- */
.apqec-speakers-section {
  position: relative;
  background: var(--color-navy);
  padding: 100px 0;
  overflow: hidden;
  color: #fff;
}

/* Dot-grid overlay — pure CSS, no image file needed */
.apqec-speakers-section__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(244,244,244,0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Cyan glow blobs — decorative, match the SVG design */
.apqec-speakers-section::before,
.apqec-speakers-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}
.apqec-speakers-section::before {
  width: 380px; height: 380px;
  background: rgba(0, 222, 238, 0.18);
  top: -80px; right: -60px;
}
.apqec-speakers-section::after {
  width: 320px; height: 320px;
  background: rgba(0, 222, 238, 0.12);
  bottom: 40px; left: -80px;
}

/* ---- Top bar ---- */
.apqec-speakers-section__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}

.apqec-speakers-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.1;
}

.apqec-speakers-section__sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 420px;
}

.apqec-speakers-section__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ---- Speaker cards grid ---- */
.apqec-speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Individual card ---- */
.apqec-speaker-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;       /* square cards matching design */
  background: #0a1f3a;       /* fallback while image loads */
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.apqec-speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

/* Photo */
.apqec-speaker-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.apqec-speaker-card:hover .apqec-speaker-card__photo {
  transform: scale(1.04);
}

/* Placeholder when no image */
.apqec-speaker-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a3a5c 0%, #0a1f3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient overlay */
.apqec-speaker-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(5, 15, 35, 0.95) 0%,
    rgba(5, 15, 35, 0.7)  50%,
    transparent           100%
  );
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

/* Name & role */
.apqec-speaker-card__name {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  line-height: 1.2;
}

.apqec-speaker-card__role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
}

/* Social icons */
.apqec-speaker-card__socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.apqec-speaker-card__socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.apqec-speaker-card__socials a:hover {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: var(--color-navy);
}

/* ---- Footer link ---- */
.apqec-speakers-section__footer {
  text-align: center;
  margin-top: 56px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .apqec-speakers-section {
    padding: 72px 0;
  }
  .apqec-speakers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .apqec-speakers-section__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .apqec-speakers-section {
    padding: 56px 0;
  }
  .apqec-speakers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .apqec-speakers-section__actions {
    width: 100%;
  }
  .apqec-speakers-section__actions .apqec-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
    padding: 12px 16px;
  }
  .apqec-speaker-card__name {
    font-size: 0.88rem;
  }
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.apqec-schedule__tabs { display: flex; border-radius: var(--radius-card); overflow: hidden; border: 1px solid #e0e0e0; margin-bottom: 32px; width: fit-content; flex-wrap: wrap; }
.apqec-schedule__tab  { padding: 12px 24px; font-family: var(--font-body); font-size: .85rem; font-weight: 600; cursor: pointer; background: #fff; color: var(--color-navy); border: none; transition: all var(--transition); }
.apqec-schedule__tab.active,
.apqec-schedule__tab:hover { background: var(--color-primary); color: #fff; }
.apqec-schedule__day { display: none; }
.apqec-schedule__day.active { display: block; }
.apqec-schedule__day-header { background: var(--color-navy); color: #fff; padding: 20px 28px; border-radius: var(--radius-card) var(--radius-card) 0 0; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; }
.apqec-schedule__sessions   { border: 1px solid #e0e0e0; border-top: none; border-radius: 0 0 var(--radius-card) var(--radius-card); overflow: hidden; }
.apqec-schedule__session    { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid #e0e0e0; transition: background var(--transition); }
.apqec-schedule__session:last-child { border-bottom: none; }
.apqec-schedule__session:hover { background: #f8faff; }
.apqec-schedule__time { padding: 20px; font-family: var(--font-body); font-size: .82rem; font-weight: 700; color: var(--color-primary); border-right: 1px solid #e0e0e0; display: flex; align-items: flex-start; }
.apqec-schedule__info { padding: 20px; }
.apqec-schedule__session-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--color-navy); margin-bottom: 4px; }
.apqec-schedule__session-meta  { font-family: var(--font-body); font-size: .8rem; color: #888; }

/* ============================================================
   AWARDS NIGHT
   ============================================================ */
.apqec-awards-night { background: var(--color-navy); padding: 80px 20px; text-align: center; }
.apqec-awards-night h2 { color: #fff; margin-bottom: 20px; }
.apqec-awards-night p  { color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto 32px; }

/* ============================================================
   ABOUT
   ============================================================ */
.apqec-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.apqec-about__card { background: var(--color-navy); border-radius: var(--radius-card); padding: 40px; color: #fff; }
.apqec-about__card h3 { color: #fff; margin-bottom: 16px; }
.apqec-about__card p  { color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.7; margin-bottom: 24px; }

/* ============================================================
   FAQ
   ============================================================ */
.apqec-faq__list { max-width: 780px; margin: 40px auto 0; border: 1px solid #e0e0e0; border-radius: var(--radius-card); overflow: hidden; }
.apqec-faq__item { border-bottom: 1px solid #e0e0e0; }
.apqec-faq__item:last-child { border-bottom: none; }
.apqec-faq__question { width: 100%; text-align: left; padding: 20px 24px; font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--color-navy); background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background var(--transition); }
.apqec-faq__question:hover,
.apqec-faq__question.open { background: #f8faff; }
.apqec-faq__icon { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; font-weight: 300; transition: all var(--transition); }
.apqec-faq__question.open .apqec-faq__icon { background: var(--color-navy); color: #fff; transform: rotate(45deg); }
.apqec-faq__answer { display: none; padding: 0 24px 20px; font-family: var(--font-body); font-size: .9rem; color: #666; line-height: 1.7; }
.apqec-faq__answer.open { display: block; }

/* ============================================================
   AWARDS / VOTE PAGE
   ============================================================ */
.apqec-awards-tabs { display: flex; gap: 40px; border-bottom: 2px solid #e0e0e0; margin-bottom: 48px; flex-wrap: wrap; }
.apqec-awards-tab  { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: #aaa; cursor: pointer; padding-bottom: 16px; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); text-transform: uppercase; background: none; border-top: none; border-left: none; border-right: none; }
.apqec-awards-tab.active { color: var(--color-navy); border-bottom-color: var(--color-navy); }
.apqec-tab-panel { display: none; }
.apqec-tab-panel.active { display: block; }
.apqec-awards-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.apqec-awards-actions .apqec-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 18px; }
.apqec-awards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.apqec-award-card { background: var(--color-navy); border-radius: var(--radius-card); padding: 32px 24px; text-align: center; border-bottom: 3px solid var(--color-gold); transition: transform var(--transition), border-color var(--transition); }
.apqec-award-card:hover { transform: translateY(-4px); border-bottom-color: var(--color-cyan); }
.apqec-award-card__icon  { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.apqec-award-card__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: #fff; text-transform: uppercase; margin-bottom: 12px; }
.apqec-award-card__desc  { font-family: var(--font-body); font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ============================================================
   PROCESS PAGE
   ============================================================ */
.apqec-eligibility__list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.apqec-eligibility__item { background: var(--color-navy); color: #fff; padding: 18px 24px; border-radius: var(--radius-card); font-family: var(--font-body); font-size: .95rem; display: flex; align-items: center; gap: 12px; }
.apqec-eligibility__item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-cyan); flex-shrink: 0; }
.apqec-how-it-works__grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-card); overflow: hidden; margin-top: 32px; }
.apqec-how-step { padding: 40px; min-height: 200px; }
.apqec-how-step--gold   { background: var(--color-gold); }
.apqec-how-step--orange { background: var(--color-orange); color: #fff; }
.apqec-how-step--blue   { background: var(--color-primary); color: #fff; }
.apqec-how-step--green  { background: var(--color-green); }
.apqec-how-step__label  { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; }
.apqec-how-step__desc   { font-family: var(--font-body); font-size: .88rem; line-height: 1.6; opacity: .85; }
.apqec-evaluation { background: #000; border-radius: var(--radius-card); padding: 40px; margin-top: 60px; }
.apqec-evaluation h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 20px; }
.apqec-evaluation p  { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 10px; }
.apqec-timeline { margin-top: 60px; }
.apqec-timeline h2 { margin-bottom: 32px; }
.apqec-timeline__grid { display: grid; grid-template-columns: repeat(3,1fr); position: relative; }
.apqec-timeline__grid::before { content:''; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--color-navy); }
.apqec-timeline__item  { position: relative; padding-top: 40px; }
.apqec-timeline__dot   { width: 14px; height: 14px; background: var(--color-navy); border-radius: 50%; position: absolute; top: 10px; left: 0; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--color-navy); }
.apqec-timeline__month { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--color-navy); margin-bottom: 6px; }
.apqec-timeline__event { font-family: var(--font-body); font-size: .85rem; color: #666; }

/* ============================================================
   PARTNERS PAGE
   ============================================================ */
.apqec-partnership-plans__eyebrow { text-align: center; font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--color-primary); margin-bottom: 8px; }
.apqec-plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.apqec-plan-card { border: 1px solid #e0e0e0; border-radius: var(--radius-card); padding: 32px; transition: all var(--transition); }
.apqec-plan-card:hover { border-color: var(--color-primary); box-shadow: 0 8px 32px rgba(30,94,173,.12); transform: translateY(-4px); }
.apqec-plan-card__icon  { width: 48px; height: 48px; background: rgba(0,222,238,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.4rem; }
.apqec-plan-card__name  { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--color-navy); margin-bottom: 4px; }
.apqec-plan-card__price { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--color-primary); margin-bottom: 16px; }
.apqec-plan-card__label { font-family: var(--font-body); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #888; margin-bottom: 16px; }
.apqec-plan-card__features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.apqec-plan-card__feature { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-body); font-size: .85rem; color: #555; line-height: 1.5; }
.apqec-plan-card__feature::before { content: '✓'; width: 18px; height: 18px; background: var(--color-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6rem; color: var(--color-navy); font-weight: 900; flex-shrink: 0; margin-top: 2px; }
.apqec-plan-card .apqec-btn { width: 100%; justify-content: center; font-size: .9rem; }

/* ============================================================
   CREW PAGE
   ============================================================ */
.apqec-crew__filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.apqec-filter-btn { padding: 8px 18px; border-radius: 30px; font-family: var(--font-body); font-size: .8rem; font-weight: 600; cursor: pointer; background: #fff; color: var(--color-navy); border: 1.5px solid #ddd; transition: all var(--transition); }
.apqec-filter-btn.active,
.apqec-filter-btn:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.apqec-crew__grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.apqec-crew-card { border-radius: var(--radius-card); overflow: hidden; position: relative; background: var(--color-navy); cursor: pointer; }
.apqec-crew-card__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.apqec-crew-card__overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent,rgba(15,39,69,.95)); padding: 30px 10px 10px; }
.apqec-crew-card__name { font-family: var(--font-heading); font-size: .8rem; font-weight: 800; color: #fff; }
.apqec-crew-card__role { font-family: var(--font-body); font-size: .68rem; color: var(--color-cyan); margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.apqec-footer { background: var(--color-navy); padding: 60px 20px 0; }
.apqec-footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.apqec-footer__brand p { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.7; margin-top: 16px; max-width: 360px; }
.apqec-footer__logo img { height: 34px; }
.apqec-footer__social { display: flex; gap: 12px; margin-top: 24px; }
.apqec-footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .85rem; transition: all var(--transition); }
.apqec-footer__social a:hover { border-color: var(--color-cyan); color: var(--color-cyan); background: rgba(0,222,238,.1); }
.apqec-footer__social-label { font-family: var(--font-body); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.5); margin-top: 24px; margin-bottom: 12px; }
.apqec-footer__col-title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 20px; }
.apqec-footer__links { display: flex; flex-direction: column; gap: 10px; }
.apqec-footer__links a { font-family: var(--font-body); font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.apqec-footer__links a:hover { color: var(--color-cyan); }
.apqec-footer__bottom { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.apqec-footer__bottom p { font-family: var(--font-body); font-size: .8rem; color: rgba(255,255,255,.4); }
.apqec-footer__wordmark { text-align: center; padding: 20px 0 0; overflow: hidden; }
.apqec-footer__wordmark img { width: 100%; max-width: 100%; opacity: .15; }

/* ============================================================
   CTA SECTION (shared)
   ============================================================ */
.apqec-cta-section { background: #EAF1FB; padding: 80px 20px; text-align: center; }
.apqec-cta-section h2 { margin-bottom: 12px; color: var(--color-navy); }
.apqec-cta-section p  { color: #555; max-width: 500px; margin: 0 auto 32px; font-size: .95rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  /* Header */
  .apqec-header__nav     { display: none; }
  .apqec-header__sponsor { display: none; }  /* hide desktop sponsor btn */
  .apqec-hamburger       { display: flex; }

  /* Hero badges stay but scale down */
  .apqec-b { font-size: 11px; padding: 9px 18px; }

  /* Grids */
  .apqec-tracks__grid             { grid-template-columns: repeat(2,1fr); }
  .apqec-speakers__grid           { grid-template-columns: repeat(2,1fr); }
  .apqec-speakers__grid--session  { grid-template-columns: repeat(4,1fr); }
  .apqec-crew__grid               { grid-template-columns: repeat(4,1fr); }
  .apqec-footer__inner            { grid-template-columns: 1fr 1fr; }
  .apqec-plans-grid               { grid-template-columns: repeat(2,1fr); }
  .apqec-stats-bar__grid          { grid-template-columns: repeat(3,1fr); }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  :root { --section-pad: 56px 0; }

  /* Hero — hide badges, keep content readable */
  .apqec-b           { display: none; }
  .apqec-hero-home   { padding: 100px 20px 60px; min-height: 100svh; }
  .apqec-hero-title  { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .apqec-hero-subtext { font-size: .95rem; }
  .apqec-hero-cta    { font-size: .75rem; padding: 14px 20px; white-space: normal; text-align: center; }

  /* Inner page hero */
  .apqec-hero { padding: 110px 20px 56px; }
  .apqec-hero__buttons { flex-direction: column; align-items: flex-start; }

  /* Stats */
  .apqec-stats-bar__grid { grid-template-columns: repeat(2,1fr); gap: 32px; }

  /* Speakers */
  .apqec-speakers__header  { flex-direction: column; align-items: flex-start; }
  .apqec-speakers__grid    { grid-template-columns: repeat(2,1fr); }
  .apqec-speakers__grid--keynote { grid-template-columns: repeat(2,1fr); }
  .apqec-speakers__grid--session { grid-template-columns: repeat(3,1fr); }

  /* Crew */
  .apqec-crew__grid { grid-template-columns: repeat(3,1fr); }

  /* Awards */
  .apqec-awards-grid    { grid-template-columns: repeat(2,1fr); }
  .apqec-awards-tabs    { gap: 16px; }
  .apqec-awards-actions { grid-template-columns: 1fr; }

  /* Process */
  .apqec-how-it-works__grid { grid-template-columns: 1fr; }
  .apqec-timeline__grid     { grid-template-columns: 1fr; gap: 32px; }
  .apqec-timeline__grid::before { display: none; }

  /* About / partners */
  .apqec-about__grid { grid-template-columns: 1fr; gap: 24px; }
  .apqec-plans-grid  { grid-template-columns: 1fr; }

  /* Footer */
  .apqec-footer__inner  { grid-template-columns: 1fr; gap: 32px; }
  .apqec-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Schedule */
  .apqec-schedule__session { grid-template-columns: 90px 1fr; }
  .apqec-tracks__grid      { grid-template-columns: 1fr; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .apqec-speakers__grid           { grid-template-columns: 1fr; }
  .apqec-speakers__grid--keynote  { grid-template-columns: 1fr; }
  .apqec-speakers__grid--session  { grid-template-columns: repeat(2,1fr); }
  .apqec-crew__grid               { grid-template-columns: repeat(2,1fr); }
  .apqec-awards-grid              { grid-template-columns: 1fr; }
  .apqec-stats-bar__grid          { grid-template-columns: repeat(2,1fr); }
  .apqec-awards-tab               { font-size: .78rem; }
}

/* ============================================================
   APQEC — RESPONSIVE ADDITIONS
   Add this at the BOTTOM of your style.css, after all existing rules
   ============================================================ */

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.apqec-mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--color-navy);
  flex-direction: column;
  padding: 100px 32px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.apqec-mobile-nav.open {
  transform: translateX(0);
}

/* Show only on mobile */
@media (max-width: 1100px) {
  .apqec-mobile-nav {
    display: flex;
  }
}

.apqec-mobile-nav .apqec-menu-list {
  flex-direction: column !important;
  gap: 0 !important;
  width: 100%;
}

.apqec-mobile-nav .apqec-menu-list li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.apqec-mobile-nav .apqec-menu-list li a {
  display: block;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.apqec-mobile-nav .apqec-menu-list li a:hover {
  color: var(--color-cyan);
}

/* Sponsor button inside mobile nav */
.apqec-mobile-nav__sponsor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.3s ease;
  align-self: flex-start;
}

.apqec-mobile-nav__sponsor:hover {
  background: #fff;
  color: var(--color-navy);
}

.apqec-mobile-nav__sponsor img {
  height: 14px;
  width: auto;
}

/* Close button inside drawer */
.apqec-mobile-nav__close {
  position: absolute;
  top: 28px; right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 4px;
}

/* Body lock when nav open */
body.apqec-nav-open {
  overflow: hidden;
}

/* Hamburger active state — becomes X */
.apqec-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.apqec-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.apqec-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.apqec-hamburger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   HEADER FIXES
   ============================================================ */

/* Ensure hamburger always sits on the right */
@media (max-width: 1100px) {
  .apqec-header__right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  /* Keep logo-wrap and right equal so content stays balanced */
  .apqec-header__logo-wrap {
    flex: 1;
  }
}

/* ============================================================
   HERO — additional small screen fixes
   ============================================================ */
@media (max-width: 480px) {
  .apqec-hero-home {
    padding: 80px 16px 70px;
    justify-content: center;
  }

  .apqec-hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .apqec-hero-subtext {
    font-size: 0.88rem;
    margin: 16px auto;
  }

  .apqec-hero-cta {
    font-size: 0.72rem;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }

  .apqec-ticker {
    font-size: 0.75rem;
  }
}

/* ============================================================
   STATS BAR — fix 5-column overflow on small screens
   ============================================================ */
@media (max-width: 380px) {
  .apqec-stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .apqec-stats-bar__number {
    font-size: 2rem;
  }
}

/* ============================================================
   TRACKS — single column fix
   ============================================================ */
@media (max-width: 480px) {
  .apqec-tracks__grid {
    grid-template-columns: 1fr;
  }

  .apqec-track-card {
    min-height: 140px;
  }
}

/* ============================================================
   SCHEDULE — time column too narrow on small screens
   ============================================================ */
@media (max-width: 480px) {
  .apqec-schedule__session {
    grid-template-columns: 1fr;
  }

  .apqec-schedule__time {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px 8px;
    font-size: 0.78rem;
  }

  .apqec-schedule__info {
    padding: 8px 16px 16px;
  }

  .apqec-schedule__tabs {
    width: 100%;
  }

  .apqec-schedule__tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.72rem;
  }
}

/* ============================================================
   SPEAKERS — cards overflow on very small screens
   ============================================================ */
@media (max-width: 360px) {
  .apqec-speakers__grid,
  .apqec-speakers__grid--keynote {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ — padding fix on mobile
   ============================================================ */
@media (max-width: 480px) {
  .apqec-faq__question {
    padding: 16px;
    font-size: 0.88rem;
  }

  .apqec-faq__answer {
    padding: 0 16px 16px;
  }
}

/* ============================================================
   AWARDS NIGHT — stacked buttons
   ============================================================ */
@media (max-width: 480px) {
  .apqec-awards-night > .apqec-container > div {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   FOOTER — bottom text wrap
   ============================================================ */
@media (max-width: 480px) {
  .apqec-footer__bottom p {
    font-size: 0.72rem;
  }

  .apqec-footer__wordmark img {
    opacity: 0.1;
  }
}

/* ============================================================
   ABOUT CARDS — padding reduction on mobile
   ============================================================ */
@media (max-width: 480px) {
  .apqec-about__card {
    padding: 24px;
  }
}

/* ============================================================
   INNER PAGE HERO — text overflow fix
   ============================================================ */
@media (max-width: 480px) {
  .apqec-hero {
    padding: 90px 16px 48px;
    min-height: auto;
  }

  .apqec-hero__title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}

/* ============================================================
   PROCESS PAGE — timeline fix for very small
   ============================================================ */
@media (max-width: 480px) {
  .apqec-how-step {
    padding: 24px;
  }
}

/* ============================================================
   PLAN CARDS — full width on mobile
   ============================================================ */
@media (max-width: 480px) {
  .apqec-plan-card {
    padding: 24px;
  }
}

/* ============================================================
   APQEC — RESPONSIVE ADDITIONS
   Paste this at the very BOTTOM of your style.css
   ============================================================ */

/* ============================================================
   HEADER — smooth scroll transition
   ============================================================ */

/* Smooth transition on all header properties */
.apqec-header {
  transition:
    background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding         0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow      0.45s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state: solid navy with a frosted glow */
.apqec-header.scrolled {
  background: rgba(15, 39, 69, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0 !important;
  box-shadow:
    0 1px 0 rgba(0, 222, 238, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Logo shrinks slightly on scroll */
.apqec-header .apqec-header__logo img {
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.apqec-header.scrolled .apqec-header__logo img {
  height: 22px;
}

/* ============================================================
   SPONSOR BUTTON — hide on mobile, show in drawer instead
   ============================================================ */
@media (max-width: 1100px) {
  .apqec-header__sponsor {
    display: none !important;
  }
}

/* ============================================================
   HAMBURGER — animated to X when active
   ============================================================ */
.apqec-hamburger {
  display: none; /* shown only ≤1100px via existing CSS */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
  z-index: 1100;
  position: relative;
}

.apqec-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.25s ease,
              width     0.35s ease;
  transform-origin: center;
}

/* Active state → clean X */
.apqec-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.apqec-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.apqec-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .apqec-hamburger {
    display: flex;
  }
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.apqec-mobile-nav {
  /* Hidden by default — slides in from right */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 1050;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 48px;
  overflow-y: auto;

  /* Hidden off-screen */
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform  0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s step-end;
}

/* Open state */
.apqec-mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform  0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s step-start;
}

/* Nav links list */
.apqec-mobile-nav .apqec-menu-list {
  flex-direction: column !important;
  gap: 0 !important;
  width: 100%;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.apqec-mobile-nav .apqec-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 !important;
  padding: 0 !important;
}

.apqec-mobile-nav .apqec-menu-list li a {
  display: block;
  padding: 17px 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.apqec-mobile-nav .apqec-menu-list li a:hover,
.apqec-mobile-nav .apqec-menu-list li a.active {
  color: var(--color-cyan);
  padding-left: 6px;
}

/* Sponsor button inside drawer */
.apqec-mobile-nav__sponsor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.apqec-mobile-nav__sponsor:hover {
  background: var(--color-cyan);
  color: var(--color-navy);
  border-color: var(--color-cyan);
}

.apqec-mobile-nav__sponsor img {
  height: 13px;
  width: auto;
}

/* Close (X) button */
.apqec-mobile-nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.apqec-mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* The X lines */
.apqec-mobile-nav__close span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.apqec-mobile-nav__close span:first-child  { transform: rotate(45deg); }
.apqec-mobile-nav__close span:last-child   { transform: rotate(-45deg); }

/* ============================================================
   BACKDROP
   ============================================================ */
.apqec-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s step-end;
}

.apqec-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s step-start;
}

/* Lock body scroll when nav is open */
body.apqec-nav-open {
  overflow: hidden;
}

/* ============================================================
   DESKTOP NAV — hover effect (matches mobile nav hover colour)
   ============================================================ */
.apqec-menu-list li a {
  position: relative;
  transition: color 0.25s ease;
}

.apqec-menu-list li a:hover {
  color: var(--color-cyan);
}

/* Underline slide-in accent on hover */
.apqec-menu-list li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cyan);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.apqec-menu-list li a:hover::after {
  width: 100%;
}

/* ============================================================
   SPONSOR BUTTON — arrow icon turns dark on hover
   ============================================================ */
.apqec-header__sponsor .apqec-sponsor-icon {
  transition: filter 0.25s ease;
}

.apqec-header__sponsor:hover .apqec-sponsor-icon {
  /* Inverts the white SVG to near-black to match the button text on hover */
  filter: brightness(0);
}

/* ============================================================
   HERO — small screen fixes
   ============================================================ */
@media (max-width: 480px) {
  .apqec-hero-home {
    padding: 80px 16px 70px;
  }
  .apqec-hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .apqec-hero-subtext {
    font-size: 0.88rem;
    margin: 16px auto;
  }
  .apqec-hero-cta {
    font-size: 0.72rem;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }
  .apqec-ticker { font-size: 0.75rem; }
}

/* ============================================================
   STATS BAR — prevent overflow at very small sizes
   ============================================================ */
@media (max-width: 380px) {
  .apqec-stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .apqec-stats-bar__number { font-size: 2rem; }
}

/* ============================================================
   SCHEDULE — stack time + info on tiny screens
   ============================================================ */
@media (max-width: 480px) {
  .apqec-schedule__session {
    grid-template-columns: 1fr;
  }
  .apqec-schedule__time {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px 8px;
    font-size: 0.78rem;
  }
  .apqec-schedule__info { padding: 8px 16px 16px; }
  .apqec-schedule__tabs { width: 100%; }
  .apqec-schedule__tab  { flex: 1; text-align: center; padding: 10px 6px; font-size: 0.7rem; }
}

/* ============================================================
   FAQ — padding on small screens
   ============================================================ */
@media (max-width: 480px) {
  .apqec-faq__question { padding: 16px; font-size: 0.88rem; }
  .apqec-faq__answer   { padding: 0 16px 16px; }
}

/* ============================================================
   ABOUT CARDS
   ============================================================ */
@media (max-width: 480px) {
  .apqec-about__card { padding: 24px; }
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
@media (max-width: 480px) {
  .apqec-hero {
    padding: 90px 16px 48px;
    min-height: auto;
  }
  .apqec-hero__title { font-size: clamp(1.6rem, 7vw, 2rem); }
}

/* ============================================================
   TRACKS — single column on smallest screens
   ============================================================ */
@media (max-width: 480px) {
  .apqec-tracks__grid    { grid-template-columns: 1fr; }
  .apqec-track-card      { min-height: 140px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
@media (max-width: 480px) {
  .apqec-footer__bottom p { font-size: 0.72rem; }
}

/* ============================================================
   HERO FIXES v2 — paste at the very bottom of style.css
   These override all previous hero rules
   ============================================================ */

/* 1. AFRICAN MAP — smaller, more subtle */
.apqec-hero-map {
  width: 50% !important;
  max-width: 390px !important;
  opacity: 1 !important;
}

/* 2. HERO TITLE — reduce to match inspo (~48px desktop) */
.apqec-hero-title {
  font-size: clamp(1.5rem, 3vw, 40px) !important;
  font-weight: 600;
  line-height: 1.55 !important;
}

/* 3. HERO LINE — each line is block, centered */
.apqec-hero-line {
  display: block;
  position: relative;
  width: 100%;
}

/* Remove any previous ::after underline attempt */
/* .apqec-hero-line--underline::after {
  display: none !important;
} */

/* 4. GOLD DOUBLE LINES — thin, elegant, using a standalone div */
.apqec-hero-gold-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 8px auto 20px;
  width: 45%;
  max-width: 340px;
}

.apqec-hero-gold-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* 5. CTA BUTTON — visible background by default */
.apqec-hero-cta {
  background: var(--color-cyan) !important;
  border: 2px solid var(--color-cyan) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}
.apqec-hero-cta:hover {
  background: var(--color-cyan) !important;
  color: var(--color-navy) !important;
}

/* 6. BOTTOM BADGES — clustered in centre-left like inspo */
/* Reset all bottom badges first */
.apqec-b5, .apqec-b6, .apqec-b7,
.apqec-b8, .apqec-b9, .apqec-b10 {
  bottom: auto;
  top: auto;
  left: auto;
  right: auto;
}

.apqec-b5  {
  bottom: 10%;
  left: 5%;
  transform: rotate(-8deg);
}
.apqec-b6  {
  bottom: 11%;
  left: 24%;
  transform: rotate(-6deg);
}
.apqec-b7  {
  bottom: 10%;
  left: 36%;
  transform: rotate(4deg);
}
.apqec-b8  {
  bottom: 10%;
  left: 47%;
  transform: rotate(-4deg);
}
.apqec-b9  {
  bottom: 11%;
  left: 68%;
  transform: rotate(4deg);
}
.apqec-b10 {
  bottom: 11%;
  right: 1%;
  transform: rotate(16deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .apqec-hero-title {
    font-size: clamp(1.8rem, 5vw, 40px) !important;
  }
  .apqec-b5  { left: 1%;  }
  .apqec-b6  { left: 17%; }
  .apqec-b7  { left: 33%; }
  .apqec-b8  { left: 50%; }
  .apqec-b9  { left: 67%; }
  .apqec-b10 { right: 0%; }
}

@media (max-width: 768px) {
  /* badges hidden at this breakpoint by existing rule (.apqec-b { display: none }) */
  .apqec-hero-title {
    font-size: clamp(1.5rem, 6.3vw, 2.2rem) !important;
  }
  .apqec-hero-gold-lines {
    width: 40%;
  }
}

@media (max-width: 480px) {
  .apqec-hero-title {
    font-size: clamp(1.5rem, 7.5vw, 2rem) !important;
  }
  .apqec-hero-gold-lines {
    width: 65%;
  }
}