/* ===================================
   TEEN COURT RISING STARS HUB
   Mobile-First, Accessible Stylesheet
   =================================== */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors - WCAG AA Compliant */
  --color-primary-purple: #7C3AED;
  --color-primary-blue: #2563EB;
  --color-primary-gold: #F59E0B;
  --color-accent-green: #059669;
  --color-accent-orange: #EA580C;
  --color-accent-teal: #0D9488;
  --color-accent-indigo: #4F46E5;

  /* Neutrals */
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-bg: #FFFFFF;
  --color-bg-light: var(--color-gray-50);
  --color-text: var(--color-gray-900);
  --color-text-muted: var(--color-gray-600);
  --color-border: var(--color-gray-200);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Layout */
  --container-max: 1200px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-gray-900);
  color: white;
  padding: var(--spacing-sm);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {}

.section {
  padding: var(--spacing-xl) 0;
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

/* ===== NAVIGATION ===== */
.nav {
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 30px;
  padding-bottom: 30px;
}

.nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-logo img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
}


.logo-icon {
  font-size: 1.5rem;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.nav-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0;
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  background: var(--color-gray-50);
  outline: 2px solid var(--color-primary-blue);
  outline-offset: -2px;
}

.nav-link.active {
  color: var(--color-primary-blue);
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    border: none;
    padding: 0;
    gap: var(--spacing-sm);
  }

  .nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #EEF2FF 0%, #F9FAFB 100%);
}

.hero-text {
  padding: 40px;
}

.hero-content {
  display: grid;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.btn:focus {
  outline: 3px solid var(--color-primary-blue);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--color-primary-blue);
  border: 2px solid var(--color-primary-blue);
}

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

.btn-icon {
  flex-shrink: 0;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-md);
}

.feature-icon-blue {
  background: #DBEAFE;
  color: var(--color-primary-blue);
}

.feature-icon-purple {
  background: #EDE9FE;
  color: var(--color-primary-purple);
}

