/* main.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Pacifico&display=swap');

/* --- Base & Variables --- */
:root {
  --font-primary: 'Poppins', sans-serif;
  --font-brand: 'Pacifico', cursive;

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-pill: 50px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* --- Light Theme Variables --- */
[data-mdb-theme="light"] {
  --primary: #2563EB; /* Improved Blue for better contrast */
  --primary-rgb: 37, 99, 235;
  --primary-dark: #1D4ED8;
  --alert-success-bg: #059669;
  --alert-error-bg: #DC2626;
  --primary-light: #DBEAFE;
  --secondary: #DB2777; /* Improved Pink for better contrast */
  --secondary-rgb: 219, 39, 119;
  --accent: #D97706; /* Improved Orange for better contrast */
  --accent-rgb: 217, 119, 6;

  --bg-color: #FFFFFF; /* Pure white background */
  --bg-card: #FFFFFF;
  --bg-card-secondary: #F9FAFB; /* Very light grey for secondary cards */
  --bg-footer: #1F2937; /* Dark footer for contrast */

  --text-color: #111827; /* Darker text for better readability */
  --text-muted: #6B7280; /* Medium Grey */
  --text-light: #FFFFFF;
  --text-nav-item: #1F2937;
  --text-hero-subtitle: #374151;
  --text-hero-title: #111827;
  --text-primary: var(--primary);
  --text-secondary: var(--secondary);
  --text-accent: var(--accent);
  --text-footer: #D1D5DB; /* Light grey on dark footer */
  --text-footer-heading: #FFFFFF;
  --bg-modal: #FFFFFF;


  --border-color: #E5E7EB; /* Light border */
  --border-color-dark: #D1D5DB;

  --gradient-primary: linear-gradient(45deg, rgb(22 172 219 / 78%), rgb(22 172 219 / 78%));
  --gradient-primary-hover: linear-gradient(45deg, var(--primary-dark), #D946EF); /* Darker/Shifted Pink */
  --gradient-bg: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);

  --play-button-bg: rgba(255, 255, 255, 0.9);
  /* --hero-bg: #0e5e99; */
  --li-active: #fddc99a6;
  --play-button-icon: var(--primary);
}

/* --- Dark Theme Variables --- */
[data-mdb-theme="dark"] {
  --primary: #60A5FA; /* Lighter Blue */
  --primary-rgb: 96, 165, 250;
  --primary-dark: #3B82F6;
  --alert-success-bg: #25a336;
  --alert-error-bg: #a33425;
  --primary-light: #1E3A8A;
  --secondary: #F472B6; /* Lighter Pink */
  --secondary-rgb: 244, 114, 182;
  --accent: #FBBF24; /* Lighter Amber */
  --accent-rgb: 251, 191, 36;
  --bg-modal: #374151;
  --text-hero-subtitle: #FFFFFF;
  --text-hero-title: #ffffff;
  --text-nav-item: #ffffff;
  --bg-color: #111827; /* Very Dark Blue/Grey */
  --bg-card: #1F2937; /* Dark Grey */
  --bg-card-secondary: #374151; /* Medium Dark Grey */
  --bg-footer: #0F172A; /* Even Darker Footer */
  --li-active: #956400a6;
  --text-color: #E5E7EB; /* Light Grey */
  --text-muted: #9CA3AF; /* Medium Grey */
  --text-light: #FFFFFF;
  --text-primary: var(--primary);
  --text-secondary: var(--secondary);
  --text-accent: var(--accent);
  --text-footer: #9CA3AF; /* Medium grey on dark footer */
  --text-footer-heading: #E5E7EB;

  --border-color: #374151; /* Dark border */
  --border-color-dark: #4B5563;

  --gradient-primary: linear-gradient(45deg, rgb(22 172 219 / 78%), rgb(22 172 219 / 78%));
  --gradient-primary-hover: linear-gradient(45deg, #93C5FD, #F871B6); /* Lighter/Shifted */
  --gradient-bg: linear-gradient(180deg, #111827 0%, #1F2937 100%);

  --play-button-bg: rgba(31, 41, 55, 0.9); /* Dark semi-transparent */
  --hero-bg: rgb(14 26 44 / 78%);
  --play-button-icon: var(--primary);
}


/* --- Global Styles --- */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color var(--transition-medium), color var(--transition-medium);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

/* Enhanced global element styling for light theme */
section {
  padding: 5rem 0; /* Consistent vertical padding */
  color: var(--text-color);
}

/* Improved anchor tag styling - matching dark theme colors */
a {
  /* color: #60A5FA !important; */
  text-decoration: none;
  font-size: large;
  transition: var(--transition-fast);
}

a:hover {
  color: #3B82F6 !important; /* Using dark theme primary-dark color for consistency */
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #60A5FA !important; /* Using dark theme primary color for consistency */
  outline-offset: 2px;
  border-radius: 2px;
}

/* Enhanced div styling for better structure */
div {
  color: var(--text-color);
}

.section-title {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 650px; /* Slightly wider */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem; /* More space after subtitle */
  font-weight: 400; /* Lighter weight */
  line-height: 1.6;
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2.5rem;}
}



/* Make navbar transparent and extend hero background */
#mainNav {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transition: all 0.3s ease;
}

/* Navbar with background on scroll */
#mainNav.scrolled {
  background: rgba(var(--bg-card-rgb), 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Adjust navbar text color when scrolled */
#mainNav.scrolled .nav-link,
#mainNav.scrolled .navbar-brand,
#mainNav.scrolled .dropdown-toggle,
#mainNav.scrolled .language-switcher {
  color: #1e9fd7 !important;
  text-shadow: none;
}

/* Ensure text in navbar is visible on the background image */
#mainNav .nav-link,
#mainNav .navbar-brand,
#mainNav .dropdown-toggle,
#mainNav .language-switcher {
  color: var(--text-nav-item) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

/* Enhanced navbar hover effects */
#mainNav .nav-link:hover,
#mainNav .dropdown-toggle:hover {
  color: var(--text-light) !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transform: translateY(-1px);
}

