/* ═══════════════════════════════════════════════════════════════════════════
   INDEX (HOME) PAGE STYLES - PyStatR+
   File: scss/pages/index.css
   
   This file owns ALL homepage styling including:
   - Hero section (single-column, centered)
   - All homepage-specific components
   - Mobile responsive behavior
   - Accessibility enhancements
   
   BRAND COLORS:
   - Deep Blue: #0B1120 / #1E293B
   - Yellow: #FFD700 / #FACC15
   - Cyan: #38BDF8 / #00BFFF
   - Grey: #F7F9FC
   
   NO other file should override these styles.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ==========================================================================
   HOMEPAGE HERO - Single Column Centered Layout
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, #0B1120 0%, #1E293B 50%, #0B1120 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
  padding-top: calc(var(--navbar-height, 70px) + 4rem);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated grid background */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  animation: gridMove 20s linear infinite;
  z-index: 1;
}

/* Glowing orb effect */
.hero-section::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

/* Hero content container */
.hero-section .hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

/* Hero grid - two column layout (text left, video right) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

/* Hero text column */
.hero-text {
  max-width: 600px;
  width: 100%;
}

/* ==========================================================================
   HERO VIDEO SECTION
   ========================================================================== */

.hero-video-container {
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-video-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(255, 215, 0, 0.2), rgba(56, 189, 248, 0.3));
  border-radius: 18px;
  z-index: -1;
  opacity: 0.6;
  filter: blur(20px);
}

.hero-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.hero-video-caption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(247, 249, 252, 0.7);
  text-align: center;
  font-style: italic;
}

/* ==========================================================================
   HERO RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .hero-text {
    max-width: 700px;
    margin: 0 auto;
  }
  
  .hero-video-container {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   HERO RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
  .hero-grid {
    gap: 2rem;
  }
  
  .hero-video-wrapper {
    border-radius: 12px;
  }
  
  .hero-video-caption {
    font-size: 0.8rem;
  }
}

/* Animated Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: #38BDF8;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #38BDF8;
  letter-spacing: 0.02em;
}

/* Main Headline */
.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-brand-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #F7F9FC;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-brand-name .brand-plus {
  color: #FFD700;
}

.hero-tagline-main {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #F7F9FC;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-tagline-sub {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: rgba(247, 249, 252, 0.9);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Animated gradient text */
.text-gradient-animated {
  background: linear-gradient(135deg, #38BDF8 0%, #00BFFF 25%, #FFD700 50%, #38BDF8 75%, #00BFFF 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  font-weight: 800;
}

/* Value Proposition */
.hero-value-prop {
  font-size: 1.125rem;
  color: rgba(247, 249, 252, 0.85);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 0 2rem 0;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-value-prop strong {
  color: #F7F9FC;
  font-weight: 600;
}

.hero-value-prop .membership-link {
  color: #38BDF8;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.4);
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.hero-value-prop .membership-link:hover {
  color: #FFD700;
  text-decoration-color: #FFD700;
}

/* CTA Button Group */
.hero-cta-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Tablet - center align but keep row */
@media (max-width: 1024px) {
  .hero-value-prop {
    margin: 0 auto 2rem;
    text-align: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Primary CTA - YouTube Red */
.cta-button-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  min-height: 48px;
}

.cta-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #ef4444 100%) !important;
}

.cta-button-primary .cta-icon {
  width: 20px;
  height: 20px;
}

/* Secondary CTA - Cyan outline */
.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid rgba(56, 189, 248, 0.6);
  color: #38BDF8 !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 48px;
}

.cta-button-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38BDF8;
  transform: translateY(-2px);
}

/* Hero bottom transition line */
.hero-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
}

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

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

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* ==========================================================================
   HERO TABLET RESPONSIVE (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    min-height: 50vh;
    padding: 6rem 2rem 3rem;
    padding-top: calc(var(--navbar-height, 70px) + 3rem);
  }
  
  .hero-content {
    max-width: 700px;
  }
}