.feature-icon-gold {
  background: #FEF3C7;
  color: var(--color-primary-gold);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.feature-text {
  color: var(--color-text-muted);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  display: block;
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card:hover::before,
.category-card:focus::before {
  opacity: 1;
}

.category-card:focus {
  outline: 3px solid var(--color-primary-blue);
  outline-offset: 2px;
}

.category-purple {
  color: var(--color-primary-purple);
}

.category-blue {
  color: var(--color-primary-blue);
}

.category-gold {
  color: var(--color-primary-gold);
}

.category-teal {
  color: var(--color-accent-teal);
}

.category-indigo {
  color: var(--color-accent-indigo);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-lg);
  background: currentColor;
  color: white;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.category-description {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-gray-100);
  color: var(--color-text-muted);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===== SEARCH BAR ===== */
.search-preview {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.search-preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.search-preview-text {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: white;
  padding: var(--spacing-xs);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
  border-color: var(--color-primary-blue);
  box-shadow: var(--shadow-md);
}

.search-icon {
  margin-left: var(--spacing-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  padding: var(--spacing-sm);
  font-size: 1rem;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-primary-blue);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
}

.search-btn:hover {
  background: #1D4ED8;
}

.search-btn:focus {
  outline: 3px solid var(--color-primary-blue);
  outline-offset: 2px;
}

/* ===== RESOURCE CARDS ===== */
.resources-container {
  margin-top: var(--spacing-lg);
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.filter-chip {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover,
.filter-chip:focus {
  border-color: var(--color-primary-blue);
  background: #EFF6FF;
}

.filter-chip.active {
  background: var(--color-primary-blue);
  color: white;
  border-color: var(--color-primary-blue);
}

.resources-grid {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resource-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.resource-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.resource-content {
  padding: var(--spacing-md);
}

.resource-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.resource-description {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.resource-tag {
  padding: 0.25rem 0.75rem;
  background: var(--color-gray-100);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.resource-link:hover,
.resource-link:focus {
  gap: var(--spacing-sm);
  text-decoration: underline;
}

.resource-link svg {
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-gray-900);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-tagline {
  color: var(--color-gray-300);
  margin-top: var(--spacing-xs);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-links a {
  color: var(--color-gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  color: var(--color-gray-300);
  font-size: 0.875rem;
}

/* ===== TOUR OVERLAY ===== */
.tour-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.tour-overlay.active {
  display: block;
  pointer-events: auto;
}

.tour-spotlight {
  position: absolute;
  border: 3px solid var(--color-primary-blue);
  border-radius: var(--border-radius);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  transition: all var(--transition-base);
  z-index: 101;
}

.tour-tooltip {
  position: absolute;
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  z-index: 102;
}

.tour-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.tour-close:hover,
.tour-close:focus {
  color: var(--color-text);
}

.tour-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.tour-text {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.tour-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #EEF2FF 0%, #F9FAFB 100%);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.page-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
}

/* ===== LOADING & EMPTY STATES ===== */
.loading {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--color-text-muted);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-gray-200);
  border-top-color: var(--color-primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }

  .category-card,
  .resource-card {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}




/* ===== IB New Css ===== */
.ib-partner-section {
  background-color: #fafafa;
  padding: 60px 0;
  /* top & bottom spacing only */
  text-align: center;
}

.ib-section-header {
  margin-bottom: 40px;
  padding: 0 20px;
  /* keep text readable on smaller screens */
}

.ib-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.ib-section-description {
  color: #555;
  font-size: 1rem;
}

/* Add spacing to the whole grid */
.ib-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  justify-items: stretch;
  align-items: stretch;
  padding: 0 100px;
  /*  adds space on left & right */
  box-sizing: border-box;
}

/* Card styling */
.ib-partner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #222;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.ib-partner-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Icon + Text */
.ib-partner-icon {
  font-size: 2.5rem;
}

.ib-partner-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ib-partner-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* Colors - You can add colors here to change title heading colors*/
.ib-purple {
  color: #000000;
}

.ib-blue {
  color: #000000;
}

.ib-gold {
  color: #000000;
}

.ib-teal {
  color: #000000;
}

.ib-indigo {
  color: #000000;
}

/* Hover Tint */
.ib-purple:hover {
  background-color: rgba(142, 111, 247, 0.1);
}

.ib-blue:hover {
  background-color: rgba(42, 157, 244, 0.1);
}

.ib-gold:hover {
  background-color: rgba(226, 178, 3, 0.1);
}

.ib-teal:hover {
  background-color: rgba(45, 212, 191, 0.1);
}

.ib-indigo:hover {
  background-color: rgba(99, 102, 241, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .ib-partner-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
    /* smaller side spacing */
  }
}

@media (max-width: 600px) {
  .ib-partner-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    /* mobile safe spacing */
  }
}


/* ──────────────── */
/* GUEST SLIDER CSS */
/* ──────────────── */

.ib-guest-section {
  background: #f9fafc;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.ib-guest-container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.ib-guest-header {
  text-align: center;
  margin-bottom: 50px;
}

.ib-guest-header h2 {
  font-size: 2.2rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 10px;
}

.ib-guest-header p {
  color: #666;
  font-size: 1rem;
}

/* SLIDES */
.ib-guest-slides {
  position: relative;
  overflow: hidden;
}

.ib-guest-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  padding: 40px;
  gap: 40px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease;
  position: absolute;
  width: 100%;
}

.ib-guest-slide.active {
  transform: translateX(0);
  opacity: 1;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
  position: relative;
}

.ib-guest-slide.inactive-left {
  transform: translateX(-100%);
  opacity: 0;
}

/* TEXT CONTENT */
.ib-guest-content {
  flex: 1;
}

.ib-guest-content h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 10px;
}

.ib-guest-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* IMAGE */
.ib-guest-image {
  flex: 1;
  text-align: right;
}

.ib-guest-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s ease;
}

.ib-guest-image img:hover {
  transform: scale(1.03);
}

/* NAVIGATION ARROWS */
.ib-prev,
.ib-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  color: #333;
  transition: all 0.3s ease;
  z-index: 20;
}

.ib-prev:hover,
.ib-next:hover {
  background: #0073e6;
  color: #fff;
}

.ib-prev {
  left: -70px;
}

.ib-next {
  right: -70px;
}

/* DOTS */
.ib-dots {
  text-align: center;
  margin-top: 25px;
}

.ib-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.3s ease;
  cursor: pointer;
}

.ib-dot.active {
  background: #0073e6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .ib-guest-slide {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .ib-prev,
  .ib-next {
    top: auto;
    bottom: 70px;
    transform: translateY(0);
  }

  .ib-prev {
    left: 25%;
  }

  .ib-next {
    right: 25%;
  }

  .ib-dots {
    margin-top: 100px;
  }
}

@media (max-width: 600px) {
  .ib-prev {
    left: 20%;
  }

  .ib-next {
    right: 20%;
  }

  .ib-dots {
    margin-top: 90px;
  }
}


/* ===========================
   Mentorship Section
   =========================== */

.ib-mentorship-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.ib-mentorship-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.ib-mentorship-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.ib-mentorship-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.ib-mentorship-subtext {
  font-size: 1.1rem;
  margin-bottom: 50px;
  color: #f0f0f0;
}

.ib-mentorship-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.ib-mentorship-card {
  background: #fff;
  color: #333;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px 6px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 450px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ib-mentorship-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px 10px rgba(0, 0, 0, 0.35);
}

.ib-mentorship-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ib-mentorship-content {
  padding: 30px 20px 40px;
}

.ib-mentorship-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.ib-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #0066cc;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ib-btn:hover {
  background: #004fa3;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .ib-mentorship-cards {
    flex-direction: column;
    align-items: center;
  }

  .ib-mentorship-card {
    max-width: 90%;
  }

  .ib-mentorship-subtext {
    font-size: 1rem;
    margin-bottom: 30px;
  }
}