/* Hero background styles - now covers navbar area too */
.hero-background {
  width: 100%;
  min-height: 100vh;
  background-image: url("/static/imgs/hero/b16.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--text-light);
  padding-top: 0; /* Remove top padding since navbar is now transparent */
}

/* Hero overlay using primary color with transparency */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--hero-bg);
  z-index: 1;
  
}

/* Hero section styles */
.hero-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Add padding to account for transparent navbar */
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  margin-top: 0; /* Reset margin since we have padding-top on hero-section */
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  color: var(--text-nav-item) !important;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 0.5px;
  line-height: 1.6;
  color: #ffffff !important;
}

.feature-list-container {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
}

.feature-list i {
  color: var(--accent);
}

.cta-button {
  padding: 0.8rem 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-medium);
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius-sm);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-dark);
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .feature-list {
    font-size: 0.9rem;
  }

  .hero-section {
    padding-top: 60px; /* Smaller padding for mobile */
  }
}




/* --- Components --- */
.card {
  background-color: var(--bg-card);
  /* border: 1px solid var(--border-color); */
  /* border-radius: var(--border-radius-lg); */
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-fast), transform var(--transition-fast);
  overflow: hidden; /* Needed for image zoom effects etc. */
}
.card:hover {
    /* Subtle lift effect optional */
    /* transform: translateY(-4px); */
    box-shadow: var(--shadow-md);
}

.card-header {
  background-color: transparent !important; /* Remove default MDB header bg */
  border-bottom: 1px solid var(--border-color) !important;
  padding: 1rem 1.5rem;
}

.btn {
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  padding: 0.75rem 1.75rem; /* Slightly more horizontal padding */
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  border: none;
  text-transform: none; /* Keep original case */
  letter-spacing: 0.5px; /* Subtle spacing */
  display: inline-flex; /* Align icon and text */
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Space between icon and text */
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}
.btn-primary {
  background-image: var(--gradient-primary);
  color: var(--text-light) !important;
}
.btn-primary:hover {
  background-image: var(--gradient-primary-hover);
  color: var(--text-light) !important;
}

