/* ==========================================================================
   GENIUS CONNECT - HIGH-END PREMIUM LIGHT THEME STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

section {
  scroll-margin-top: 100px;
}

/* --------------------------------------------------------------------------
   1. GLOBAL DESIGN SYSTEM & TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Canvas Background */
  --bg-main: #fafaff;
  --bg-gradient: radial-gradient(circle at 50% -10%, rgba(124, 58, 237, 0.1) 0%, rgba(20, 149, 242, 0.05) 45%, #fafaff 80%);
  
  /* Text Colors */
  --text-dark: #0b132b;        /* Crisp Deep Navy */
  --text-muted: #475569;       /* Medium Slate */
  --text-subtle: #64748b;
  
  /* Brand Gradients */
  --brand-gradient: linear-gradient(135deg, #1495f2 0%, #6366f1 45%, #7c3aed 100%);
  --brand-text-gradient: linear-gradient(135deg, #0b132b 0%, #4f46e5 55%, #7c3aed 100%);
  --btn-gradient: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #a855f7 100%);
  
  /* Glass Nav & Shadow */
  --glass-nav-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(226, 232, 240, 0.95);
  --glass-shadow: 0 14px 40px -8px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.02);
  
  /* Accent Tokens */
  --accent-purple: #7c3aed;
  --btn-shadow: 0 10px 30px rgba(124, 58, 237, 0.38);
  --btn-shadow-hover: 0 16px 40px rgba(124, 58, 237, 0.52);

  /* Layout & Fonts */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-pill: 9999px;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  color: var(--text-dark);
  position: relative;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Mesh Orbs */
.mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.mesh-glow-1 {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, rgba(20, 149, 242, 0.07) 60%, transparent 80%);
}

.mesh-glow-2 {
  top: 250px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.mesh-glow-3 {
  top: 200px;
  right: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   2. TOP AD BANNER & HEADER & ENLARGED LOGO & NAVBAR
   -------------------------------------------------------------------------- */
@keyframes ad-skeleton-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

#top-ad-banner {
  width: 100%;
  background: #000000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 105;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#top-ad-banner:not(.loaded) {
  height: 60px;
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: ad-skeleton-pulse 1.5s infinite linear;
}

#top-ad-banner.loaded {
  background: #000000;
  animation: none;
}

#top-ad-banner a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  line-height: 0;
}

#top-ad-banner.loaded a {
  opacity: 1;
}

#top-ad-banner img {
  width: 100%;
  max-width: 1920px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #top-ad-banner:not(.loaded) {
    height: 50px;
  }
  #top-ad-banner img {
    max-height: 60px;
  }
}

.header {
  position: relative;
  width: 100%;
  padding: 1.25rem 2rem;
  z-index: 100;
  flex-shrink: 0;
}


.header-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand Logo - Aligned to Left Edge & Crisp */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.logo-link:hover {
  transform: scale(1.04);
}

.logo-img {
  height: 95px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.04));
}

/* Floating Glass Pill Navigation Bar */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced gap since nav-links have padding now */
  padding: 0.5rem 0.8rem; /* Reduced padding on the container */
  background: var(--glass-nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-fast);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

@media (min-width: 869px) {
  .nav-menu {
    transform: translateX(-50%);
  }
}

.nav-link {
  color: #475569; /* Explicitly set to index.html's color to prevent overrides on other pages */
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700; /* Bolder text for all links */
  position: relative;
  padding: 0.6rem 1.4rem; /* Pill padding */
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.04);
}

/* Active Tab ("Home") */
.nav-link.active {
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.08);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 24px;
  height: 3px;
  background: var(--accent-purple);
  border-radius: 3px;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link:not(.dropdown-toggle).active::after {
  transform: translateX(-50%) scaleX(1);
}

.chevron {
  font-size: 0.75em;
  color: inherit;
  transition: transform var(--transition-fast);
}

/* Dropdown Parent Item Container */
.nav-item.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Glassmorphic Dropdown Menu Box */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 210px;
  padding: 0.65rem 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 
    0 18px 40px -6px rgba(99, 102, 241, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

/* Show Dropdown on Click (controlled via JS .open class) */
.nav-item.dropdown.active-mobile .dropdown-menu,
.nav-item.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}

