/* Custom CSS for Charter Landing Page */
:root {
    --primary-color: #e94e1d;
    --secondary-color: #152e5d;
    --danger-color: #e94e1d;
    --dark-color: #2c3e50;
    --muted-color: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gradient-start: #e94e1d;
    --gradient-end: #ff6b35;
    --primary-light: #ff8c42;
    --primary-lighter: #ffb366;
    --text-light: #6c757d;
    --text-lighter: #9ca3af;
    --border-light: rgba(233, 78, 29, 0.1);
    --shadow-light: rgba(233, 78, 29, 0.08);
    --secondary-dark: #0f1f3f;
    --secondary-light: rgba(21, 46, 93, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: 1rem; /* 16px base */
}

/* ========================================
   COMPREHENSIVE TYPOGRAPHY SYSTEM
   ======================================== */

/* Heading Hierarchy */
h1, .h1 {
    font-size: 2.5rem !important; /* 40px */
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #1a202c !important;
}

h2, .h2 {
    font-size: 2rem !important; /* 32px */
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 1.25rem !important;
    color: #2d3748 !important;
}

h3, .h3 {
    font-size: 1.5rem !important; /* 24px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    color: #2d3748 !important;
}

h4, .h4 {
    font-size: 1.25rem !important; /* 20px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    color: #2d3748 !important;
}

h5, .h5 {
    font-size: 1.125rem !important; /* 18px */
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    color: #4a5568 !important;
}

h6, .h6 {
    font-size: 1rem !important; /* 16px */
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    color: #4a5568 !important;
}

/* Body Text Sizes */
.text-xl {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.6 !important;
}

.text-lg {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.6 !important;
}

.text-base, p {
    font-size: 1rem !important; /* 16px */
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    color: #4a5568 !important;
}

.text-sm {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.5 !important;
}

.text-xs {
    font-size: 0.75rem !important; /* 12px */
    line-height: 1.4 !important;
}

/* Specialized Text */
.text-hero {
    font-size: 2.75rem !important; /* 44px */
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.text-subtitle {
    font-size: 1.125rem !important; /* 18px */
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #64748b !important;
}

.text-caption {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #64748b !important;
}

.text-overline {
    font-size: 0.75rem !important; /* 12px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #64748b !important;
}

/* Button Text */
.btn-text-lg {
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600 !important;
}

.btn-text-base {
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
}

.btn-text-sm {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 500 !important;
}

/* Card Text Hierarchy */
.card-title {
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    color: #2d3748 !important;
}

.card-subtitle {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #64748b !important;
    margin-bottom: 0.75rem !important;
}

.card-text {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.5 !important;
    color: #4a5568 !important;
}

/* Navigation Text */
.nav-text {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 500 !important;
}

.nav-text-lg {
    font-size: 1rem !important; /* 16px */
    font-weight: 500 !important;
}

/* Badge/Tag Text */
.badge-text {
    font-size: 0.75rem !important; /* 12px */
    font-weight: 500 !important;
}

/* Form Text */
.form-label {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 500 !important;
    color: #374151 !important;
}

.form-text {
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.4 !important;
}

.form-help {
    font-size: 0.75rem !important; /* 12px */
    line-height: 1.4 !important;
    color: #6b7280 !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: 2rem !important; /* 32px */
    }
    
    h2, .h2 {
        font-size: 1.75rem !important; /* 28px */
    }
    
    h3, .h3 {
        font-size: 1.375rem !important; /* 22px */
    }
    
    .text-hero {
        font-size: 2.25rem !important; /* 36px */
    }
    
    .text-subtitle {
        font-size: 1rem !important; /* 16px */
    }
}

@media (max-width: 576px) {
    h1, .h1 {
        font-size: 1.75rem !important; /* 28px */
    }
    
    h2, .h2 {
        font-size: 1.5rem !important; /* 24px */
    }
    
    .text-hero {
        font-size: 2rem !important; /* 32px */
    }
}

/* Custom container with less spacing */
.container {
    max-width: 1400px;
}

img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.05) saturate(1.1);
}

img:hover {
    filter: contrast(1.1) saturate(1.2) brightness(1.05);
    transform: scale(1.02);
}

/* Navigation Styles */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    object-fit: contain;
    background-color: transparent;
}

.brand-image {
    height: 45px;
    width: auto;
    display: block;
    max-width: 150px;
}

.search-container {
    width: 300px;
}

.search-input {
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    font-size: 14px;
    height: 40px;
}

.search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(233, 78, 29, 0.25);
    border-color: var(--primary-color);
}

.input-group-text {
    border-radius: 0 25px 25px 0;
    border: 1px solid #e0e0e0;
    border-left: none;
    height: 40px;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    font-size: 14px;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b35);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-collapse {
    align-items: center;
}

.navbar-nav.ml-auto {
    align-items: center !important;
    flex-direction: row !important;
    gap: 2px !important;
    margin-left: auto !important;
}