.btn-secondary {
  background-color: var(--bg-card-secondary);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  box-shadow: none;
}
.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark) !important;
  border-color: var(--primary-light);
  box-shadow: none;
}
[data-mdb-theme="dark"] .btn-secondary {
    background-color: var(--bg-card-secondary);
    color: var(--text-primary) !important;
    border-color: var(--border-color);
}
[data-mdb-theme="dark"] .btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--text-light) !important;
    border-color: var(--primary-light);
}


.form-control {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color) !important;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-fast);
  padding: 0.75rem 1rem;
}





/* Enhanced Stats Section */
.stats-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--text-color) 0%, #34495e 100%);
  color: white;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/static/imgs/patterns/stats-pattern.svg') repeat;
  opacity: 0.1;
  z-index: 1;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  height: 100%;
  padding: 2rem;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.stat-item i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.stat-item .counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  display: block;
}

.stat-item .label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stat-item .counter { font-size: 2rem; }
  .stat-item i { font-size: 2.5rem; }
}

/* --- Features Section --- */
.features-section {
  padding: 6rem 0;
}
.feature-card {
    /* border: 1px solid var(--border-color); */
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}
.feature-card:hover {
   transform: translateY(-6px);
   box-shadow: var(--shadow-lg);
   border-color: rgba(var(--primary-rgb), 0.3);
}
.feature-card .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    margin-bottom: 1.5rem;
    transition: background var(--transition-medium);
}
.feature-card:hover .icon-wrapper {
     background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
}
.feature-card .icon-wrapper i {
    font-size: 1.9rem;
    color: var(--primary);
    transition: color var(--transition-medium);
}
.feature-card:hover .icon-wrapper i {
    color: var(--primary-dark);
}
.feature-card h5 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- How It Works Section --- */
.how-it-works-section {
    padding: 6rem 0;
    background-color: var(--bg-card-secondary);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.step-item {
    text-align: center;
    position: relative;
    padding: 0 15px; /* Spacing for connector lines */
}
.step-item .step-number {
    width: 55px; /* Slightly larger */
    height: 55px;
    border-radius: 50%;
    background-image: var(--gradient-primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3); /* Shadow matching gradient */
}
.step-item h5 {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.step-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
/* Connector Lines (Desktop) */
@media (min-width: 992px) {
  .step-connector {
      position: relative;
  }
  .step-item:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 27.5px; /* Align with center of number circle */
      left: 50%;
      /* Calculate width based on column gap (g-lg-5 -> 3rem gap) + padding */
      width: calc(100% + 3rem - 30px); /* col width + gap - padding */
      transform: translateX(calc(50% + 15px)); /* Move start past padding */
      height: 2px;
      background: linear-gradient(to right, rgba(var(--primary-rgb), 0.4), rgba(var(--secondary-rgb), 0.4));
      z-index: 0;
  }
   .step-item .step-number { z-index: 1; position: relative; } /* Ensure number is above line */
}
@media (min-width: 768px) and (max-width: 991.98px) {
   /* Connector Lines (Tablet - between first two only) */
   .step-connector { position: relative; }
   .step-item:first-child::after { /* Only after the first item on 2-column layout */
        content: "";
        position: absolute;
        top: 27.5px;
        left: 50%;
        /* Calculate width based on column gap (g-4 -> 1.5rem gap) + padding */
        width: calc(100% + 1.5rem - 30px); /* col width + gap - padding */
        transform: translateX(calc(50% + 15px));
        height: 2px;
        background: linear-gradient(to right, rgba(var(--primary-rgb), 0.4), rgba(var(--secondary-rgb), 0.4));
        z-index: 0;
   }
   .step-item .step-number { z-index: 1; position: relative; }
}


/* --- Home Page Specific Styles --- */



/* Enhanced Hero Section */
.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/static/imgs/patterns/hero-pattern.svg') repeat;
  opacity: 0.1;
  z-index: 1;
}



.hero-section {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-logo-container {
  animation: bounceIn 1.2s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-nav-item);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}