/* ==========================================================================
   HERO MOBILE RESPONSIVE (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding: 6rem 1.25rem 3rem;
    padding-top: calc(var(--navbar-height, 70px) + 2rem);
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-badge {
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
  }
  
  .badge-text {
    font-size: 0.8rem;
  }
  
  .hero-brand-name {
    font-size: 2.25rem;
  }
  
  .hero-tagline-main,
  .hero-tagline-sub {
    font-size: 1.5rem;
  }
  
  .hero-value-prop {
    font-size: 1rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
  }
  
  .cta-button-primary,
  .cta-button-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   HERO SMALL MOBILE (max-width: 375px)
   ========================================================================== */

@media (max-width: 375px) {
  .hero-section {
    padding: 5rem 1rem 2.5rem;
    padding-top: calc(var(--navbar-height, 70px) + 1.5rem);
  }
  
  .hero-brand-name {
    font-size: 2rem;
  }
  
  .hero-tagline-main,
  .hero-tagline-sub {
    font-size: 1.35rem;
  }
  
  .hero-value-prop {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY: Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #0B1120;
  color: #FFD700;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* ==========================================================================
   ACCESSIBILITY: Focus Visible Styles
   ========================================================================== */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

/* Dark background focus - use yellow */
.hero-section a:focus-visible,
.hero-section button:focus-visible {
  outline-color: #FFD700;
}

/* ==========================================================================
   ACCESSIBILITY: Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .hero-section::after,
  .badge-pulse,
  .text-gradient-animated {
    animation: none;
  }
  
  .hero-headline,
  .hero-badge,
  .hero-value-prop,
  .hero-cta-group,
  .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.philosophy-light blockquote {
  text-align: left;
}

.philosophy-light blockquote p {
  text-align: left;
}

/* Adjust font size for C.E.I.A. Charter subtitle */
.section-header-light .section-subtitle-light-page {
  font-size: 0.95rem;
}

.blog-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.blog-card-light:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.blog-card-light:hover .blog-arrow-light { transform: translateX(4px); }
.blog-arrow-light { transition: transform 0.2s ease; color: #38BDF8; font-weight: 600; }
.blog-date-light { font-size: 0.8rem; color: #94a3b8; }
.blog-footer-light { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; }

/* Featured image styles - preserves faces */
.blog-thumbnail-light { position: relative; height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.blog-thumbnail-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.3s ease; }
.blog-card-light:hover .blog-thumbnail-img { transform: scale(1.05); }

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED ANIMATION SYSTEM - Matches Core Values cards
   ═══════════════════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS GRID - Core Values style (white cards, colored accents)
   PyStatR+ Brand: Yellow (#FFD700/#FACC15), Deep Blue (#0B1120/#1E293B), 
                   Grey (#F7F9FC), Cyan (#00BFFF/#38BDF8)
   ═══════════════════════════════════════════════════════════════════════════ */
#featured-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  height: auto;
  overflow: visible;
  position: relative;
}

@media (max-width: 1100px) {
  #featured-testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 700px) {
  #featured-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Card Container - Core Values style animation */
#featured-testimonials-grid .testimonial-card-modern {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
#featured-testimonials-grid .testimonial-card-modern:nth-child(1) { transition-delay: 0.1s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(2) { transition-delay: 0.15s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(3) { transition-delay: 0.2s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(4) { transition-delay: 0.25s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(5) { transition-delay: 0.3s; }
#featured-testimonials-grid .testimonial-card-modern:nth-child(6) { transition-delay: 0.35s; }

/* Card Inner - Core Values card style */
#featured-testimonials-grid .testimonial-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Roboto', sans-serif;
}

/* Cards with featured image - no top padding */
#featured-testimonials-grid .testimonial-card-modern.has-image .testimonial-card-inner {
  padding-top: 0;
}

/* Featured Image Container */
#featured-testimonials-grid .testimonial-featured-image {
  width: calc(100% + 4rem);
  margin: 0 -2rem 1.5rem -2rem;
  height: 180px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  position: relative;
}

#featured-testimonials-grid .testimonial-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-featured-image img {
  transform: scale(1.05);
}

/* Adjust quote icon position for cards with image */
#featured-testimonials-grid .testimonial-card-modern.has-image .testimonial-quote-icon {
  top: auto;
  margin-top: -0.5rem;
  position: relative;
  left: 0;
}

/* Adjust service badge position for cards with image */
#featured-testimonials-grid .testimonial-card-modern.has-image .testimonial-service-badge {
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-end;
  margin-top: -2.5rem;
  margin-bottom: 0.5rem;
}