/* Auth Buttons */
.btn-auth {
    font-size: 14px !important;
    font-weight: 500;
    padding: 8px 20px !important;
    border-radius: 20px;
    border-width: 1px;
    min-width: auto;
    height: 38px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-outline-primary.btn-auth {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary.btn-auth:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-danger.btn-auth {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-danger.btn-auth:hover {
    background-color: #d4461a !important;
    border-color: #d4461a !important;
}

/* Ensure desktop auth buttons aren't affected by hero button styles */
.navbar .btn-auth {
    font-size: 14px !important;
    padding: 8px 20px !important;
    height: 38px !important;
    min-height: 38px !important;
    line-height: 1.5 !important;
}

/* Sidebar Language Dropdown - Fixed Layout */
.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown .nav-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 15px 20px;
    padding-right: 45px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 12px;
}

.sidebar-dropdown .nav-item:hover {
    background: rgba(233, 78, 29, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-dropdown .nav-item .fas.fa-globe {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-dropdown .nav-item .current-lang {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.sidebar-dropdown .dropdown-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.sidebar-dropdown.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Fix sidebar auth buttons to match desktop */
.sidebar-auth .btn {
    font-size: 14px !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    margin-bottom: 12px;
    border-width: 1px !important;
    height: auto !important;
    min-height: 38px !important;
}

.sidebar-auth .btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

.sidebar-auth .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.sidebar-auth .btn-danger {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.sidebar-auth .btn-danger:hover {
    background-color: #d4461a !important;
    border-color: #d4461a !important;
    color: white !important;
}

.sidebar-dropdown-menu {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    padding: 8px 0;
    border: 1px solid #e9ecef;
    animation: slideDown 0.2s ease;
}

.sidebar-dropdown-menu.active {
    display: block;
}

.sidebar-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    gap: 10px;
}

.sidebar-dropdown-menu .dropdown-item:hover {
    background: rgba(233, 78, 29, 0.1);
    color: var(--primary-color);
}

.sidebar-dropdown-menu .dropdown-item.active {
    background: rgba(233, 78, 29, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-dropdown-menu .dropdown-item .fas.fa-check {
    margin-left: auto;
    opacity: 0;
    font-size: 12px;
}

.sidebar-dropdown-menu .dropdown-item.active .fas.fa-check {
    opacity: 1;
}

.lang-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* Cart and wishlist icons */
.navbar-nav a[href="#"] i {
    font-size: 16px;
}

/* Badge positioning */
.badge-pill {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
}

/* Ensure section badges appear above titles */
.text-center .badge {
    display: block;
    margin-bottom: 1rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff8f5 0%, #fff2ee 25%, #ffe9e6 50%, #fff5f0 75%, #ffffff 100%);
    min-height: 320px;
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 320px;
}

.hero-content {
    padding: 0.2rem 0;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 2.75rem !important; /* Use text-hero from typography system */
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em !important;
    color: #1a202c !important;
}

.hero-subtitle {
    font-size: 1.125rem !important; /* Use text-subtitle from typography system */
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
    color: #64748b !important;
    font-weight: 400 !important;
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 78, 29, 0.2);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    border: none;
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #d4461a, #e94e1d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 78, 29, 0.3);
}

.hero-buttons .btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: white;
}

.hero-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    margin-top: 0.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.05rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-color);
    font-weight: 500;
    margin: 0;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.hero-background-shape {
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(233, 78, 29, 0.15), rgba(255, 107, 53, 0.2));
    border-radius: 60% 40% 60% 40%;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(20px);
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 240px;
    height: 300px;
    object-fit: cover;
    border-radius: 25px;
    animation: slideInRight 1.2s ease-out 0.3s both;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02) translateY(-5px);
}

.dots-pattern {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #2d3436 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-25px) rotate(5deg);
    }
    66% {
        transform: translateY(15px) rotate(-3deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Trusted By Section */
.trusted-section {
    background: #fff;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b35, #ff8c42);
    border-radius: 4px;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(233, 78, 29, 0.3);
}

.certification-logo {
    max-width: 120px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.certification-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Trusted By Auto-Scroll Styles */
.trusted-logos-container {
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,1) 10%, 
        rgba(255,255,255,1) 90%, 
        rgba(255,255,255,0) 100%);
    padding: 20px 0;
}

.trusted-logos-track {
    display: flex;
    gap: 12px; /* Or any small value you prefer */
    animation: scroll-logos 30s linear infinite;
    align-items: center;
}

.trusted-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    margin: 0 6px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    width: 140px;      /* Reduced width */
    height: 90px;      /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.trusted-logo-item img {
    max-width: 100%;
    max-height: 60px;  /* Increased for new height */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 12px;     /* Padding on all sides */
}

.trusted-logos-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    font-size: 14px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
          color: #007bff;
  }
  
  /* Course Card Column Spacing for Tablet and Small Screens */
  @media (max-width: 1024px) and (min-width: 769px) {
      .courses-row .col-lg-3,
      .courses-row .col-md-6,
      .courses-row .col-sm-12 {
          margin-bottom: 2rem;
          padding-bottom: 0.5rem;
      }
      
      .course-card {
          min-height: 330px;
      }
      
      .course-image {
          height: 160px;
      }
      
      .course-image img {
          height: 160px;
      }
  }
  
  @media (max-width: 768px) and (min-width: 577px) {
      .courses-row .col-lg-3,
      .courses-row .col-md-6,
      .courses-row .col-sm-12 {
          margin-bottom: 1.5rem;
          padding-bottom: 0.5rem;
      }
  }
  
  /* iPad Air Banner Centering */
  @media (max-width: 1024px) and (min-width: 768px) {
      .hero-section .container {
          display: flex;
          justify-content: center;
          align-items: center;
          min-height: 100vh;
      }
      
      .hero-section .row {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          text-align: center;
          width: 100%;
      }
      
      .hero-section .col-lg-6 {
          width: 100%;
          max-width: 600px;
          text-align: center;
          margin-bottom: 2rem;
      }
      
      .hero-content {
          text-align: center;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
      }
      
      .hero-buttons {
          display: flex;
          justify-content: center;
          gap: 1rem;
          flex-wrap: wrap;
      }
      
      .hero-stats .row {
          justify-content: center;
      }
      
      .hero-image-container {
          display: flex;
          justify-content: center;
          align-items: center;
          max-width: 400px;
          margin: 0 auto;
      }
  }
  
  /* Hide category dropdown on tablets and iPad Pro */
  @media screen and (max-width: 1199px) {
      /* Hide category dropdown (Explore menu) on iPad Pro, tablets, and small laptops */
      .navbar .navbar-nav.mr-auto,
      .navbar .mega-dropdown,
      .navbar .nav-item.dropdown.mega-dropdown,
      .navbar ul.navbar-nav.mr-auto,
      .navbar li.nav-item.dropdown.mega-dropdown {
          display: none !important;
          visibility: hidden !important;
      }
  }
  
  /* iPad Pro and tablet specific styling - Add margin to search bar */
  @media screen and (max-width: 1199px) and (min-width: 992px) {
      .navbar .navbar-brand {
          margin-right: 30px !important;
      }
      
      .navbar .search-container {
          margin-left: 100px !important;
          margin-right: 15px !important;
      }
      
      .navbar .search-input {
          margin-left: 50px !important;
      }
      
      .navbar .navbar-nav.ml-auto {
          margin-left: 10px !important;
      }
      
      .navbar .d-none.d-lg-flex {
        margin-left: 20px !important;
          justify-content: space-between !important;
          align-items: center !important;
      }
  }
  
  /* Specific targeting for iPad Pro 1024px */
  @media screen and (width: 1024px) {
      .navbar .search-container {
          margin-left: 120px !important;
      }
  }
  
  /* Show category dropdown on laptop and desktop screens */
  @media screen and (min-width: 1200px) {
      .navbar .navbar-nav.mr-auto,
      .navbar .mega-dropdown,
      .navbar .nav-item.dropdown.mega-dropdown,
      .navbar ul.navbar-nav.mr-auto,
      .navbar li.nav-item.dropdown.mega-dropdown {
          display: block !important;
          visibility: visible !important;
      }
      
      /* Reset margins for large screens - minimal space from category dropdown */
      .navbar .search-container {
          margin-left: 20px !important;
          margin-right: 8px !important;
      }
      
      .navbar .search-input {
          margin-left: 0 !important;
      }
      
      .navbar .d-none.d-lg-flex {
          margin-left: 0 !important;
      }
      
      .navbar .navbar-nav.mr-auto {
          margin-right: 10px !important;
      }
  }
  
  /* Small laptops - Compact navbar items when category dropdown is visible */
  @media screen and (max-width: 1400px) and (min-width: 1200px) {
      
      /* Compact container */
      .navbar .container {
          max-width: 100% !important;
          padding-left: 12px !important;
          padding-right: 12px !important;
      }
      
      /* Adjust brand image */
      .navbar .brand-image {
        margin-left: 5px;
        height: 32px !important;
      }
      
      /* Compact search bar with proper spacing from logo */
      .navbar .search-container {
          min-width: 200px !important;
          margin-right: 6px !important;
          margin-left: 30px !important;
          flex-shrink: 0 !important;
      }
      
      /* Ensure navbar brand doesn't overlap */
      .navbar .navbar-brand {
          margin-right: 20px !important;
          flex-shrink: 0 !important;
      }
      
      /* Adjust navbar layout to prevent overlap */
      .navbar .d-none.d-lg-flex {
          width: 100% !important;
          justify-content: space-between !important;
      }
      
      .navbar .search-container .input-group {
          width: 200px !important;
      }
      
      .navbar .search-input {
        margin-left: 30px;
          font-size: 12px !important;
          padding: 4px 8px !important;
          height: 32px !important;
      }
      
      .navbar .input-group-text {
          padding: 4px 8px !important;
          height: 32px !important;
      }
      
      /* Compact right side navigation */
      .navbar .navbar-nav.ml-auto {
          gap: 0.3rem !important;
          flex-wrap: nowrap !important;
      }
      
      /* Compact all nav links */
      .navbar .navbar-nav.ml-auto .nav-link {
          padding: 4px 6px !important;
          font-size: 12px !important;
          white-space: nowrap !important;
      }
      
      /* Compact dropdown toggles */
      .navbar .navbar-nav.ml-auto .dropdown-toggle {
          padding: 4px 6px !important;
          font-size: 12px !important;
      }
      
      /* Compact icon links */
      .navbar .navbar-nav.ml-auto .position-relative {
          padding: 4px 6px !important;
      }
      
      .navbar .navbar-nav.ml-auto .position-relative i {
          font-size: 14px !important;
      }
      
      /* Compact auth buttons */
      .navbar .navbar-nav.ml-auto .btn-auth {
          padding: 4px 10px !important;
          font-size: 11px !important;
          margin-left: 3px !important;
          white-space: nowrap !important;
      }
      
      /* Compact badge positioning */
      .navbar .badge {
          font-size: 0.6rem !important;
          padding: 0.15rem 0.3rem !important;
      }
      
      /* Ensure navbar doesn't wrap */
      .navbar .navbar-collapse {
          flex-wrap: nowrap !important;
      }
      
      /* Minimal spacing between navbar items */
      .navbar .navbar-nav.ml-auto > * {
          margin-left: 2px !important;
          margin-right: 2px !important;
      }
  }
  
  /* Responsive Design */
@media (max-width: 992px) {
    .container {
        max-width: 95%;
    }
    
    .search-container {
        width: 250px;
        margin: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-image-container {
        height: 400px;
        margin-top: 2rem;
        margin-left: auto;
        justify-content: center;
    }
    
    .hero-background-shape {
        width: 300px;
        height: 300px;
    }
    
    .hero-image {
        width: 250px;
        height: 300px;
    }
    
    .hero-section .col-lg-6:first-child {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 2;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav.ml-auto {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav.ml-auto > * {
        margin: 0.25rem 0;
    }
    
    .search-container {
        width: 100%;
        margin: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
        .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-image-container {
        height: 200px;
        margin-top: 1rem;
        margin-left: auto;
        justify-content: center;
    }
    
    .hero-background-shape {
        width: 180px;
        height: 180px;
    }
    
    .hero-image {
        width: 150px;
        height: 180px;
    }
    
    .hero-section .col-lg-6:first-child {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 2;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
     font-size: 2.2rem;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .certification-logo {
        max-width: 100px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
}

/* Additional Typography Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-danger {
    color: var(--primary-color) !important;
}

/* Global typography fixes for consistency */
.testimonial-card h6,
.testimonial-title {
    font-size: 1rem !important; /* Use h6 from typography system */
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.testimonial-text,
.testimonial-content p {
    font-size: 0.875rem !important; /* Use text-sm from typography system */
    line-height: 1.5 !important;
    color: #4a5568 !important;
}

.course-price,
.price-text {
    font-size: 1.125rem !important; /* Use text-lg from typography system */
    font-weight: 600 !important;
}

.course-instructor,
.instructor-name {
    font-size: 0.875rem !important; /* Use text-sm from typography system */
    color: #64748b !important;
}

.course-duration,
.duration-text {
    font-size: 0.75rem !important; /* Use text-xs from typography system */
    color: #6b7280 !important;
}

.section-header,
.page-title {
    font-size: 2rem !important; /* Use h2 from typography system */
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #2d3748 !important;
}

.section-subtitle,
.page-subtitle {
    font-size: 1.125rem !important; /* Use text-subtitle from typography system */
    color: #64748b !important;
    line-height: 1.6 !important;
}

/* Override any remaining inline font sizes for consistency */
.mini-course-card p,
.course-overview {
    font-size: 0.75rem !important; /* Use text-xs for small descriptive text */
    line-height: 1.4 !important;
    color: #6b7280 !important;
}

.view-more-btn,
.action-button {
    font-size: 0.875rem !important; /* Use text-sm for action buttons */
    font-weight: 500 !important;
}

/* Event and blog specific typography */
.event-title,
.blog-title {
    font-size: 1.25rem !important; /* Use h4 from typography system */
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.event-description,
.blog-excerpt {
    font-size: 0.875rem !important; /* Use text-sm from typography system */
    line-height: 1.5 !important;
    color: #4a5568 !important;
}

/* Fix any remaining small text that's too small for accessibility */
* {
    /* Ensure minimum font size for accessibility */
}

*[style*="font-size: 11px"],
*[style*="font-size: 10px"],
*[style*="font-size: 9px"] {
    font-size: 0.75rem !important; /* Minimum 12px for accessibility */
}

/* Features Section */
.features-section {
    background: linear-gradient(to bottom, #fff 0%, #fafbfc 100%);
}

.feature-card {
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(233, 78, 29, 0.08);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(233, 78, 29, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 8px 30px rgba(233, 78, 29, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: pulse 3s infinite;
}

.feature-title {
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 1.125rem !important; /* Use h5 from typography system */
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

.feature-text {
    font-size: 0.875rem !important; /* Use text-sm from typography system */
    line-height: 1.5 !important;
    color: #4a5568 !important;
}

/* Draggable Features Styles */
.features-draggable-container {
    overflow-x: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    padding: 20px 0;
}

.features-draggable-container:active {
    cursor: grabbing;
}

.features-track {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease;
    padding: 0 20px;
}

.feature-item-container {
    flex: 0 0 300px;
    min-width: 300px;
}

.features-track.dragging {
    transition: none;
}

@media (max-width: 768px) {
    .feature-item-container {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .features-track {
        gap: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .feature-item-container {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .features-track {
        gap: 15px;
        padding: 0 10px;
    }
}

/* Courses Section - Compact Layout */
.courses-section {
    background: #f8f9fa;
    padding-top: 2rem; /* Further reduced top padding */
    padding-bottom: 2rem; /* Further reduced bottom padding */
}

/* Compact course grid spacing */
.courses-row {
    margin-bottom: 0.5rem;
}

.courses-row .col-lg-3,
.courses-row .col-md-6 {
    margin-bottom: 0.5rem;
}

/* Course Tab Styling - Ultra compact */
.course-tabs {
    margin-bottom: 0; /* No margin below tabs */
}

/* Ultra tight spacing between tabs and content */
.course-content-wrapper {
    margin-top: -0.75rem; /* Stronger negative margin to close gap */
    padding-top: 0;
}

.tab-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.tab-pane {
    padding-top: 1rem; /* Minimal top padding */
    margin-top: 0 !important;
}

.tab-pane.fade.show.active {
    padding-top: 1rem !important;
    margin-top: 0 !important;
}

.courses-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any default Bootstrap spacing */
.courses-section .nav-tabs {
    margin-bottom: 0 !important;
}

.courses-section .tab-content {
    border-top: none !important;
    padding-top: 0 !important;
}

.course-tabs .nav-link {
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}

.course-tabs .nav-link:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
    transform: none;
}

.course-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(233, 78, 29, 0.3);
}

.course-tabs .nav-link:focus {
    box-shadow: none;
    outline: none;
}

/* Remove button default styling */
.course-tabs button.nav-link {
    border-style: solid;
}

.course-tabs button.nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* Course Card - Compact Layout */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 350px;
    border: 1px solid #e9ecef;
    animation: fadeInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.course-image {
    position: relative;
    overflow: hidden;
    height: 160px;
    width: 100%;
}

.course-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.course-image a {
    display: block;
    cursor: pointer !important;
    text-decoration: none !important;
}

.course-image a:hover {
    cursor: pointer !important;
    text-decoration: none !important;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-type-badge {
    position: absolute;
    top: 12px; /* Exactly aligned with course-actions center line */
    right: 15px; /* Moved to top right to avoid overlap with actions */
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.course-actions {
    position: absolute;
    top: 12px; /* Exactly aligned with course-type-badge center line */
    left: 15px; /* Left side position */
    display: flex;
    flex-direction: row; /* Same line horizontally */
    gap: 0.5rem;
    opacity: 1; /* Always visible */
    z-index: 10;
    pointer-events: auto;
}

.course-actions .btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.course-actions .btn:hover {
    background: #d4461a !important;
    border-color: #d4461a !important;
    color: white !important;
    transform: scale(1.1);
}

.course-content {
    padding: 0.5rem; /* Further reduced padding for more compact cards */
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-rating {
    font-size: 0.875rem;
    margin-bottom: 0.75rem; /* Adjusted for no description layout */
}

.course-title {
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.125rem !important; /* Use card-title from typography system */
    line-height: 1.4 !important;
}

.course-title a {
    color: #333 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: block;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.course-title a:focus,
.course-title a:active {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Course description removed for compact layout */

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem; /* Adjusted for no description layout */
}

.meta-item {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.live-schedule {
    background: #e8f5e8;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.75rem; /* Adjusted for no description layout */
}

.course-features {
    font-size: 0.85rem;
    margin-bottom: 0.75rem; /* Adjusted for no description layout */
}

.feature-item {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.course-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: auto;
}

/* Flexible spacing for different course types (no description) */
.live-schedule {
    min-height: 20px;
}

.course-features {
    min-height: 40px;
}

.course-meta {
    min-height: 35px;
}

/* Loading states and animations */
.courses-row {
    transition: all 0.3s ease;
}

.courses-row.loading {
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Load more button - smooth attractive styling */
.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b35 100%) !important;
    border: none !important;
    color: white !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(233, 78, 29, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    min-width: 160px;
    text-align: center;
}

/* Subtle shimmer effect */
.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4461a 0%, var(--primary-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 78, 29, 0.4);
}

.load-more-btn:active {
    transform: translateY(0px);
    box-shadow: 0 3px 10px rgba(233, 78, 29, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #ccc !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.load-more-btn i {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-right: 6px;
}

.load-more-btn:hover:not(:disabled) i {
    transform: rotate(45deg);
}

/* Enhanced loading state */
.load-more-btn .spinner-border {
    animation: spin 1.2s linear infinite, glow 2s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Floating animation */
.load-more-btn:not(:disabled):not(:hover) {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

/* Premium text shadow */
.load-more-btn {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Glass morphism effect */
.load-more-btn {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Course type badges - different colors for each type */
.course-type-badge {
    color: white !important;
}

/* Live course badge - green */
.course-type-badge.bg-success {
    background-color: #28a745 !important;
}

/* Recorded course badge - yellow */
.course-type-badge.bg-warning {
    background-color: #ffc107 !important;
}

/* Exam course badge - blue */
.course-type-badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Badge Styling */
.badge {
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-light-orange {
    background: rgba(233, 78, 29, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(233, 78, 29, 0.2);
}

.badge-danger {
    background: var(--primary-color);
    color: white;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar toggler */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Testimonials Section */
.testimonials-section {
    background: #fff;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(233, 78, 29, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    height: 100%;
}

.quote-icon {
    color: #dc3545;
    font-size: 2rem;
    position: absolute;
    top: 15px;
    right: 20px;
    opacity: 0.3;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

/* Categories Section */
.categories-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 4rem 0;
}

.categories-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(233, 78, 29, 0.1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 78, 29, 0.05), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(233, 78, 29, 0.1);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.category-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* Instructors Section */
.instructors-section {
    background: #f8f9fa;
}

.instructor-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.instructor-image {
    position: relative;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.05);
}

.instructor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instructor-card:hover .instructor-overlay {
    opacity: 1;
}

.instructor-overlay .btn {
    margin: 0 3px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.instructor-overlay .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.instructor-overlay .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

.instructor-info {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
}

.instructor-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.instructor-role {
    font-size: 0.8rem;
    margin: 0;
    color: white;
}

/* FAQ Section */
.faq-section {
    background: #fff;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-header {
    background: #f8f9fa;
}

.faq-button {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: transparent;
}

.faq-button:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-button:focus,
.faq-button:active,
.faq-button[aria-expanded="true"] {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    text-decoration: none;
}

.faq-button .fas {
    transition: transform 0.3s ease;
}

.faq-button[aria-expanded="true"] .fas {
    transform: rotate(180deg);
}

.faq-body {
    padding: 1.5rem;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #e9ecef;
}

/* Remove ALL orange borders from FAQ items */
.faq-item:focus,
.faq-item:active,
.faq-item.show,
.faq-section .accordion .card:focus,
.faq-section .accordion .card:active,
.faq-section .accordion .card.show,
.faq-section .btn:focus,
.faq-section .btn:active,
.faq-section button:focus,
.faq-section button:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #e9ecef !important;
    background: #f8f9fa !important;
}

/* Responsive adjustments for all sections */
@media (max-width: 768px) {
    .course-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .course-tabs .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .categories-container {
        padding: 2rem 1rem;
    }
    
    .category-card {
        padding: 1.5rem 0.75rem;
    }
    
    .instructor-image img {
        height: 200px;
    }
    
    .faq-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile course card adjustments */
    .course-card {
        margin-bottom: 1.5rem;
        min-height: 320px;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-image img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Mobile course actions adjustments */
    .course-actions {
        top: 8px; /* Closer to top on mobile */
        left: 8px; /* Closer to left edge on mobile */
        gap: 0.25rem; /* Smaller gap between buttons */
    }
    
    .course-actions .btn {
        width: 30px; /* Smaller circular buttons on mobile */
        height: 30px;
        font-size: 12px; /* Smaller icon size */
    }
    
    .course-type-badge {
        top: 8px; /* Match actions positioning */
        right: 8px; /* Closer to right edge */
        font-size: 0.7rem; /* Smaller text */
        padding: 0.2rem 0.6rem; /* Smaller padding */
    }
}

/* Small mobile adjustments */
@media (max-width: 576px) {
    .course-card {
        min-height: 300px;
        margin-bottom: 1rem;
    }
    
    .course-image {
        height: 160px;
    }
    
    .course-image img {
        height: 160px;
    }
    
    .course-content {
        padding: 0.75rem;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 4rem 0;
}

.newsletter-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.newsletter-title {
    font-size: 2.2rem;
    color: white;
    font-weight: 700;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.newsletter-input:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(233, 78, 29, 0.25);
    border-color: var(--primary-color);
}

.newsletter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #d4461a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 78, 29, 0.3);
    color: white;
}

/* Footer Section */
.footer-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-text {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #dc3545;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #d4461a;
    transform: translateY(-2px) scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(233, 78, 29, 0.3);
}

.footer-divider {
    border-color: #e9ecef;
    margin: 2rem 0 1rem 0;
}

.footer-copyright {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Slider fixes */
.instructors-slider {
    position: relative;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: -25px;
}

.slider-nav.next {
    right: -25px;
}

.testimonial-nav {
    margin-top: 2rem;
}

.testimonial-nav .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.testimonial-nav .btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Testimonials Slider Styles - Individual Card Movement */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.testimonial-slide {
    flex: 0 0 auto;
    width: calc(25% - 15px);
    min-width: 280px;
}

/* Desktop - Show 4 cards */
@media (min-width: 1200px) {
    .testimonial-slide {
        width: calc(25% - 15px);
    }
}

/* Large tablet - Show 3 cards */
@media (max-width: 1199px) and (min-width: 992px) {
    .testimonial-slide {
        width: calc(33.333% - 14px);
    }
}

/* Tablet - Show 2 cards */
@media (max-width: 991px) and (min-width: 768px) {
    .testimonial-slide {
        width: calc(50% - 10px);
    }
}

/* Mobile - Show 1 card */
@media (max-width: 767px) {
    .testimonial-slide {
        width: calc(100% - 20px);
    }
}

/* Hide page-based structure */
.testimonials-page {
    display: none;
}

/* Desktop - Show 4 cards */
@media (min-width: 1200px) {
    .testimonials-slider {
        width: 100%;
    }
    .testimonial-slide {
        width: calc(25% - 15px);
        min-width: 280px;
    }
}

/* Large tablet - Show 3 cards */
@media (max-width: 1199px) and (min-width: 992px) {
    .testimonials-slider {
        width: 100%;
    }
    .testimonial-slide {
        width: calc(33.333% - 14px);
        min-width: 280px;
    }
}

/* Tablet - Show 2 cards */
@media (max-width: 991px) and (min-width: 768px) {
    .testimonials-slider {
        width: 100%;
    }
    .testimonial-slide {
        width: calc(50% - 10px);
        min-width: 280px;
    }
}

/* Mobile - Show 1 card */
@media (max-width: 767px) {
    .testimonials-slider {
        width: 100%;
    }
    .testimonial-slide {
        width: calc(100% - 20px);
        min-width: 280px;
    }
}

/* Instructors Slider Styles */
.instructors-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 50px;
}

.instructors-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.instructor-slide {
    min-width: 180px;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .instructor-slide {
        min-width: calc(25% - 15px);
    }
}

@media (min-width: 992px) {
    .instructor-slide {
        min-width: calc(16.666% - 16.67px);
    }
}

@media (min-width: 1200px) {
    .instructor-slide {
        min-width: calc(14.285% - 17.14px);
    }
}

/* Make instructor slider buttons always visible */
.instructors-slider .slider-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 78, 29, 0.3);
}

.instructors-slider .slider-nav:hover {
    background: #d4461a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 78, 29, 0.4);
}

.instructors-slider .slider-nav.prev {
    left: 10px;
}

.instructors-slider .slider-nav.next {
    right: 10px;
}

@media (max-width: 576px) {
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    .category-icon {
        font-size: 2.2rem;
    }
    
    .instructor-name {
        font-size: 0.8rem;
        color: white;
    }
    
    .instructor-role {
        font-size: 0.7rem;
        color: white;
    }
    
    .newsletter-container {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-title {
        font-size: 2.2rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .slider-nav {
        display: none;
    }
    
    /* Keep instructor slider buttons visible on mobile */
    .instructors-slider .slider-nav {
        display: flex !important;
    }
    
    /* Very small mobile course actions */
    .course-actions {
        top: 6px; /* Even closer to top on very small screens */
        left: 6px; /* Even closer to left edge */
        gap: 0.2rem; /* Minimal gap */
        flex-direction: column; /* Stack vertically on very small screens */
    }
    
    .course-actions .btn {
        width: 28px; /* Even smaller buttons */
        height: 28px;
        font-size: 11px; /* Even smaller icons */
    }
    
    .course-type-badge {
        top: 6px; /* Match actions positioning */
        right: 6px; /* Even closer to right edge */
        font-size: 0.65rem; /* Even smaller text */
        padding: 0.15rem 0.5rem; /* Even smaller padding */
    }
}

/* Medium mobile screens - additional fixes */
@media (max-width: 480px) {
    .course-actions {
        top: 6px;
        left: 6px;
        gap: 0.2rem;
        flex-direction: column; /* Stack vertically on medium mobile */
    }
    
    .course-actions .btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .course-type-badge {
        top: 6px;
        right: 6px;
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
}

/* Mega Menu Styles */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0;
}

.mega-category {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.mega-category:hover {
    background: linear-gradient(135deg, #fff5f0, #ffe6e1);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
}

.mega-category.active {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    color: white;
}

.subcategory-content {
    min-height: 200px;
}

.subcategory-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-subcategory {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mega-subcategory:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}

.mini-course-card {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background: white;
}

.mini-course-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mini-course-card img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

.mini-course-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.mini-course-info p {
    margin: 0 0 8px 0;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}

.course-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
}

/* Enhanced Mobile Sidebar */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: linear-gradient(135deg, #fff, #f8f9fa);
        border-radius: 15px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 18px;
        border-radius: 10px;
        margin: 2px 0;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .navbar-nav .nav-link:hover {
        background: linear-gradient(135deg, #fff5f0, #ffe6e1);
        color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        background: var(--primary-color);
        border-radius: 0 3px 3px 0;
        transform: translateY(-50%);
        transition: height 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover::before {
        height: 70%;
    }
    
    .mega-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        padding: 15px;
        margin-top: 10px;
        border-radius: 10px;
        background: linear-gradient(135deg, #f8f9fa, #fff);
    }
    
    .mega-menu .row {
        flex-direction: column;
    }
    
    .mega-menu .col-md-3,
    .mega-menu .col-md-4,
    .mega-menu .col-md-5 {
        margin-bottom: 20px;
    }
}

/* More Human-like Design Improvements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(233, 78, 29, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 53, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(233, 78, 29, 0.01) 50%, transparent 100%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

/* Natural Card Hover Effects */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 8px 30px rgba(233, 78, 29, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(233, 78, 29, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Organic Button Styles */
.btn {
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b35 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(233, 78, 29, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 78, 29, 0.4);
    animation: none;
}

.btn:hover:not(.btn-primary) {
    animation: gentleBounce 0.6s ease-in-out;
}

/* Natural Typography */
.hero-title {
    font-weight: 800;
    line-height: 1.2;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b35, #ff8c42);
    border-radius: 4px;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(233, 78, 29, 0.3);
}

/* Testimonial and Instructor Cards - Fixed Display */
.testimonial-card,
.instructor-card {
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
}

/* Smooth Organic Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Form Styling */
.form-control {
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}


.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 78, 29, 0.1), 0 4px 12px rgba(233, 78, 29, 0.15);
    transform: translateY(-1px);
    background: white;
}

/* Category Cards with Micro-interactions */
.category-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(233, 78, 29, 0.1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 78, 29, 0.05), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(233, 78, 29, 0.1);
    border-color: var(--primary-color);
}

/* FAQ Accordion - NO ORANGE BORDERS */
.accordion .card,
.faq-item.accordion .card {
    border-radius: 12px;
    border: 1px solid #e9ecef !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion .card-header,
.faq-item .card-header {
    background: #f8f9fa !important;
    border-bottom: none;
    padding: 0;
}

.accordion .btn-link,
.faq-item .btn-link,
.faq-button {
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 25px;
    text-align: left;
    width: 100%;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus,
.accordion .btn-link:active,
.faq-item .btn-link:hover,
.faq-item .btn-link:focus,
.faq-item .btn-link:active,
.faq-button:hover,
.faq-button:focus,
.faq-button:active {
    color: #333 !important;
    background: #f8f9fa !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Enhanced Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 30s linear infinite;
}

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .feature-card,
    .course-card,
    .category-card {
        margin-bottom: 20px;
    }
    
    .instructor-slider .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 20px;
    }
    
    .instructor-slider .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Organic Scroll Effects */
.section-padding {
    position: relative;
}

.section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

/* Enhanced Typography */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b35, #ff8c42);
    border-radius: 4px;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(233, 78, 29, 0.3);
}

/* Organic Button Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Humanized Animations */
@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.btn:hover {
    animation: gentleBounce 0.6s ease-in-out;
}

/* Remove focus borders from navbar elements */
.navbar .nav-link:focus,
.navbar .search-input:focus,
.navbar .form-control:focus,
.navbar a:focus,
.navbar .dropdown-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ced4da !important;
}

/* Keep normal button shapes when clicked */
.btn:focus,
.btn:active,
.btn-auth:focus,
.btn-auth:active {
    border-radius: 20px !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(233, 78, 29, 0.3) !important;
}

/* Only circular buttons (carousel, sliders) stay circular */
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-control-prev:active,
.carousel-control-next:active,
.slider-nav:focus,
.slider-nav:active,
.hero-control-prev:focus,
.hero-control-next:focus,
.hero-control-prev:active,
.hero-control-next:active {
    border-radius: 50% !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(233, 78, 29, 0.3) !important;
}

/* Organic Grid Spacing */
.row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 768px) {
    .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile Experience - Old navbar collapse removed, replaced by sidebar system */
@media (max-width: 768px) {
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Button Styling Updates */
.btn-danger {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-danger:hover {
    background-color: #d4461a !important;
    border-color: #d4461a !important;
}

.course-footer .btn-danger {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.course-footer .btn-danger:hover {
    background-color: #d4461a !important;
    border-color: #d4461a !important;
    color: white !important;
}

/* Badge Updates */
.badge-danger {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Social Links */
.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color) !important;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #d4461a !important;
    transform: translateY(-2px) scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(233, 78, 29, 0.3);
}

/* Hero Section CTA Buttons */
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end)) !important;
    border: none !important;
    color: white !important;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #d4461a, #e94e1d) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 78, 29, 0.3);
}

.hero-buttons .btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: white !important;
}

.hero-buttons .btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Auth Buttons */
.btn-outline-primary.btn-auth {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary.btn-auth:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-danger.btn-auth {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-danger.btn-auth:hover {
    background-color: #d4461a !important;
    border-color: #d4461a !important;
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero Carousel Styles */
.hero-section .carousel-indicators {
    bottom: 30px;
    z-index: 10;
    justify-content: center;
}

.hero-section .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-section .carousel-indicators .active {
    background-color: var(--primary-color);
    border-color: white;
    transform: scale(1.2);
}

.hero-control-prev,
.hero-control-next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 2px solid rgba(233, 78, 29, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.hero-control-prev {
    left: 17px;
}

.hero-control-next {
    right: 17px;
}

.hero-control-prev:hover,
.hero-control-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
}

.hero-control-prev:focus,
.hero-control-next:focus,
.hero-control-prev:active,
.hero-control-next:active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    opacity: 1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 78, 29, 0.3);
    border-radius: 50% !important;
    text-decoration: none;
}

.hero-control-icon {
    font-size: 16px;
}

/* Ensure hero carousel maintains proper layout */
.hero-section .carousel {
    position: relative;
    overflow: visible;
    width: 100%;
}

.hero-section .carousel-inner {
    overflow: visible;
    width: 100%;
}

.hero-section .carousel-item {
    width: 100%;
}

.hero-section .carousel-item .container {
    width: 100%;
    max-width: 1200px;
}

.hero-section .carousel-item .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.hero-section .col-lg-6:first-child {
    order: 1;
}

.hero-section .col-lg-6:last-child {
    order: 2;
}



/* Course Carousel Styles */
.courses-section .carousel {
    position: relative;
    overflow: visible;
}

.course-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.course-slider-control:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(233, 78, 29, 0.3);
}

.course-slider-control:focus,
.course-slider-control:active {
    background: var(--primary-color);
    color: white;
    opacity: 1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 78, 29, 0.3);
    border-radius: 50% !important;
}

.course-slider-control.carousel-control-prev {
    left: -25px;
}

.course-slider-control.carousel-control-next {
    right: -25px;
}

.course-slider-prev,
.course-slider-next {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.course-slider-prev i,
.course-slider-next i {
    font-size: 16px;
}

/* Carousel transitions */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-transitioning {
    transform: scale(0.98);
    opacity: 0.9;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

/* Responsive adjustments for sliders */
@media (max-width: 768px) {
    .hero-control-prev,
    .hero-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-control-prev {
        left: 17px;
    }
    
    .hero-control-next {
        right: 17px;
    }
    
    .hero-section .carousel-indicators {
        bottom: 20px;
    }
    
    .course-slider-control {
        width: 40px;
        height: 40px;
    }
    
    .course-slider-control.carousel-control-prev {
        left: -20px;
    }
    
    .course-slider-control.carousel-control-next {
        right: -20px;
    }
}

@media (max-width: 576px) {
    .course-slider-control {
        display: none;
    }
    
    .hero-control-prev,
    .hero-control-next {
        width: 35px;
        height: 35px;
    }
    
    .hero-control-prev {
        left: 17px;
    }
    
    .hero-control-next {
        right: 17px;
    }
    
    .hero-section .carousel-indicators {
        bottom: 15px;
    }
    
    .hero-section .carousel-indicators li {
        width: 10px;
        height: 10px;
    }
}

/* Enhanced course card hover for slider */
.courses-section .course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.courses-section .course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Ensure proper spacing in course slider */
.courses-section .carousel-inner .row {
    margin: 0;
}

.courses-section .carousel-inner .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .newsletter-section {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid #333 !important;
        background: white !important;
        color: #333 !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .hero-control-prev,
    .hero-control-next,
    .hero-indicators,
    .course-slider-control {
        display: none !important;
    }
}

/* Modal Backdrop Fixes */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1040 !important;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

/* Ensure modals appear above backdrop */
.modal {
    z-index: 1050 !important;
}

/* Fix body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Prevent multiple backdrops */
.modal-backdrop + .modal-backdrop {
    display: none !important;
}

/* Specific fixes for login modal */
#loginModal {
    z-index: 1050 !important;
}

#loginModal .modal-backdrop {
    z-index: 1040 !important;
}

/* Ensure proper modal stacking */
.modal.show {
    display: block !important;
}

/* Fix for multiple modals */
.modal:not(.show) {
    display: none !important;
}



/* Mobile Sidebar Navigation System */

/* Desktop navbar remains unchanged on large screens */
@media (min-width: 992px) {
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}

/* Mobile Sidebar Styles */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: white;
    z-index: 1050;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    transform: translateX(320px);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

/* Sidebar Content */
.sidebar-content {
    padding: 0;
}

/* Search Section */
.sidebar-search {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.search-box {
    position: relative;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box i {
    color: #6c757d;
    font-size: 16px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #333;
}

.search-box input::placeholder {
    color: #6c757d;
}

/* Sidebar Sections */
.sidebar-section {
    border-bottom: 1px solid #e9ecef;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 20px 10px 20px;
    margin: 0;
}

/* Category List */
.category-list {
    padding: 0 0 10px 0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.category-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
    border-left-color: var(--primary-color);
}

.category-item i:first-child {
    font-size: 18px;
    color: var(--primary-color);
    width: 24px;
    margin-right: 15px;
}

.category-item span {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
}

.category-item i:last-child {
    font-size: 14px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.category-item:hover i:last-child {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Navigation Links */
.nav-links {
    padding: 0 0 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    margin-right: 15px;
}

.nav-item span {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
}

.nav-item .badge {
    font-size: 12px;
    padding: 4px 8px;
}

.current-lang {
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Auth Section */
.sidebar-auth {
    padding: 20px;
    margin-top: auto;
}

.sidebar-auth .btn {
    font-weight: 600;
    border-radius: 25px;
    padding: 12px 0;
    font-size: 16px;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    /* Hide desktop navbar items on mobile */
    .navbar-nav,
    .navbar-nav.ml-auto {
        display: none !important;
    }
    
    /* Show mobile hamburger */
    .navbar-toggler {
        display: block;
    }
}

/* Narrow mobile screens */
@media (max-width: 576px) {
    .mobile-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .mobile-sidebar.active {
        transform: translateX(280px);
    }
    
    .sidebar-header {
        padding: 15px;
    }
    
    .sidebar-search {
        padding: 15px;
    }
    
    .sidebar-title {
        padding: 15px 15px 8px 15px;
    }
    
    .category-item,
    .nav-item {
        padding: 12px 15px;
    }
    
    .sidebar-auth {
        padding: 15px;
    }
}

/* Smooth animations for sidebar */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Body scroll lock when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Mobile navbar toggler improvements */
.navbar-toggler {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(233, 78, 29, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .brand-image {
        height: 35px;
    }
}

/* Mobile Navbar Layout (Udemy Style) */
.mobile-navbar-layout {
    position: relative;
}

.mobile-nav-icons {
    gap: 15px;
}

.mobile-search-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-search-btn:hover {
    background: rgba(233, 78, 29, 0.1);
    color: var(--primary-color);
}

.mobile-cart-link {
    color: var(--primary-color);
    font-size: 20px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-cart-link:hover {
    background: rgba(233, 78, 29, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Search Container */
.mobile-search-container {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 15px 0;
    display: none;
    animation: slideDown 0.3s ease;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 12px 20px;
    gap: 12px;
}

.mobile-search-box i {
    color: #6c757d;
    font-size: 16px;
}

.mobile-search-box input {
    background: none;
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #333;
}

.mobile-search-box input::placeholder {
    color: #6c757d;
}

.mobile-search-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar {
        padding: 12px 0;
    }
    
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        margin: 0;
    }
    
    .brand-image {
        height: 36px;
    }
    
    .navbar-toggler {
        padding: 6px 8px;
        margin: 0;
    }
}

/* Fix sidebar login button background color to match desktop */
.sidebar-auth .btn-danger {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.sidebar-auth .btn-danger:hover {
    background-color: #d4461a !important;
    border-color: #d4461a !important;
    color: white !important;
}

/* Enhanced mobile responsiveness */
@media (max-width: 576px) {
    .mobile-nav-icons {
        gap: 10px;
    }
    
    .mobile-search-btn,
    .mobile-cart-link {
        font-size: 18px;
        padding: 6px;
    }
    
    .cart-badge {
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        padding: 1px 4px;
    }
    
    .brand-image {
        height: 32px;
    }
    
    .navbar-toggler {
        padding: 4px 6px;
    }
}

/* Mega Menu Desktop Fix - Clean Implementation */
@media (min-width: 992px) {
    .mega-dropdown {
        position: static;
    }

    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: none;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 0;
    }

    .mega-dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-menu .row {
        flex-direction: row;
    }

    .mega-menu .col-md-3,
    .mega-menu .col-md-4,
    .mega-menu .col-md-5 {
        margin-bottom: 0;
    }
}

/* Improved Navbar Layout and Alignment */
.navbar-collapse {
    align-items: center;
    justify-content: space-between;
}

.navbar-nav.ml-auto {
    align-items: center;
    flex-direction: row;
    gap: 2px;
    margin-left: auto !important;
}

.navbar-nav.ml-auto .nav-link {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 14px;
}

.navbar-nav.ml-auto .search-container {
    margin-right: 6px;
    min-width: 280px;
}

.navbar-nav.ml-auto .btn-auth {
    margin-left: 2px;
    font-size: 13px !important;
    padding: 6px 16px !important;
}

/* Search Bar Expansion */
.search-container .input-group {
    width: 280px;
}

.search-input {
    font-size: 14px !important;
}

/* Remove all focus effects from search input */
.search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ced4da !important;
}

/* NAVBAR ALIGNMENT FIXES - HIGHEST PRIORITY */
@media (min-width: 992px) {
    /* Desktop navbar container */
    .navbar .container .navbar-collapse {
        justify-content: space-between !important;
    }
    
    /* Left side - Logo and Explore closer */
    .navbar .container .navbar-nav.mr-auto {
        margin-left: 2px !important;
    }
    
    /* Reduce space between logo and explore button */
    .navbar .container .navbar-brand {
        margin-right: 4px !important;
    }
    
    /* Right side - Compact alignment */
    .navbar .container .navbar-nav.ml-auto {
        display: flex !important;
        align-items: center !important;
        margin-left: 0px !important;
    }
    
    /* Search bar expansion - closer to explore and bigger */
    .navbar .container .navbar-nav.ml-auto .search-container {
        width: 380px !important;
        margin-right: 12px !important;
        margin-left: -20px !important;
    }
    
    .navbar .container .navbar-nav.ml-auto .search-container .input-group {
        width: 380px !important;
    }
    
    /* ONLY reduce spacing for Join Our Experts, More, Language dropdown */
    .navbar .container .navbar-nav.ml-auto .nav-link[href="#"]:not(.position-relative) {
        padding: 8px 2px !important;
        margin: 0 !important;
        font-size: 14px !important;
    }
    
    .navbar .container .navbar-nav.ml-auto .nav-item.dropdown .nav-link {
        padding: 8px 2px !important;
        margin: 0 !important;
        font-size: 14px !important;
    }
    
    /* Keep original spacing for Cart and Wishlist icons */
    .navbar .container .navbar-nav.ml-auto a.position-relative {
        padding: 8px 12px !important;
        margin: 0 2px !important;
    }
    
    /* Keep original spacing for Auth buttons */
    .navbar .container .navbar-nav.ml-auto .btn-auth {
        margin-left: 8px !important;
        padding: 8px 20px !important;
        font-size: 14px !important;
    }
    
    .navbar .container .navbar-nav.ml-auto .btn-auth:first-of-type {
        margin-right: 8px !important;
    }
}

/* ===== COURSE DETAILS PAGE STYLES ===== */

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Course Hero Section */
.course-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0;
    margin-bottom: 0;
}

.course-hero-banner {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.course-hero-content {
    position: relative;
    z-index: 10;
    height: 400px;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.course-hero-left {
    flex: 1;
    color: white;
    padding-right: 2rem;
}

.course-hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.live-courses-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.course-title-arabic {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.course-title-english {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.oracle-logo {
    margin-top: 1rem;
}

.oracle-brand {
    height: 40px;
    filter: brightness(0) invert(1);
}

.hero-person-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.course-hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 5;
}

.hero-orange-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b35 100%);
    border-radius: 0 0 0 100px;
    transform: skewX(-10deg);
    transform-origin: top right;
}

/* Course Content Section */
.course-content-section {
    background: #fff;
}

/* Course Detail Tabs */
.course-detail-tabs {
    border-bottom: 2px solid #f1f3f4;
    margin-bottom: 2rem;
}

.course-detail-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

.course-detail-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
    background: transparent;
}

.course-detail-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: transparent;
    background: transparent;
    font-weight: 600;
}

.course-detail-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.course-requirements {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.course-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.who-course-for h5,
.skills-acquire h5 {
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.target-audience {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.audience-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 15px;
}

.audience-item:last-child {
    margin-bottom: 0;
}

.audience-item i {
    margin-right: 0.5rem;
    font-size: 16px;
}

.skills-list {
    background: #fff8f5;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.skills-list ul li {
    font-size: 15px;
    line-height: 1.5;
}

/* Course Actions */
.course-actions {
    border-top: 1px solid #e9ecef;
}

.course-price-btn {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.course-price-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 78, 29, 0.3);
}

.register-btn {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 40px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: #d4461a;
    border-color: #d4461a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 78, 29, 0.4);
}

/* Review Section */
.rating-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stars {
    display: flex;
    gap: 2px;
}

.review-count {
    color: #6c757d;
    font-size: 14px;
}

/* Module and Curriculum Styling */
.module-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.module-item h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.module-item p {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        height: auto;
        min-height: 500px;
    }
    
    .course-hero-left {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .course-title-english {
        font-size: 2.5rem;
    }
    
    .course-title-arabic {
        font-size: 1.4rem;
        text-align: center;
        direction: ltr;
    }
    
    .hero-orange-shape {
        border-radius: 0 0 0 50px;
        transform: skewX(-5deg);
    }
    
    .course-detail-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .course-actions .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .course-price-btn,
    .register-btn {
        width: 100%;
        text-align: center;
    }
    
    .target-audience,
    .skills-list {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .course-hero-banner {
        min-height: 350px;
    }
    
    .course-title-english {
        font-size: 2rem;
    }
    
    .course-detail-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .course-detail-tabs .nav-item {
        flex: none;
    }
    
    .audience-item,
    .skills-list ul li {
        font-size: 14px;
    }
}

/* Additional Course Hero Styling */
.course-hero-image {
    position: relative;
    z-index: 15;
    max-width: 400px;
}

.hero-person-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced Tab Content Animation */
.tab-pane {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.active {
    opacity: 1;
}

/* Course Badge Animation */
.live-courses-badge {
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(233, 78, 29, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(233, 78, 29, 0);
    }
}

/* Oracle Logo Styling */
.oracle-logo {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.oracle-logo:hover {
    opacity: 1;
}

/* Enhanced Course Actions */
.course-actions .btn {
    position: relative;
    overflow: hidden;
}

.course-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.course-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Course Title Actions (Wishlist/Cart by Title) */
.course-title-actions .btn,
.d-flex .add-to-wishlist,
.d-flex .add-to-cart-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: white !important;
    font-size: 13px;
    margin-left: 3px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.course-title-actions .btn:hover,
.d-flex .add-to-wishlist:hover,
.d-flex .add-to-cart-icon:hover {
    background: #d4461a !important;
    border-color: #d4461a !important;
    color: white !important;
    transform: scale(1.1);
}