.feature-list {
  animation: fadeInUp 1s ease-out 1.2s both;
}

.feature-list .fas {
  color: var(--accent);
  font-size: 1.2rem;
}

.feature-list p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-weight: 500;
}

/* Enhanced Features Section */
.features-section {
  padding: 5rem 0;
  background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-card-secondary) 100%);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/static/imgs/patterns/features-pattern.svg') repeat;
  opacity: 0.05;
  z-index: 1;
}

.features-section .container {
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--bg-card);
  border: none;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.feature-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Enhanced How It Works Section */
.how-it-works-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #000000 100%);
  color: white;
  position: relative;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/static/imgs/patterns/steps-pattern.svg') repeat;
  opacity: 0.1;
  z-index: 1;
}

.how-it-works-section .container {
  position: relative;
  z-index: 2;
}

.how-it-works-section .section-title {
  color: white;
}

.how-it-works-section .section-subtitle {
  color: rgba(255,255,255,0.9);
}

.step-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.step-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.step-item h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.step-item p {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0;
}

/* --- Video Section --- */
.video-section {
  padding: 5rem 0;
  background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-card-secondary) 100%);
}

.video-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-description {
  padding: 2rem 0;
}

.video-description h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.video-description p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
/* Enhanced Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-card-secondary) 100%);
}

.testimonial-card {
  background: var(--bg-card);
  border: none;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-icon i {
  color: white;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 2rem 0;
  font-style: italic;
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.author-info h6 {
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

/* Platform Cards */
.hover-scale {
  transition: all 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-10px) scale(1.02);
}

.member-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.social-links .btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.social-links .btn:hover {
  transform: translateY(-3px);
}

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

/* Enhanced Footer */
.main-footer {
  background: linear-gradient(135deg, var(--text-color) 0%, #34495e 100%);
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/static/imgs/patterns/footer-pattern.svg') repeat;
  opacity: 0.05;
  z-index: 1;
}

.main-footer .container {
  position: relative;
  z-index: 2;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
}

.footer-contact .contact-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

/* WhatsApp Button */
.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* RTL Support */
[dir="rtl"] .author-info {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-links ul li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

[dir="rtl"] .whatsapp {
  left: 30px;
  right: auto;
}

/* Dark Theme Adjustments */
[data-mdb-theme="dark"] .features-section {
  background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-card-secondary) 100%);
}

[data-mdb-theme="dark"] .feature-card {
  background: var(--bg-card);
  color: var(--text-color);
}

[data-mdb-theme="dark"] .feature-card h5 {
  color: var(--text-color);
}

[data-mdb-theme="dark"] .video-section {
  background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-card-secondary) 100%);
}

[data-mdb-theme="dark"] .video-description h3 {
  color: var(--text-color);
}

[data-mdb-theme="dark"] .testimonials-section {
  background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-card-secondary) 100%);
}

[data-mdb-theme="dark"] .testimonial-card {
  background: var(--bg-card);
  color: var(--text-color);
}

[data-mdb-theme="dark"] .section-title {
  color: var(--text-color);
}

[data-mdb-theme="dark"] .section-subtitle {
  color: var(--text-muted);
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1.05rem; /* Slightly larger text */
    line-height: 1.7;
}
.testimonial-card .author-info {
    display: flex;
    align-items: center;
}
.testimonial-card .author-info img {
    width: 55px; /* Slightly larger avatar */
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card); /* Optional border */
}
.testimonial-card .author-name {
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: var(--text-color);
}
.testimonial-card .author-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
/* MDB Carousel Adjustments */
.testimonials-section .carousel-indicators [data-mdb-target] {
    background-color: var(--primary);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.4;
    transition: opacity var(--transition-fast), background-color var(--transition-fast);
    border: none;
    margin: 0 5px;
}
.testimonials-section .carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-dark); /* Darker active indicator */
}
[data-mdb-theme="dark"] .testimonials-section .carousel-indicators .active {
     background-color: var(--primary);
}