/* Hover effect - Border glow only */
#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-card-inner {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
  border-color: #38BDF8;
}

/* Colored top border accent (like Core Values cards) */
#featured-testimonials-grid .testimonial-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38BDF8, #0891b2);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-card-inner::before {
  opacity: 1;
}

/* Quote Icon - PyStatR+ Cyan, larger like Core Values icons */
#featured-testimonials-grid .testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  font-size: 2rem;
  line-height: 1;
  color: #38BDF8;
  font-weight: bold;
  transition: transform 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-quote-icon {
  transform: scale(1.1);
}

/* Service Badge - Top right, outlined pill */
#featured-testimonials-grid .testimonial-service-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff !important;
  border: 1.5px solid  #7dd3fc;
  margin: 0;
  transition: all 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-service-badge {
  background: #38BDF8;
  color: #0B1120 !important;
  border-color: #38BDF8;
}

/* Type Badge (Student/Client) */
#featured-testimonials-grid .testimonial-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  width: fit-content;
  transition: all 0.3s ease;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1.5px solid #38BDF8;
}

#featured-testimonials-grid .testimonial-card-modern:hover .testimonial-type-badge {
  background: #38BDF8;
  color: #0B1120;
  border-color: #38BDF8;
}

#featured-testimonials-grid .testimonial-type-badge.student {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1.5px solid #38BDF8;
}

#featured-testimonials-grid .testimonial-type-badge.client {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1.5px solid #38BDF8;
}

/* Secondary quote mark */
#featured-testimonials-grid .testimonial-quote-secondary {
  color: #38BDF8;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Quote Text */
#featured-testimonials-grid .testimonial-text-modern {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.8;
  font-family: 'Roboto', sans-serif;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

/* Star Rating - PyStatR+ Gold */
#featured-testimonials-grid .testimonial-stars {
  color: #FACC15;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(250, 204, 21, 0.3);
}

/* Author Section */
#featured-testimonials-grid .testimonial-author-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#featured-testimonials-grid .author-avatar-modern {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#featured-testimonials-grid .testimonial-card-modern:hover .author-avatar-modern {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#featured-testimonials-grid .author-info-modern {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

#featured-testimonials-grid .author-info-modern strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

#featured-testimonials-grid .author-info-modern span {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
}

#featured-testimonials-grid .author-info-modern .author-location {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  #featured-testimonials-grid .testimonial-card-inner {
    padding: 1.5rem;
    min-height: 300px;
  }
  
  #featured-testimonials-grid .testimonial-service-badge {
    font-size: 0.6rem;
    padding: 0.35rem 0.65rem;
  }
  
  #featured-testimonials-grid .testimonial-text-modern {
    font-size: 0.9rem;
  }
  
  #featured-testimonials-grid .author-avatar-modern {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }
}

/* Empty State */
#featured-testimonials-grid .testimonials-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

#featured-testimonials-grid .testimonials-empty-state p {
  color: #94a3b8;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LATEST POSTS GRID - Core Values style
   ═══════════════════════════════════════════════════════════════════════════ */
#latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  height: auto;
  overflow: visible;
}

@media (max-width: 1024px) {
  #latest-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #latest-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog cards - Core Values animation */
#latest-posts-grid .blog-card-light {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

#latest-posts-grid .blog-card-light.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
#latest-posts-grid .blog-card-light:nth-child(1) { transition-delay: 0.1s; }
#latest-posts-grid .blog-card-light:nth-child(2) { transition-delay: 0.2s; }
#latest-posts-grid .blog-card-light:nth-child(3) { transition-delay: 0.3s; }

/* Hover effect - Core Values style */
#latest-posts-grid .blog-card-light:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(56, 189, 248, 0.1);
  border-color: #38BDF8;
}

/* Colored top border accent on hover */
#latest-posts-grid .blog-card-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38BDF8, #0B1120);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

#latest-posts-grid .blog-card-light:hover::before {
  opacity: 1;
}

/* Blog thumbnail icon animation */
#latest-posts-grid .blog-icon-light {
  transition: transform 0.3s ease;
}