.nav-item.dropdown.active-mobile .chevron,
.nav-item.dropdown.open .chevron {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

/* Dropdown Sub-menu Items */
.dropdown-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  color: var(--accent-purple);
  background: rgba(99, 102, 241, 0.08);
  padding-left: 1.15rem;
}
/* Mobile Toggle */
.header-actions {
  display: flex;
  align-items: center;
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  cursor: pointer;
  z-index: 101;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1);
  transition: all var(--transition-fast);
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
  transform: translateY(-1px);
}

.mobile-toggle .bar {
  width: 20px;
  height: 2.5px;
  margin: 2px 0;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: all var(--transition-fast);}

/* --------------------------------------------------------------------------
   3. HERO CONTENT SECTION (100VH FIT)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 6rem 1.5rem 2rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Main Headline */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #d946ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 500;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

/* Hero CTA Buttons Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  margin-top: 0;
}

.btn-svg-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.55rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-arrow-svg {
  width: 16px;
  height: 16px;
  margin-left: 0.45rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

/* Primary Button - Electric Purple Gradient */
.btn-purple-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--btn-gradient);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: all var(--transition-fast);
}

.btn-purple-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--btn-shadow-hover);
}

.btn-purple-glow:hover .btn-svg-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* Secondary Button - Light Glass Pill */
.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.btn-glass-secondary:hover {
  background: rgba(241, 245, 249, 1);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.14);
}

.btn-glass-secondary:hover .btn-svg-icon {
  transform: rotate(15deg);
}

/* Tertiary Button - Indigo Accent Pill */
.btn-glass-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.09);
  border: 1.5px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-glass-tertiary:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
}

.btn-glass-tertiary:hover .btn-arrow-svg {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   4. RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

/* Tablet & Smaller Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 1.5rem;
    padding: 0.6rem 1.8rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }
}

/* Mobile & Tablet Toggle Menu (max-width: 868px) */
@media (max-width: 868px) {
  .header {
    padding: 1rem 1.5rem;
  }
  
  .mobile-toggle {
    display: flex;
    width: 36px;
    height: 36px;
  }

  .mobile-toggle:hover,
  .mobile-toggle:focus-visible {
    transform: translateY(-1px);
  }

  .mobile-toggle .bar {
    width: 20px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 3px 0;
    border-radius: 4px;
  }

  .mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }
  .mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    transform: translateY(-10px);
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    margin-top: 0;
    z-index: 99;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.15rem;
    justify-content: center;
  }
  
  .nav-link:hover, .nav-link.active {
    background: rgba(99, 102, 241, 0.08);
  }

  .nav-link.active::after {
    display: none;
  }

  /* Dropdown changes for mobile */
  .nav-item.dropdown {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 12px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 0.2rem;
  }
  
  .nav-item.dropdown.active-mobile .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 400px;
    padding: 0.5rem 0;
    transform: none;
  }

  .dropdown-item {
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.7rem;
  }

  .hero-section {
    padding: 1rem 1.5rem 3rem 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 1.5rem;
  }
  
  .btn-purple-glow, .btn-glass-secondary, .btn-glass-tertiary {
    width: 100%;
    padding: 1rem;
  }

  .mesh-glow-1 {
    width: 150vw;
    height: 150vw;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    padding: 0 0.2rem;
  }
  
  .logo-img {
    height: 60px;
  }
  
  .header {
    padding: 1rem;
  }
}

/* ==========================================================================
   5. FEATURED CATEGORIES SECTION
   ========================================================================== */
.categories-section {
  padding: 3rem 2rem 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-tag {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.category-tag:hover, .category-tag.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   6. INSIGHTS CARDS SECTION
   ========================================================================== */
.insights-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.insights-header {
  text-align: center;
  margin-bottom: 4rem;
}

.insights-meta {
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.insights-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  max-width: 900px;
  margin: 0 auto;
}

.insights-grid {
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  padding-bottom: 2rem; /* Space for scrollbar */
  scroll-snap-type: x mandatory;
  /* Hide scrollbar for cleaner look on some browsers */
  scrollbar-width: thin;
}

.insight-card {
  flex: 0 0 calc(33.333% - 1.66rem); /* 3 cards on desktop */
  min-width: 320px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  height: 500px;
  border: 4px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: var(--bg-main);
  isolation: isolate;
  cursor: pointer;
}

.insight-card:hover {
  transform: translateY(-10px);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(9, 29, 44, 0.9) 0%, rgba(9, 29, 44, 0) 100%);
  z-index: 2;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-meta-text {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  line-height: 1.35;
  max-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-description {
  display: none !important;
}

.card-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.float-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.float-badge-right {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.float-badge-right i {
  color: #000000;
  display: inline-block;
  line-height: 1;
  font-size: 1.35rem;
}

.float-image {
  position: absolute;
  top: 40%;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  z-index: 6;
  transform: translateX(-10px) rotate(5deg);
  background: #fff;
}

.float-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   6. LATEST BLOGS (Image Card Design)
   ========================================================================== */
.blogs-section {
  padding: 3rem 2rem 2rem 2rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .blogs-section {
    padding: 2rem 1rem 1rem 1rem;
  }
}

.blogs-header {
  margin-bottom: 3rem;
  text-align: center;
}

.blogs-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
}

.blogs-subtitle {
  color: var(--text-light);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.blogs-grid {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-bottom: 4rem; /* Extra space for staggered cards */
  padding-top: 1rem;
}

.blogs-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollBlogs 220s linear infinite;
}

.blogs-track:hover {
  animation-play-state: paused;
}

@keyframes scrollBlogs {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); } /* -50% minus half the gap */
}

.blogs-static-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
}