.testimonials-section .carousel-control-prev-icon,
.testimonials-section .carousel-control-next-icon {
    background-image: none; /* Remove default MDB arrows */
    width: 40px; /* Larger control area */
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}
.testimonials-section .carousel-control-prev:hover .carousel-control-prev-icon,
.testimonials-section .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(var(--primary-rgb), 0.2);
}

.testimonials-section .carousel-control-prev::before,
.testimonials-section .carousel-control-next::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    font-size: 1.2rem; /* Slightly smaller icon */
}
.testimonials-section .carousel-control-prev::before { content: "\f053"; } /* fa-chevron-left */
.testimonials-section .carousel-control-next::before { content: "\f054"; } /* fa-chevron-right */


/* --- Platform Availability Section --- */
.platform-availability-section { /* Renamed from #our-team */
    padding: 6rem 0;
    /* background-color: var(--bg-color); */ /* Or keep same as body */
}
.platform-card .platform-photo {
    width: 140px; /* Adjust size as needed */
    height: 140px;
    border-radius: var(--border-radius-md); /* Rounded rectangle */
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-md);
}
.platform-card h5 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.platform-card p {
    font-size: 0.9rem;
}
.hover-scale {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}
.hover-scale:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Footer Styles */
.main-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-brand .text-gradient {
  background: linear-gradient(45deg, #00b4d8, #90e0ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-description {
  color: #b0b0b0;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.social-links {
  margin-top: 2rem;
  display遵义市贵阳路小学display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin: 10px;
  padding: 10px 15px;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #00b4d8;
  transform: translateY(-2px);
}

.footer-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0; /* Logical property for left in LTR, right in RTL */
  width: 50px;
  height: 2px;
  background: #00b4d8;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #00b4d8;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #b0b0b0;
}

.contact-item i {
  font-size: 1.2rem;
}

.contact-item a {
  color: #b0b0b0;
  text-decoration: none;
}

.contact-item a:hover {
  color: #00b4d8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #b0b0b0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-brand-name {
  color: #ffffff;
  font-weight: 600;
}

/* RTL Support */
html[dir="rtl"] .footer-links ul,
html[dir="rtl"] .footer-contact ul {
  padding-inline-start: 0; /* Remove default padding for RTL */
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .footer-brand-col {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links,
  .footer-contact {
    text-align: center;
  }
  
  .footer-title::after {
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }
  
  .contact-item {
    justify-content: center;
  }
}
/* [data-mdb-theme="dark"] .footer-bottom { color: #6B7280; } */ /* Slightly adjust dark mode bottom text if needed */


/* --- Floating Buttons --- */
.whatsapp {
  position: fixed;
  right: 20px; /* Closer to edge */
  bottom: 10px;
  z-index: 1030;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  width: 55px; /* Slightly larger */
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg); /* More prominent shadow */
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
  color: var(--text-light) !important;
  background-color: #25D366; /* WhatsApp Green */
  font-size: 1.8rem; /* Larger icon */
  opacity: 0.9;
}
.whatsapp:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* --- Utilities & Overrides --- */
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }

/* Fix for potential MDB specificity issues */
.modal-content {
    
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
}
.modal-footer {
    border-top: 1px solid var(--border-color);
}
.btn-close {
    filter: invert(0.5) sepia(1) saturate(20) hue-rotate(190deg); /* Style close button if needed */
}
[data-mdb-theme="dark"] .btn-close {
     filter: invert(1) grayscale(100%) brightness(200%);
}



#whatsappButton:hover { opacity: 1; }

/* Navigation Buttons (Top/Bottom) */
.navigation-buttons {
  position: fixed;
  display: flex;
  gap: 15px; /* Slightly reduced gap */
  z-index: 1040;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(var(--bg-card-rgb, 255, 255, 255), 0.8); /* Dynamic background */
  backdrop-filter: blur(8px); /* Frosted glass */
  padding: 10px 20px;
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(var(--border-color-rgb, 0, 0, 0), 0.1);
}
[data-mdb-theme="dark"] .navigation-buttons {
    background-color: rgba(var(--bg-card-rgb, 31, 41, 55), 0.8);
    border: 1px solid rgba(var(--border-color-rgb, 55, 65, 81), 0.5);
}