#latest-posts-grid .blog-card-light:hover .blog-icon-light {
  transform: scale(1.15);
}

/* Blog arrow animation */
#latest-posts-grid .blog-arrow-light {
  transition: transform 0.3s ease, color 0.3s ease;
}

#latest-posts-grid .blog-card-light:hover .blog-arrow-light {
  transform: translateX(6px);
  color: #38BDF8;
}

/* Our Origins Section Styles */
.section-our-origins-light {
  padding: 4rem 0;
  background: #ffffff;
}

.origins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.origins-header {
  margin-bottom: 1.5rem;
}

.origins-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0b1120;
}

.origins-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.origins-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2d3e52;
}

.origins-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.origins-img-animated {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

.origins-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

/* Glow ring - subtle on hover */
.origins-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38BDF8, #0B1120, #FACC15, #38BDF8);
  background-size: 300% 300%;
  animation: originsGlow 6s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.origins-img-animated:hover .origins-glow-ring {
  opacity: 0.6;
}

@keyframes originsGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Unified underline styling */
.origins-closing-rule {
  height: 1px;
  background: rgba(56, 189, 248, 0.35);
  margin: 1.5rem 0 1rem 0;
  width: 40px;
}

.origins-closing-quote {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(45, 62, 82, 0.8);
  line-height: 1.6;
}

.origins-quote-attribution {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(56, 189, 248, 0.7);
  font-style: normal;
  line-height: 1.5;
}

.origins-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 980px) {
  .origins-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .origins-title {
    font-size: 1.6rem;
  }
  
  .origins-image {
    justify-content: center;
  }
  
  .origins-img-animated {
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .section-our-origins-light {
    padding: 2rem 0;
  }
  
  .origins-content p {
    font-size: 0.9rem;
  }
  
  .origins-img-animated {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .origins-glow-ring { animation: none; display: none; }
}


.community-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 2rem 0;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

@media (max-width: 1200px) {
  .community-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .community-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .community-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
}

/* Community Card Styles - Resized for professionalism */
.community-card-modern {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 180px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.community-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.community-card-modern:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.community-card-modern:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .community-card-modern {
    width: 160px;
    padding: 20px;
  }
}

.community-card-glow {
  display: none;
}

.community-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-icon-box {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.community-card-modern:hover .community-icon-box {
  transform: scale(1.05);
}

.community-svg {
  width: 100%;
  height: 100%;
}

.community-icon-box.youtube {
  background: linear-gradient(135deg, #FFD700, #EAB308);
}

.community-icon-box.medium {
  background: #00b81c;
}

.community-icon-box.facebook {
  background: #1877f2;
}

.community-icon-box.github {
  background: #6f42c1;
}

.community-icon-box.store {
  background: #fbbf24;
}

.community-card-inner h4 {
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.community-card-inner p {
  color: #a8b5c7;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.community-cta {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
  gap: 4px;
}

.community-card-modern.youtube .community-cta {
  color: #FFD700;
}

.community-card-modern.medium .community-cta {
  color: #00b81c;
}

.community-card-modern.facebook .community-cta {
  color: #1877f2;
}

.community-card-modern.github .community-cta {
  color: #6f42c1;
}

.community-card-modern.store .community-cta {
  color: #fbbf24;
}

.community-cta:hover {
  gap: 6px;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.community-tagline {
  text-align: center !important;
  color: #64748b;
  font-size: 13px;
  font-style: italic;
  margin-top: 20px;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.community-tagline p {
  margin: 0 auto;
  text-align: center !important;
  width: 100%;
}

/* === Our Focus Section - Clean Editorial Style === */

/* Target the Quarto column-body wrapper containing Our Focus */
.column-body:has(.section-focus) {
  padding-top: 2rem !important;
}

/* Target the h2 "Our Focus" heading */
.column-body h2:has(+ .section-focus),
.column-body > h2 {
  /* margin-top: 2rem !important; */
  padding-top: 2rem !important;
}

.section-focus {
  background: #FFFFFF !important;
  padding: 2rem 0 3.5rem 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.section-focus .content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 !important;
}

/* .section-focus > * {
  background: transparent !important;
} */

.focus-divider {
  width: 40px;
  height: 2px;
  background: #38BDF8;
  margin: 0.75rem 0 1.5rem 0;
  display: block;
}

.section-focus p {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.65;
  margin-bottom: 1rem;
  background: transparent !important;
  font-family: 'Roboto', sans-serif;
}

.section-focus p:first-child {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.section-focus ul {
  margin: 1rem 0 2rem 1.75rem;
  padding-left: 0;
  list-style: disc;
  background: transparent !important;
}

.section-focus li {
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  font-family: 'Roboto', sans-serif;
}

.focus-closing {
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  color: #374151;
  font-weight: 500;
  line-height: 1.7;
  font-size: 0.95rem;
  background: transparent !important;
  font-family: 'Roboto', sans-serif;
}
  /* background: transparent !important;
} */

/* === ETHICS CTA SECTION === */
.section-cta-ethics-wrapper {
  background: #FFFFFF;
  padding: 0;
}

.section-cta-ethics {
  background: #FFFFFF;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.cta-ethics-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-ethics-headline {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0B1120;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

/* Varied color treatment for Ethics headline */
.ethics-grounded { color: #0B1120; }
.ethics-ethics {
  background: linear-gradient(135deg, #38BDF8, #1E293B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ethics-built { color: #1E293B; }
.ethics-impact {
  background: linear-gradient(135deg, #FACC15, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-ethics-supporting {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #4B5563;
  margin: 0 0 2.5rem 0;
}

.cta-ethics-link-container {
  margin-top: 2.5rem;
}

.cta-ethics-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0B1120;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid #0B1120;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.cta-ethics-link:hover {
  background: #0B1120;
  color: #FFFFFF;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .section-cta-ethics {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .cta-ethics-headline {
    font-size: 1.75rem;
  }

  .cta-ethics-supporting {
    font-size: 1rem;
  }
}

/* ==========================================================================
   YOUTUBE CTA - PyStatR+ Gold Branding
   ========================================================================== */

.youtube-cta,
.btn-youtube,
.cta-button-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FACC15 50%, #EAB308 100%) !important;
  color: #0B1120 !important;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3);
}

.youtube-cta:hover,
.btn-youtube:hover,
.cta-button-primary:hover {
  background: linear-gradient(135deg, #FACC15 0%, #FFD700 50%, #FACC15 100%) !important;
  color: #0B1120 !important;
  box-shadow: 0 15px 40px rgba(250, 204, 21, 0.4);
}

/* ==========================================================================
   SECTION CTA CENTER SPACING FIX
   ========================================================================== */

.section-cta-center-light {
  margin-top: 2.5rem;
}

.section-cta-center {
  margin-top: 3rem;
}

/* ==========================================================================
   VALUE CARDS TEXT ALIGNMENT
   ========================================================================== */

.value-card-light p {
  text-align: left;
}

/* ==========================================================================
   MISSION & VISION CARDS - MOBILE HORIZONTAL PADDING FIX
   Prevents text clipping on right edge (max-width: 767px)
   ========================================================================== */

@media (max-width: 767px) {
  .mv-card-inner {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* ==========================================================================
   HIDE MISSION & VISION SECTION ON MOBILE
   Section remains visible on desktop and tablet (≥768px)
   ========================================================================== */

@media (max-width: 767px) {
  .section-mission-light {
    display: none !important;
  }
  
  /* Hide philosophy blockquote on mobile */
  .philosophy-light {
    display: none !important;
  }
  
  /* Our Focus section - proper mobile padding */
  .column-body:has(.section-focus) {
    padding-top: 1.5rem !important;
  }
  
  .column-body h2:has(+ .section-focus),
  .column-body > h2 {
    /* margin-top: 3rem !important; */
    padding-top: 1.5rem !important;
  }
  
  .section-focus {
    padding: 1.5rem 1.25rem 2.5rem 1.25rem !important;
  }
}

/* ==========================================================================
   MOBILE — HIDE ETHICS / INTEGRITY SECTION
   ========================================================================== */

@media (max-width: 767px) {
  .section-ethics-light {
    display: none;
  }
}

/* ==========================================================================
   END OF INDEX PAGE STYLES
   ========================================================================== */