/* ===========================
   Footer
   =========================== */

.footer {
  background-color: #1e1e2f;
  /* restore your dark color */
  color: #fff;
  padding: 2rem 0;
  font-size: 0.95rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  margin-left: 0.8rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-social a {
    margin: 0 0.5rem;
  }
}




/* Extra hover content + popup additions */

.ib-partner-card {
  position: relative;
  overflow: hidden;
}

.card-front {
  position: relative !important;
}

.card-front,
.card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
  text-align: center;
}

.card-hover {
  background-color: rgba(63, 128, 188, 0.9);
  color: #fff;
  opacity: 0;
}

.ib-partner-card:hover .card-front {
  opacity: 0;
}

.ib-partner-card:hover .card-hover {
  opacity: 1;
}

/* Button styling for popup */
.open-popup {
  background-color: #fff;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.open-popup:hover {
  background-color: #eee;
}

/* Popup modal */
.popup-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  text-align: center;
  position: relative;
  max-width: 1024px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 24px;
}

.ib-partner-icon {
  margin-top: -10px;
  margin-bottom: -20px;
}

.card-hover-heading {
  margin-bottom: 10px;
  ;
}


.ib-partner-card.ib-blue .card-hover {
  background-color: rgba(146, 42, 244, 0.9);
}

.ib-partner-card.ib-gold .card-hover {
  background-color: rgba(198, 158, 14, 0.9);
}

.ib-partner-card.ib-teal .card-hover {
  background-color: rgba(198, 158, 14, 0.9);
}

.ib-partner-card.ib-goldt .card-hover {
  background-color: rgba(146, 42, 244, 0.9);
}

.popup-flex {
  display: flex;
}

.popup-flex-cards-h {
  font-size: 16px;
  color: #000000;
  text-align: left;
}

.popup-flex-cards-b {
  background-color: #000000;
  color: #fff;
  padding: 10px;
  border-radius: 50px;
  text-decoration: none;
  text-align: left;
}

.popup-flex-cards{
  width: 33%;
  padding: 20px;  
}

.popup-flex-cards-p{
  margin-bottom: 15px;
  text-align: left;
  font-size: 14px;
}

/** POPUPS MEDIA QUERY **/
@media (max-width: 700px) {

.popup-content {
max-height: 90vh;
overflow: auto;
}
  
.popup-flex-cards{
  width: 90%;
  padding: 10px;
}

.popup-flex {
  display: block;
}

.events-page-sections{display: block;}

}

.events-page-sections{display: flex;}


.ib-form {
  max-width: 550px;
  margin: 40px auto;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
}

.ib-title {
  text-align: center;
  color: #2b6cb0;
  margin-bottom: 20px;
}

.ib-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.ib-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.ib-group input,
.ib-group select,
.ib-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.ib-group input:focus,
.ib-group select:focus,
.ib-group textarea:focus {
  border-color: #2b6cb0;
}

.ib-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ib-row .ib-group {
  flex: 1;
  min-width: 120px;
}

.ib-error {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.ib-submit {
  width: 100%;
  background: #2b6cb0;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ib-submit:hover {
  background: #225a9a;
}

@media (max-width: 600px) {
  .ib-form {
    padding: 20px;
  }
}



@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; cursor: pointer; background: transparent; border: none; }

  /* hide menu on mobile by default */
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  /* visible when JS toggles the class */
  .nav-menu.active {
    display: flex;
  }

  /* optional: make sure the button sits above the menu */
  .nav, .nav-content { position: relative; }
  .nav-toggle { z-index: 50; }
  .nav-menu { z-index: 40; background: white; padding: 1rem; }
}