.nav-button {
  background-color: transparent;
  color: var(--primary);
  border: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  font-size: 1.2rem;
  border-radius: 50%;
}
.nav-button:hover {
  color: var(--primary-dark);
  transform: scale(1.1);
}

/* Positioning for Nav Buttons */
@media (min-width: 769px) {
  .navigation-buttons {
    top: 20px;
  }
}
@media (max-width: 768px) {
  .navigation-buttons {
    bottom: 20px;
    top: auto;
    padding: 8px 15px;
  }
  /* Adjust fixed buttons more carefully on mobile */

  #whatsappButton { bottom: 10px;right:5px; } /* Above nav buttons */
}






.large-icon {
  font-size: 1.5rem; /* Adjust the size as needed */
  color: #ffffff; /* Ensure the icon color contrasts well with the button */
}
    
    /* --- Our Team Section --- */
    #our-team {
      padding: 5rem 0;
      background-color: var(--card-light);
    }
    
    
    #our-team .card-body {
      text-align: center;
    }
    
    #our-team .member-photo {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 1.5rem;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    #our-team h5 {
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
    
    #our-team p.title {
      font-size: 1.1rem;
      font-style: italic;
      color: var(--secondary-color);
    }
    
    #our-team .social-links {
      margin-top: 1.5rem;
    }
    
    #our-team .social-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background-color: var(--primary-color);
      color: white;
      margin: 0 0.4rem;
      transition: background-color 0.3s, transform 0.2s;
    }
    
    #our-team .social-links a:hover {
      background-color: #1e40af;
      transform: scale(1.1);
    }
    







/* Accordion */
.accordion {
  --mdb-accordion-bg: var(--bg-card) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-card);
  /* color: white; */
}

/* Alerts */
.alert-danger {
  background-color: var(--alert-danger-bg) !important;
  color: var(--alert-text-color) !important;
}

.alert-success {
  background-color: var(--alert-success-bg) !important;
  color: var(--alert-text-color) !important;
}

.alert-warning {
  background-color: var(--alert-warning-bg) !important;
  color: var(--alert-text-color) !important;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  width: 100px; /* Adjust as needed */
  height: auto;
}

.title {
  color: var(--logo-blue); /* Blue color */
  font-family: 'Pacifico', cursive;
}

.title span {
  color: var(--logo-red); /* Red color for 'BOOK' */
}

.subtitle {
  padding-left: 5px;
  font-size: 0.5em;
}