.blogs-static-grid .blog-card {
  width: 100%;
  margin-top: 0;
}

.blogs-static-grid .blog-card:nth-child(even) {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .blogs-static-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blogs-static-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Filter Option Pills below Search on Blogs Page
   ========================================================================== */
.blog-filter-pills-container {
  max-width: 1000px;
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}

.blog-filter-pill {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
  outline: none;
}

.blog-filter-pill:hover {
  border-color: var(--accent-purple, #6C5CE7);
  color: var(--accent-purple, #6C5CE7);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.12);
}

.blog-filter-pill.active {
  background: var(--accent-purple, #6C5CE7);
  color: #ffffff;
  border-color: var(--accent-purple, #6C5CE7);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

@media (max-width: 768px) {
  .blog-filter-pills-container {
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .blog-filter-pills-container::-webkit-scrollbar {
    height: 4px;
  }
  .blog-filter-pills-container::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.2);
    border-radius: 4px;
  }
  .blog-filter-pill {
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
}

.blog-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 360px; /* Compact width for carousel */
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .blog-card {
    width: 300px;
  }
}

.blog-card:nth-child(even) {
  margin-top: 3rem;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #f8fafc;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

/* Overlapping avatar from main image */
.blog-avatar {
  position: relative;
  margin-top: -28px;
  margin-bottom: -28px;
  margin-left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 10;
  object-fit: cover;
  background-color: #ffffff;
}

.blog-avatar.is-logo {
  object-fit: contain;
  padding: 8px;
}

.author-details-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #6C5CE7;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
  flex-shrink: 0;
}

.author-details-avatar.is-logo {
  object-fit: contain !important;
  padding: 6px;
  background-color: #ffffff;
}


.blog-content {
  padding: 2.2rem 1.4rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-purple);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.4;
  height: 2.8em;
  max-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
  max-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.blog-title a:hover {
  color: var(--accent-purple);
}

.blog-desc {
  display: none !important;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f8fafc;
}

.blog-meta-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-arrow-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-dark);
}

.blog-arrow-btn i {
  font-size: 1.05rem;
  font-weight: bold;
}

.blog-card:hover .blog-arrow-btn {
  transform: translateX(4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.blog-author {
  font-weight: 800;
}

.blog-date {
  color: var(--text-light);
  font-weight: 600;
}

/* ==========================================================================
   6.5 TRENDING LEADERS (IMAGE REPLICATION)
   ========================================================================== */
.trending-section {
  padding: 2rem 2rem 3rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.trending-bg-box {
  background-color: #ffffff; /* White background box as requested */
  border-radius: 30px;
  padding: 4rem 2rem 10rem 2rem; /* Bottom padding for overlapping cards */
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Added very subtle shadow so it pops against the page */
}

.trending-header {
  margin-bottom: 2rem; 
}

.trending-meta {
  display: inline-block;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.trending-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.trending-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.trending-container {
  position: relative;
  width: 100%;
  max-width: 1100px; 
  margin: -10rem auto 0 auto; /* Restored the negative top margin to pull cards UP into the box */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 5 Cards Stacking Layout */
.trending-cards-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 480px;
}

.trending-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
  border: 4px solid #fff;
  background: #fff;
}

.tc-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* img-based background for trending cards (Hostinger-compatible) */
.tc-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.tc-content {
  padding: 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.tc-location {
  color: #333;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  align-self: flex-start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tc-bottom h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.tc-bottom p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin: 0;
}

/* Stacking Positions (States for JS) */
.pos-1, .pos-2, .pos-3, .pos-4, .pos-5, .pos-6 {
  transform: translateX(-50%);
}

.pos-1 {
  width: 240px;
  height: 350px;
  z-index: 5;
  top: 50px;
  opacity: 0.5;
  left: 10%; /* Brought in much closer */
}

.pos-2 {
  width: 280px;
  height: 400px;
  z-index: 8;
  top: 25px;
  opacity: 0.9;
  left: 28%; /* Brought in much closer */
}

.pos-3 {
  width: 320px;
  height: 450px;
  z-index: 10;
  top: 0px;
  opacity: 1;
  left: 50%;
}

.pos-4 {
  width: 280px;
  height: 400px;
  z-index: 8;
  top: 25px;
  opacity: 0.9;
  left: 72%; /* Brought in much closer */
}

.pos-5 {
  width: 240px;
  height: 350px;
  z-index: 5;
  top: 50px;
  opacity: 0.5;
  left: 90%; /* Brought in much closer */
}

.pos-6 {
  width: 240px;
  height: 350px;
  z-index: 2;
  top: 50px;
  opacity: 0;
  left: 50%;
  pointer-events: none;
}

/* Arrow Controls */
.tc-controls {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.tc-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #0f172a;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.tc-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.05);
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES FOR CATEGORIES & INSIGHTS
   ========================================================================== */
@media (max-width: 1024px) {
  .insights-grid {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: hidden;
    gap: 2rem;
  }
  .insight-card {
    flex: 0 0 calc(50% - 1rem); /* 2 cards per row on tablet */
    min-width: 300px;
    max-width: 450px;
  }
  .trending-cards-wrapper {
    height: 400px;
  }
  .pos-1, .pos-5 {
    display: none; /* Hide outer cards on smaller screens */
  }
  .pos-3 {
    width: 280px;
    height: 400px;
  }
  .pos-2 {
    width: 240px;
    height: 350px;
    left: 25%;
  }
  .pos-4 {
    width: 240px;
    height: 350px;
    left: 75%;
  }
}

@media (max-width: 600px) {
  .categories-section {
    padding: 2rem 1rem;
  }
  .category-tag {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  .insights-section {
    padding: 2rem 1rem;
  }
  .insights-grid {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }
  .insight-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    height: 450px;
  }
  .trending-bg-box {
    padding-bottom: 8rem;
  }
  .trending-cards-wrapper {
    height: 380px;
  }
  .pos-2, .pos-4 {
    display: none; /* Hide inner side cards on mobile */
  }
  .pos-3 {
    width: 90%;
    height: 380px;
  }
}

@media (max-width: 480px) {
  .category-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .categories-list {
    gap: 0.5rem;
  }
  .insight-card {
    width: 100%;
    height: 420px;
  }
  .card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    max-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .card-meta-text {
    font-size: 0.7rem;
  }
  .card-description {
    display: none !important;
  }
  .float-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
}

/* ==========================================================================
   8. MODAL STYLES/ POPUP SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 43, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.subscribe-split {
  display: flex;
  background: #d4e0ff;
  padding: 0;
  border-radius: 24px;
  width: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  overflow: hidden;
  text-align: left;
}

.modal-overlay.active .subscribe-split {
  transform: translateY(0) scale(1);
}

.subscribe-image-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d4e0ff;
}

.subscribe-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.subscribe-content-col {
  flex: 1;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #d4e0ff;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  opacity: 0.6;
}

.subscribe-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: #000;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.subscribe-subtitle {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.mail-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #333;
  z-index: 2;
}

.subscribe-input {
  width: 100%;
  padding: 1.2rem 1.25rem 1.2rem 3.5rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  color: #000;
  background: #ffffff;
  outline: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  transition: all var(--transition-fast);
}

.subscribe-input::placeholder {
  color: #333;
  font-weight: 700;
}

.subscribe-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.subscribe-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 1.2rem;
  border-radius: 999px;
  background: #6366f1;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  transition: all var(--transition-fast);
}

.subscribe-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

@media (max-width: 868px) {
  .subscribe-split {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  .subscribe-image-col {
    min-height: 250px;
  }
  .subscribe-content-col {
    padding: 2.5rem 2rem;
  }
  .subscribe-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .subscribe-content-col {
    padding: 2rem 1.5rem;
  }
  .subscribe-title {
    font-size: 1.8rem;
  }

}

/* Spinner & Success Icons */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
.spinner-icon {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
.success-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* ==========================================================================
   7. UPCOMING EVENTS (INFINITE MARQUEE)
   ========================================================================== */
.events-section {
  padding: 3rem 0; /* No horizontal padding so marquee touches edges */
  width: 100%;
  position: relative;
  overflow: hidden; /* Hide horizontal overflow */
  background: #fafbfc;
}

.events-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.events-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.events-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.marquee-row-wrapper {
  margin-bottom: 4rem;
  width: 100%;
}

.marquee-row-wrapper:last-child {
  margin-bottom: 0;
}

.events-row-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding: 0 2rem;
  letter-spacing: -0.02em;
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.events-row-title.left-title {
  text-align: left;
}

.events-row-title.right-title {
  text-align: right;
}

@media (max-width: 768px) {
  .events-row-title {
    font-size: 1.8rem;
  }
  .events-row-title.right-title {
    text-align: left;
  }
}

.marquee-row {
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding-left: 2rem;
}

/* 
  We assume 10 cards total in a track (5 original, 5 duplicate).
  The track translates by exactly -50% to seamlessly loop back.
*/
.track-left {
  animation: scroll-left 40s linear infinite;
}

.track-right {
  /* Starting shifted slightly and moving right */
  animation: scroll-right 40s linear infinite;
  transform: translateX(-50%);
}

.track-left:hover,
.track-right:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem)); /* -50% minus half the gap */
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(calc(-50% - 1rem));
  }
  100% {
    transform: translateX(0);
  }
}

/* Event Cards */
.event-card {
  width: 520px;
  background: #ffffff;
  border-radius: 20px;
  padding: 0; /* Removed padding to let image reach edge */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: row; /* Horizontal layout like the reference image */
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden; /* Clip image corners */
}

.event-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
  border-color: #cbd5e1;
}

.ec-image {
  width: 45%;
  flex-shrink: 0;
}

.ec-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-content {
  width: 55%;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.ec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.ec-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4f46e5; /* Accent purple */
  background: #e0e7ff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.ec-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #0f172a;
  line-height: 1.3;
}

.ec-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ec-speaker, .ec-company {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
}

.ec-speaker::before {
  content: '👤';
  margin-right: 0.5rem;
}

.ec-company::before {
  content: '🏢';
  margin-right: 0.5rem;
}

.ec-register {
  margin-top: 1.2rem; /* Adjusted for horizontal layout */
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: #0f172a;
  font-weight: 700;
  border: 2px solid #0f172a;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  align-self: flex-start; /* Button shouldn't stretch full width */
}

.ec-register:hover {
  background: #0f172a;
  color: #ffffff;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  padding: 4rem 2rem 2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 95px;
  margin-bottom: 1rem;
}

.footer-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

.footer-social {
  text-align: right;
}

.social-title {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}



.social-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.3s ease;
}



.footer-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
  
  .footer-social {
    text-align: left;
    margin-top: 1.5rem;
  }
  
  .social-icons {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   9. SUCCESS STORY MODAL STYLES
   ========================================================================== */
.ss-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.ss-overlay.ss-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ss-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.2rem 2.2rem 2rem;
  box-sizing: border-box;
}

.ss-overlay.ss-active .ss-modal {
  transform: translateY(0) scale(1);
}

.ss-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.ss-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.ss-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.ss-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.ss-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: #6366f1;
}

.ss-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.4rem 0;
  font-family: inherit;
}

.ss-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.ss-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ss-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ss-float-field {
  position: relative;
  width: 100%;
}

.ss-float-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ss-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.ss-float-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.ss-float-wrap input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ss-float-wrap input:focus ~ .ss-field-icon {
  color: #6366f1;
}

.ss-float-wrap label {
  display: none;
}

.ss-required {
  color: #ef4444;
}

.ss-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  margin-top: 0.5rem;
  font-family: inherit;
}

.ss-submit-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.ss-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  filter: brightness(1.05);
}

.ss-submit-btn:active {
  transform: translateY(0);
}

.ss-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.ss-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.ss-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.ss-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.ss-success p {
  color: #64748b;
  font-size: 0.95rem;
}

@keyframes ss-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 580px) {
  .ss-modal {
    padding: 1.6rem 1.2rem;
    border-radius: 16px;
  }
  .ss-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}