.underline {
  margin-top: 5px;
  width: 90px;
  height: 3px;
  background-color: var(--underline-color); /* Yellow underline */
}





  /* ------------------------------questions----------------------*/
  /* Common Styles */
  .question-card {
      transition: all 0.3s ease;
      border: none;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      margin-bottom: 1.5rem;
      background-color: var(--bg-card-secondary); /* Use MDB's card background variable */
  }

  .question-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .question-card img {
      max-height: 300px; /* Smaller and responsive */
      width: auto;
      object-fit: contain;
      border-radius: 8px;
      margin-bottom: 1rem; /* Space below the image */
  }

  .card-header {
      border-bottom: 1px solid var(--mdb-border-color); /* Use MDB's border color variable */
      border-radius: 10px 10px 0 0;
      padding: 1rem;
  }

  .card-body {
      padding: 1.5rem;
  }

  .question-text {
      font-size: 1.25rem;
      font-weight: 500;
      margin-bottom: 1rem; /* Space below the question text */
  }

  .question-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem; /* Space between buttons */
  }

  .answer-card {
      border: 1px solid var(--mdb-border-color); /* Use MDB's border color variable */
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
      transition: all 0.3s ease;
      background-color: var(--bg-card-secondary); /* Use MDB's card background variable */
  }

  /* Doctor-Specific Styles */
  .correct-answer {
      border: 2px solid var(--mdb-primary); /* Use MDB's primary color variable */
      background-color: rgba(13, 110, 253, 0.1); /* Light blue background with transparency */

  }

  .correct {
      color: var(--mdb-primary); /* Use MDB's primary color variable */
      font-weight: bold;
  }

  .incorrect {
      color: var(--mdb-secondary); /* Use MDB's secondary color variable */
  }

  /* Student-Specific Styles */
  .answer-card.checked {
      border: 2px solid var(--mdb-success); /* Use MDB's success color variable */
      background-color: rgba(25, 135, 84, 0.1); /* Light green background with transparency */
  }

  .answer-card.checked .form-check-label {
      color: var(--mdb-success); /* Use MDB's success color variable */
      font-weight: bold;
  }

  /* Highlight Selected Answer for Students */
  .answer-card.selected {
      border: 2px solid var(--mdb-warning); /* Use MDB's warning color variable */
      background-color: rgba(255, 193, 7, 0.1); /* Light yellow background with transparency */
  }

  .answer-card.selected .form-check-label {
      color: var(--mdb-warning); /* Use MDB's warning color variable */
      font-weight: bold;
  }

  

 /* Student-Specific Styles */
  .result-card {
      
      border: 1px solid var(--mdb-success); 
      border-radius: 5px;
      
  }

  /* Quiz Result Styles */
  .student-selected {
      border: 3px solid var(--mdb-info) !important;
      background-color: rgba(13, 202, 240, 0.1);
      box-shadow: 0 0 10px rgba(13, 202, 240, 0.3);
  }

  .student-incorrect-answer {
      border: 3px solid var(--mdb-danger) !important;
      background-color: rgba(220, 53, 69, 0.1);
      box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
  }

  .correct-answer {
      border: 3px solid var(--mdb-success) !important;
      background-color: rgba(25, 135, 84, 0.1);
      box-shadow: 0 0 10px rgba(25, 135, 84, 0.3);
  }


/* Active Tab Background Color */
.nav-item:has(.nav-link.active) {
  background-color: var(--bg-footer); /* Use your desired color */

  color: var(--mdb-primary) !important; /* Text color for active tab */
  border-radius: 5px; /* Optional: Add rounded corners */
}


/* Hover Effect for Tabs */
.nav-link:hover {
    color: var(--top-button-bg) ; /* Light hover effect */
}


/* Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-card);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    border-radius: 15px;
    z-index: 1000;
}

/* Collapsed Sidebar - LTR */
[dir="ltr"] .sidebar.collapsed {
    transform: translateX(-100%); /* Move sidebar out of view to the left */
}

/* Collapsed Sidebar - RTL */
[dir="rtl"] .sidebar.collapsed {
    transform: translateX(100%); /* Move sidebar out of view to the right */
}

/* Main Content */
.main-content {
    flex-grow: 1;
    transition: margin-inline-start 0.3s ease-in-out;
    margin-inline-start: 30px; /* Default margin for sidebar */
}

.main-content.expanded {
    margin-inline-start: -180px; /* Space for the toggle button when sidebar is hidden */
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 105px;
    inset-inline-start: -20px; /* Logical property for left/right */
    z-index: 1050;
    background-color: var(--bg-card-secondary);
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000 !important;
        background-color: #c3daff;
    }

    /* Default State - Hidden Sidebar (Mobile) */
    [dir="ltr"] .sidebar:not(.collapsed) {
        transform: translateX(-100%); /* Move sidebar out of view to the left */
    }

    [dir="rtl"] .sidebar:not(.collapsed) {
        transform: translateX(100%); /* Move sidebar out of view to the right */
    }

    /* Show Sidebar - Mobile */
    .sidebar.collapsed {
        transform: translateX(0) !important; /* Bring sidebar back into view */
    }

    .sidebar-toggle {
        top: 82px;
        inset-inline-start: -20px; /* Logical property for left/right */
    }

    .main-content {
        margin-inline-start: 0 !important; /* Logical property for left/right */
        margin-top: 10px !important;
        width: 100%;
    }

    .main-content.expanded {
        margin-inline-start: 0; /* Logical property for left/right */
    }
}


/* Enhanced Theme Switcher */
.theme-switcher {
  position: relative;
  cursor: pointer;
  width: 60px;
  height: 32px;
  background: rgba(var(--border-color-rgb, 229, 231, 235), 0.3);
  border-radius: 24px;
  padding: 4px;
  transition: all 0.3s ease;
  border: 2px solid rgba(var(--border-color-rgb, 229, 231, 235), 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-switcher:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: scale(1.05);
}

.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  color: var(--text-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(var(--border-color-rgb, 229, 231, 235), 0.4);
}

.theme-icon[data-theme="light"] {
  left: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff9a56, #ffad56, #ffc947);
  box-shadow: 0 4px 16px rgba(255, 173, 86, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 173, 86, 0.7);
}

.theme-icon[data-theme="dark"] {
  right: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, #4c1d95, #6366f1, #8b5cf6);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(99, 102, 241, 0.7);
}

/* Hover effects */
.theme-icon:hover {
  transform: translateY(-50%) scale(1.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon[data-theme="light"]:hover {
  background: linear-gradient(135deg, #ff8a42, #ff9d42, #ffb833);
  box-shadow: 0 4px 16px rgba(255, 173, 86, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.theme-icon[data-theme="dark"]:hover {
  background: linear-gradient(135deg, #3c1361, #5b21b6, #7c3aed);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Active state */
.theme-icon[style*="opacity: 1"] {
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 10;
  filter: brightness(1.15);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

.theme-icon[data-theme="light"][style*="opacity: 1"] {
  background: linear-gradient(135deg, #f97316, #fb923c, #fbbf24);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border-color: rgba(251, 146, 60, 0.8);
}

.theme-icon[data-theme="dark"][style*="opacity: 1"] {
  background: linear-gradient(135deg, #581c87, #7c3aed, #a855f7);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border-color: rgba(124, 58, 237, 0.8);
}

/* Dark theme adjustments */
[data-mdb-theme="dark"] .theme-switcher {
  background: rgba(var(--bg-card-secondary-rgb, 55, 65, 81), 0.6);
  border-color: rgba(var(--border-color-rgb, 55, 65, 81), 0.8);
  backdrop-filter: blur(8px);
}

[data-mdb-theme="dark"] .theme-icon {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

[data-mdb-theme="dark"] .theme-icon[data-theme="light"] {
  background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  border-color: rgba(234, 88, 12, 0.7);
}

[data-mdb-theme="dark"] .theme-icon[data-theme="dark"] {
  background: linear-gradient(135deg, #312e81, #4338ca, #6366f1);
  color: #e0e7ff;
  box-shadow: 0 3px 12px rgba(67, 56, 202, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border-color: rgba(67, 56, 202, 0.7);
}

[data-mdb-theme="dark"] .theme-icon[data-theme="light"]:hover {
  background: linear-gradient(135deg, #dc2626, #ea580c, #f97316);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

[data-mdb-theme="dark"] .theme-icon[data-theme="dark"]:hover {
  background: linear-gradient(135deg, #1e1b4b, #3730a3, #4338ca);
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

[data-mdb-theme="dark"] .theme-icon[data-theme="light"][style*="opacity: 1"] {
  background: linear-gradient(135deg, #b91c1c, #dc2626, #ef4444);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border-color: rgba(220, 38, 38, 0.8);
}

[data-mdb-theme="dark"] .theme-icon[data-theme="dark"][style*="opacity: 1"] {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4338ca);
  box-shadow: 0 6px 20px rgba(49, 46, 129, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  border-color: rgba(49, 46, 129, 0.8);
}

.language-switcher {
  cursor: pointer;
  user-select: none;
}



.btn {
  font-weight:bold;
}



.bg-home-secondary{
  background-color: var(--bg-card-secondary);
}

.accordion-button:focus {
    box-shadow: none !important;

    border-color: rgba(0,0,0,.125);
}



.custom-accordion .info-item {
    border-left: 3px solid #dee2e6;
    padding-left: 10px;
    transition: all 0.2s;
}

.custom-accordion .info-item:hover {
    border-left-color:#1e9fd7;
}