    :root {
      /* Updated Color Theme - Emerald Green */
      --primary-color: #10b981;
      --secondary-color: #059669;
      --accent-color: #34d399;
      --dark-color: #1f2937;
      --light-color: #f9fafb;
      --danger-color: #ef4444;
      --warning-color: #f59e0b;
      --success-color: #10b981;
      --info-color: #3b82f6;
      --dark-mode-bg: #111827;
      --dark-mode-text: #e5e7eb;
      --dark-mode-card: #1f2937;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Base Styles */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background-color: var(--light-color);
      color: var(--dark-color);
      line-height: 1.6;
      transition: var(--transition);
    }

    body.dark-mode {
      background-color: var(--dark-mode-bg);
      color: var(--dark-mode-text);
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

     /* HEADER & NAVBAR STYLES */
    header {
        background-color: var(--header-bg, #ffffff);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    /* Container */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Navbar */
    .navbar {
        display: flex;
        margin: 0 auto;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        position: relative;
        width: 100%;
        left: 70px
    }
    .navbar {
      max-width: 1400px; /* Match container width */
      margin-left: -120px; /* Keep your existing offset */
    }

    /* Logo - FIXED */
    .logo {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color, #4e73df);
        text-decoration: none;
        transition: color 0.3s ease;
        white-space: nowrap;
        overflow: visible;
        z-index: 1003;
        position: relative;
        flex-shrink: 0;
        max-width: 100%;
        right: 10px
    }

    .logo:hover {
        color: var(--primary-dark, #2e59d9);
    }

    .logo i {
        margin-right: 0.5rem;
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        position: relative;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-color, #333);
        position: relative;
        transition: all 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background-color: var(--text-color, #333);
        left: 0;
        transition: all 0.3s ease;
    }

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

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

    .mobile-menu-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent;
    }

    .mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Navigation Container */
    .nav-container {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex: 1;
        justify-content: flex-end;
    }

    /* Navigation Links */
    .nav-links {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 1.5rem;
    }

    .nav-links li {
        position: relative;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-color, #333);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 0.5rem 0;
        transition: color 0.3s ease;
        position: relative;
        white-space: nowrap;
    }

    .nav-links a:hover {
        color: var(--primary-color, #4e73df);
    }

    .nav-links a.active {
        color: var(--primary-color, #4e73df);
    }

    .nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color, #4e73df);
        border-radius: 2px;
    }

    .nav-links a i {
        font-size: 0.9rem;
    }

    /* Navigation Right Section */
    .nav-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    /* Theme Toggle */
    .theme-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        background: var(--card-bg, #f8f9fc);
        width: 40px;
        height: 40px;
        justify-content: center;
        transition: all 0.3s ease;
        border: 1px solid var(--border-color, #e3e6f0);
    }

    .theme-toggle:hover {
        background: var(--hover-bg, #e9ecef);
        transform: translateY(-2px);
    }

    .toggle-icon {
        font-size: 1.2rem;
        color: var(--text-color, #333);
    }

    .toggle-text {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-color, #333);
    }

    /* Auth Buttons */
    .auth-buttons {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    /* Button Styles */
    .btn {
        padding: 0.6rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        white-space: nowrap;
    }

    .btn-outline {
        background: transparent;
        border-color: var(--primary-color, #4e73df);
        color: var(--primary-color, #4e73df);
    }

    .btn-outline:hover {
        background: var(--primary-color, #4e73df);
        color: white;
        transform: translateY(-2px);
    }

    .btn-primary {
        background: var(--primary-color, #4e73df);
        color: white;
        border: 2px solid var(--primary-color, #4e73df);
    }

    .btn-primary:hover {
        background: var(--primary-dark, #2e59d9);
        border-color: var(--primary-dark, #2e59d9);
        transform: translateY(-2px);
    }

    /* User Profile Navigation */
    .user-profile-nav {
        position: relative;
        cursor: pointer;
    }

    .nav-profile-pic-container {
        position: relative;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--primary-color, #4e73df);
    }

    .nav-profile-pic {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .nav-avatar-initials {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary-color, #4e73df), var(--primary-light, #6c8ce6));
        color: white;
        font-weight: bold;
        font-size: 1rem;
    }

    /* User Dropdown */
    .user-dropdown-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: var(--card-bg, #ffffff);
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .user-profile-nav:hover .user-dropdown-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .user-dropdown-nav::before {
        content: '';
        position: absolute;
        top: -10px;
        right: 20px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--card-bg, #ffffff);
    }

    .user-dropdown-header {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color, #e3e6f0);
    }

    .user-dropdown-header strong {
        display: block;
        font-size: 1rem;
        color: var(--text-color, #333);
        margin-bottom: 0.25rem;
    }

    .user-dropdown-header small {
        font-size: 0.85rem;
        color: var(--text-light, #6c757d);
    }

    .user-dropdown-nav a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        color: var(--text-color, #333);
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }

    .user-dropdown-nav a:hover {
        background: var(--hover-bg, #f8f9fc);
        color: var(--primary-color, #4e73df);
        border-left-color: var(--primary-color, #4e73df);
        padding-left: 1.25rem;
    }

    .user-dropdown-nav a i {
        width: 20px;
        text-align: center;
    }

    /* DARK MODE STYLES - FIXED */
    /* Apply dark mode to the entire header */
    body.dark-mode header {
        background-color: #1a1d28 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    body.dark-mode .navbar {
        background-color: #1a1d28 !important;
    }

    body.dark-mode .nav-links a {
        color: #e9ecef !important;
    }

    body.dark-mode .nav-links a:hover {
        color: #6c8ce6 !important;
    }

    body.dark-mode .nav-links a.active {
        color: #4e73df !important;
    }

    body.dark-mode .theme-toggle {
        background: #2d3748 !important;
        border-color: #4a5568 !important;
    }

    body.dark-mode .theme-toggle:hover {
        background: #4a5568 !important;
    }

    body.dark-mode .toggle-icon {
        color: #e9ecef !important;
    }

    body.dark-mode .btn-outline {
        border-color: #4e73df !important;
        color: #4e73df !important;
    }

    body.dark-mode .btn-outline:hover {
        background: #4e73df !important;
        color: white !important;
    }

    body.dark-mode .hamburger,
    body.dark-mode .hamburger::before,
    body.dark-mode .hamburger::after {
        background-color: #e9ecef !important;
    }

    body.dark-mode .user-dropdown-nav {
        background: #2d3748 !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
    }

    body.dark-mode .user-dropdown-nav::before {
        border-bottom-color: #2d3748 !important;
    }

    body.dark-mode .user-dropdown-header {
        border-bottom-color: #4a5568 !important;
    }

    body.dark-mode .user-dropdown-header strong {
        color: #e9ecef !important;
    }

    body.dark-mode .user-dropdown-header small {
        color: #a0aec0 !important;
    }

    body.dark-mode .user-dropdown-nav a {
        color: #e9ecef !important;
    }

    body.dark-mode .user-dropdown-nav a:hover {
        background: #4a5568 !important;
        color: #6c8ce6 !important;
    }

    /* RESPONSIVE STYLES */
    @media (max-width: 992px) {
        .mobile-menu-toggle {
            display: block;
        }

        .nav-container {
            position: fixed;
            top: 0;
            right: -300px;
            width: 280px;
            height: 100vh;
            background: var(--card-bg, #ffffff);
            flex-direction: column;
            align-items: stretch;
            padding: 5rem 1.5rem 2rem;
            transition: right 0.3s ease;
            z-index: 1001;
            overflow-y: auto;
            justify-content: flex-start;
        }

        .nav-container.active {
            right: 0;
        }

        .mobile-menu-overlay.active {
            display: block;
            opacity: 1;
        }

        .nav-links {
            flex-direction: column;
            gap: 0;
            margin-bottom: 2rem;
            width: 100%;
        }

        .nav-links li {
            border-bottom: 1px solid var(--border-color, #e3e6f0);
            width: 100%;
        }

        .nav-links a {
            padding: 1rem 0;
            justify-content: flex-start;
            width: 100%;
        }

        .nav-links a.active::after {
            display: none;
        }

        .nav-links a.active {
            background: var(--primary-light, #6c8ce6);
            color: white;
            padding: 1rem;
            border-radius: 5px;
            margin: 0.25rem 0;
        }

        .nav-right {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
            width: 100%;
        }

        .theme-toggle {
            width: 100%;
            height: auto;
            padding: 0.75rem;
            border-radius: 5px;
            justify-content: flex-start;
            border-radius: 50px;
        }

        .auth-buttons {
            flex-direction: column;
            gap: 0.75rem;
            width: 100%;
        }

        .btn {
            width: 100%;
            justify-content: center;
        }

        .user-profile-nav {
            width: 100%;
        }

        .user-dropdown-nav {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            background: transparent;
            margin-top: 0.5rem;
            display: none;
            width: 100%;
        }

        .user-profile-nav:hover .user-dropdown-nav {
            display: block;
        }

        .user-dropdown-nav::before {
            display: none;
        }

        .user-dropdown-nav a {
            border-left: none;
            border-radius: 5px;
            width: 100%;
        }

        .user-dropdown-nav a:hover {
            padding-left: 1rem;
        }

        /* Dark mode for mobile menu */
        body.dark-mode .nav-container {
            background: #1a1d28 !important;
        }

        body.dark-mode .nav-links li {
            border-bottom-color: #4a5568 !important;
        }

        body.dark-mode .nav-links a.active {
            background: #4e73df !important;
            color: white !important;
        }
    }

    @media (max-width: 768px) {
        .navbar {
            padding: 0.75rem 0;
        }

        .logo {
            font-size: 1.3rem;
            max-width: 200px;
        }

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

        .container {
            padding: 0 15px;
        }
    }

    @media (max-width: 480px) {
        .logo {
            font-size: 1.2rem;
            max-width: 180px;
        }

        .logo i {
            font-size: 1.3rem;
        }

        .container {
            padding: 0 10px;
        }
    }

    /* responsive to Navbar responsive styles */
    @media (max-width: 360px) {
      .logo {
        font-size: 1.1rem;
        max-width: 150px;
      }

      .logo i {
        font-size: 1.2rem;
      }

      .nav-container {
        width: 90%;
        max-width: 280px;
      }

      .nav-links a {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
      }

      .nav-right {
        gap: 0.8rem;
      }

      .theme-toggle {
        padding: 0.6rem;
        font-size: 0.9rem;
      }

      .auth-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
      }
    }

    /* Hero Section */
    .hero {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
      padding: 4rem 0;
      color: white;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('/static/images/hero-pattern.png') repeat;
      opacity: 0.1;
    }

    .hero-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 2rem;
      max-width: 1400px; /* Match container width */
      margin: 0 auto;
      padding: 0 1rem;
    }

    .hero-text {
      z-index: 1;
    }

    .hero-image {
      z-index: 1;
      position: relative;
      animation: float 6s ease-in-out infinite;
      margin-top: 50px
    }

    .hero-image img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

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

    .hero h1 {
      font-size: 3rem;
      margin-bottom: 1.5rem;
      line-height: 1.2;
      font-weight: 800;
    }

    .hero p {
      font-size: 1.1rem;
      margin-bottom: 2rem;
      opacity: 0.9;
      max-width: 500px;
    }

    .hero-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }
    /* Hero Section Buttons — Both White Initially */
    .hero .btn {
      background-color: white !important;
      color: #065f46 !important;  /* dark green text */
      padding: 0.8rem 1.5rem;
      border-radius: 8px;
      font-weight: 600;
      border: none !important;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: 0.3s ease;
      box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    }

    /* Hover Effect (green background + white text) */
    .hero .btn:hover {
      background-color: #0f9d75 !important;   /* hover color */
      color: white !important;
    }

    /* Sections Common Styles */
    section {
      padding: 5rem 0;
    }

    .section-title {
      text-align: center;
      margin-bottom: 3rem;
    }

    .section-title h2 {
      font-size: 2.2rem;
      color: var(--dark-color);
      margin-bottom: 1rem;
      position: relative;
      display: inline-block;
    }

    .section-title h2::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: var(--primary-color);
      border-radius: 2px;
    }

    .dark-mode .section-title h2 {
      color: var(--dark-mode-text);
    }

    .dark-mode .section-title h2::after {
      background: var(--accent-color);
    }

    .section-title p {
      color: #6c757d;
      font-size: 1.1rem;
      max-width: 700px;
      margin: 0 auto;
    }

    .dark-mode .section-title p {
      color: #adb5bd;
    }

    /* Responsive to Hero Section */
    @media (max-width: 576px) {
      .hero {
        padding: 3rem 0 2rem;
      }

      .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
      }

      .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
      }

      .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
      }

      .hero .btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
      }

      .hero-image {
        margin-top: 30px;
        max-width: 90%;
      }

      .hero-image img {
        max-height: 250px;
        object-fit: cover;
      }
    }

    @media (max-width: 375px) {
      .hero h1 {
        font-size: 1.5rem;
      }

      .hero p {
        font-size: 0.9rem;
      }
    }

    /* Features Section */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .feature-card {
      background-color: white;
      border-radius: 10px;
      padding: 1.5rem;
      text-align: center;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      z-index: 1;
    }

    .feature-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    }

    .dark-mode .feature-card {
      background-color: var(--dark-mode-card);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .feature-icon {
      font-size: 2.5rem;
      color: var(--primary-color);
      margin-bottom: 1.2rem;
      transition: var(--transition);
    }

    .feature-card:hover .feature-icon {
      transform: scale(1.1);
    }

    .dark-mode .feature-icon {
      color: var(--accent-color);
    }

    .feature-card h3 {
      font-size: 1.3rem;
      margin-bottom: 0.8rem;
      color: var(--dark-color);
    }

    .dark-mode .feature-card h3 {
      color: var(--dark-mode-text);
    }

    .feature-card p {
      color: #6c757d;
      line-height: 1.6;
      font-size: 0.95rem;
    }

    .dark-mode .feature-card p {
      color: #adb5bd;
    }

    /* Responsive to Features Section */
    @media (max-width: 992px) {
      .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
      }

      .feature-card {
        padding: 1.25rem;
      }

      .feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
      }

      .feature-card h3 {
        font-size: 1.2rem;
      }
    }

    @media (max-width: 576px) {
      .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .feature-card {
        padding: 1rem;
        min-height: auto;
      }

      .feature-icon {
        font-size: 1.8rem;
      }

      .feature-card h3 {
        font-size: 1.1rem;
      }

      .feature-card p {
        font-size: 0.9rem;
      }
    }

    /* ====================== */
    /* COURSE , INTERNSHIP AND JOBS SECTIONS */
    /* ====================== */
    /* Grid Layout - Show More Rows */

    .preview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    /* Remove all height restrictions from preview sections */
    .preview-section .preview-grid {
        max-height: none;
        overflow: visible;
    }

    /* Remove the gradient overlay */
    .preview-section .preview-grid::after {
        display: none;
    }

    /* Ensure cards maintain consistent height */
    .preview-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      height: auto; /* Changed from 380px to auto */
      min-height: 380px; /* Add minimum height */
      border: 1px solid #e9ecef;
      position: relative;
    }

    .dark-mode .preview-card {
      background-color: var(--dark-mode-card);
      border-color: #2d3748;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .preview-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    /* Ensure grid shows at least 2 rows (8 cards) */
    .preview-section {
      min-height: 800px; /* Ensure enough space for 2 rows */
    }

    /* View All button styling */
    .view-all {
      text-align: center;
      margin-top: 3rem;
    }

    .view-all .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.8rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .view-all .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

    /* Responsive to View All button styles */
    @media (max-width: 480px) {
      .view-all {
        margin-top: 2rem;
      }

      .view-all .btn,
      .view-all-blogs {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 12px;
      }

      .view-all-blogs {
        padding: 14px 24px;
        font-size: 1rem;
      }

      .blog-section-footer {
        margin-top: 2rem;
      }
    }

    @media (max-width: 375px) {
      .view-all .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
      }

      .view-all-blogs {
        width: 100%;
        max-width: 260px;
        padding: 12px 20px;
      }
    }

    /* Responsive to Preview Cards section */
    @media (hover: none) and (pointer: coarse) {
      .preview-card {
        min-height: 350px;
      }

      .action-buttons .btn-icon {
        width: 44px;
        height: 44px;
        min-height: 44px;
      }

      .action-buttons .btn-primary {
        min-height: 44px;
        font-size: 0.9rem;
      }

      .preview-content h3 {
        font-size: 1rem;
        min-height: 2.4rem;
      }

      .description {
        -webkit-line-clamp: 2;
        min-height: 2.8em;
      }
    }

    @media (max-width: 375px) {
      .preview-card {
        height: 340px;
        min-height: 340px;
      }

      .preview-content {
        padding: 1rem;
      }

      .action-buttons {
        padding: 0.75rem;
        gap: 0.5rem;
      }

      .action-buttons .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
      }

      .action-buttons .btn-primary {
        font-size: 0.8rem;
        height: 32px;
      }
    }

    /* Responsive adjustments for more content */
    @media (max-width: 1200px) {
      .preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      }
    }

    @media (max-width: 992px) {
      .preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      }

      .preview-section {
        min-height: 700px;
      }
    }

    @media (max-width: 768px) {
      .preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
      }

      .preview-card {
        height: 360px;
      }
    }

    @media (max-width: 576px) {
      .preview-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
      }

      .preview-section {
        min-height: auto;
      }
    }

    /* Logo Container - Single Logo */
    .preview-image-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 150px; /* Fixed height */
      min-height: 150px; /* Ensure consistent height */
      max-height: 150px; /* Prevent stretching */
      padding: 10px;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border-bottom: 1px solid #e9ecef;
      position: relative;
      overflow: hidden; /* Hide overflow, but we'll handle images properly */
    }

    .dark-mode .preview-image-container {
      background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
      border-bottom-color: #4a5568;
    }

    /* Company Logo - Only show fetched logos */
    .company-logo {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain; /* This ensures the whole image fits without cropping */
      border-radius: 8px;
      background: white;
      padding: 5px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      border: 1px solid #e9ecef;
      transition: transform 0.3s ease;
    }

    .dark-mode .company-logo {
      background: var(--dark-mode-card);
      border-color: #4a5568;
    }

    /* Default Logo - Show only when no company logo */
    .default-logo {
      width: 70px;
      height: 70px;
      min-width: 70px; /* Prevent shrinking */
      min-height: 70px; /* Prevent shrinking */
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      color: white;
      font-size: 24px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      flex-shrink: 0; /* Prevent shrinking */
    }

    .course-logo {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    .job-logo {
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }
    .internship-logo {
      background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }

    /* Content Area */
    .preview-content {
      padding: 1.25rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .preview-content h3 {
      font-size: 1.1rem;
      font-weight: 600;
      line-height: 1.3;
      margin-bottom: 0.5rem;
      color: var(--dark-color);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.6rem;
    }

    .dark-mode .preview-content h3 {
      color: var(--dark-mode-text);
    }

    .company {
      font-weight: 600;
      color: var(--primary-color);
      margin-bottom: 0.4rem;
      font-size: 0.9rem;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .dark-mode .company {
      color: var(--accent-color);
    }

    .location, .category, .duration {
      color: #6c757d;
      font-size: 0.85rem;
      margin-bottom: 0.3rem;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .dark-mode .location,
    .dark-mode .category,
    .dark-mode .duration {
      color: #adb5bd;
    }

    .description {
      color: #5d6d7e;
      font-size: 0.88rem;
      line-height: 1.4;
      margin-bottom: 1rem;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .dark-mode .description {
      color: #9ca3af;
    }

    /* Meta Information */
    .preview-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding-top: 1rem;
      border-top: 1px solid #e9ecef;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .dark-mode .preview-meta {
      border-top-color: #374151;
    }

    .preview-meta span {
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .price, .salary {
      background: rgba(16, 185, 129, 0.1);
      color: var(--success-color);
    }

    .level, .type {
      background: rgba(59, 130, 246, 0.1);
      color: var(--info-color);
    }

    .stipend {
      background: rgba(245, 158, 11, 0.1);
      color: var(--warning-color);
    }

    /* Action Buttons */
    .action-buttons {
      display: flex;
      gap: 0.5rem;
      padding: 1rem 1.25rem;
      background: #f8f9fa;
      border-top: 1px solid #e9ecef;
      margin-top: auto;
    }

    .dark-mode .action-buttons {
      background: #1f2937;
      border-top-color: #374151;
    }

    .btn-icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #ddd;
      background: white;
      border-radius: 6px;
      color: #666;
      transition: all 0.3s ease;
      font-size: 0.9rem;
      flex-shrink: 0;
    }

    .dark-mode .btn-icon {
      background: var(--dark-mode-card);
      border-color: #4b5563;
      color: #d1d5db;
    }

    .btn-icon:hover {
      background: var(--primary-color);
      border-color: var(--primary-color);
      color: white;
      transform: translateY(-2px);
    }

    .dark-mode .btn-icon:hover {
      background: var(--accent-color);
      border-color: var(--accent-color);
    }

    .bookmark-btn.bookmarked i {
      color: var(--warning-color);
    }

    .btn-primary {
      flex: 1;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      height: 36px;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    /* View All Button */
    .view-all {
      text-align: center;
      margin-top: 2rem;
    }

    .view-all .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Courses, Jobs, Internships Pages */
    .filters {
      margin: 2rem 0;
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .search-form {
      display: flex;
      gap: 1rem;
      width: 100%;
      max-width: 800px;
    }

    .search-form input {
      flex: 1;
      padding: 0.8rem 1rem;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 1rem;
    }

    .dark-mode .search-form input {
      background-color: var(--dark-mode-card);
      border-color: #333;
      color: var(--dark-mode-text);
    }

    .search-form select {
      padding: 0.8rem 1rem;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 1rem;
    }

    .dark-mode .search-form select {
      background-color: var(--dark-mode-card);
      border-color: #333;
      color: var(--dark-mode-text);
    }

    .filter-btn {
      padding: 0.6rem 1.2rem;
      background-color: #f1f1f1;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      transition: var(--transition);
    }

    .dark-mode .filter-btn {
      background-color: #2a2a3a;
      color: var(--dark-mode-text);
    }

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

    .dark-mode .filter-btn.active {
      background-color: var(--accent-color);
    }

    .empty-state {
      text-align: center;
      padding: 3rem;
      grid-column: 1 / -1;
    }

    .empty-state i {
      font-size: 3rem;
      color: #6c757d;
      margin-bottom: 1rem;
    }

    .dark-mode .empty-state i {
      color: #adb5bd;
    }

    .empty-state h4 {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }

    .empty-state p {
      color: #6c757d;
    }

    .dark-mode .empty-state p {
      color: #adb5bd;
    }

    /* Listing Items */
    .listing-item {
      margin-bottom: 1.5rem;
      transition: var(--transition);
    }

    .listing-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .dark-mode .listing-item {
      background-color: var(--dark-mode-card);
    }

    .listing-item .card-body {
      padding: 1.5rem;
    }

    .listing-item h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }

    .listing-item .company {
      font-weight: 600;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
    }

    .dark-mode .listing-item .company {
      color: var(--accent-color);
    }

    .listing-item .location,
    .listing-item .duration,
    .listing-item .salary,
    .listing-item .stipend {
      color: #6c757d;
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
    }

    .dark-mode .listing-item .location,
    .dark-mode .listing-item .duration,
    .dark-mode .listing-item .salary,
    .dark-mode .listing-item .stipend {
      color: #adb5bd;
    }

    .apply-btn {
      margin-top: 1rem;
    }

    .bookmark-btn {
        position: static; /* Removes absolute positioning */
        margin: 0; /* Reset margins */
        width: 36px; /* Match other button icons */
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid #ddd;
        color: #666;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .dark-mode .bookmark-btn {
      color: #adb5bd;
    }

    .bookmark-btn.bookmarked {
      color: var(--warning-color);
    }

    /* MAIN CARD */
    .course-card-layout {
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border: 1px solid #e5e7eb;
      background: var(--light-color);
      height: 420px; /* Fixed total height */
      min-height: 420px;
      max-height: 420px;
    }

    .dark-mode .course-card-layout {
      background: var(--dark-mode-card);
      border-color: #374151;
    }

    /* =====================
       TOP HALF (IMAGE) - FIXED HEIGHT
    ===================== */
    .course-image-section {
      height: 180px; /* Fixed height for image section */
      min-height: 180px;
      max-height: 180px;
      width: 100%;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border-bottom: 1px solid #e5e7eb;
      overflow: hidden;
      flex-shrink: 0; /* Prevent shrinking */
    }

    .dark-mode .course-image-section {
      background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
      border-bottom-color: #374151;
    }

    /* Course image - fits perfectly within fixed area */
    .course-image {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain; /* Ensures full image visible without cropping */
      border-radius: 4px;
      padding: 10px;
    }

    /* Image placeholder when no image */
    .course-image-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #6c757d;
      font-size: 1rem;
    }

    .course-image-placeholder i {
      font-size: 3rem;
      margin-bottom: 10px;
      color: var(--primary-color);
    }

    .dark-mode .course-image-placeholder {
      color: #adb5bd;
    }

    /* =====================
       BOTTOM SECTION - FLEXIBLE CONTENT AREA
    ===================== */
    .course-details-section {
      flex: 1; /* Take remaining space */
      display: flex;
      flex-direction: column;
      padding: 16px 18px 12px 18px;
      background: inherit;
      min-height: 0; /* Important for flex children to respect parent height */
    }

    /* Title with truncation */
    .course-header h3 {
      font-size: 1.15rem;
      margin: 0 0 4px 0;
      font-weight: 600;
      line-height: 1.3;
      color: var(--dark-color);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      /* No fixed height - uses line-clamp */
    }

    .dark-mode .course-header h3 {
      color: var(--dark-mode-text);
    }

    /* Instructor/Company line */
    .course-instructor {
      font-size: 0.85rem;
      color: var(--primary-color);
      margin-bottom: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex-shrink: 0;
    }

    .dark-mode .course-instructor {
      color: var(--accent-color);
    }

    /* Meta info row */
    .course-meta {
      display: flex;
      gap: 12px;
      margin-bottom: 8px;
      flex-shrink: 0;
    }

    .course-meta div {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
      color: #6c757d;
      white-space: nowrap;
    }

    .dark-mode .course-meta div {
      color: #adb5bd;
    }

    /* Description - limited to 2 lines with line-clamp */
    .course-description {
      font-size: 0.9rem;
      line-height: 1.4;
      color: #5d6d7e;
      margin: 8px 0 8px 0;
      display: -webkit-box;
      -webkit-line-clamp: 2; /* Show only 2 lines */
      -webkit-box-orient: vertical;
      overflow: hidden;
      flex-shrink: 0; /* Prevent shrinking */
    }

    .dark-mode .course-description {
      color: #9ca3af;
    }

    /* Additional details - fixed at bottom before buttons */
    .additional-details {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 12px;
      font-size: 0.8rem;
      margin: 4px 0;
      flex-shrink: 0;
    }

    .detail-item {
      display: flex;
      align-items: center;
      gap: 4px;
      color: #6c757d;
      white-space: nowrap;
    }

    .dark-mode .detail-item {
      color: #9ca3af;
    }

    .detail-item i {
      color: var(--primary-color);
      font-size: 0.75rem;
    }

    /* =====================
       CARD FOOTER - ALWAYS AT BOTTOM WITH AUTO MARGIN
    ===================== */
    .card-footer {
      margin-top: auto; /* Pushes footer to bottom */
      padding: 12px 18px 16px 18px;
      border-top: 1px solid #e5e7eb;
      background: inherit;
      flex-shrink: 0; /* Prevent footer from shrinking */
    }

    .dark-mode .card-footer {
      border-top-color: #374151;
    }

    /* Action buttons container */
    .action-buttons {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .action-buttons .btn-icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #ddd;
      background: white;
      border-radius: 100&;
      color: #666;
      transition: all 0.3s ease;
      font-size: 0.9rem;
      flex-shrink: 0;
    }

    .dark-mode .action-buttons .btn-icon {
      background: var(--dark-mode-card);
      border-color: #4b5563;
      color: #d1d5db;
    }

    .action-buttons .btn-primary {
      flex: 1;
      height: 36px;
      font-size: 0.85rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0 10px;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: 100px;
      cursor: pointer;
    }

    .dark-mode .action-buttons .btn-primary {
      background: var(--accent-color);
    }

    /* Category and expiration badges */
    .category-badge,
    .expiration-badge {
      position: absolute;
      padding: 4px 8px;
      font-size: 0.7rem;
      border-radius: 4px;
      color: #fff;
      background: rgba(0,0,0,0.65);
      top: 8px;
      z-index: 2;
      max-width: 50%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .category-badge {
      left: 8px;
    }

    .expiration-badge {
      right: 8px;
    }

    .expiration-badge.expired {
      background: rgba(239, 68, 68, 0.9);
    }

    /* =====================
       MOBILE RESPONSIVE
    ===================== */
    @media (max-width: 768px) {
      .course-card-layout {
        height: 400px;
        min-height: 400px;
        max-height: 400px;
      }

      .course-image-section {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
      }

      .course-details-section {
        padding: 12px 14px 8px 14px;
      }

      .card-footer {
        padding: 10px 14px 14px 14px;
      }
    }

    @media (max-width: 480px) {
      .course-card-layout {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
      }

      .course-image-section {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
      }

      .course-details-section {
        padding: 10px 12px 6px 12px;
      }

      .course-meta {
        gap: 8px;
        flex-wrap: wrap;
      }

      .course-description {
        -webkit-line-clamp: 1; /* Show only 1 line on mobile */
      }

      .action-buttons .btn-primary {
        font-size: 0.8rem;
      }

      .card-footer {
        padding: 8px 12px 12px 12px;
      }
    }

    /* ====================== */
    /* MAIN SECTION BACKGROUND COLORS - ENHANCED VISIBILITY */
    /* ====================== */

    /* Hero Section (keep as is) */
    .hero {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    /* Features Section - Vibrant Emerald */
    #features {
      background: linear-gradient(135deg, #d9d9ff 0%, #c2c2ff 100%);
      position: relative;
    }

    .dark-mode #features {
      background: linear-gradient(135deg, #6b21a5 0%, #065f46 100%);
    }

    /* Courses Section - NEW COLOR: Vibrant Teal/Aqua */
    #courses {
      background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
      position: relative;
    }

    .dark-mode #courses {
      background: linear-gradient(135deg, #0f766e 0%, #0f766e 100%);
    }

    /* Jobs Section - Vibrant Purple */
    #jobs {
      background: linear-gradient(135deg, #d9d0fa 0%, #c2b0f5 100%);
      position: relative;
    }

    .dark-mode #jobs {
      background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    }

    /* Internships Section - Vibrant Coral/Amber */
    #internships {
      background: linear-gradient(135deg, #ffd7b3 0%, #ffb889 100%);
      position: relative;
    }

    .dark-mode #internships {
      background: linear-gradient(135deg, #7c2d12 0%, #b45309 100%);
    }

    /* Contact Section - Vibrant Warm Gray */
    #contact {
      background: linear-gradient(135deg, #e8eaed 0%, #d5d9e0 100%);
      position: relative;
    }

    .dark-mode #contact {
      background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    /* ====================== */
    /* SECTION TITLES - MAXIMUM CONTRAST */
    /* ====================== */

    /* Light Mode Titles - Dark text for maximum contrast */
    #features .section-title h2,
    #courses .section-title h2,
    #jobs .section-title h2,
    #internships .section-title h2,
    #contact .section-title h2 {
      color: #0f172a;
      font-weight: 800;
      text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
      font-size: 2.3rem;
    }

    /* Light Mode Subtitle - Semi-dark for good contrast */
    #features .section-title p,
    #courses .section-title p,
    #jobs .section-title p,
    #internships .section-title p,
    #contact .section-title p {
      color: #1e293b;
      font-weight: 600;
      font-size: 1.15rem;
    }

    /* Dark Mode Titles */
    .dark-mode #features .section-title h2,
    .dark-mode #courses .section-title h2,
    .dark-mode #jobs .section-title h2,
    .dark-mode #internships .section-title h2,
    .dark-mode #contact .section-title h2 {
      color: #ffffff;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* Dark Mode Subtitle */
    .dark-mode #features .section-title p,
    .dark-mode #courses .section-title p,
    .dark-mode #jobs .section-title p,
    .dark-mode #internships .section-title p,
    .dark-mode #contact .section-title p {
      color: #f1f5f9;
    }

    /* ====================== */
    /* SECTION TITLE UNDERLINES - BOLDER */
    /* ====================== */

    /* Light Mode Underlines */
    #features .section-title h2::after {
      background: #047857;
      height: 5px;
      width: 100px;
    }

    #courses .section-title h2::after {
      background: #0f766e;
      height: 5px;
      width: 100px;
    }

    #jobs .section-title h2::after {
      background: #6d28d9;
      height: 5px;
      width: 100px;
    }

    #internships .section-title h2::after {
      background: #c2410c;
      height: 5px;
      width: 100px;
    }

    #contact .section-title h2::after {
      background: #374151;
      height: 5px;
      width: 100px;
    }

    /* Dark Mode Underlines */
    .dark-mode #features .section-title h2::after {
      background: #6ee7b7;
    }

    .dark-mode #courses .section-title h2::after {
      background: #5eead4;
    }

    .dark-mode #jobs .section-title h2::after {
      background: #c4b5fd;
    }

    .dark-mode #internships .section-title h2::after {
      background: #fdba74;
    }

    .dark-mode #contact .section-title h2::after {
      background: #9ca3af;
    }

    /* ====================== */
    /* VIEW ALL BUTTONS - BOLDER */
    /* ====================== */

    /* Light Mode Buttons */
    #features .view-all .btn {
      background: #047857;
      color: white;
      border: none;
      font-weight: 700;
      padding: 12px 30px;
      font-size: 1rem;
      box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
    }

    #courses .view-all .btn {
      background: #0f766e;
      color: white;
      border: none;
      font-weight: 700;
      padding: 12px 30px;
      font-size: 1rem;
      box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
    }

    #jobs .view-all .btn {
      background: #6d28d9;
      color: white;
      border: none;
      font-weight: 700;
      padding: 12px 30px;
      font-size: 1rem;
      box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
    }

    #internships .view-all .btn {
      background: #c2410c;
      color: white;
      border: none;
      font-weight: 700;
      padding: 12px 30px;
      font-size: 1rem;
      box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
    }

    #contact .view-all .btn {
      background: #374151;
      color: white;
      border: none;
      font-weight: 700;
      padding: 12px 30px;
      font-size: 1rem;
      box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
    }

    /* Dark Mode Buttons */
    .dark-mode #features .view-all .btn {
      background: #047857;
      color: white;
      border: 1px solid #6ee7b7;
    }

    .dark-mode #courses .view-all .btn {
      background: #0f766e;
      color: white;
      border: 1px solid #5eead4;
    }

    .dark-mode #jobs .view-all .btn {
      background: #6d28d9;
      color: white;
      border: 1px solid #c4b5fd;
    }

    .dark-mode #internships .view-all .btn {
      background: #c2410c;
      color: white;
      border: 1px solid #fdba74;
    }

    .dark-mode #contact .view-all .btn {
      background: #374151;
      color: white;
      border: 1px solid #9ca3af;
    }

    /* Button Hover Effects - Enhanced */
    #features .view-all .btn:hover,
    #courses .view-all .btn:hover,
    #jobs .view-all .btn:hover,
    #internships .view-all .btn:hover,
    #contact .view-all .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
      filter: brightness(1.1);
    }

    /* ====================== */
    /* CARDS ON COLORED BACKGROUNDS - CRISP WHITE */
    /* ====================== */

    #features .preview-card,
    #courses .preview-card,
    #jobs .preview-card,
    #internships .preview-card,
    #contact .preview-card {
      background-color: #ffffff;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
      border: 1px solid rgba(255, 255, 255, 1);
    }

    .dark-mode #features .preview-card,
    .dark-mode #courses .preview-card,
    .dark-mode #jobs .preview-card,
    .dark-mode #internships .preview-card,
    .dark-mode #contact .preview-card {
      background-color: #1f2937;
      border-color: #374151;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }

    /* ====================== */
    /* ENHANCED PATTERN OVERLAY - MORE SUBTLE */
    /* ====================== */

    #features::after,
    #courses::after,
    #jobs::after,
    #internships::after,
    #contact::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
      pointer-events: none;
      z-index: 0;
    }

    .dark-mode #features::after,
    .dark-mode #courses::after,
    .dark-mode #jobs::after,
    .dark-mode #internships::after,
    .dark-mode #contact::after {
      background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    }

    /* Ensure content stays above patterns */
    #features .container,
    #courses .container,
    #jobs .container,
    #internships .container,
    #contact .container {
      position: relative;
      z-index: 1;
    }

    /* ====================== */
    /* ADDITIONAL VISIBILITY ENHANCEMENTS */
    /* ====================== */

    /* Make section dividers more visible */
    section {
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dark-mode section {
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Ensure icons are visible */
    #features .feature-icon,
    #courses .feature-icon,
    #jobs .feature-icon,
    #internships .feature-icon {
      color: #1f2937;
      opacity: 0.9;
    }

    .dark-mode #features .feature-icon,
    .dark-mode #courses .feature-icon,
    .dark-mode #jobs .feature-icon,
    .dark-mode #internships .feature-icon {
      color: #ffffff;
    }

    /* View All pages responsive styles */
    @media (max-width: 768px) {
      /* CRITICAL: Make filters stack vertically */
      .filters .search-form {
        flex-direction: column;
        gap: 0.75rem;
      }

      .search-form input,
      .search-form select {
        width: 100%;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 0.9rem;
      }

      .search-form button {
        width: 100%;
        padding: 0.9rem;
      }
    }
    @media (max-width: 576px) {
      /* CRITICAL: Fix course card layout for mobile */
      .course-card-layout {
        min-height: 420px;
        flex-direction: column;
      }

      .course-image-section {
        height: 45%;
        min-height: 180px;
      }

      .course-details-section {
        height: 55%;
        padding: 1rem;
        overflow-y: auto; /* Allow scrolling */
      }

      /* Fix action buttons stacking */
      .action-buttons {
        flex-direction: row; /* Keep buttons side by side */
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .action-buttons .btn {
        flex: 1;
        min-width: 120px;
      }

      .action-buttons .btn-icon {
        flex: 0 0 auto;
      }
    }
    @media (max-width: 576px) {
      /* CRITICAL: Ensure grid doesn't overflow horizontally */
      .preview-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 5px;
      }

      .preview-card {
        width: 100%;
        margin: 0 auto;
        min-height: 380px;
        height: auto;
      }

      /* Prevent content cutoff */
      .preview-content {
        overflow: visible;
        max-height: none;
      }

      .description {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        min-height: 4.2em;
      }
    }
    @media (max-width: 992px) and (min-width: 577px) {
      /* CRITICAL: 2-column layout for tablets */
      .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }

      .course-card-layout {
        min-height: 400px;
      }

      /* Adjust filters for tablet */
      .search-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
      }

      .search-form input[type="search"] {
        grid-column: 1 / -1;
      }
    }
    @media (hover: none) and (pointer: coarse) {
      /* CRITICAL: Better touch targets */
      .btn,
      .action-buttons .btn,
      .bookmark-btn,
      .apply-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem;
      }

      /* Increase tap area */
      .preview-card {
        padding-bottom: env(safe-area-inset-bottom);
      }

      /* Prevent accidental swipes */
      .preview-grid {
        touch-action: pan-y;
      }
    }
    @media (max-width: 375px) {
      /* CRITICAL: Ultra-compact layout */
      .container {
        padding: 0 10px;
      }

      .preview-card {
        min-height: 360px;
        margin: 0 0 1rem 0;
      }

      .course-card-layout {
        min-height: 380px;
      }

      .course-image-section {
        height: 40%;
      }

      .course-details-section {
        height: 60%;
        padding: 0.75rem;
      }

      /* Compact text */
      .preview-content h3,
      .course-header h3 {
        font-size: 1rem;
        min-height: 2.4em;
      }

      .description,
      .course-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 2.8em;
      }

      /* Stack action buttons on very small screens */
      .action-buttons {
        flex-direction: column;
      }

      .action-buttons .btn,
      .action-buttons .btn-icon {
        width: 100%;
        justify-content: center;
      }
    }
    @media (max-width: 768px) and (orientation: landscape) {
      /* CRITICAL: Landscape optimizations */
      .preview-card {
        min-height: 300px;
        max-height: 320px;
      }

      .course-card-layout {
        flex-direction: row;
        min-height: 200px;
        max-height: 250px;
      }

      .course-image-section {
        width: 40%;
        height: 100%;
      }

      .course-details-section {
        width: 60%;
        height: 100%;
        overflow-y: auto;
      }

      /* Compact filters in landscape */
      .search-form {
        flex-direction: row;
        flex-wrap: wrap;
      }

      .search-form input,
      .search-form select {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 120px;
      }
    }

    /* COURSE , INTERNSHIP AND JOBS SECTIONS END */

    /*      MODALS      */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 1001;
      justify-content: center;
      align-items: center;
      backdrop-filter: blur(5px);
    }

    .modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .modal-content {
      background-color: white;
      border-radius: 10px;
      position: relative;
      z-index: 1002;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
      animation: modalFadeIn 0.3s ease-out;
    }

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

    .dark-mode .modal-content {
      background-color: var(--dark-mode-card);
    }

    .modal-content.large {
      width: 90%;
      max-width: 700px;
      padding: 2rem;
    }

    .close-modal {
      position: absolute;
      top: 1rem;
      right: 1rem;
      font-size: 1.5rem;
      cursor: pointer;
      color: #6c757d;
      background: none;
      border: none;
      transition: var(--transition);
    }

    .dark-mode .close-modal {
      color: #adb5bd;
    }

    .close-modal:hover {
      color: var(--danger-color);
      transform: rotate(90deg);
    }

    .modal h2 {
      margin-bottom: 1.5rem;
      color: var(--dark-color);
      font-size: 1.8rem;
    }

    .dark-mode .modal h2 {
      color: var(--dark-mode-text);
    }

    .modal-meta {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }

    .modal-meta span {
      padding: 0.4rem 0.8rem;
      background-color: #f1f1f1;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
    }

    .dark-mode .modal-meta span {
      background-color: #2a2a3a;
      color: var(--dark-mode-text);
    }

    .modal-description,
    .modal-requirements {
      margin-bottom: 2rem;
    }

    .modal-requirements h3,
    .modal-description h3 {
      font-size: 1.2rem;
      margin-bottom: 0.8rem;
      color: var(--dark-color);
    }

    .dark-mode .modal-requirements h3,
    .dark-mode .modal-description h3 {
      color: var(--dark-mode-text);
    }

    .modal-actions {
      margin-top: 2rem;
      text-align: center;
    }

    .modal-content.medium {
      width: 90%;
      max-width: 500px;
      padding: 2rem;
    }

    .modal-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .modal-header h2 {
      margin-bottom: 0.5rem;
      color: var(--dark-color);
    }

    .dark-mode .modal-header h2 {
      color: var(--dark-mode-text);
    }

    .modal-header p {
      color: #6c757d;
      font-size: 0.95rem;
    }

    .dark-mode .modal-header p {
      color: #adb5bd;
    }

    .modal-form {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
    }

    .form-footer {
      text-align: center;
      margin-top: 1rem;
    }

    .form-footer p {
      margin-top: 1rem;
      font-size: 0.9rem;
      color: #6c757d;
    }

    .dark-mode .form-footer p {
      color: #adb5bd;
    }

    .form-footer a {
      color: var(--primary-color);
      text-decoration: none;
      font-weight: 600;
      transition: var(--transition);
    }

    .dark-mode .form-footer a {
      color: var(--accent-color);
    }

    .form-footer a:hover {
      text-decoration: underline;
    }

    /* Responsive to Modals */
    @media (max-width: 480px) {
      .modal-content.large,
      .modal-content.medium {
        width: 95%;
        padding: 1.25rem;
        margin: 10px;
      }

      .modal h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
      }

      .modal-meta {
        gap: 0.5rem;
      }

      .modal-meta span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
      }

      .modal-form {
        gap: 1rem;
      }

      .floating-label-group input,
      .floating-label-group textarea,
      .floating-label-group select {
        padding: 0.8rem;
        font-size: 0.9rem;
      }

      .floating-label-group label {
        top: 0.8rem;
        font-size: 0.9rem;
      }

      .floating-label-group.focused label,
      .floating-label-group.has-value label {
        top: -0.5rem;
        font-size: 0.7rem;
      }

      .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
      }

      .modal-footer .btn {
        width: 100%;
        margin: 0;
      }
    }

    @media (max-width: 320px) {
      .modal-content.large,
      .modal-content.medium {
        padding: 1rem;
      }

      .modal h2 {
        font-size: 1.2rem;
      }

      .close-modal {
        top: 0.5rem;
        right: 0.5rem;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
      }
    }

    /* Loading Overlay */
    .loading-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      z-index: 1002;
      justify-content: center;
      align-items: center;
    }

    .loading-spinner {
      text-align: center;
      color: white;
    }

    .loading-spinner .spinner {
      width: 50px;
      height: 50px;
      border: 5px solid rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      border-top-color: var(--accent-color);
      animation: spin 1s ease-in-out infinite;
      margin: 0 auto 1rem;
    }

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

    .loading-spinner p {
      font-size: 1.1rem;
    }

    /* Toast Notifications */
    .toast {
      position: fixed;
      top: 1.5rem;
      right: 1.5rem;
      padding: 1rem 1.5rem;
      border-radius: 8px;
      color: white;
      z-index: 1000;
      opacity: 0;
      transform: translateX(100%);
      transition: all 0.3s ease;
      max-width: 350px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .toast.show {
      opacity: 1;
      transform: translateX(0);
    }

    .toast-success {
      background-color: var(--success-color);
    }

    .toast-error {
      background-color: var(--danger-color);
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.7rem 1.5rem;
      border-radius: 50px;
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition);
      border: none;
      cursor: pointer;
      font-size: 0.95rem;
      min-width: 120px;
      height: 42px;
    }

    .btn i {
      margin-right: 8px;
      font-size: 0.9rem;
    }

    .btn-sm {
      padding: 0.5rem 1rem;
      font-size: 0.85rem;
      min-width: 100px;
      height: 36px;
    }

    .btn-lg {
      padding: 0.9rem 2rem;
      font-size: 1.1rem;
      min-width: 140px;
      height: 48px;
    }

    .btn-primary {
      background-color: var(--primary-color);
      color: white;
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

    .btn-primary:hover {
      background-color: var(--secondary-color);
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    }

    .dark-mode .btn-primary {
      background-color: var(--accent-color);
      box-shadow: 0 5px 15px rgba(52, 211, 153, 0.3);
    }

    .dark-mode .btn-primary:hover {
      background-color: var(--primary-color);
    }

    .btn-outline {
      background-color: transparent;
      color: var(--primary-color);
      border: 2px solid var(--primary-color);
    }

    .btn-outline:hover {
      background-color: var(--primary-color);
      color: white;
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

    .dark-mode .btn-outline {
      color: var(--accent-color);
      border-color: var(--accent-color);
    }

    .dark-mode .btn-outline:hover {
      background-color: var(--accent-color);
      color: white;
    }

    .btn-success {
      background-color: var(--success-color);
      color: white;
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

    .btn-success:hover {
      background-color: #059669;
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    }

    .btn-danger {
      background-color: var(--danger-color);
      color: white;
      box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    }

    .btn-danger:hover {
      background-color: #dc2626;
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    }

    /* Login/Register Buttons */
    .login-btn {
      background-color: transparent;
      color: var(--primary-color);
      border: 2px solid var(--primary-color);
    }

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

    .dark-mode .login-btn {
      color: var(--accent-color);
      border-color: var(--accent-color);
    }

    .dark-mode .login-btn:hover {
      background-color: var(--accent-color);
    }

    .register-btn {
      background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
      color: white;
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

    .register-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
      background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    }

    /* Active Nav Link on Scroll */
    .nav-links li a.active-scroll {
      color: var(--primary-color);
    }

    .nav-links li a.active-scroll::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background-color: var(--primary-color);
      border-radius: 3px;
    }

    .dark-mode .nav-links li a.active-scroll {
      color: var(--accent-color);
    }

    .dark-mode .nav-links li a.active-scroll::after {
      background-color: var(--accent-color);
    }

    /* Error Pages */
    .error-page {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 80vh;
      text-align: center;
    }

    .error-content h1 {
      font-size: 6rem;
      margin-bottom: 1rem;
      color: var(--primary-color);
    }

    .error-content h2 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
    }

    .error-content p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
      color: #6c757d;
    }

    .dark-mode .error-content p {
      color: #adb5bd;
    }

    /* Flash Messages */
    .flash-messages {
      position: fixed;
      top: 1rem;
      right: 1rem;
      z-index: 1000;
      max-width: 350px;
    }

    .flash {
      padding: 1rem 1.5rem;
      margin-bottom: 1rem;
      border-radius: 6px;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    .flash-success {
      background-color: var(--success-color);
    }

    .flash-error {
      background-color: var(--danger-color);
    }

    .flash-warning {
      background-color: var(--warning-color);
    }

    .flash-info {
      background-color: var(--info-color);
    }

    .flash-close {
      background: none;
      border: none;
      color: white;
      font-size: 1.2rem;
      cursor: pointer;
      margin-left: 1rem;
      padding: 0 0.3rem;
    }

    /* Reset Password Page */
    .admin-login {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 80vh;
      padding: 2rem;
    }

    .login-card {
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      padding: 2rem;
      width: 100%;
      max-width: 450px;
      margin: 0 auto;
    }

    .dark-mode .login-card {
      background-color: var(--dark-mode-card);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .login-logo {
      text-align: center;
      margin-bottom: 2rem;
    }

    .login-logo h1 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
      color: var(--primary-color);
    }

    .dark-mode .login-logo h1 {
      color: var(--accent-color);
    }

    .login-logo p {
      color: #6c757d;
    }

    .dark-mode .login-logo p {
      color: #adb5bd;
    }

    .login-form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .login-footer {
      text-align: center;
      margin-top: 1.5rem;
      color: #6c757d;
    }

    .dark-mode .login-footer {
      color: #adb5bd;
    }

    .login-footer a {
      color: var(--primary-color);
      text-decoration: none;
      font-weight: 600;
    }

    .dark-mode .login-footer a {
      color: var(--accent-color);
    }

    .login-footer a:hover {
      text-decoration: underline;
    }

    /* Action Buttons */
    .action-buttons {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1.5rem;
      gap: 1rem;
    }

    .secondary-actions {
      display: flex;
      gap: 0.5rem;
    }

    .btn-icon {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.2rem;
      padding: 0.5rem;
      color: #666;
      transition: all 0.3s;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
    }

    .btn-icon:hover {
      background-color: rgba(0, 0, 0, 0.05);
      color: var(--primary-color);
      transform: scale(1.1);
    }

    .dark-mode .btn-icon {
      color: #adb5bd;
    }

    .dark-mode .btn-icon:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: var(--accent-color);
    }

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

      .section-title h2 {
        font-size: 2rem;
      }

      .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .hero-text {
        order: 2;
      }

      .hero-image {
        order: 1;
        margin-bottom: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
      }

      .hero p {
        margin-left: auto;
        margin-right: auto;
      }

      .hero-buttons {
        justify-content: center;
      }
    }

    @media (max-width: 768px) {
      .mobile-menu-toggle {
        display: block;
      }

      .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
      }

      .dark-mode .nav-container {
        background-color: var(--dark-mode-card);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
      }

      .nav-container.active {
        right: 0;
      }

      .nav-links {
        flex-direction: column;
        margin: 0 0 1.5rem 0;
        width: 100%;
      }

      .nav-links li {
        margin: 0 0 1rem 0;
      }

      .nav-links a {
        padding: 0.8rem;
        border-radius: 6px;
      }

      .nav-links a.active::after {
        display: none;
      }

      .nav-links a.active {
        background-color: rgba(16, 185, 129, 0.1);
      }

      .dark-mode .nav-links a.active {
        background-color: rgba(52, 211, 153, 0.1);
      }

      .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
      }

      .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
      }

      .auth-buttons .btn {
        width: 100%;
        margin: 0;
        text-align: center;
        padding: 0.8rem;
      }

      .theme-toggle {
        margin: 0 0 1.5rem 0;
        padding: 0.8rem;
        width: 100%;
        justify-content: flex-start;
        border-radius: 6px;
      }

      .section {
        padding: 3rem 0;
      }

      .contact-container {
        grid-template-columns: 1fr;
      }

      .newsletter-form {
        flex-direction: column;
      }

      .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 1rem;
      }

      .newsletter-form button {
        border-radius: 50px;
        padding: 0.8rem;
      }

      .action-buttons {
        flex-direction: column;
        gap: 1rem;
      }

      .secondary-actions {
        width: 100%;
        justify-content: space-between;
      }
    }

    @media (max-width: 576px) {
      .hero h1 {
        font-size: 2rem;
      }

      .section-title h2 {
        font-size: 1.6rem;
      }

      .section-title p {
        font-size: 1rem;
      }

      .modal-content.large {
        width: 95%;
        padding: 1.5rem;
      }

      .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
      }

      .footer-bottom .footer-links {
        flex-direction: column;
        gap: 0.5rem;
      }

      .error-content h1 {
        font-size: 4rem;
      }

      .error-content h2 {
        font-size: 1.5rem;
      }

      .error-content p {
        font-size: 1rem;
      }
    }

    /* Floating Label Form Styles */
    .floating-label-group {
      position: relative;
      margin-bottom: 1.5rem;
    }

    .floating-label-group label {
      position: absolute;
      top: 1rem;
      left: 1rem;
      font-size: 1rem;
      color: #6b7280;
      pointer-events: none;
      transition: all 0.2s ease-out;
      background: white;
      padding: 0 0.25rem;
      margin-left: -0.25rem;
    }

    .dark-mode .floating-label-group label {
      background: var(--dark-mode-card);
    }

    .floating-label-group.focused label,
    .floating-label-group.has-value label {
      top: -0.5rem;
      left: 0.8rem;
      font-size: 0.75rem;
      color: var(--primary-color);
      background: white;
    }

    .dark-mode .floating-label-group.focused label,
    .dark-mode .floating-label-group.has-value label {
      color: var(--accent-color);
      background: var(--dark-mode-card);
    }

    .floating-label-group input,
    .floating-label-group textarea,
    .floating-label-group select {
      width: 100%;
      padding: 1rem;
      border: 1px solid #d1d5db;
      border-radius: 0.375rem;
      font-size: 1rem;
      transition: border-color 0.2s;
    }

    .dark-mode .floating-label-group input,
    .dark-mode .floating-label-group textarea,
    .dark-mode .floating-label-group select {
      background-color: var(--dark-mode-card);
      border-color: #333;
      color: var(--dark-mode-text);
    }

    .floating-label-group.focused input,
    .floating-label-group.focused textarea,
    .floating-label-group.focused select {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

    .dark-mode .floating-label-group.focused input,
    .dark-mode .floating-label-group.focused textarea,
    .dark-mode .floating-label-group.focused select {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
    }

    /* Modal form specific adjustments */
    .modal-form .floating-label-group {
      margin-bottom: 1.25rem;
    }

    .modal-form .floating-label-group label {
      top: 0.9rem;
    }

    .modal-form .floating-label-group.focused label,
    .modal-form .floating-label-group.has-value label {
      top: -0.6rem;
    }

    .login-links {
      display: flex;
      justify-content: space-between;
      margin-top: 1rem;
    }

    .login-links p {
      margin: 0.5rem 0;
    }

    /* Action Buttons */
    .action-buttons {
      display: flex;
      gap: 0.5rem;
      margin-top: auto;
      padding-top: 1rem;
    }

    .action-buttons .btn {
      flex: 1;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
    }

    .btn-icon {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--primary-color);
      border: none;
    }

    .dark-mode .btn-icon {
      background-color: rgba(52, 211, 153, 0.1);
      color: var(--accent-color);
    }

    .btn-icon:hover {
      background-color: rgba(16, 185, 129, 0.2);
    }

    .dark-mode .btn-icon:hover {
      background-color: rgba(52, 211, 153, 0.2);
    }

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

    .dark-mode .btn-primary {
      background-color: var(--accent-color);
    }

    /* Mobile Responsiveness */
    @media (max-width: 576px) {
      .action-buttons .btn {
        font-size: 0.8rem;
        padding: 0.4rem;
      }

      .action-buttons .btn-text {
        display: none;
      }

      .action-buttons .btn i {
        margin: 0;
      }
    }

    /* Fallback Image Handling */
    .preview-img {
      background-color: #f5f5f5;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ccc;
      font-size: 1rem;
    }

    .dark-mode .preview-img {
      background-color: #2a2a3a;
      color: #555;
    }
    .preview-img {
      height: 150px;
      width: 100%;
      object-fit: contain;
      background: #f5f5f5;
      border-radius: 4px 4px 0 0;
    }

    .bookmark-btn.bookmarked i {
      color: var(--primary-color);
    }

    /* Add to your styles.css */
    .forgot-password {
      display: block;
      margin-bottom: 1rem;
      text-align: right;
      color: #4361ee;
      text-decoration: none;
      font-size: 0.9rem;
    }

    .forgot-password:hover {
      text-decoration: underline;
    }

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

    .modal-form .form-footer > * {
      margin: 0;
    }
    /* Form Response Messages */
    .form-response {
        padding: 12px 15px;
        margin: 15px 0;
        border-radius: 4px;
        font-size: 14px;
        display: none;
    }

    .form-response.error {
        display: block;
        background-color: #ffebee;
        color: #c62828;
        border: 1px solid #ef9a9a;
    }

    .form-response.success {
        display: block;
        background-color: #e8f5e9;
        color: #2e7d32;
        border: 1px solid #a5d6a7;
    }

    /* Modal Positioning */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
    }

    .modal-content {
        background: white;
        padding: 25px;
        border-radius: 8px;
        width: 90%;
        max-width: 400px;
        position: relative;
        z-index: 1001;
    }

    .close-modal {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }
    /* Add to your styles.css */
    .modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 1rem;
      margin-top: 1.5rem;
    }

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

    .modal-body {
      margin-bottom: 1.5rem;
    }

    .flash-container {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1000;
    }

    .alert {
      padding: 15px 20px;
      margin-bottom: 10px;
      border-radius: 4px;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: opacity 0.3s ease;
      min-width: 250px;
    }

    .alert-success {
      background-color: #28a745;
    }

    .alert-error {
      background-color: #dc3545;
    }

    .close {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      padding: 0;
      margin-left: 15px;
      color: inherit;
    }

    /* Reset Password OTP Page Styles */
    .password-reset {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 2rem;
      background-color: #f8f9fa;
    }

    .reset-card {
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      padding: 2rem;
      width: 100%;
      max-width: 400px;
    }

    .reset-header {
      text-align: center;
      margin-bottom: 1.5rem;
    }

    .reset-header h1 {
      font-size: 1.8rem;
      color: #2d3748;
      margin-bottom: 0.5rem;
    }

    .reset-header p {
      color: #718096;
      font-size: 0.9rem;
    }

    .reset-form {
      margin-bottom: 1.5rem;
    }

    .reset-form .form-group {
      margin-bottom: 1rem;
    }

    .reset-footer {
      text-align: center;
      font-size: 0.9rem;
      color: #718096;
    }

    .reset-footer a {
      color: #4361ee;
      text-decoration: none;
      font-weight: 500;
    }

    .reset-footer a:hover {
      text-decoration: underline;
    }

    /* Password Requirements */
    .password-requirements {
      margin-top: 10px;
      padding: 10px;
      background: #f8f9fa;
      border-radius: 5px;
      font-size: 0.85rem;
    }

    .password-requirements .requirements-title {
      font-weight: 600;
      margin-bottom: 5px;
    }

    .password-requirements .requirements-list {
      list-style: none;
      padding-left: 0;
      margin: 0;
    }

    .password-requirements .requirement {
      color: #6c757d;
      position: relative;
      padding-left: 20px;
      margin-bottom: 5px;
    }

    .password-requirements .requirement:before {
      content: "✗";
      position: absolute;
      left: 0;
      color: #dc3545;
    }

    .password-requirements .requirement.valid:before {
      content: "✓";
      color: #28a745;
    }

    .shake-animation {
        animation: shake 0.5s;
    }

    /* wrong credentials error message shake */
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20%, 60% { transform: translateX(-5px); }
        40%, 80% { transform: translateX(5px); }
    }

    .form-response {
        margin: 15px 0;
        padding: 12px 15px;
        border-radius: 4px;
        font-size: 14px;
        display: none;
    }

    .form-response.error {
        display: block;
        background-color: #ffebee;
        color: #c62828;
        border: 1px solid #ef9a9a;
    }

    .form-response.success {
        display: block;
        background-color: #e8f5e9;
        color: #2e7d32;
        border: 1px solid #a5d6a7;
    }


    /* Newsletter Form */
    .newsletter-form {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .newsletter-form input {
      flex: 1;
      padding: 0.8rem 1rem;
      border: 1px solid #ddd;
      border-radius: 6px 0 0 6px;
      font-size: 0.95rem;
    }

    .dark-mode .newsletter-form input {
      background-color: var(--dark-mode-card);
      border-color: #333;
      color: var(--dark-mode-text);
    }

    .newsletter-form button {
      border-radius: 0 6px 6px 0;
      padding: 0 1.5rem;
    }

    /* Card component styles */
    .card {
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      transition: var(--transition);
    }

    .dark-mode .card {
      background-color: var(--dark-mode-card);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .card-body {
      padding: 1.5rem;
    }

    .card-header {
      padding: 1.5rem;
      border-bottom: 1px solid #e9ecef;
    }

    .dark-mode .card-header {
      border-bottom-color: #374151;
    }

    .card-footer {
      padding: 1.5rem;
      border-top: 1px solid #e9ecef;
    }

    .dark-mode .card-footer {
      border-top-color: #374151;
    }

    /* Additional utility classes */
    .text-center { text-align: center; }
    .text-left { text-align: left; }
    .text-right { text-align: right; }

    .mt-1 { margin-top: 0.5rem; }
    .mt-2 { margin-top: 1rem; }
    .mt-3 { margin-top: 1.5rem; }
    .mt-4 { margin-top: 2rem; }

    .mb-1 { margin-bottom: 0.5rem; }
    .mb-2 { margin-bottom: 1rem; }
    .mb-3 { margin-bottom: 1.5rem; }
    .mb-4 { margin-bottom: 2rem; }

    .p-1 { padding: 0.5rem; }
    .p-2 { padding: 1rem; }
    .p-3 { padding: 1.5rem; }
    .p-4 { padding: 2rem; }

    .d-flex { display: flex; }
    .justify-center { justify-content: center; }
    .justify-between { justify-content: space-between; }
    .align-center { align-items: center; }

    .flex-column { flex-direction: column; }
    .flex-row { flex-direction: row; }

    .w-100 { width: 100%; }
    .h-100 { height: 100%; }

    /* Loading states */
    .loading {
      opacity: 0.6;
      pointer-events: none;
    }

    /* Focus states for accessibility */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }

    .dark-mode a:focus,
    .dark-mode button:focus,
    .dark-mode input:focus,
    .dark-mode textarea:focus,
    .dark-mode select:focus {
      outline-color: var(--accent-color);
    }

    /* Print styles */
    @media print {
      .no-print {
        display: none !important;
      }

      body {
        background: white !important;
        color: black !important;
      }

      .preview-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
      }
    }
    /* Footer Newsletter Styles - Right Side Position */
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Adjusted to give more space to newsletter */
      gap: 2rem;
      margin-bottom: 3rem;
      position: relative;
      z-index: 1;
    }

    .footer-newsletter {
      text-align: left;
      padding: 0;
      background: transparent;
      border-radius: 0;
      margin-top: 0;
      grid-column: 4; /* Position in the 4th column (far right) */
    }

    .footer-newsletter h3 {
      color: var(--accent-color);
      margin-bottom: 1rem;
      font-size: 1.3rem;
      position: relative;
      display: inline-block;
    }

    .footer-newsletter h3::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 50px;
      height: 3px;
      background: var(--accent-color);
      border-radius: 2px;
    }

    .newsletter-desc {
      color: #adb5bd;
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
      line-height: 1.5;
    }

    .footer .newsletter-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      max-width: 100%;
      margin: 0;
    }

    .footer .floating-label-group {
      margin-bottom: 0;
      position: relative;
    }

    .footer .floating-label-group input {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      padding: 0.8rem 1rem;
      border-radius: 6px;
      width: 100%;
    }

    .footer .floating-label-group input:focus {
      outline: none;
      border-color: var(--accent-color);
      box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
    }

    .footer .floating-label-group label {
      color: #adb5bd;
      top: 0.8rem;
      left: 1rem;
      background: transparent;
    }

    .footer .floating-label-group.focused label,
    .footer .floating-label-group.has-value label {
      top: -0.5rem;
      left: 0.8rem;
      background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a2e 100%);
      padding: 0 0.5rem;
    }

    .footer .btn-success {
      min-width: auto;
      white-space: nowrap;
      padding: 0.8rem 1.5rem;
      border-radius: 6px;
      background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
      border: none;
      font-weight: 600;
      transition: var(--transition);
    }

    .footer .btn-success:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

    /* Responsive adjustments */
    @media (max-width: 1200px) {
      .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 1.5rem;
      }
    }

    @media (max-width: 992px) {
      .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
      }

      .footer-newsletter {
        grid-column: span 2; /* Newsletter takes full width on medium screens */
        text-align: center;
        margin-top: 1rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }

      .footer-newsletter h3::after {
        left: 50%;
        transform: translateX(-50%);
      }
    }

    @media (max-width: 768px) {
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

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

      .footer .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
      }
    }

    @media (max-width: 576px) {
      .footer-newsletter {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 1rem;
      }

      .footer .newsletter-form {
        flex-direction: column;
      }
    }

    /* Responsive to Footer Newsletter styles */
    @media (max-width: 480px) {
      .footer-newsletter {
        padding: 1rem;
        margin-top: 0.5rem;
      }

      .footer-newsletter h3 {
        font-size: 1.1rem;
      }

      .newsletter-desc {
        font-size: 0.8rem;
        margin-bottom: 1rem;
      }

      .footer .floating-label-group input {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
      }

      .footer .floating-label-group label {
        top: 0.7rem;
        left: 0.9rem;
        font-size: 0.9rem;
      }

      .footer .floating-label-group.focused label,
      .footer .floating-label-group.has-value label {
        top: -0.4rem;
        left: 0.7rem;
        font-size: 0.7rem;
      }

      .footer .btn-success {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
      }
    }

    @media (max-width: 375px) {
      .footer-grid {
        gap: 1.5rem;
      }

      .footer-newsletter {
        padding: 0.8rem;
      }

      .footer .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
      }

      .footer .btn-success {
        width: 100%;
        border-radius: 6px;
      }
    }

    /* Newsletter form response styling */
    .footer #newsletterResponse {
      margin-top: 0.5rem;
      font-size: 0.85rem;
      text-align: center;
    }

    .footer #newsletterResponse.success {
      color: var(--accent-color);
    }

    .footer #newsletterResponse.error {
      color: #ff6b6b;
    }

    /* Loading state for newsletter button */
    .footer .btn-success .loading-icon {
      display: none;
      margin-right: 0.5rem;
    }

    .footer .btn-success.loading .btn-text {
      display: none;
    }

    .footer .btn-success.loading .loading-icon {
      display: inline-block;
    }
    /* ====================== */
    /* Remove All Focus Outlines */
    /* ====================== */

    *:focus {
      outline: none !important;
      box-shadow: none !important;
    }

    /* But keep focus for accessibility in some cases */
    button:focus-visible,
    .btn:focus-visible,
    a:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
      outline: 2px solid var(--primary-color) !important;
      outline-offset: 2px !important;
    }
    /* ====================== */
    /* Main Page Container Width Increase */
    /* ====================== */

    .container {
        width: 100%;
        max-width: 1400px; /* Increased from 1200px to 1400px */
        margin: 0 auto;
        padding: 0 20px;
    }

    /* ====================== */
    /* Main Page Grid Layout - 4 Cards Per Row */
    /* ====================== */

    .preview-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
      gap: 1.5rem;
      margin-bottom: 2rem;
      width: 100%;
      max-height: none !important;
      overflow: visible !important;
    }

    /* Remove all height restrictions */
    .preview-section .preview-grid {
      max-height: none !important;
      overflow: visible !important;
    }

    .preview-section .preview-grid::after {
      display: none !important;
    }

    /* Adjust card width for 4 columns */
    .preview-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      height: 380px; /* Fixed height */
      border: 1px solid #e9ecef;
      position: relative;
      min-width: 0; /* Allow cards to shrink properly */
    }

    .dark-mode .preview-card {
      background-color: var(--dark-mode-card);
      border-color: #2d3748;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .preview-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    /* Ensure content fits properly in 4-column layout */
    .preview-content {
      padding: 1.25rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .preview-content h3 {
      font-size: 1.1rem;
      font-weight: 600;
      line-height: 1.3;
      margin-bottom: 0.5rem;
      color: var(--dark-color);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.6rem;
    }

    /* ====================== */
    /* Responsive Adjustments */
    /* ====================== */

    @media (max-width: 1400px) {
      .container {
        max-width: 1200px; /* Slightly smaller on very large screens */
      }

      .preview-grid {
        grid-template-columns: repeat(4, 1fr); /* Maintain 4 columns */
        gap: 1.25rem;
      }
    }

    @media (max-width: 1200px) {
      .container {
        max-width: 1140px;
      }

      .preview-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on large tablets/desktops */
        gap: 1.5rem;
      }
    }

    @media (max-width: 992px) {
      .container {
        max-width: 960px;
      }

      .preview-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 1.5rem;
      }
    }

    @media (max-width: 768px) {
      .container {
        max-width: 720px;
        padding: 0 15px;
      }

      .preview-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small tablets */
        gap: 1rem;
      }

      .preview-card {
        height: 360px;
      }
    }

    @media (max-width: 576px) {
      .container {
        max-width: 540px;
        padding: 0 15px;
      }

      .preview-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 1rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
      }
    }

    /* ====================== */
    /* Footer Width Adjustment */
    /* ====================== */

    footer .container {
      max-width: 1400px; /* Match container width */
    }

    /* ====================== */
    /* Ensure Proper Spacing */
    /* ====================== */

    .preview-section {
      padding: 4rem 0; /* Adjust section padding if needed */
    }

    .view-all {
      text-align: center;
      margin-top: 3rem;
    }
    /* Bookmark Button Styles */
    .bookmark-btn {
        transition: all 0.3s ease;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
    }

    .bookmark-btn:hover {
        background: rgba(0, 123, 255, 0.1);
        transform: scale(1.1);
    }

    .bookmark-btn i {
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .bookmark-btn.bookmarked i {
        color: #007bff !important;
        transform: scale(1.1);
    }

    .bookmark-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

    /* Action buttons container */
    .action-buttons {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid #dee2e6;
        background: white;
        transition: all 0.3s ease;
    }

    .btn-icon:hover {
        border-color: #007bff;
        background: #f8f9fa;
    }
    /* Terms and Privacy links in modal */
    .form-terms a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .form-terms a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

    /* Legal pages styling */
    .legal-page {
        max-width: 900px;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .legal-header {
        text-align: center;
        margin-bottom: 3rem;
        padding-bottom: 2rem;
        border-bottom: 2px solid var(--border-color);
    }

    .legal-header h1 {
        color: var(--text-color);
        margin-bottom: 0.5rem;
    }

    .last-updated {
        color: var(--text-muted);
        font-style: italic;
    }

    .legal-section {
        margin-bottom: 2.5rem;
    }

    .legal-section h2 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .legal-section h3 {
        color: var(--text-color);
        margin: 1.5rem 0 0.5rem 0;
        font-size: 1.2rem;
    }

    .legal-section p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .legal-section ul {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .legal-section li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

    .contact-info {
        background: var(--card-bg);
        padding: 1.5rem;
        border-radius: 8px;
        border-left: 4px solid var(--primary-color);
        margin: 1rem 0;
    }

    .contact-info p {
        margin-bottom: 0.5rem;
    }

    /* ===============================
       PROFESSIONAL BLOG SECTION
    =============================== */

    .professional-blog-section {
      background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
      padding: 80px 20px;
      font-family: 'Inter', sans-serif;
      transition: all 0.3s ease;
    }

    /* Dark Mode Styles */
    .dark-mode .professional-blog-section {
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

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

    .section-title {
      font-size: 2.5rem;
      font-weight: 700;
      color: #1e1e2f;
      margin-bottom: 12px;
      position: relative;
      transition: color 0.3s ease;
    }

    .dark-mode .section-title {
      color: #ffffff;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 2px;
    }

    .section-subtitle {
      font-size: 1.1rem;
      color: #666;
      margin-top: 16px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.6;
      transition: color 0.3s ease;
    }

    .dark-mode .section-subtitle {
      color: #b0b0b0;
    }

    /* GRID - FIXED HEIGHT ISSUE */
    .blog-grid-vertical {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
      align-items: stretch;
    }

    /* CARD - FIXED CONTENT CUTTING */
    .blog-card-vertical {
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      height: 560px;
      min-height: 560px;
      max-height: 560px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      position: relative;
      width: 100%;
      max-width: 410px; /* Cap maximum width */
      margin: 0 auto; /* Center in grid cells */
    }

    /* Dark mode */
    .dark-mode .blog-card-vertical {
      background: #2d3748;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    /* Inner structure */
    .blog-card-inner-vertical {
      display: flex;
      flex-direction: column;
      height: 100%;
      flex: 1;
    }

    /* IMAGE CONTAINER - FIXED */
    .blog-image-container-vertical {
      position: relative;
      width: 100%;
      height: 220px;
      min-height: 220px;
      max-height: 220px;
      overflow: hidden;
      flex-shrink: 0;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .blog-image-vertical {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .blog-card-vertical:hover .blog-image-vertical {
      transform: scale(1.1);
    }

    /* Badges */
    .blog-category-badge-vertical {
      position: absolute;
      top: 16px;
      left: 16px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 6px 14px;
      border-radius: 25px;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      z-index: 2;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
      max-width: 70%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .blog-views-badge-vertical {
      position: absolute;
      top: 16px;
      right: 16px;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(10px);
      color: white;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 4px;
      z-index: 2;
    }

    .dark-mode .blog-views-badge-vertical {
      background: rgba(255, 255, 255, 0.2);
    }

    .blog-views-badge-vertical:hover {
      background: rgba(0, 0, 0, 0.9);
      transform: scale(1.05);
    }

    .dark-mode .blog-views-badge-vertical:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    .blog-views-badge-vertical i {
      color: #ffd700;
      font-size: 0.7rem;
    }

    /* CONTENT - FIXED OVERFLOW */
    .blog-content-vertical {
      padding: 20px 20px 16px 20px;
      display: flex;
      flex-direction: column;
      flex: 1;
      overflow: hidden;
    }

    /* Meta section */
    .blog-meta-vertical {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    .blog-date-vertical {
      font-weight: 600;
      color: #667eea;
      background: rgba(102, 126, 234, 0.1);
      padding: 4px 12px;
      border-radius: 20px;
      white-space: nowrap;
    }

    .blog-read-time-vertical {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #718096;
      font-weight: 500;
      white-space: nowrap;
    }

    /* Title */
    .blog-title-vertical {
      font-size: 1.25rem;
      font-weight: 800;
      color: #2d3748;
      line-height: 1.4;
      margin-bottom: 10px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 3.5rem;
      max-height: 3.5rem;
      background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      flex-shrink: 0;
    }

    .dark-mode .blog-title-vertical {
      background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Excerpt */
    .blog-excerpt-vertical {
      color: #718096;
      line-height: 1.5;
      margin-bottom: 15px;
      display: -webkit-box;
      -webkit-line-clamp: 2; /* Reduced to 2 lines for better fit */
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 3em;
      max-height: 3em;
      font-size: 0.9rem;
      flex: 1;
    }

    .dark-mode .blog-excerpt-vertical {
      color: #a0aec0;
    }
    /* BLOG FOOTER - FIXED POSITIONING */
    .blog-footer-vertical {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding-top: 20px;
      border-top: 2px solid #f7fafc;
      flex-shrink: 0;
      gap: 15px;
    }

    .dark-mode .blog-footer-vertical {
      border-top-color: #4a5568;
    }

    .blog-author-vertical {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .author-avatar-vertical img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #e2e8f0;
      transition: all 0.3s ease;
    }

    .dark-mode .author-avatar-vertical img {
      border-color: #4a5568;
    }

    .blog-card-vertical:hover .author-avatar-vertical img {
      border-color: #667eea;
      transform: scale(1.1);
    }

    .author-info-vertical {
      display: flex;
      flex-direction: column;
    }

    .author-name-vertical {
      font-weight: 700;
      color: #2d3748;
      font-size: 0.9rem;
      transition: color 0.3s ease;
    }

    .dark-mode .author-name-vertical {
      color: #ffffff;
    }

    .author-role-vertical {
      font-size: 0.8rem;
      color: #718096;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .dark-mode .author-role-vertical {
      color: #a0aec0;
    }

    /* BLOG ACTIONS - FIXED LAYOUT */
    .blog-actions-vertical {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: flex-end;
      flex-grow: 1;
      min-width: 0;
    }

    /* Like Button */
    .btn-like-vertical {
      background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
      border: none;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 65px;
      box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
      font-weight: 600;
      flex-shrink: 0;
    }

    .btn-like-vertical:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
      background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    }

    .btn-like-vertical.liked {
      background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
      animation: pulse 0.6s ease;
    }

    /* Bookmark Button */
    .btn-bookmark-vertical {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: none;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 1rem;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
      font-weight: 600;
      flex-shrink: 0;
    }

    .btn-bookmark-vertical:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
      background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    }

    .btn-bookmark-vertical.bookmarked {
      background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
      animation: bounce 0.5s ease;
    }

    /* Read More Button */
    .read-more-btn-vertical {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: white;
      text-decoration: none;
      font-weight: 700;
      font-size: 0.9rem;
      transition: all 0.3s ease;
      padding: 12px 20px;
      border-radius: 12px;
      background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
      border: none;
      cursor: pointer;
      white-space: nowrap;
      box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
      flex-shrink: 0;
    }

    .read-more-btn-vertical:hover {
      background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
      transform: translateY(-2px) translateX(4px);
      box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    }

    .read-more-btn-vertical i {
      transition: transform 0.3s ease;
    }

    .read-more-btn-vertical:hover i {
      transform: translateX(4px);
    }

    /* EMPTY STATE */
    .no-blogs-message {
      grid-column: 1 / -1;
      text-align: center;
      padding: 80px 20px;
    }

    .no-blogs-content {
      max-width: 400px;
      margin: 0 auto;
    }

    .no-blogs-content i {
      font-size: 5rem;
      color: #667eea;
      margin-bottom: 20px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .no-blogs-content h3 {
      font-size: 1.8rem;
      color: #2d3748;
      margin-bottom: 16px;
      font-weight: 700;
      transition: color 0.3s ease;
    }

    .dark-mode .no-blogs-content h3 {
      color: #ffffff;
    }

    .no-blogs-content p {
      color: #718096;
      line-height: 1.6;
      font-size: 1.1rem;
      transition: color 0.3s ease;
    }

    .dark-mode .no-blogs-content p {
      color: #a0aec0;
    }

    /* VIEW ALL BUTTON */
    .blog-section-footer {
      text-align: center;
    }

    .view-all-blogs {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 16px 32px;
      font-weight: 700;
      border-radius: 16px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: none;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      text-decoration: none;
      color: white;
      font-size: 1.1rem;
      box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
      position: relative;
      overflow: hidden;
    }

    .view-all-blogs::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.6s ease;
    }

    .view-all-blogs:hover::before {
      left: 100%;
    }

    .view-all-blogs:hover {
      transform: translateY(-4px) scale(1.05);
      box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
      color: white;
    }

    .view-all-blogs i {
      transition: transform 0.3s ease;
    }

    .view-all-blogs:hover i {
      transform: translateX(6px);
    }

    /* ====================== */
    /* MOBILE RESPONSIVE */
    /* ====================== */

    /* Mobile */
    @media (max-width: 576px) {
      .blog-grid-vertical,
      .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 15px;
      }

      .blog-card-vertical {
        height: auto;
        min-height: auto;
        max-height: none;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
      }

      .blog-card-inner-vertical {
        height: auto;
      }

      /* Image container */
      .blog-image-container-vertical {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        width: 100%;
      }

      .blog-image-vertical {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }

      /* Content area - auto height */
      .blog-content-vertical {
        padding: 16px 16px 12px 16px;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
      }

      /* Meta section */
      .blog-meta-vertical {
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 8px;
      }

      .blog-date-vertical {
        font-size: 0.75rem;
        padding: 3px 10px;
      }

      .blog-read-time-vertical {
        font-size: 0.75rem;
      }

      /* Title */
      .blog-title-vertical {
        font-size: 1.2rem;
        min-height: auto;
        max-height: none;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      /* Excerpt */
      .blog-excerpt-vertical {
        font-size: 0.85rem;
        margin-bottom: 12px;
        min-height: auto;
        max-height: none;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      /* Author section */
      .blog-author-vertical {
        margin-bottom: 12px;
      }

      .author-avatar-vertical img {
        width: 36px;
        height: 36px;
        min-width: 36px;
      }

      .author-name-vertical {
        font-size: 0.9rem;
        max-width: 120px;
      }

      .author-role-vertical {
        font-size: 0.7rem;
        max-width: 120px;
      }

      /* Action buttons row - HORIZONTAL on mobile */
      .blog-actions-row {
        display: flex;
        flex-direction: row; /* Keep horizontal */
        gap: 10px;
        margin-bottom: 12px;
        width: 100%;
      }

      .btn-like-vertical {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.8rem;
        height: 38px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
      }

      .btn-like-vertical i {
        font-size: 0.85rem;
      }

      .btn-bookmark-vertical {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.8rem;
        height: 38px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
      }

      .btn-bookmark-vertical i {
        font-size: 0.85rem;
      }

      /* Read more button - BELOW action buttons */
      .read-more-btn-vertical {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 40px;
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 25px;
        margin-top: 0; /* Remove auto margin */
        position: relative;
        bottom: 0;
      }

      /* Remove any conflicting styles */
      .blog-footer-vertical {
        margin-top: 0;
        padding-top: 0;
      }
    }

    /* Small Mobile */
    @media (max-width: 375px) {
      .blog-content-vertical {
        padding: 14px 12px 10px 12px;
      }

      .blog-title-vertical {
        font-size: 1.1rem;
      }

      .blog-excerpt-vertical {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }

      .blog-actions-row {
        gap: 8px;
      }

      .btn-like-vertical,
      .btn-bookmark-vertical {
        padding: 6px 8px;
        font-size: 0.75rem;
        height: 34px;
      }

      .btn-like-vertical i,
      .btn-bookmark-vertical i {
        font-size: 0.8rem;
      }

      .read-more-btn-vertical {
        height: 36px;
        font-size: 0.85rem;
        padding: 8px 14px;
      }

      .author-name-vertical {
        font-size: 0.85rem;
        max-width: 100px;
      }

      .author-role-vertical {
        font-size: 0.65rem;
        max-width: 100px;
      }
    }

    /* Extra Small Mobile */
    @media (max-width: 320px) {
      .blog-actions-row {
        flex-direction: column; /* Only stack on very tiny screens if needed */
        gap: 6px;
      }

      .btn-like-vertical,
      .btn-bookmark-vertical {
        width: 100%;
      }
    }

    /* BLOG MODAL STYLES */
    .blog-modal-content {
      max-width: 800px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      background: white;
      border-radius: 24px;
      position: relative;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: all 0.3s ease;
    }

    .dark-mode .blog-modal-content {
      background: #2d3748;
      border-color: rgba(255, 255, 255, 0.1);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }

    /* Enhanced Close Button */
    .close-modal {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 44px;
      height: 44px;
      border: none;
      background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
      color: white;
      border-radius: 50%;
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 1000;
      box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
      backdrop-filter: blur(10px);
    }

    .close-modal:hover {
      transform: scale(1.1) rotate(90deg);
      background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
      box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    }

    .close-modal:active {
      transform: scale(0.95);
    }

    .blog-modal-header {
      padding: 35px 35px 25px;
      border-bottom: 2px solid #f7fafc;
      background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
      position: relative;
      transition: all 0.3s ease;
    }

    .dark-mode .blog-modal-header {
      background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
      border-bottom-color: #4a5568;
    }

    .blog-modal-category {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: inline-block;
      margin-bottom: 20px;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .blog-modal-header h2 {
      font-size: 2.2rem;
      font-weight: 800;
      color: #2d3748;
      margin-bottom: 20px;
      line-height: 1.3;
      background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      padding-right: 50px;
      transition: all 0.3s ease;
    }

    .dark-mode .blog-modal-header h2 {
      background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .blog-modal-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-author {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .modal-avatar {
      width: 55px;
      height: 55px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #e2e8f0;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }

    .dark-mode .modal-avatar {
      border-color: #4a5568;
    }

    .modal-author div {
      display: flex;
      flex-direction: column;
    }

    .modal-author span:first-child {
      font-weight: 700;
      color: #2d3748;
      font-size: 1rem;
      transition: color 0.3s ease;
    }

    .dark-mode .modal-author span:first-child {
      color: #ffffff;
    }

    .modal-date {
      font-size: 0.9rem;
      color: #718096;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .dark-mode .modal-date {
      color: #a0aec0;
    }

    .modal-stats {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    /* Modal Like Button */
    .btn-like-modal {
      background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
      border: none;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 10px 16px;
      border-radius: 12px;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }

    .btn-like-modal:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    }

    .btn-like-modal.liked {
      background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
      animation: pulse 0.6s ease;
    }

    .read-time {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #718096;
      font-size: 0.9rem;
      font-weight: 500;
      background: rgba(102, 126, 234, 0.1);
      padding: 8px 16px;
      border-radius: 20px;
      transition: all 0.3s ease;
    }

    .dark-mode .read-time {
      background: rgba(102, 126, 234, 0.2);
      color: #a0aec0;
    }

    .read-time i {
      color: #667eea;
      transition: color 0.3s ease;
    }

    .dark-mode .read-time i {
      color: #a3bffa;
    }

    /* Views Counter in Modal */
    .views-count-modal {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #718096;
      font-size: 0.9rem;
      font-weight: 500;
      background: rgba(255, 193, 7, 0.1);
      padding: 8px 16px;
      border-radius: 20px;
      transition: all 0.3s ease;
    }

    .dark-mode .views-count-modal {
      background: rgba(255, 193, 7, 0.2);
      color: #a0aec0;
    }

    .views-count-modal i {
      color: #ffc107;
    }

    .blog-modal-body {
      padding: 35px;
      transition: background 0.3s ease;
    }

    .dark-mode .blog-modal-body {
      background: #2d3748;
    }

    .blog-modal-image {
      margin-bottom: 35px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .dark-mode .blog-modal-image {
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .blog-modal-image img {
      width: 100%;
      max-height: 400px;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .blog-modal-image:hover img {
      transform: scale(1.02);
    }

    .blog-modal-content-text {
      line-height: 1.8;
      color: #4a5568;
      font-size: 1.15rem;
      transition: color 0.3s ease;
    }

    .dark-mode .blog-modal-content-text {
      color: #e2e8f0;
    }

    .blog-modal-content-text h3 {
      color: #2d3748;
      margin: 28px 0 20px;
      font-size: 1.6rem;
      font-weight: 700;
      transition: color 0.3s ease;
    }

    .dark-mode .blog-modal-content-text h3 {
      color: #ffffff;
    }

    .blog-modal-content-text p {
      margin-bottom: 20px;
    }

    .blog-modal-footer {
      padding: 25px 35px;
      border-top: 2px solid #f7fafc;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
      transition: all 0.3s ease;
    }

    .dark-mode .blog-modal-footer {
      background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
      border-top-color: #4a5568;
    }

    /* Modal Bookmark Button */
    .bookmark-modal-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 1rem;
      transition: all 0.3s ease;
      border: 2px solid #667eea;
      background: transparent;
      color: #667eea;
      cursor: pointer;
    }

    .dark-mode .bookmark-modal-btn {
      border-color: #a3bffa;
      color: #a3bffa;
    }

    .bookmark-modal-btn:hover {
      background: #667eea;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    }

    .dark-mode .bookmark-modal-btn:hover {
      background: #a3bffa;
      border-color: #a3bffa;
    }

    .bookmark-modal-btn.bookmarked {
      background: #667eea;
      color: white;
    }

    .dark-mode .bookmark-modal-btn.bookmarked {
      background: #a3bffa;
      border-color: #a3bffa;
    }

        /* ====================== */
    /* BLOG MODAL - MOBILE RESPONSIVE FIXES */
    /* ====================== */

    /* Mobile - Blog Modal */
    @media (max-width: 576px) {
      .blog-modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
      }

      /* Modal Header */
      .blog-modal-header {
        padding: 20px 20px 15px 20px;
      }

      .blog-modal-category {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 12px;
      }

      .blog-modal-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 12px;
        padding-right: 35px;
      }

      /* Close button */
      .close-modal {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
      }

      /* Modal Meta Information */
      .blog-modal-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }

      .modal-author {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
      }

      .modal-avatar {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
      }

      .modal-author div {
        display: flex;
        flex-direction: column;
      }

      .modal-author div span:first-child {
        font-size: 0.95rem;
        font-weight: 600;
      }

      .modal-date {
        font-size: 0.8rem;
        color: #718096;
      }

      /* ===== STATS ROW - FORCE HORIZONTAL ===== */
      .modal-stats {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100%;
        flex-wrap: wrap;
      }

      .read-time {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        background: rgba(102, 126, 234, 0.1);
        border-radius: 20px;
        white-space: nowrap;
        width: auto !important;
        margin: 0 !important;
      }

      .views-count-modal {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        background: rgba(255, 193, 7, 0.1);
        border-radius: 20px;
        white-space: nowrap;
        width: auto !important;
        margin: 0 !important;
      }

      /* Override any flex column properties */
      .read-time,
      .views-count-modal {
        flex: 0 1 auto !important;
      }

      /* Modal Image */
      .blog-modal-image {
        margin: 15px 20px;
        border-radius: 12px;
        max-height: 200px;
      }

      .blog-modal-image img {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
        border-radius: 12px;
      }

      /* Modal Body */
      .blog-modal-body {
        padding: 0 20px 20px 20px;
      }

      .blog-modal-content-text {
        font-size: 0.95rem;
        line-height: 1.6;
      }

      .blog-modal-content-text h3 {
        font-size: 1.2rem;
        margin: 20px 0 12px;
      }

      /* Modal Footer - Action Buttons Horizontal */
      .blog-modal-footer {
        padding: 16px 20px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
      }

      .dark-mode .blog-modal-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
      }

      /* Action buttons container - horizontal row */
      .modal-action-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        width: 100%;
      }

      /* Like button in modal */
      .btn-like-modal {
        flex: 1;
        padding: 12px 10px;
        font-size: 0.9rem;
        height: 44px;
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
        border: none;
        color: white;
        cursor: pointer;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
      }

      .btn-like-modal i {
        font-size: 1rem;
      }

      .btn-like-modal.liked {
        background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
      }

      /* Bookmark button in modal */
      .bookmark-modal-btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 0.9rem;
        height: 44px;
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
        cursor: pointer;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
      }

      .bookmark-modal-btn i {
        font-size: 1rem;
      }

      .bookmark-modal-btn.bookmarked {
        background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
      }
    }

    /* Small Mobile */
    @media (max-width: 375px) {
      .blog-modal-header {
        padding: 16px 16px 12px 16px;
      }

      .blog-modal-header h2 {
        font-size: 1.2rem;
        padding-right: 30px;
      }

      .close-modal {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
      }

      .modal-author {
        gap: 10px;
      }

      .modal-avatar {
        width: 40px;
        height: 40px;
      }

      .modal-author div span:first-child {
        font-size: 0.9rem;
      }

      .modal-date {
        font-size: 0.75rem;
      }

      /* Stats remain horizontal */
      .modal-stats {
        gap: 8px !important;
      }

      .read-time,
      .views-count-modal {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
      }

      .blog-modal-image {
        margin: 10px 16px;
        max-height: 160px;
      }

      .blog-modal-image img {
        max-height: 160px;
      }

      .blog-modal-body {
        padding: 0 16px 16px 16px;
      }

      .blog-modal-content-text {
        font-size: 0.9rem;
      }

      .blog-modal-content-text h3 {
        font-size: 1.1rem;
        margin: 16px 0 10px;
      }

      .blog-modal-footer {
        padding: 12px 16px 16px 16px;
      }

      .modal-action-buttons {
        gap: 8px !important;
      }

      .btn-like-modal,
      .bookmark-modal-btn {
        padding: 10px 6px;
        font-size: 0.85rem;
        height: 40px;
      }

      .btn-like-modal i,
      .bookmark-modal-btn i {
        font-size: 0.9rem;
      }
    }

    /* Extra Small Mobile */
    @media (max-width: 320px) {
      .modal-stats {
        flex-wrap: wrap !important;
      }

      .read-time,
      .views-count-modal {
        flex: 1 1 auto !important;
      }

      .modal-action-buttons {
        flex-direction: column !important;
        gap: 8px !important;
      }

      .btn-like-modal,
      .bookmark-modal-btn {
        width: 100%;
      }
    }

    /* Handle landscape mode on mobile */
    @media (max-width: 768px) and (orientation: landscape) {
      .blog-modal-content {
        max-height: 95vh;
      }

      .blog-modal-image {
        max-height: 150px;
      }

      .blog-modal-image img {
        max-height: 150px;
      }

      .blog-modal-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }

      .modal-author {
        width: auto;
      }

      .modal-stats {
        width: auto !important;
      }

      .modal-action-buttons {
        flex-direction: row !important;
      }
    }

    /* RESPONSIVE DESIGN - IMPROVED */
    @media (max-width: 768px) {
      .professional-blog-section {
        padding: 60px 20px;
      }

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

      .blog-grid-vertical {
        grid-template-columns: 1fr;
        gap: 25px;
      }

      .blog-card-vertical {
        min-height: 500px;
        height: auto;
      }

      .blog-footer-vertical {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
      }

      .blog-actions-vertical {
        width: 100%;
        justify-content: space-between;
        order: -1;
      }

      .blog-author-vertical {
        order: 1;
      }

      .blog-modal-content {
        width: 95%;
        margin: 15px;
      }

      .blog-modal-header h2 {
        font-size: 1.6rem;
        padding-right: 40px;
      }

      .blog-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }

      .modal-stats {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
      }

      .blog-modal-footer {
        flex-direction: column;
        gap: 15px;
      }

      .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
      }
    }

    @media (max-width: 480px) {
      .blog-content-vertical {
        padding: 20px;
      }

      .blog-title-vertical {
        font-size: 1.2rem;
        min-height: 2.6em;
      }

      .blog-meta-vertical {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .blog-actions-vertical {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
      }

      .blog-modal-header,
      .blog-modal-body,
      .blog-modal-footer {
        padding: 20px;
      }

      .btn-like-vertical,
      .btn-bookmark-vertical {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 55px;
      }

      .read-more-btn-vertical {
        padding: 10px 16px;
        font-size: 0.85rem;
      }

      .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
      }

      .blog-modal-header h2 {
        padding-right: 30px;
        font-size: 1.4rem;
      }

      .modal-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
    }

    /* FIX FOR CARD CONTENT CUTTING */
    .blog-card-vertical {
      container-type: inline-size;
    }

    @container (max-width: 400px) {
      .blog-actions-vertical {
        flex-direction: column;
        align-items: stretch;
      }

      .btn-like-vertical,
      .btn-bookmark-vertical,
      .read-more-btn-vertical {
        justify-content: center;
        width: 100%;
      }
    }

    /* ANIMATIONS */
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }

    @keyframes bounce {
      0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
      }
      40%, 43% {
        transform: translateY(-8px);
      }
      70% {
        transform: translateY(-4px);
      }
      90% {
        transform: translateY(-2px);
      }
    }
    /*====END OF BLOGS SECTION========= */


    /* ==========================
    TESTIMONIALS SECTION STYLES
    ========================== */

    /* SECTION BACKGROUND & CONTAINER */
    #testimonials {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #ffffff;
      padding: 60px 0;
      position: relative;
      overflow: hidden;
      font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    /* Decorative elements */
    #testimonials::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -20%;
      width: 150%;
      height: 150%;
      background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
      background-size: 40px 40px;
      opacity: 0.3;
      pointer-events: none;
    }

    /* Dark mode support */
    .dark-mode #testimonials {
      background: linear-gradient(135deg, #4c63d2 0%, #5a3a8a 100%);
    }

    .testimonials-container {
      width: 92%;
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    /* HEADER */
    .testimonials-header {
      text-align: center;
      margin-bottom: 60px;
    }

    .testimonials-header h2 {
      font-size: 2.8rem;
      font-weight: 800;
      color: #fff;
      margin-bottom: 16px;
      position: relative;
      display: inline-block;
      text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .testimonials-header h2::after {
      content: '';
      position: absolute;
      bottom: -12px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: linear-gradient(135deg, #10b981, #059669);
      border-radius: 2px;
    }

    .testimonials-header p {
      color: rgba(255,255,255,0.9);
      font-size: 1.2rem;
      max-width: 700px;
      margin: 30px auto 0;
      line-height: 1.6;
      font-weight: 300;
    }

    /* PRIMARY BUTTON */
    #testimonialBtn {
      background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
      color: #fff;
      border: 1px solid rgba(255,255,255,0.25);
      padding: 15px 32px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      display: inline-flex;
      gap: 12px;
      align-items: center;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(10px);
      margin: 40px auto 0;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    #testimonialBtn:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(0,0,0,0.3);
      background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
      border-color: rgba(255,255,255,0.4);
    }

    #testimonialBtn i {
      transition: transform 0.3s ease;
    }

    #testimonialBtn:hover i {
      transform: translateX(4px);
    }

    /* CAROUSEL CONTAINER */
    .testimonials-carousel {
      position: relative;
      max-width: 1100px;
      margin: 0 auto;
      overflow: hidden;
      border-radius: 24px;
      width: 100%;
      padding: 20px 0 60px;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    /* CAROUSEL TRACK FOR CHAIN MOVEMENT */
    .testimonials-track {
        display: flex;
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 30px;
        padding: 20px;
        width: max-content; /* Allow track to expand beyond container */
        will-change: transform;
    }

    /* Hide dots when only 3 or fewer testimonials */
    .testimonials-carousel:has(.testimonial-card:nth-child(3)) .carousel-nav-container {
        display: none;
    }

    /* SMALL NAVIGATION BUTTONS (REPLACING INDICATORS) */
    .carousel-nav-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
        padding: 12px 24px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 28px;
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    /* Small navigation buttons */
    .carousel-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.95);
        color: #667eea;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 10;
    }

    .carousel-btn:hover:not(:disabled) {
        background: white;
        transform: scale(1.15);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
        border-color: white;
    }

    .carousel-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none !important;
    }

    .carousel-btn i {
        transition: transform 0.3s ease;
    }

    .carousel-btn:hover:not(:disabled) i {
        transform: scale(1.3);
    }

    /* Dots navigation */
    .carousel-dots {
        display: flex;
        gap: 12px;
        padding: 0 24px;
    }

    .carousel-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .carousel-dot::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
        transition: left 0.5s ease;
    }

    .carousel-dot:hover::after {
        left: 100%;
    }

    .carousel-dot.active {
        background: white;
        transform: scale(1.4);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
    }

    .carousel-dot:hover:not(.active) {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    /* Progress indicator for active dot */
    .carousel-dot.active::before {
        content: '';
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: white;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
        50% { opacity: 0.5; transform: translateX(-50%) scale(1.5); }
    }

    /* Auto-play indicator */
    .auto-play-indicator {
        display: flex;
        align-items: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.95);
        font-size: 0.9rem;
        margin-left: 15px;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        font-weight: 500;
    }

    .auto-play-indicator i {
        font-size: 1rem;
        animation: spin 2s linear infinite;
    }

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

    /* ==========================
    TESTIMONIAL CARD FIXED LAYOUT
    ========================== */

    /* Fixed size testimonial cards */
    .testimonial-card {
        flex: 0 0 340px; /* Fixed width for consistent chain movement */
        height: 420px; /* Fixed height */
        transition: all 0.4s ease;
        opacity: 0.7;
        transform: scale(0.95);
        filter: blur(0.5px);
        position: relative;
    }

    /* Active center card */
    .testimonial-card.active {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
        z-index: 2;
    }

    /* Previous card (to the left) */
    .testimonial-card.prev-card {
        opacity: 0.85;
        transform: scale(0.98) translateX(-10px);
        filter: blur(0.3px);
        z-index: 1;
    }

    /* Next card (to the right) */
    .testimonial-card.next-card {
        opacity: 0.85;
        transform: scale(0.98) translateX(10px);
        filter: blur(0.3px);
        z-index: 1;
    }

    /* Fixed inner card structure */
    .testimonial-card-inner {
        background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(250,250,255,0.97));
        color: #2b1b5a;
        border-radius: 18px;
        padding: 25px;
        box-shadow: 0 6px 20px rgba(15,12,40,0.1);
        border: 1px solid rgba(107,84,210,0.08);
        height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .testimonial-card-inner:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(15,12,40,0.15);
    }

    .dark-mode .testimonial-card-inner {
        background: linear-gradient(135deg, rgba(45,40,75,0.95), rgba(35,30,65,0.97));
        color: #e2e0f0;
        border: 1px solid rgba(107,84,210,0.15);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }

    .dark-mode .testimonial-card-inner:hover {
        box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    }

    /* Gold accent line at top */
    .testimonial-card-inner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ffd700, #ffed4e);
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    /* Fixed quote mark */
    .testimonial-quote {
        position: absolute;
        top: 10px;
        left: 15px;
        font-size: 50px;
        color: rgba(107,84,210,0.1);
        font-family: Georgia, serif;
        line-height: 1;
        z-index: 1;
    }

    .dark-mode .testimonial-quote {
        color: rgba(107,84,210,0.15);
    }

    /* Fixed rating section */
    .testimonial-rating {
        margin-bottom: 15px;
        display: flex;
        gap: 4px;
        z-index: 2;
        position: relative;
    }

    .star {
        color: #fbbf24;
        font-size: 1.1rem;
    }

    .star.empty {
        color: #d1d5db;
    }

    .dark-mode .star.empty {
        color: #475569;
    }

    /* Fixed text container with scroll if needed */
    .testimonial-text-container {
        flex: 1;
        margin-bottom: 20px;
        position: relative;
        z-index: 2;
        min-height: 150px; /* Fixed minimum height */
        max-height: 180px; /* Fixed maximum height */
        overflow: hidden;
    }

    /* Fixed text with truncation */
    .testimonial-text {
        margin: 0;
        font-style: italic;
        line-height: 1.5;
        color: #3c2e66;
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 7.5em; /* 5 lines * line-height */
    }

    .dark-mode .testimonial-text {
        color: #e2e0f0;
    }

    /* Fixed Read More button area - ALWAYS VISIBLE */
    .read-more-section {
        margin-top: auto;
        padding-top: 15px;
        border-top: 1px solid rgba(107,84,210,0.1);
        z-index: 3;
        position: relative;
        background: inherit;
    }

    .read-more-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #667eea;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        padding: 8px 16px;
        background: rgba(107,84,210,0.08);
        border: 1px solid rgba(107,84,210,0.15);
        border-radius: 20px;
        transition: all 0.3s ease;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .read-more-link:hover {
        background: rgba(107,84,210,0.15);
        color: #4c63d2;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(107,84,210,0.2);
    }

    .read-more-link i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .read-more-link:hover i {
        transform: translateX(3px);
    }

    .dark-mode .read-more-link {
        background: rgba(107,84,210,0.15);
        border-color: rgba(107,84,210,0.3);
        color: #a78bfa;
    }

    .dark-mode .read-more-link:hover {
        background: rgba(107,84,210,0.25);
        color: #8b5fbf;
    }

    /* Fixed author section */
    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(107,84,210,0.1);
        z-index: 2;
        position: relative;
    }

    .author-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(139,95,191,0.18);
        background: linear-gradient(135deg, rgba(139,95,191,0.08), rgba(101,78,163,0.04));
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(101,78,163,0.08);
    }

    .dark-mode .author-avatar {
        border: 2px solid rgba(139,95,191,0.25);
        background: linear-gradient(135deg, rgba(139,95,191,0.12), rgba(101,78,163,0.08));
    }

    .author-info h4 {
        margin: 0;
        font-size: 1rem;
        color: #23143f;
        font-weight: 700;
    }

    .dark-mode .author-info h4 {
        color: #ffffff;
    }

    .author-info p {
        margin: 4px 0 0 0;
        color: #6b5b95;
        font-size: 0.88rem;
    }

    .dark-mode .author-info p {
        color: #b8b0d0;
    }

    /* Edit/Delete buttons - fixed position */
    .testimonial-actions {
        position: absolute;
        top: 15px;
        right: 15px;
        display: flex;
        gap: 8px;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .testimonial-card-inner:hover .testimonial-actions {
        opacity: 1;
    }

    .btn-edit,
    .btn-delete {
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(107,84,210,0.15);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #6b5b95;
        box-shadow: 0 4px 12px rgba(15,12,40,0.1);
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

    .dark-mode .btn-edit,
    .dark-mode .btn-delete {
        background: rgba(45,40,75,0.9);
        border-color: rgba(107,84,210,0.3);
        color: #b8b0d0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .btn-edit:hover {
        background: rgba(76,175,80,0.12);
        color: #2c7a2c;
        transform: scale(1.1);
    }

    .dark-mode .btn-edit:hover {
        background: rgba(76,175,80,0.25);
        color: #4ade80;
    }

    .btn-delete:hover {
        background: rgba(244,67,54,0.12);
        color: #b91c1c;
        transform: scale(1.1);
    }

    .dark-mode .btn-delete:hover {
        background: rgba(244,67,54,0.25);
        color: #f87171;
    }

    /* ==========================
    SWIPE & DRAG STYLES
    ========================== */

    /* Dragging state for track */
    .testimonials-track.dragging {
        cursor: grabbing !important;
        user-select: none;
        transition: none !important;
    }

    .testimonials-track.dragging .testimonial-card-inner {
        transition: none !important;
    }

    /* Touch feedback for mobile */
    .testimonial-card {
        touch-action: pan-y pinch-zoom;
        user-select: none;
    }

    /* Swipe hint animation */
    @keyframes swipeHint {
        0%, 100% { transform: translateX(0) scale(1); }
        50% { transform: translateX(-10px) scale(1.05); }
    }

    .swipe-instruction {
        display: none;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 25px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95rem;
        font-weight: 500;
        animation: fadeInOut 3s ease-in-out infinite;
    }

    .swipe-instruction i {
        font-size: 1.2rem;
        animation: swipeHint 2s ease-in-out infinite;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }

    /* Show only on touch devices */
    @media (hover: none) and (pointer: coarse) {
        .swipe-instruction {
            display: flex;
        }

        .carousel-btn {
            width: 48px;
            height: 48px;
        }

        .carousel-dot {
            width: 16px;
            height: 16px;
        }
    }

    /* Smooth transitions for all interactive elements */
    .testimonial-card,
    .carousel-btn,
    .carousel-dot {
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Momentum scrolling for iOS */
    .testimonials-track {
        -webkit-overflow-scrolling: touch;
    }

    /* LOADING AND EMPTY STATES */
    .loading-state,
    .empty-testimonials {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 80px 20px;
      text-align: center;
      color: rgba(255, 255, 255, 0.9);
      grid-column: 1 / -1;
      width: 100%;
    }

    .loading-state i,
    .empty-testimonials i {
      font-size: 3.5rem;
      margin-bottom: 1.5rem;
      opacity: 0.8;
      animation: pulse 2s infinite;
    }

    .loading-state p,
    .empty-testimonials h4,
    .empty-testimonials p {
      margin: 0.75rem 0;
    }

    .empty-testimonials h4 {
      font-size: 1.5rem;
      color: #fff;
      font-weight: 600;
    }

    .empty-testimonials p {
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.8);
      max-width: 500px;
      line-height: 1.6;
    }

    /* ==========================
    TESTIMONIAL DETAIL MODAL
    ========================== */
    .testimonial-detail-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        animation: modalFadeIn 0.3s ease-out;
    }

    @keyframes modalFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .testimonial-detail-modal .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
    }

    .testimonial-detail-modal .modal-content {
        position: relative;
        background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,250,255,0.99));
        border-radius: 24px;
        padding: 45px;
        max-width: 650px;
        width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(107,84,210,0.15);
        animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .dark-mode .testimonial-detail-modal .modal-content {
        background: linear-gradient(135deg, rgba(45,40,75,0.98), rgba(35,30,65,0.99));
        border: 1px solid rgba(107,84,210,0.25);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    }

    .testimonial-detail-modal .close-modal {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        font-size: 24px;
        color: #6b5b95;
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .dark-mode .testimonial-detail-modal .close-modal {
        background: rgba(45,40,75,0.9);
        color: #b8b0d0;
    }

    .testimonial-detail-modal .close-modal:hover {
        background: rgba(107,84,210,0.15);
        color: #4c63d2;
        transform: rotate(90deg);
    }

    .testimonial-detail-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 35px;
        padding-bottom: 25px;
        border-bottom: 2px solid rgba(107,84,210,0.15);
    }

    .testimonial-detail-header .author-info {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .testimonial-detail-header .author-avatar {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(139,95,191,0.25);
        background: linear-gradient(135deg, rgba(139,95,191,0.15), rgba(101,78,163,0.08));
        box-shadow: 0 8px 24px rgba(101,78,163,0.15);
    }

    .testimonial-detail-header .author-info h3 {
        margin: 0;
        font-size: 1.5rem;
        color: #23143f;
        font-weight: 800;
    }

    .dark-mode .testimonial-detail-header .author-info h3 {
        color: #ffffff;
    }

    .testimonial-detail-header .author-role {
        margin: 8px 0 0 0;
        color: #6b5b95;
        font-size: 1rem;
        font-weight: 500;
    }

    .dark-mode .testimonial-detail-header .author-role {
        color: #b8b0d0;
    }

    .testimonial-detail-header .testimonial-rating {
        display: flex;
        gap: 6px;
        align-items: center;
        margin-right: 50px;
    }

    .testimonial-detail-header .star {
        color: #fbbf24;
        font-size: 1.4rem;
    }

    .testimonial-detail-header .star.empty {
        color: #d1d5db;
    }

    .dark-mode .testimonial-detail-header .star.empty {
        color: #475569;
    }

    .testimonial-detail-content {
        position: relative;
        padding: 10px 0;
    }

    .testimonial-detail-content .testimonial-quote {
        position: absolute;
        top: -20px;
        left: -15px;
        font-size: 80px;
        color: rgba(107,84,210,0.12);
        font-family: Georgia, serif;
        line-height: 1;
        z-index: 1;
    }

    .dark-mode .testimonial-detail-content .testimonial-quote {
        color: rgba(107,84,210,0.2);
    }

    .testimonial-detail-content .testimonial-full-text {
        font-size: 1.15rem;
        line-height: 1.7;
        color: #3c2e66;
        margin: 0 0 25px 0;
        padding: 20px;
        background: rgba(107,84,210,0.04);
        border-radius: 16px;
        position: relative;
        z-index: 2;
    }

    .dark-mode .testimonial-detail-content .testimonial-full-text {
        color: #e2e0f0;
        background: rgba(107,84,210,0.08);
    }

    .testimonial-detail-content .testimonial-date {
        font-size: 0.95rem;
        color: #8b8b8b;
        text-align: right;
        margin: 25px 0 0 0;
        padding-top: 20px;
        border-top: 1px solid rgba(107,84,210,0.15);
        font-style: italic;
    }

    .dark-mode .testimonial-detail-content .testimonial-date {
        color: #b8b0d0;
    }

    /* RESPONSIVE DESIGN */
    @media (max-width: 1024px) {
        .testimonial-card {
            flex: 0 0 300px;
            height: 400px;
        }

        .testimonials-header h2 {
            font-size: 2.3rem;
        }

        .testimonials-header p {
            font-size: 1.1rem;
            max-width: 600px;
        }
    }

    @media (max-width: 768px) {
        #testimonials {
            padding: 40px 0;
        }

        .testimonials-header {
            margin-bottom: 40px;
        }

        .testimonials-header h2 {
            font-size: 2rem;
        }

        .testimonials-header p {
            font-size: 1rem;
            padding: 0 20px;
        }

        .carousel-nav-container {
            flex-direction: column;
            gap: 20px;
            padding: 15px;
        }

        .carousel-dots {
            order: -1;
        }

        .auto-play-indicator {
            margin: 10px 0 0 0;
        }

        .testimonial-detail-modal .modal-content {
            padding: 30px;
            margin: 20px;
        }

        .testimonial-detail-header {
            flex-direction: column;
            gap: 20px;
            align-items: flex-start;
        }

        .testimonial-detail-header .author-info {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .testimonial-card {
            flex: 0 0 280px;
            height: 380px;
        }

        .testimonial-card-inner {
            padding: 20px;
        }

        .testimonials-track {
            gap: 20px;
            padding: 15px;
        }

        .testimonials-header h2 {
            font-size: 1.8rem;
        }

        #testimonialBtn {
            padding: 12px 24px;
            font-size: 0.95rem;
        }

        .testimonial-detail-modal .modal-content {
            padding: 25px 20px;
        }

        .testimonial-detail-header .author-info {
            flex-direction: column;
            text-align: center;
            gap: 15px;
        }

        .testimonial-detail-header .author-avatar {
            width: 60px;
            height: 60px;
        }

        .testimonial-detail-header .author-info h3 {
            font-size: 1.3rem;
        }
    }

    /* ==========================
    MODAL STYLES
    ========================== */

    /* MODAL CONTAINERS */
    #testimonialModal,
    #deleteConfirmModal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    /* MODAL OVERLAY */
    #testimonialModal .modal-overlay,
    #deleteConfirmModal .modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      pointer-events: none;
    }

    .dark-mode #testimonialModal .modal-overlay,
    .dark-mode #deleteConfirmModal .modal-overlay {
      background: rgba(7, 7, 12, 0.7);
    }

    /* MODAL CONTENT */
    #testimonialModal .modal-content,
    #deleteConfirmModal .modal-content {
      position: relative;
      z-index: 10;
      width: 94%;
      max-width: 520px;
      background: #ffffff;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
      color: #1f2937;
      max-height: 90vh;
      overflow-y: auto;
      pointer-events: auto;
    }

    .dark-mode #testimonialModal .modal-content,
    .dark-mode #deleteConfirmModal .modal-content {
      background: #1f1b2e;
      color: #fff;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    }

    /* MODAL HEADER */
    #testimonialModal .modal-header,
    #deleteConfirmModal .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
      position: relative;
      padding-right: 40px;
    }

    #testimonialModal .modal-header h3,
    #deleteConfirmModal .modal-header h3 {
      margin: 0;
      font-size: 1.4rem;
      font-weight: 700;
      flex: 1;
    }

    /* MODAL CLOSE BUTTON */
    #testimonialModal .close-btn,
    #deleteConfirmModal .close-btn {
      position: absolute;
      top: -8px;
      right: -8px;
      background: rgba(0, 0, 0, 0.1);
      border: none;
      font-size: 20px;
      font-weight: bold;
      color: #4b5563;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, transform 0.2s ease;
      z-index: 25;
    }

    .dark-mode #testimonialModal .close-btn,
    .dark-mode #deleteConfirmModal .close-btn {
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
    }

    #testimonialModal .close-btn:hover,
    #deleteConfirmModal .close-btn:hover {
      background: rgba(0, 0, 0, 0.15);
      transform: scale(1.1);
    }

    .dark-mode #testimonialModal .close-btn:hover,
    .dark-mode #deleteConfirmModal .close-btn:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    /* ==========================
       TESTIMONIAL FORM STYLES
       ========================== */

    /* FORM CONTAINER */
    #testimonialForm {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 20px;
      font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    /* FORM GROUPS */
    #testimonialForm .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    #testimonialForm label {
      font-weight: 600;
      color: #374151;
      font-size: 0.95rem;
    }

    .dark-mode #testimonialForm label {
      color: #e0e0e0;
    }

    /* FORM INPUTS */
    #testimonialForm input,
    #testimonialForm textarea {
      width: 100%;
      padding: 12px 14px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: #ffffff;
      color: #1f2937;
      font-size: 0.95rem;
      box-sizing: border-box;
      transition: border 0.3s ease, box-shadow 0.3s ease;
    }

    .dark-mode #testimonialForm input,
    .dark-mode #testimonialForm textarea {
      border: 1px solid #555;
      background: #2b263b;
      color: #fff;
    }

    #testimonialForm input:focus,
    #testimonialForm textarea:focus {
      border-color: #8b5fbf;
      box-shadow: 0 0 6px rgba(139, 95, 191, 0.3);
      outline: none;
    }

    .dark-mode #testimonialForm input:focus,
    .dark-mode #testimonialForm textarea:focus {
      border-color: #ffd700;
      box-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
    }

    #testimonialForm textarea {
      min-height: 100px;
      resize: vertical;
    }

    /* FORM ACTIONS */
    #testimonialForm .form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 8px;
    }

    #testimonialForm button {
      border: none;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    #testimonialForm button:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    /* PRIMARY BUTTON */
    #testimonialForm .btn-primary {
      background: linear-gradient(90deg, #8b5fbf, #654ea3);
      color: #fff;
    }

    /* SECONDARY BUTTON */
    #testimonialForm .btn-secondary {
      background: #9ca3af;
      color: #1f2937;
    }

    .dark-mode #testimonialForm .btn-secondary {
      background: #6b7280;
      color: #fff;
    }

    /* STAR RATING IN MODAL */
    #testimonialModal .simple-rating {
      display: flex;
      gap: 6px;
      justify-content: center;
      margin: 8px 0;
    }

    #testimonialModal .star-btn {
      background: none;
      border: none;
      font-size: 22px;
      color: #d1d5db;
      cursor: pointer;
      transition: color 0.3s ease, transform 0.2s ease;
      padding: 4px;
    }

    .dark-mode #testimonialModal .star-btn {
      color: #cfc7e9;
    }

    #testimonialModal .star-btn.active {
      color: #ffd700;
      transform: scale(1.2);
    }

    #testimonialModal .star-btn:hover {
      color: #ffda56;
      transform: scale(1.1);
    }

    /* ==========================
       DELETE CONFIRMATION MODAL STYLES
       ========================== */

    /* DELETE CONFIRMATION CONTENT */
    .delete-confirm-content {
      text-align: center;
      padding: 20px 0;
    }

    .delete-confirm-content i {
      font-size: 3rem;
      color: #f87171;
      margin-bottom: 20px;
    }

    .delete-confirm-content h4 {
      font-size: 1.3rem;
      margin-bottom: 10px;
      color: #1f2937;
    }

    .dark-mode .delete-confirm-content h4 {
      color: #fff;
    }

    .delete-confirm-content p {
      color: #6b7280;
      margin-bottom: 25px;
      line-height: 1.5;
    }

    .dark-mode .delete-confirm-content p {
      color: #d1d5db;
    }

    /* DELETE ACTIONS */
    .delete-actions {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 25px;
    }

    .btn-cancel {
      background: #d1d5db;
      color: #374151;
      border: none;
      padding: 10px 24px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .dark-mode .btn-cancel {
      background: #4b5563;
      color: #fff;
    }

    .btn-cancel:hover {
      background: #9ca3af;
      transform: translateY(-2px);
    }

    .dark-mode .btn-cancel:hover {
      background: #6b7280;
    }

    .btn-confirm-delete {
      background: linear-gradient(90deg, #ef4444, #dc2626);
      color: white;
      border: none;
      padding: 10px 24px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-confirm-delete:hover {
      background: linear-gradient(90deg, #dc2626, #b91c1c);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
    }

    /* ==========================
       ANIMATION KEYFRAMES
       ========================== */

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

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
      100% {
        transform: scale(1);
      }
    }

    @keyframes shimmer {
      0% {
        background-position: -200% center;
      }
      100% {
        background-position: 200% center;
      }
    }

    /* ANIMATION CLASSES */
    .fade-in {
      animation: fadeIn 0.5s ease forwards;
    }

    .slide-in {
      animation: slideIn 0.4s ease forwards;
    }

    .pulse {
      animation: pulse 2s infinite;
    }

    .shimmer {
      background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%);
      background-size: 200% auto;
      animation: shimmer 2s infinite;
    }

    /* ==========================
       ACCESSIBILITY STYLES
       ========================== */

    /* Focus styles for keyboard navigation */
    #testimonialBtn:focus,
    .carousel-btn:focus,
    .btn-edit:focus,
    .btn-delete:focus,
    #testimonialForm input:focus,
    #testimonialForm textarea:focus,
    #testimonialForm button:focus,
    .carousel-dot:focus,
    .auto-play-toggle:focus,
    .modal-content button:focus {
      outline: 2px solid #667eea;
      outline-offset: 2px;
    }

    .dark-mode #testimonialBtn:focus,
    .dark-mode .carousel-btn:focus,
    .dark-mode .btn-edit:focus,
    .dark-mode .btn-delete:focus,
    .dark-mode #testimonialForm input:focus,
    .dark-mode #testimonialForm textarea:focus,
    .dark-mode #testimonialForm button:focus,
    .dark-mode .carousel-dot:focus,
    .dark-mode .auto-play-toggle:focus,
    .dark-mode .modal-content button:focus {
      outline: 2px solid #ffd700;
    }

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

    /* High contrast mode support */
    @media (prefers-contrast: high) {
      #testimonials {
        background: #4c63d2;
      }

      .testimonial-card-inner {
        background: #ffffff;
        border: 2px solid #000000;
      }

      .dark-mode .testimonial-card-inner {
        background: #000000;
        border: 2px solid #ffffff;
      }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }

      .testimonials-track {
        transition: none;
      }

      .testimonial-card-inner:hover {
        transform: none;
      }

      #testimonialBtn:hover,
      .carousel-btn:hover,
      .btn-edit:hover,
      .btn-delete:hover,
      #testimonialForm button:hover {
        transform: none;
      }
    }

    /* ==========================
       UTILITY CLASSES
       ========================== */

    .text-center {
      text-align: center;
    }

    .mt-20 {
      margin-top: 20px;
    }

    .mb-20 {
      margin-bottom: 20px;
    }

    .mt-40 {
      margin-top: 40px;
    }

    .mb-40 {
      margin-bottom: 40px;
    }

    .hidden {
      display: none !important;
    }

    .visible {
      display: block !important;
    }

    .flex {
      display: flex;
    }

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

    .flex-column {
      flex-direction: column;
    }

    .flex-wrap {
      flex-wrap: wrap;
    }

    .items-center {
      align-items: center;
    }

    .justify-between {
      justify-content: space-between;
    }

    .gap-10 {
      gap: 10px;
    }

    .gap-20 {
      gap: 20px;
    }

    .w-full {
      width: 100%;
    }

    .h-full {
      height: 100%;
    }

    .p-20 {
      padding: 20px;
    }

    .p-30 {
      padding: 30px;
    }

    .rounded-lg {
      border-radius: 12px;
    }

    .rounded-full {
      border-radius: 50%;
    }

    .shadow-lg {
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .shadow-xl {
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .border {
      border: 1px solid #e5e7eb;
    }

    .dark-mode .border {
      border: 1px solid #4b5563;
    }

    /* ==========================
       RESPONSIVE STYLES
       ========================== */

    @media (max-width: 1200px) {
      .testimonials-container {
        width: 95%;
      }

      .testimonials-carousel {
        max-width: 1000px;
      }
    }

    @media (max-width: 1024px) {
      .testimonial-card {
        flex: 0 0 calc(50% - 15px);
      }

      .testimonials-header h2 {
        font-size: 2.2rem;
      }

      .testimonials-carousel {
        max-width: 900px;
      }
    }

    @media (max-width: 768px) {
      #testimonials {
        padding: 40px 0;
      }

      .testimonials-header {
        margin-bottom: 40px;
      }

      .testimonials-header h2 {
        font-size: 1.8rem;
      }

      .testimonials-header p {
        font-size: 1rem;
        padding: 0 15px;
      }

      .testimonial-card {
        flex: 0 0 100%;
        padding: 15px;
      }

      .testimonial-card-inner {
        padding: 25px;
        min-height: 280px;
      }

      .carousel-nav {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
      }

      .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
      }

      .carousel-prev {
        left: 5px;
      }

      .carousel-next {
        right: 5px;
      }

      .auto-play-indicator {
        font-size: 0.85rem;
        padding: 6px 14px;
      }

      .auto-play-text {
        min-width: 70px;
      }

      /* Modal adjustments */
      #testimonialModal .modal-content,
      #deleteConfirmModal .modal-content {
        width: 96%;
        padding: 20px;
      }

      #testimonialModal .modal-header h3,
      #deleteConfirmModal .modal-header h3 {
        font-size: 1.2rem;
      }
    }

    @media (max-width: 576px) {
      #testimonials {
        padding: 30px 0;
      }

      .testimonials-header {
        margin-bottom: 30px;
      }

      .testimonials-header h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
      }

      .testimonials-header h2::after {
        width: 50px;
        height: 2px;
        bottom: -6px;
      }

      #testimonialBtn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 20px;
      }

      .testimonial-card {
        padding: 10px;
      }

      .testimonial-card-inner {
        padding: 20px;
        min-height: 260px;
      }

      .testimonial-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
      }

      .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
      }

      .author-info {
        text-align: center;
      }

      .carousel-btn {
        display: none;
      }

      .carousel-dots {
        margin-top: 15px;
      }

      .carousel-dot {
        width: 10px;
        height: 10px;
      }

      .carousel-progress {
        width: 120px;
        height: 4px;
      }

      /* Modal mobile adjustments */
      #testimonialModal .modal-content,
      #deleteConfirmModal .modal-content {
        width: 98%;
        padding: 16px;
      }

      #testimonialForm .form-actions {
        flex-direction: column;
        gap: 10px;
      }

      #testimonialForm button {
        width: 100%;
        justify-content: center;
      }

      .delete-actions {
        flex-direction: column;
        gap: 10px;
      }

      .btn-cancel,
      .btn-confirm-delete {
        width: 100%;
        justify-content: center;
      }
    }

    @media (max-width: 400px) {
      .testimonials-header h2 {
        font-size: 1.4rem;
      }

      .testimonials-header p {
        font-size: 0.9rem;
      }

      .testimonial-card-inner {
        padding: 16px;
      }

      .testimonial-text {
        font-size: 0.85rem;
      }

      .author-avatar {
        width: 40px;
        height: 40px;
      }

      .author-info h4 {
        font-size: 0.9rem;
      }

      .author-info p {
        font-size: 0.8rem;
      }

      .testimonial-rating {
        margin-bottom: 10px;
      }

      .star {
        font-size: 1rem;
      }
    }

    /* MISSING MOBILE RESPONSIVE FIXES */

    /* Override for mobile screens to fix oversized cards */
    @media (max-width: 768px) {
      /* CRITICAL FIX: Override the fixed card width for mobile */
      .testimonial-card {
        flex: 0 0 calc(100vw - 60px) !important; /* Responsive width */
        min-width: 0; /* Allow cards to shrink */
        height: auto !important; /* Auto height instead of fixed 420px */
        min-height: 380px; /* Minimum height */
      }

      /* Adjust the carousel container width */
      .testimonials-carousel {
        width: calc(100% - 20px);
        margin: 0 auto;
      }

      /* Ensure track doesn't overflow */
      .testimonials-track {
        width: 100%;
      }
    }

    /* For smaller mobile screens */
    @media (max-width: 480px) {
      .testimonial-card {
        flex: 0 0 calc(100vw - 40px) !important;
        min-height: 350px;
      }

      /* Reduce gap between cards on small screens */
      .testimonials-track {
        gap: 15px;
      }
    }

    /* For very small phones */
    @media (max-width: 375px) {
      .testimonial-card {
        flex: 0 0 calc(100vw - 30px) !important;
        min-height: 320px;
      }

      .testimonial-card-inner {
        padding: 15px;
      }
    }

    /* Fix for landscape mode on mobile */
    @media (max-width: 768px) and (orientation: landscape) {
      .testimonial-card {
        flex: 0 0 calc(50vw - 40px) !important;
        height: 300px !important;
      }
    }

    /* Touch device optimizations */
    @media (hover: none) and (pointer: coarse) {
      .testimonial-card {
        /* Make cards more touch-friendly */
        margin: 5px 0;
      }

      /* Increase touch target for read more */
      .read-more-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    /* Responsive to Testimonials Section */
    @media (max-width: 768px) and (orientation: landscape) {
      .testimonial-card {
        flex: 0 0 calc(50vw - 40px) !important;
        height: 280px !important;
        min-height: 280px;
      }

      .testimonial-text-container {
        min-height: 100px;
        max-height: 120px;
      }

      .testimonial-text {
        -webkit-line-clamp: 3;
        max-height: 4.5em;
      }

      .testimonials-header {
        margin-bottom: 30px;
      }

      .testimonials-header h2 {
        font-size: 1.6rem;
      }

      .testimonials-header p {
        display: none;
      }
    }

    @media (max-width: 480px) and (orientation: landscape) {
      #testimonials {
        padding: 30px 0;
      }

      .testimonial-card {
        flex: 0 0 calc(60vw - 40px) !important;
        height: 260px !important;
      }

      .testimonial-card-inner {
        padding: 15px;
      }

      .testimonial-author {
        margin-top: 10px;
        padding-top: 10px;
      }

      .author-avatar {
        width: 36px;
        height: 36px;
      }

      .author-info h4 {
        font-size: 0.9rem;
      }

      .author-info p {
        font-size: 0.8rem;
      }

      .carousel-nav-container {
        margin-top: 20px;
        padding: 8px 16px;
      }

      .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
      }
    }

    /* ==========================
       PRINT STYLES
       ========================== */

    @media print {
      #testimonials {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 20px 0 !important;
      }

      .testimonials-header h2 {
        color: #000000 !important;
      }

      .testimonials-header p {
        color: #333333 !important;
      }

      .testimonial-card-inner {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        break-inside: avoid;
      }

      .testimonial-text {
        color: #000000 !important;
      }

      .author-info h4 {
        color: #000000 !important;
      }

      .author-info p {
        color: #666666 !important;
      }

      .carousel-btn,
      .carousel-nav,
      .testimonial-actions,
      #testimonialBtn {
        display: none !important;
      }

      .testimonials-track {
        display: block !important;
        transform: none !important;
      }

      .testimonial-card {
        flex: none !important;
        width: 100% !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
      }
    }

    /* HOVER ANIMATIONS */
    .testimonial-card-inner:hover .testimonial-text {
      -webkit-line-clamp: 10;
      overflow: visible;
    }

    .testimonial-card-inner:hover .testimonial-text::before {
      color: rgba(107,84,210,0.15);
    }

    .dark-mode .testimonial-card-inner:hover .testimonial-text::before {
      color: rgba(107,84,210,0.25);
    }

    /* FORM VALIDATION STYLES */
    #testimonialForm input:invalid,
    #testimonialForm textarea:invalid {
      border-color: #ef4444;
      background-color: rgba(239,68,68,0.05);
    }

    .dark-mode #testimonialForm input:invalid,
    .dark-mode #testimonialForm textarea:invalid {
      border-color: #f87171;
      background-color: rgba(248,113,113,0.1);
    }

    #testimonialForm input:valid,
    #testimonialForm textarea:valid {
      border-color: #10b981;
      background-color: rgba(16,185,129,0.05);
    }

    .dark-mode #testimonialForm input:valid,
    .dark-mode #testimonialForm textarea:valid {
      border-color: #34d399;
      background-color: rgba(52,211,153,0.1);
    }

    .error-message {
      color: #ef4444;
      font-size: 0.85rem;
      margin-top: 4px;
      display: none;
    }

    .dark-mode .error-message {
      color: #f87171;
    }

    /* SUCCESS/ERROR MESSAGES */
    .message {
      position: fixed;
      top: 20px;
      right: 20px;
      padding: 12px 24px;
      border-radius: 8px;
      color: white;
      font-weight: 600;
      z-index: 99999;
      animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .message.success {
      background: linear-gradient(90deg, #10b981, #059669);
    }

    .message.error {
      background: linear-gradient(90deg, #ef4444, #dc2626);
    }

    .message.info {
      background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    }

    @keyframes fadeOut {
      from {
        opacity: 1;
        transform: translateX(0);
      }
      to {
        opacity: 0;
        transform: translateX(100px);
      }
    }

    /* TOOLTIPS */
    .tooltip {
      position: relative;
      display: inline-block;
    }

    .tooltip .tooltiptext {
      visibility: hidden;
      width: 120px;
      background-color: #374151;
      color: #fff;
      text-align: center;
      border-radius: 6px;
      padding: 5px;
      position: absolute;
      z-index: 1000;
      bottom: 125%;
      left: 50%;
      margin-left: -60px;
      opacity: 0;
      transition: opacity 0.3s;
      font-size: 0.8rem;
      font-weight: normal;
    }

    .tooltip .tooltiptext::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      margin-left: -5px;
      border-width: 5px;
      border-style: solid;
      border-color: #374151 transparent transparent transparent;
    }

    .tooltip:hover .tooltiptext {
      visibility: visible;
      opacity: 1;
    }

    .dark-mode .tooltip .tooltiptext {
      background-color: #1f2937;
    }

    .dark-mode .tooltip .tooltiptext::after {
      border-color: #1f2937 transparent transparent transparent;
    }

    /* CUSTOM SCROLLBAR FOR MODAL */
    .modal-content::-webkit-scrollbar {
      width: 8px;
    }

    .modal-content::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
    }

    .dark-mode .modal-content::-webkit-scrollbar-track {
      background: #2d3748;
    }

    .modal-content::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 4px;
    }

    .dark-mode .modal-content::-webkit-scrollbar-thumb {
      background: #4a5568;
    }

    .modal-content::-webkit-scrollbar-thumb:hover {
      background: #a1a1a1;
    }

    .dark-mode .modal-content::-webkit-scrollbar-thumb:hover {
      background: #718096;
    }

    /* LOADING SPINNER */
    .spinner {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255,255,255,0.3);
      border-radius: 50%;
      border-top-color: #fff;
      animation: spin 1s ease-in-out infinite;
    }

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

    .dark-mode .spinner {
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
    }

    /* PLACEHOLDER LOADING ANIMATION */
    .loading-shimmer {
      background: linear-gradient(90deg,
        rgba(255,255,255,0.1) 25%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.1) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
    }

    .dark-mode .loading-shimmer {
      background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 75%);
    }

    /* EMPTY STATE BUTTON */
    .empty-testimonials .add-first-btn {
      margin-top: 20px;
      background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
      color: #fff;
      border: 1px solid rgba(255,255,255,0.2);
      padding: 10px 20px;
      border-radius: 50px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
    }

    .empty-testimonials .add-first-btn:hover {
      background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.12));
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

    /* CAROUSEL STATE INDICATORS */
    .carousel-state {
      display: flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,0.8);
      font-size: 0.9rem;
      background: rgba(255,255,255,0.1);
      padding: 6px 12px;
      border-radius: 20px;
      backdrop-filter: blur(10px);
    }

    .carousel-state i {
      color: #ffd700;
      font-size: 1rem;
    }

    /* NO TESTIMONIALS FALLBACK */
    .no-testimonials-fallback {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      text-align: center;
      background: rgba(255,255,255,0.05);
      border-radius: 20px;
      border: 2px dashed rgba(255,255,255,0.15);
      margin: 20px 0;
    }

    .no-testimonials-fallback i {
      font-size: 3rem;
      color: rgba(255,255,255,0.5);
      margin-bottom: 20px;
    }

    .no-testimonials-fallback h3 {
      color: #fff;
      margin-bottom: 10px;
      font-size: 1.4rem;
    }

    .no-testimonials-fallback p {
      color: rgba(255,255,255,0.7);
      margin-bottom: 20px;
      max-width: 400px;
    }

    /* TESTIMONIAL COUNTER */
    .testimonial-counter {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(255,255,255,0.1);
      color: #fff;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.15);
    }

    .dark-mode .testimonial-counter {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
    }

    /* SORT/FILTER CONTROLS (if added later) */
    .testimonial-controls {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 15px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .sort-select {
      background: rgba(255,255,255,0.1);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.2);
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 0.9rem;
      backdrop-filter: blur(10px);
      cursor: pointer;
      min-width: 150px;
    }

    .sort-select option {
      background: #2b1b5a;
      color: #fff;
    }

    .dark-mode .sort-select {
      background: rgba(255,255,255,0.05);
    }

    /* ==========================
       FINAL UTILITY CLASSES
       ========================== */

    /* Text colors */
    .text-primary {
      color: #6b5b95;
    }

    .dark-mode .text-primary {
      color: #b8b0d0;
    }

    .text-secondary {
      color: #8b5fbf;
    }

    .text-accent {
      color: #ffd700;
    }

    .text-muted {
      color: rgba(255,255,255,0.6);
    }

    /* Background colors */
    .bg-primary {
      background-color: #6b5b95;
    }

    .bg-secondary {
      background-color: #8b5fbf;
    }

    .bg-accent {
      background-color: #ffd700;
    }

    /* Border utilities */
    .border-primary {
      border-color: #6b5b95;
    }

    .border-secondary {
      border-color: #8b5fbf;
    }

    .border-accent {
      border-color: #ffd700;
    }

    /* Opacity utilities */
    .opacity-50 {
      opacity: 0.5;
    }

    .opacity-75 {
      opacity: 0.75;
    }

    .opacity-90 {
      opacity: 0.9;
    }

    /* Z-index utilities */
    .z-10 {
      z-index: 10;
    }

    .z-20 {
      z-index: 20;
    }

    .z-30 {
      z-index: 30;
    }

    .z-40 {
      z-index: 40;
    }

    .z-50 {
      z-index: 50;
    }

    /* Transition utilities */
    .transition-all {
      transition: all 0.3s ease;
    }

    .transition-transform {
      transition: transform 0.3s ease;
    }

    .transition-opacity {
      transition: opacity 0.3s ease;
    }

    /* Cursor utilities */
    .cursor-pointer {
      cursor: pointer;
    }

    .cursor-not-allowed {
      cursor: not-allowed;
    }

    /* Position utilities */
    .position-relative {
      position: relative;
    }

    .position-absolute {
      position: absolute;
    }

    .position-fixed {
      position: fixed;
    }

    .position-sticky {
      position: sticky;
    }

    /* Display utilities */
    .d-block {
      display: block;
    }

    .d-inline-block {
      display: inline-block;
    }

    .d-inline-flex {
      display: inline-flex;
    }

    .d-grid {
      display: grid;
    }

    /* Overflow utilities */
    .overflow-hidden {
      overflow: hidden;
    }

    .overflow-auto {
      overflow: auto;
    }

    .overflow-visible {
      overflow: visible;
    }

    .overflow-scroll {
      overflow: scroll;
    }

    /* ==========================
       MEDIA QUERIES FOR VERY LARGE SCREENS
       ========================== */

    @media (min-width: 1400px) {
      .testimonials-container {
        max-width: 1300px;
      }

      .testimonials-carousel {
        max-width: 1200px;
      }

      .testimonial-card {
        flex: 0 0 calc(25% - 22.5px);
      }
    }

    @media (min-width: 1600px) {
      .testimonials-container {
        max-width: 1400px;
      }

      .testimonials-carousel {
        max-width: 1300px;
      }
    }

    /* ==========================
       FALLBACK FOR OLDER BROWSERS
       ========================== */

    /* Fallback for browsers without backdrop-filter support */
    @supports not (backdrop-filter: blur(10px)) {
      #testimonialBtn,
      .auto-play-indicator,
      .testimonial-counter,
      .carousel-state,
      .sort-select {
        background: rgba(255,255,255,0.2);
      }

      .dark-mode #testimonialBtn,
      .dark-mode .auto-play-indicator,
      .dark-mode .testimonial-counter,
      .dark-mode .carousel-state,
      .dark-mode .sort-select {
        background: rgba(45,40,75,0.9);
      }
    }

    /* Fallback for browsers without grid support */
    @supports not (display: grid) {
      .loading-state,
      .empty-testimonials {
        display: flex;
        width: 100%;
      }
    }

    /* ==========================
       PERFORMANCE OPTIMIZATIONS
       ========================== */

    /* Will-change hints for smooth animations */
    .testimonials-track {
      will-change: transform;
    }

    .testimonial-card-inner {
      will-change: transform, box-shadow;
    }

    .carousel-btn {
      will-change: transform, background-color;
    }

    /* Hardware acceleration */
    .testimonial-card-inner:hover {
      transform: translate3d(0, -6px, 0) scale3d(1.02, 1.02, 1);
    }

    .testimonials-track {
      transform: translate3d(0, 0, 0);
    }

    /* ==========================
    END OF TESTIMONIALS STYLES
    ========================== */

    /* COURSE , INTERNSHIP AND JOBS SECTIONS PART 2 BLOCK */

    /* Expiration Badge */
    .expiration-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #3b82f6;
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        z-index: 2;
    }

    .expiration-badge.expired {
        background: #ef4444;
    }

    .expiration-badge i {
        margin-right: 4px;
    }

    /* Additional Details */
    .additional-details {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .detail-item {
        display: flex;
        align-items: center;
        margin-bottom: 6px;
        font-size: 0.875rem;
        color: #6b7280;
    }

    .detail-item i {
        margin-right: 8px;
        width: 16px;
        color: #8b5fbf;
    }

    /* Enhanced Meta Information */
    .preview-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 12px 0;
    }

    .preview-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
        background: #f3f4f6;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 0.875rem;
        color: #4b5563;
    }

    /* Location and Company Styling */
    .location, .company {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #6b7280;
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    /* ====================== */
    /* FIX CONTENT CARD CUTTING ISSUES */
    /* ====================== */

    .preview-content {
      padding: 1.25rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: visible; /* Changed from hidden */
      min-height: 0; /* Allow content to shrink properly */
    }

    .preview-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      height: auto; /* Auto height based on content */
      min-height: 420px; /* Minimum height */
      max-height: none; /* No maximum height */
      border: 1px solid #e9ecef;
      position: relative;
    }

    /* Ensure content areas don't cut text */
    .description {
      color: #5d6d7e;
      font-size: 0.88rem;
      line-height: 1.4;
      margin-bottom: 1rem;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 3.6em; /* Ensure consistent height */
    }

    .additional-details {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #e5e7eb;
      flex-shrink: 0; /* Prevent shrinking */
    }

    .detail-item {
      display: flex;
      align-items: center;
      margin-bottom: 6px;
      font-size: 0.875rem;
      color: #6b7280;
      line-height: 1.3;
    }

    .detail-item i {
      margin-right: 8px;
      width: 16px;
      flex-shrink: 0;
    }

    /* ====================== */
    /* COLORFUL BADGE SYSTEM */
    /* ====================== */

    /* Base badge styles */
    .expiration-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      color: white;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .expiration-badge i {
      font-size: 0.7rem;
    }

    /* Active expiration badge - Green */
    .expiration-badge.active {
      background: linear-gradient(135deg, #10b981, #059669);
      border: 1px solid #059669;
    }

    /* Expired badge - Red */
    .expiration-badge.expired {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      border: 1px solid #dc2626;
    }

    /* Urgent expiration (within 3 days) - Orange */
    .expiration-badge.urgent {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      border: 1px solid #d97706;
    }

    /* ====================== */
    /* COLORFUL META BADGES */
    /* ====================== */

    .preview-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0;
      flex-shrink: 0;
    }

    .preview-meta span {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border: 1px solid;
    }

    /* Price/Salary badges - Green */
    .price, .salary {
      background: rgba(16, 185, 129, 0.1);
      color: #059669;
      border-color: rgba(16, 185, 129, 0.3);
    }

    /* Level/Type badges - Blue */
    .level, .type, .experience {
      background: rgba(59, 130, 246, 0.1);
      color: #1d4ed8;
      border-color: rgba(59, 130, 246, 0.3);
    }

    /* Stipend badges - Yellow */
    .stipend {
      background: rgba(245, 158, 11, 0.1);
      color: #d97706;
      border-color: rgba(245, 158, 11, 0.3);
    }

    /* Duration badges - Purple */
    .duration {
      background: rgba(139, 92, 246, 0.1);
      color: #7c3aed;
      border-color: rgba(139, 92, 246, 0.3);
    }

    /* Work type badges - Indigo */
    .work-type {
      background: rgba(99, 102, 241, 0.1);
      color: #4f46e5;
      border-color: rgba(99, 102, 241, 0.3);
    }

    /* Free badge - Emerald */
    .preview-meta .price:contains("Free") {
      background: rgba(16, 185, 129, 0.15);
      color: #047857;
      border-color: rgba(16, 185, 129, 0.4);
    }

    /* ====================== */
    /* CATEGORY BADGES */
    /* ====================== */

    .category-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-bottom: 8px;
      border: 1px solid;
    }

    /* Technology - Blue */
    .category-badge.technology {
      background: rgba(59, 130, 246, 0.1);
      color: #1d4ed8;
      border-color: rgba(59, 130, 246, 0.3);
    }

    /* Business - Green */
    .category-badge.business {
      background: rgba(16, 185, 129, 0.1);
      color: #059669;
      border-color: rgba(16, 185, 129, 0.3);
    }

    /* Design - Purple */
    .category-badge.design {
      background: rgba(139, 92, 246, 0.1);
      color: #7c3aed;
      border-color: rgba(139, 92, 246, 0.3);
    }

    /* Marketing - Pink */
    .category-badge.marketing {
      background: rgba(236, 72, 153, 0.1);
      color: #be185d;
      border-color: rgba(236, 72, 153, 0.3);
    }

    /* Science - Orange */
    .category-badge.science {
      background: rgba(249, 115, 22, 0.1);
      color: #c2410c;
      border-color: rgba(249, 115, 22, 0.3);
    }

    /* ====================== */
    /* LOCATION & COMPANY STYLING */
    /* ====================== */

    .location, .company {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #6b7280;
      font-size: 0.9rem;
      margin-bottom: 4px;
      flex-shrink: 0;
    }

    .location i, .company i {
      color: #8b5fbf;
      width: 14px;
    }

    /* ====================== */
    /* ACTION BUTTONS */
    /* ====================== */

    .action-buttons {
      display: flex;
      gap: 0.5rem;
      padding: 1rem 1.25rem;
      background: #f8f9fa;
      border-top: 1px solid #e9ecef;
      margin-top: auto; /* Push to bottom */
      flex-shrink: 0; /* Prevent shrinking */
      width: 100%;
    }

    .dark-mode .action-buttons {
      background: #1f2937;
      border-top-color: #374151;
    }

    /* ====================== */
    /* DARK MODE SUPPORT */
    /* ====================== */

    .dark-mode .preview-meta span {
      background: rgba(255, 255, 255, 0.05);
    }

    .dark-mode .price,
    .dark-mode .salary {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
    }

    .dark-mode .level,
    .dark-mode .type,
    .dark-mode .experience {
      background: rgba(59, 130, 246, 0.15);
      color: #60a5fa;
    }

    .dark-mode .stipend {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
    }

    .dark-mode .duration {
      background: rgba(139, 92, 246, 0.15);
      color: #a78bfa;
    }

    .dark-mode .work-type {
      background: rgba(99, 102, 241, 0.15);
      color: #818cf8;
    }

    .dark-mode .additional-details {
      border-top-color: #374151;
    }

    .dark-mode .detail-item {
      color: #9ca3af;
    }

    /* ====================== */
    /* RESPONSIVE */
    /* ====================== */

    @media (max-width: 768px) {
      .preview-card {
        min-height: 380px;
      }

      .preview-meta {
        gap: 6px;
      }

      .preview-meta span {
        font-size: 0.7rem;
        padding: 3px 6px;
      }

      .expiration-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
      }
    }

    @media (max-width: 576px) {
      .preview-content {
        padding: 1rem;
      }

      .action-buttons {
        padding: 0.75rem 1rem;
      }

      .preview-meta {
        flex-direction: column;
        align-items: flex-start;
      }
    }
    /* COURSE , INTERNSHIP AND JOBS SECTIONS END PART 2 BLOCK */

    /* ==========================
    LOADING SPINNER STYLES
    ========================== */

    .loading-spinner {
      display: none;
    }

    .loading-spinner i {
      animation: fa-spin 1s infinite linear;
    }

    @keyframes fa-spin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    /* Form message styles */
    .form-message {
      padding: 12px 16px;
      border-radius: 8px;
      margin-top: 16px;
      font-weight: 500;
      display: none;
    }

    .form-message.success {
      background: #d1fae5;
      color: #065f46;
      border: 1px solid #a7f3d0;
    }

    .dark-mode .form-message.success {
      background: #064e3b;
      color: #6ee7b7;
      border: 1px solid #059669;
    }

    .form-message.error {
      background: #fee2e2;
      color: #991b1b;
      border: 1px solid #fecaca;
    }

    .dark-mode .form-message.error {
      background: #7f1d1d;
      color: #fca5a5;
      border: 1px solid #ef4444;
    }

    /* Delete confirmation specific styles */
    #deleteConfirmModal .confirm-icon {
      text-align: center;
      margin-bottom: 20px;
    }

    #deleteConfirmModal .confirm-icon i {
      font-size: 3rem;
      color: #ef4444;
    }

    #deleteConfirmModal p {
      text-align: center;
      margin-bottom: 25px;
      line-height: 1.5;
    }

    #deleteConfirmModal .form-actions {
      justify-content: center;
    }

    #deleteConfirmModal .btn-danger {
      background: linear-gradient(90deg, #ef4444, #dc2626);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    #deleteConfirmModal .btn-danger:hover {
      background: linear-gradient(90deg, #dc2626, #b91c1c);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    /* Contact Section */
    .contact-section {
      padding: 5rem 0;
      background-color: #f8f9fa;
      position: relative;
      overflow: hidden;
    }

    .contact-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('/static/images/contact-pattern.jpg') repeat;
      opacity: 0.05;
    }

    .dark-mode .contact-section {
      background-color: #1a1a2e;
    }

    .contact-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-top: 2rem;
    }

    /* Contact Info */
    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .info-card {
      display: flex;
      gap: 1.2rem;
      background-color: white;
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      z-index: 1;
    }

    .info-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    }

    .dark-mode .info-card {
      background-color: var(--dark-mode-card);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .info-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .info-icon {
      font-size: 1.5rem;
      color: var(--primary-color);
      margin-top: 0.2rem;
    }

    .dark-mode .info-icon {
      color: var(--accent-color);
    }

    .info-content h3 {
      font-size: 1.2rem;
      margin-bottom: 0.6rem;
      color: var(--dark-color);
    }

    .dark-mode .info-content h3 {
      color: var(--dark-mode-text);
    }

    .info-content p {
      color: #6c757d;
      line-height: 1.6;
      font-size: 0.95rem;
    }

    .dark-mode .info-content p {
      color: #adb5bd;
    }

    /* Contact Form */
    .contact-section {
      padding: 1rem 0 1rem;
    }
    .contact-form {
      background-color: white;
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      position: relative;
      overflow: hidden;
      z-index: 1;
      max-height: 40rem;
      top: 2rem;
    }

    .contact-form::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    }

    .dark-mode .contact-form {
      background-color: var(--dark-mode-card);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

    .form-group {
      margin-bottom: 1.2rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.6rem;
      font-weight: 600;
      color: var(--dark-color);
      font-size: 0.95rem;
    }

    .dark-mode .form-group label {
      color: var(--dark-mode-text);
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.8rem 1rem;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 0.95rem;
      transition: var(--transition);
    }

    .dark-mode .form-group input,
    .dark-mode .form-group textarea {
      background-color: var(--dark-mode-card);
      border-color: #333;
      color: var(--dark-mode-text);
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

    .dark-mode .form-group input:focus,
    .dark-mode .form-group textarea:focus {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 120px;
    }

    .form-response {
      margin-top: 1.2rem;
      padding: 0.8rem;
      border-radius: 6px;
      text-align: center;
      display: none;
      font-size: 0.95rem;
    }

    .form-response.success {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--success-color);
      border: 1px solid rgba(16, 185, 129, 0.3);
      display: block;
    }

    .form-response.error {
      background-color: rgba(239, 68, 68, 0.1);
      color: var(--danger-color);
      border: 1px solid rgba(239, 68, 68, 0.3);
      display: block;
    }

    /* ==========================
    RESPONSIVE STYLES - CRITICAL FIX
    ========================== */

    /* Tablet - Stack sections */
    @media (max-width: 992px) {
      #contact {
        padding: 4rem 0;
      }

      .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 800px;
      }

      .contact-form-section {
        order: 2; /* Form comes after info on mobile */
      }

      .contact-info {
        order: 1;
      }

      .contact-info h2 {
        font-size: 2rem;
      }
    }

    /* Mobile - Adjust layout and spacing */
    @media (max-width: 768px) {
      #contact {
        padding: 3rem 0;
      }

      .contact-container {
        gap: 2rem;
        padding: 0 1.5rem;
      }

      .contact-info h2 {
        font-size: 1.8rem;
      }

      .contact-description {
        font-size: 1rem;
      }

      .contact-method {
        padding: 0.8rem;
      }

      .method-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
      }

      .method-content h4 {
        font-size: 1rem;
      }

      .method-content p {
        font-size: 0.9rem;
      }

      .contact-form-section {
        padding: 2rem;
      }

      .contact-form-section h3 {
        font-size: 1.3rem;
      }

      .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
      }

      .form-group input,
      .form-group textarea,
      .form-group select {
        padding: 0.8rem;
        font-size: 0.95rem;
      }

      .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
      }
    }

    /* Small Mobile - Further adjustments */
    @media (max-width: 576px) {
      #contact {
        padding: 2.5rem 0;
      }

      .contact-container {
        gap: 1.5rem;
        padding: 0 1rem;
      }

      .contact-info h2 {
        font-size: 1.6rem;
        text-align: center;
      }

      .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%);
      }

      .contact-description {
        text-align: center;
        font-size: 0.95rem;
      }

      .contact-methods {
        gap: 1rem;
      }

      .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
      }

      .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
      }

      .contact-social h4 {
        text-align: center;
        font-size: 1.1rem;
      }

      .social-links {
        justify-content: center;
      }

      .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
      }

      .contact-form-section {
        padding: 1.5rem;
      }

      .contact-form-section h3 {
        text-align: center;
        font-size: 1.2rem;
      }

      .form-description {
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
      }

      .contact-form {
        gap: 1.2rem;
      }

      .form-group label {
        font-size: 0.9rem;
      }

      .form-group input,
      .form-group textarea,
      .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
      }

      .submit-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
      }
    }

    /* Very Small Mobile */
    @media (max-width: 375px) {
      .contact-container {
        padding: 0 0.8rem;
      }

      .contact-info h2 {
        font-size: 1.4rem;
      }

      .contact-description {
        font-size: 0.9rem;
      }

      .contact-method {
        padding: 0.8rem;
      }

      .method-content h4 {
        font-size: 0.95rem;
      }

      .method-content p {
        font-size: 0.85rem;
      }

      .contact-form-section {
        padding: 1.2rem;
      }

      .contact-form-section h3 {
        font-size: 1.1rem;
      }

      .form-description {
        font-size: 0.85rem;
      }

      .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
      }
    }

    /* Landscape Mode for Mobile */
    @media (max-width: 768px) and (orientation: landscape) {
      #contact {
        padding: 2rem 0;
      }

      .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .contact-methods {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }

      .contact-method {
        padding: 0.8rem;
        min-height: 120px;
      }

      .form-group textarea {
        min-height: 100px;
      }
    }

    /* Touch Device Optimizations */
    @media (hover: none) and (pointer: coarse) {
      .contact-method {
        min-height: 80px;
      }

      .social-link,
      .submit-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .form-group input,
      .form-group textarea,
      .form-group select {
        font-size: 16px; /* Prevents iOS zoom on focus */
      }
    }

    /* Compact Support Section */
    .support-section.compact {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 30px 0;
    }

    /* Small Header */
    .support-header {
        text-align: center;
        margin-bottom: 25px;
    }

    .support-header h3 {
        color: white;
        font-size: 1.4rem;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .support-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.95rem;
        margin: 0;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.4;
    }

    .support-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        align-items: start;
        max-width: 900px;
        margin: 0 auto;
    }

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

    .support-item:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .support-icon {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
    }

    .support-icon i {
        font-size: 1.5rem;
        color: #4ade80;
    }

    .support-item h4 {
        color: white;
        margin-bottom: 15px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .support-item p {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    /* Description Box */
    .compact-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
    }

    .compact-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.85rem;
    }

    .compact-list i {
        color: #4ade80;
        font-size: 0.8rem;
        width: 15px;
    }

    /* PayPal Box */
    .btn-paypal.compact {
        background: #0070ba;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        font-size: 0.9rem;
    }

    .btn-paypal.compact:hover {
        background: #005ea6;
        transform: translateY(-2px);
    }

    /* QR Code Box */
    .qr-compact {
        margin: 10px 0;
    }

    .qr-compact img {
        width: 100px;
        height: 100px;
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    /* Footer */
    .support-footer.compact {
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
    }

    .support-footer.compact i {
        color: #ff6b6b;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .support-section.compact {
            padding: 25px 0;
        }

        .support-header {
            margin-bottom: 20px;
        }

        .support-header h3 {
            font-size: 1.3rem;
        }

        .support-header p {
            font-size: 0.9rem;
            padding: 0 15px;
        }

        .support-row {
            grid-template-columns: 1fr;
            gap: 15px;
            max-width: 400px;
        }

        .support-item {
            padding: 20px 15px;
        }

        .compact-list {
            text-align: center;
        }

        .compact-list li {
            justify-content: center;
        }

        .qr-compact img {
            width: 80px;
            height: 80px;
        }
    }

    @media (max-width: 480px) {
        .support-section.compact {
            padding: 20px 0;
        }

        .support-header h3 {
            font-size: 1.2rem;
        }

        .support-header p {
            font-size: 0.85rem;
        }

        .support-row {
            gap: 12px;
        }

        .support-item {
            padding: 15px 12px;
        }

        .support-item h4 {
            font-size: 1rem;
            margin-bottom: 12px;
        }

        .compact-list li {
            font-size: 0.8rem;
            padding: 4px 0;
        }
    }

    /* Footer */
    footer {
      background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a2e 100%);
      color: white;
      padding: 4rem 0 2rem;
      position: relative;
    }

    footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('/static/images/footer-pattern.png') repeat;
      opacity: 0.05;
    }

    .dark-mode footer {
      background: linear-gradient(135deg, #0f0f1a 0%, #000000 100%);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      margin-bottom: 3rem;
      position: relative;
      z-index: 1;
    }

    .footer-col {
      margin-bottom: 1.5rem;
    }

    .footer-col h3 {
      font-size: 1.3rem;
      margin-bottom: 1.5rem;
      color: var(--accent-color);
      position: relative;
      display: inline-block;
    }

    .footer-col h3::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 50px;
      height: 3px;
      background: var(--accent-color);
      border-radius: 2px;
    }

    .footer-links {
      list-style: none;
    }

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

    .footer-links a {
      display: flex;
      align-items: center;
      color: #adb5bd;
      text-decoration: none;
      transition: var(--transition);
      font-size: 0.95rem;
    }

    .footer-links a i {
      margin-right: 8px;
      font-size: 0.9rem;
    }

    .footer-links a:hover {
      color: white;
      transform: translateX(5px);
    }

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

    .social-links a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.1);
      color: white;
      font-size: 1rem;
      transition: var(--transition);
    }

    .social-links a:hover {
      background-color: var(--accent-color);
      transform: translateY(-3px);
    }

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

    .footer-bottom p {
      margin-bottom: 1rem;
      font-size: 0.9rem;
    }

    .footer-bottom .footer-links {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin-top: 1rem;
    }

    .footer-bottom .footer-links a {
      color: #adb5bd;
      text-decoration: none;
      transition: var(--transition);
      font-size: 0.9rem;
    }

    .footer-bottom .footer-links a:hover {
      color: white;
    }

    /* Scroll to Top Button */
    .scroll-to-top {
      position: fixed;
      bottom: 25px;
      right: 25px;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      cursor: pointer;
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
    }

    .scroll-to-top.active {
      opacity: 1;
      visibility: visible;
    }

    .scroll-to-top:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    }

    /* =========================================== */
    /* MOBILE RESPONSIVE STYLES (BELOW 992px) */
    /* =========================================== */

    @media (max-width: 991px) {
      /* ===================== */
      /* STICKY HEADER */
      /* ===================== */
      header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: white;
        padding: 0 15px !important;
        margin: 0;
        height: 70px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      }

      .dark-mode header {
        background-color: var(--dark-mode-card);
      }

      body {
        padding-top: 70px;
        overflow-x: hidden;
      }

      /* ===================== */
      /* NAVBAR LAYOUT */
      /* ===================== */
      .navbar {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
        height: 70px;
        margin: 0;
        transform: none !important;
        background-color: inherit;
        position: relative;
      }

      /* Reset navbar position */
      .navbar {
        left: 0 !important;
      }

      /* Position logo on the left */
      .logo {
        position: absolute;
        left: 15px;
        transform: none;
        z-index: 1001;
      }

      /* MOBILE TOGGLE BUTTON ON RIGHT SIDE */
      .mobile-menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
        width: 50px;
        height: 50px;
        border-radius: 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(16, 185, 129, 0.1);
        transition: all 0.3s ease;
      }

      .mobile-menu-toggle:hover {
        background-color: rgba(16, 185, 129, 0.2);
        transform: translateY(-50%) scale(1.05);
      }

      .mobile-menu-toggle .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--primary-color);
        position: relative;
        transition: all 0.3s ease;
      }

      .mobile-menu-toggle .hamburger::before,
      .mobile-menu-toggle .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--primary-color);
        left: 0;
        transition: all 0.3s ease;
      }

      .mobile-menu-toggle .hamburger::before {
        top: -8px;
      }

      .mobile-menu-toggle .hamburger::after {
        top: 8px;
      }

      .mobile-menu-toggle.active .hamburger {
        background-color: transparent;
      }

      .mobile-menu-toggle.active .hamburger::before {
        transform: translateY(8px) rotate(45deg);
      }

      .mobile-menu-toggle.active .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
      }

      /* Hide desktop navigation elements on mobile */
      .nav-links,
      .nav-right,
      .auth-buttons:not(.mobile-auth-buttons),
      .user-profile-nav,
      .theme-toggle {
        display: none !important;
      }


      /* ===================== */
      /* MOBILE OVERLAY */
      /* ===================== */
      .mobile-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
      }

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

      /* ===================== */
      /* MOBILE NAVIGATION CONTAINER - STILL SLIDES FROM LEFT */
      /* ===================== */
      .nav-container {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0; /* Still from left side */
        width: 280px;
        max-height: calc(100vh - 80px);
        height: auto;
        background-color: white;
        z-index: 999;
        overflow-y: auto;
        transition: transform 0.3s ease;
        padding: 25px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* Positive shadow for left side */
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transform: translateX(-100%); /* Slide from left */
      }

      .dark-mode .nav-container {
        background-color: var(--dark-mode-card);
      }

      .nav-container.mobile-active {
        display: flex;
        transform: translateX(0);
      }

      /* ===================== */
      /* MOBILE NAV LINKS */
      /* ===================== */
      .nav-container .nav-links {
        display: flex !important;
        flex-direction: column;
        margin: 0 0 20px 0;
        padding: 0;
        width: 100%;
        list-style: none;
      }

      .nav-container .nav-links li {
        margin: 0 0 10px 0;
        width: 100%;
      }

      .nav-container .nav-links a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-radius: 8px;
        background: rgba(16, 185, 129, 0.05);
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        width: 100%;
      }

      .dark-mode .nav-container .nav-links a {
        background: rgba(52, 211, 153, 0.05);
        color: #e2e8f0;
      }

      .nav-container .nav-links a i {
        margin-right: 12px;
        font-size: 18px;
        width: 24px;
      }

      .nav-container .nav-links a:hover,
      .nav-container .nav-links a.active {
        background: rgba(16, 185, 129, 0.15);
        color: var(--primary-color);
        transform: translateX(5px);
      }

      .dark-mode .nav-container .nav-links a:hover,
      .dark-mode .nav-container .nav-links a.active {
        background: rgba(52, 211, 153, 0.15);
        color: var(--accent-color);
      }

      /* ===================== */
      /* MOBILE NAV RIGHT SECTION */
      /* ===================== */
      .nav-container .nav-right {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 20px;
        gap: 15px;
      }

      /* Theme toggle in mobile */
      .nav-container .theme-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-radius: 8px;
        background: rgba(16, 185, 129, 0.05);
        cursor: pointer;
        width: 100%;
        margin: 0;
      }

      .dark-mode .nav-container .theme-toggle {
        background: rgba(52, 211, 153, 0.05);
      }

      /* Auth buttons in mobile */
      .nav-container .auth-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin: 20px 0 0 0;
        padding-top: 20px;
        border-top: 1px solid #eee;
      }

      .dark-mode .nav-container .auth-buttons {
        border-top-color: #374151;
      }

      .nav-container .auth-buttons .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        margin: 0;
      }

      /* User profile in mobile */
      .nav-container .user-profile-nav {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
      }

      .dark-mode .nav-container .user-profile-nav {
        border-bottom-color: #374151;
      }

      /* ===================== */
      /* BODY STATE WHEN MENU IS OPEN */
      /* ===================== */
      body.menu-open {
        overflow: hidden;
      }

      /* ===================== */
      /* MOBILE MENU SCROLLBAR */
      /* ===================== */

       .nav-container.mobile-active {
         scrollbar-width: thin;
         scrollbar-color: var(--primary-color) rgba(16, 185, 129, 0.1);
       }

       .nav-container.mobile-active::-webkit-scrollbar {
         width: 6px;
       }

       .nav-container.mobile-active::-webkit-scrollbar-track {
         background: rgba(16, 185, 129, 0.1);
         border-radius: 3px;
       }

       .nav-container.mobile-active::-webkit-scrollbar-thumb {
         background-color: var(--primary-color);
         border-radius: 3px;
       }

       .nav-container.mobile-active::-webkit-scrollbar-thumb:hover {
         background-color: var(--secondary-color);
       }

       .dark-mode .nav-container.mobile-active::-webkit-scrollbar-track {
         background: rgba(52, 211, 153, 0.1);
       }

       .dark-mode .nav-container.mobile-active::-webkit-scrollbar-thumb {
         background-color: var(--accent-color);
       }

       .dark-mode .nav-container.mobile-active::-webkit-scrollbar-thumb:hover {
         background-color: var(--primary-color);
       }

       /* Ensure menu items don't get cut off */
       .nav-container.mobile-active .nav-links,
       .nav-container.mobile-active .nav-right {
         flex-shrink: 0;
       }

       /* Add some spacing at the bottom for better scrolling */
       .nav-container.mobile-active {
         padding-bottom: 30px;
       }
    }

    /* ===================== */
    /* MOBILE USER PROFILE & AUTH STYLES */
    /* ===================== */

    @media (max-width: 991px) {
      /* User profile section in mobile menu */
      .nav-container.mobile-active .user-profile-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
      }

      .dark-mode .nav-container.mobile-active .user-profile-nav {
        border-bottom-color: #374151;
      }

      /* Profile picture in mobile */
      .nav-container.mobile-active .nav-profile-pic-container {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
        border-width: 3px;
      }

      /* User info in mobile */
      .nav-container.mobile-active .user-info-mobile {
        text-align: center;
        margin-bottom: 20px;
        width: 100%;
      }

      .nav-container.mobile-active .user-info-mobile .username {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 5px;
      }

      .dark-mode .nav-container.mobile-active .user-info-mobile .username {
        color: var(--accent-color);
      }

      .nav-container.mobile-active .user-info-mobile .email {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 15px;
      }

      .dark-mode .nav-container.mobile-active .user-info-mobile .email {
        color: #aaa;
      }

      /* Auth buttons container in mobile - ALWAYS SHOW */
      .nav-container.mobile-active .auth-buttons-container {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
      }

      .dark-mode .nav-container.mobile-active .auth-buttons-container {
        border-top-color: #374151;
      }

      /* Individual auth buttons */
      .nav-container.mobile-active .auth-buttons-container .btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        margin: 0;
        gap: 10px;
      }

      /* Login button styles */
      .nav-container.mobile-active .auth-buttons-container .login-btn {
        background: rgba(16, 185, 129, 0.1);
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
      }

      .nav-container.mobile-active .auth-buttons-container .login-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
      }

      /* Register button styles */
      .nav-container.mobile-active .auth-buttons-container .register-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
      }

      .nav-container.mobile-active .auth-buttons-container .register-btn:hover {
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
      }

      /* Dashboard button styles */
      .nav-container.mobile-active .auth-buttons-container .dashboard-btn {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
      }

      .nav-container.mobile-active .auth-buttons-container .dashboard-btn:hover {
        background: linear-gradient(135deg, #5a67d8, #6b46c1);
        transform: translateY(-2px);
      }

      /* Logout button styles */
      .nav-container.mobile-active .auth-buttons-container .logout-btn {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
      }

      .nav-container.mobile-active .auth-buttons-container .logout-btn:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: translateY(-2px);
      }

      /* Ensure nav-right displays properly */
      .nav-container.mobile-active .nav-right {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 0;
        gap: 15px;
      }

      /* Theme toggle in mobile */
      .nav-container.mobile-active .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-radius: 8px;
        background: rgba(16, 185, 129, 0.05);
        cursor: pointer;
        width: 100%;
        margin: 0;
      }
    }
    /* =========================================== */
    /* HERO SECTION IMAGE FIX */
    /* =========================================== */

    @media (max-width: 991px) {
      .hero {
        position: relative;
        overflow: visible !important;
        padding: 2rem 15px !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
      }

      .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 2rem !important;
        padding: 0 !important;
        margin: 0 auto !important;
        position: relative !important;
      }

      .hero-text {
        order: 2 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 2 !important;
      }

      .hero-image {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        margin: 0 auto 2rem !important;
        padding: 0 !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: visible !important;
      }

      .hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 10px !important;
        max-width: 400px !important;
        display: block !important;
        margin: 0 auto !important;
      }

      .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        width: 100% !important;
      }

      .hero p {
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        width: 100% !important;
        max-width: 500px !important;
      }

      .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
      }

      .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 24px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
      }

      /* Ensure proper spacing */
      .hero > .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
      }

      /* Remove any conflicting animations on mobile */
      @media (prefers-reduced-motion: reduce) {
        .hero-image img {
          animation: none !important;
        }
      }
    }

    /* For very small screens */
    @media (max-width: 480px) {
      .hero {
        padding: 1.5rem 10px !important;
      }

      .hero-image {
        height: 200px !important;
        margin-bottom: 1.5rem !important;
      }

      .hero-image img {
        max-width: 300px !important;
        border-radius: 8px !important;
      }

      .hero h1 {
        font-size: 1.7rem !important;
      }

      .hero p {
        font-size: 1rem !important;
      }

      .hero-buttons {
        max-width: 100% !important;
      }

      .hero-buttons .btn {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
      }
    }

    /* Tablet landscape */
    @media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
      .hero {
        min-height: 400px !important;
        padding: 2rem 20px !important;
      }

      .hero-content {
        flex-direction: row !important;
        align-items: center !important;
        gap: 2rem !important;
      }

      .hero-text {
        order: 1 !important;
        text-align: left !important;
        flex: 1 !important;
      }

      .hero-image {
        order: 2 !important;
        flex: 1 !important;
        height: 200px !important;
        margin: 0 !important;
      }

      .hero-image img {
        max-width: 100% !important;
        height: 100% !important;
      }

      .hero h1 {
        text-align: left !important;
        font-size: 2.2rem !important;
      }

      .hero p {
        text-align: left !important;
        max-width: 100% !important;
      }

      .hero-buttons {
        align-items: flex-start !important;
        max-width: 100% !important;
      }
    }

    /* Ensure desktop styles are clean */
    @media (min-width: 992px) {
      .hero {
        padding: 4rem 0 !important;
      }

      .hero-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
        align-items: center !important;
      }

      .hero-text {
        text-align: left !important;
      }

      .hero-image {
        position: relative !important;
        height: auto !important;
      }

      .hero-image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 15px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
      }

      .hero h1 {
        font-size: 3rem !important;
      }

      .hero p {
        font-size: 1.2rem !important;
      }

      .hero-buttons {
        flex-direction: row !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
      }

      .hero-buttons .btn {
        width: auto !important;
        min-width: 160px !important;
      }
    }
    /* General Utility Classes - Missing Mobile Variants */
    @media (max-width: 768px) {
      .mt-md-0 { margin-top: 0 !important; }
      .mb-md-0 { margin-bottom: 0 !important; }
      .mt-md-1 { margin-top: 0.5rem !important; }
      .mb-md-1 { margin-bottom: 0.5rem !important; }
      .mt-md-2 { margin-top: 1rem !important; }
      .mb-md-2 { margin-bottom: 1rem !important; }
      .d-md-none { display: none !important; }
      .d-md-block { display: block !important; }
      .text-md-center { text-align: center !important; }
    }

    @media (max-width: 576px) {
      .mt-sm-0 { margin-top: 0 !important; }
      .mb-sm-0 { margin-bottom: 0 !important; }
      .mt-sm-1 { margin-top: 0.5rem !important; }
      .mb-sm-1 { margin-bottom: 0.5rem !important; }
      .d-sm-none { display: none !important; }
      .d-sm-flex { display: flex !important; }
      .text-sm-center { text-align: center !important; }
      .flex-sm-column { flex-direction: column !important; }
    }

    /* ============================================= */
    /* UNSUBSCRIBE PAGE SPECIFIC STYLES */
    /* ============================================= */

    .unsubscribe-container {
        max-width: 600px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .unsubscribe-card {
        background: var(--card-bg);
        border-radius: 16px;
        padding: 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-color);
    }

    /* Flash Messages on Unsubscribe Page */
    .flash-messages-section {
        margin-bottom: 30px;
    }

    .flash-messages-section .flash {
        margin-bottom: 15px;
        animation: slideDown 0.3s ease;
    }

    .flash-messages-section .flash-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .flash-messages-section .flash i {
        font-size: 18px;
    }

    /* Header */
    .unsubscribe-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .unsubscribe-icon {
        font-size: 48px;
        color: #dc3545;
        margin-bottom: 20px;
    }

    .unsubscribe-header h1 {
        color: var(--text-primary);
        margin-bottom: 10px;
        font-size: 28px;
    }

    .unsubscribe-header .subtitle {
        color: var(--text-secondary);
        font-size: 16px;
        line-height: 1.5;
    }

    /* Form */
    .unsubscribe-form {
        margin-bottom: 30px;
    }

    .unsubscribe-form .btn-danger {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        border: none;
        padding: 14px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 10px;
    }

    .unsubscribe-form .btn-danger:hover {
        background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    }

    .unsubscribe-form .btn-block {
        width: 100%;
    }

    /* Warning Section */
    .unsubscribe-warning {
        margin: 30px 0;
        padding: 25px;
        background: rgba(255, 193, 7, 0.05);
        border: 1px solid rgba(255, 193, 7, 0.2);
        border-radius: 12px;
    }

    .unsubscribe-warning h3 {
        color: #ffc107;
        margin-bottom: 20px;
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .warning-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .warning-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .warning-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 193, 7, 0.1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffc107;
        font-size: 18px;
        flex-shrink: 0;
    }

    .warning-content h4 {
        color: var(--text-primary);
        margin: 0 0 5px 0;
        font-size: 15px;
    }

    .warning-content p {
        color: var(--text-secondary);
        margin: 0;
        font-size: 13px;
    }

    /* Success/Error/Info States */
    .unsubscribe-success,
    .unsubscribe-error,
    .unsubscribe-info {
        text-align: center;
        padding: 40px 20px;
    }

    .success-icon,
    .error-icon,
    .info-icon {
        font-size: 64px;
        margin-bottom: 20px;
    }

    .success-icon {
        color: #28a745;
        animation: bounceIn 1s ease;
    }

    .error-icon {
        color: #dc3545;
        animation: shake 0.5s ease;
    }

    .info-icon {
        color: #17a2b8;
    }

    .unsubscribe-success h1,
    .unsubscribe-error h1,
    .unsubscribe-info h1 {
        margin-bottom: 15px;
        font-size: 28px;
    }

    .unsubscribe-success h1 {
        color: #28a745;
    }

    .unsubscribe-error h1 {
        color: #dc3545;
    }

    .unsubscribe-info h1 {
        color: #17a2b8;
    }

    .unsubscribe-success p,
    .unsubscribe-error p,
    .unsubscribe-info p {
        color: var(--text-secondary);
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.5;
    }

    /* Actions */
    .unsubscribe-actions {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    /* Alternatives */
    .unsubscribe-alternatives {
        text-align: center;
        margin: 30px 0;
        padding: 25px;
        background: rgba(0, 123, 255, 0.05);
        border: 1px solid rgba(0, 123, 255, 0.2);
        border-radius: 12px;
    }

    .unsubscribe-alternatives h3 {
        color: #007bff;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .unsubscribe-alternatives > p {
        color: var(--text-secondary);
        margin-bottom: 20px;
        font-size: 15px;
    }

    .alternative-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Footer */
    .unsubscribe-footer {
        text-align: center;
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .unsubscribe-footer p {
        color: var(--text-secondary);
        margin-bottom: 8px;
    }

    .unsubscribe-footer .link {
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

    .unsubscribe-footer .link:hover {
        text-decoration: underline;
    }

    .unsubscribe-footer .small-note {
        color: var(--text-muted);
        font-size: 14px;
    }

    /* Terms */
    .unsubscribe-terms {
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .unsubscribe-terms p {
        color: var(--text-muted);
        font-size: 13px;
        margin-bottom: 0;
    }

    .unsubscribe-terms a {
        color: var(--text-muted);
        text-decoration: underline;
    }

    .unsubscribe-terms a:hover {
        color: var(--text-primary);
    }

    /* Back Link */
    .back-link {
        display: inline-block;
        margin-top: 20px;
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

    .back-link:hover {
        text-decoration: underline;
    }

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

    @keyframes shake {
        0%, 100% {
            transform: translateX(0);
        }
        10%, 30%, 50%, 70%, 90% {
            transform: translateX(-5px);
        }
        20%, 40%, 60%, 80% {
            transform: translateX(5px);
        }
    }

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

    /* Dark Mode Support */
    .dark-mode .unsubscribe-card {
        background: var(--dark-card-bg);
        border-color: var(--dark-border-color);
    }

    .dark-mode .unsubscribe-warning {
        background: rgba(255, 193, 7, 0.1);
        border-color: rgba(255, 193, 7, 0.3);
    }

    .dark-mode .unsubscribe-alternatives {
        background: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.3);
    }

    .dark-mode .warning-icon {
        background: rgba(255, 193, 7, 0.2);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .unsubscribe-container {
            padding: 20px 15px;
            margin: 20px auto;
        }

        .unsubscribe-card {
            padding: 25px 20px;
        }

        .unsubscribe-header h1 {
            font-size: 24px;
        }

        .unsubscribe-icon {
            font-size: 36px;
        }

        .warning-grid {
            grid-template-columns: 1fr;
        }

        .unsubscribe-actions,
        .alternative-buttons {
            flex-direction: column;
            gap: 10px;
        }

        .unsubscribe-actions .btn,
        .alternative-buttons .btn {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .unsubscribe-card {
            padding: 20px 15px;
        }

        .unsubscribe-header h1 {
            font-size: 20px;
        }

        .success-icon,
        .error-icon,
        .info-icon {
            font-size: 48px;
        }

        .unsubscribe-warning,
        .unsubscribe-alternatives {
            padding: 20px 15px;
        }
    }

    /* ============================================= */
    /* SUCCESS PAGE TRANSFORMATION STYLES */
    /* ============================================= */

    /* Animation for success state */
    .animated-fade-in {
        animation: fadeInUp 0.8s ease-out;
    }

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

    /* Success State Container */
    .unsubscribe-success-state {
        text-align: center;
        padding: 40px 20px;
    }

    /* Large Success Icon */
    .success-icon-large {
        font-size: 80px;
        color: #28a745;
        margin-bottom: 30px;
        animation: bounce 1s ease infinite;
    }

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

    /* Large Success Title */
    .success-title-large {
        color: #28a745;
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Confirmation Message */
    .success-confirmation {
        max-width: 800px;
        margin: 0 auto 40px;
        padding: 30px;
        background: rgba(40, 167, 69, 0.05);
        border-radius: 20px;
        border: 2px solid rgba(40, 167, 69, 0.1);
    }

    .confirmation-text {
        color: var(--text-primary);
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .goodbye-text {
        color: #6c757d;
        font-size: 18px;
        font-style: italic;
    }

    /* Missed Section */
    .missed-section {
        margin: 50px 0 40px;
    }

    .missed-section h2 {
        color: #ffc107;
        font-size: 28px;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .missed-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .missed-item-large {
        padding: 25px;
        background: white;
        border-radius: 15px;
        border: 2px solid rgba(255, 193, 7, 0.2);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .dark-mode .missed-item-large {
        background: var(--dark-card-bg);
    }

    .missed-item-large:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 193, 7, 0.1);
    }

    .missed-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 28px;
        margin: 0 auto 15px;
    }

    .missed-item-large h3 {
        color: var(--text-primary);
        font-size: 20px;
        margin-bottom: 10px;
    }

    .missed-item-large p {
        color: var(--text-secondary);
        font-size: 14px;
        margin: 0;
    }

    /* Final Notice */
    .final-notice {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 20px 30px;
        background: rgba(23, 162, 184, 0.1);
        border-radius: 15px;
        margin: 40px auto;
        max-width: 700px;
        border: 2px solid rgba(23, 162, 184, 0.2);
    }

    .notice-icon {
        font-size: 32px;
        color: #17a2b8;
        flex-shrink: 0;
    }

    .final-notice p {
        color: var(--text-secondary);
        font-size: 16px;
        margin: 0;
        text-align: left;
        line-height: 1.5;
    }

    /* Success Actions */
    .success-actions {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin: 40px 0 30px;
        flex-wrap: wrap;
    }

    .btn-large {
        padding: 18px 40px;
        font-size: 18px;
        font-weight: 600;
        min-width: 250px;
    }

    /* Success Terms */
    .success-terms {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .success-terms p {
        color: var(--text-muted);
        font-size: 13px;
        margin-bottom: 0;
    }

    .success-terms a {
        color: var(--text-muted);
        text-decoration: underline;
    }

    .success-terms a:hover {
        color: var(--text-primary);
    }

    /* Confetti Animation */
    .confetti {
        position: fixed;
        pointer-events: none;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .success-icon-large {
            font-size: 80px;
        }

        .success-title-large {
            font-size: 32px;
            letter-spacing: 1px;
        }

        .confirmation-text {
            font-size: 18px;
        }

        .goodbye-text {
            font-size: 16px;
        }

        .missed-section h2 {
            font-size: 22px;
        }

        .missed-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .missed-item-large {
            padding: 20px;
        }

        .missed-icon {
            width: 60px;
            height: 60px;
            font-size: 24px;
        }

        .final-notice {
            flex-direction: column;
            text-align: center;
            padding: 20px;
        }

        .final-notice p {
            text-align: center;
        }

        .success-actions {
            flex-direction: column;
            gap: 15px;
        }

        .btn-large {
            width: 100%;
            min-width: auto;
        }
    }

    @media (max-width: 480px) {
        .unsubscribe-success-state {
            padding: 20px 10px;
        }

        .success-icon-large {
            font-size: 60px;
        }

        .success-title-large {
            font-size: 24px;
        }

        .success-confirmation {
            padding: 20px 15px;
            margin-bottom: 30px;
        }

        .confirmation-text {
            font-size: 16px;
        }

        .goodbye-text {
            font-size: 14px;
        }

        .missed-section h2 {
            font-size: 18px;
            flex-direction: column;
            gap: 10px;
        }

        .missed-item-large {
            padding: 15px;
        }

        .missed-item-large h3 {
            font-size: 16px;
        }

        .final-notice {
            padding: 15px;
        }

        .notice-icon {
            font-size: 24px;
        }

        .final-notice p {
            font-size: 14px;
        }
    }
    /* UNSUBSCRIBE PAGE STYLES END */

    /* ====================== */
    /* ANIMATION KEYFRAMES */
    /* ====================== */

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

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

    @keyframes fadeInLeft {
      from {
        opacity: 0;
        transform: translateX(-50px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes fadeInRight {
      from {
        opacity: 0;
        transform: translateX(50px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes scaleIn {
      from {
        opacity: 0;
        transform: scale(0.8);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

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

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(-100px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
      100% {
        transform: scale(1);
      }
    }

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

    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
      }
      40% {
        transform: translateY(-10px);
      }
      60% {
        transform: translateY(-5px);
      }
    }

    @keyframes shimmer {
      0% {
        background-position: -200% center;
      }
      100% {
        background-position: 200% center;
      }
    }

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

    @keyframes typewriter {
      from {
        width: 0;
      }
      to {
        width: 100%;
      }
    }

    @keyframes blink {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0;
      }
    }

    @keyframes gradientShift {
      0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
    }
    /* ====================== */
    /* ANIMATION CLASSES */
    /* ====================== */

    /* Basic Animation Classes */
    .animate-fade-in {
      animation: fadeIn 0.8s ease-out forwards;
    }

    .animate-fade-in-up {
      animation: fadeInUp 0.8s ease-out forwards;
    }

    .animate-fade-in-left {
      animation: fadeInLeft 0.8s ease-out forwards;
    }

    .animate-fade-in-right {
      animation: fadeInRight 0.8s ease-out forwards;
    }

    .animate-scale-in {
      animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    .animate-slide-up {
      animation: slideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .animate-slide-in {
      animation: slideIn 0.7s ease-out forwards;
    }

    .animate-pulse {
      animation: pulse 2s infinite ease-in-out;
    }

    .animate-float {
      animation: float 6s ease-in-out infinite;
    }

    .animate-bounce {
      animation: bounce 2s infinite;
    }

    .animate-rotate {
      animation: rotate 20s linear infinite;
    }

    .animate-gradient {
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
      background-size: 200% auto;
      animation: gradientShift 3s ease infinite;
    }

    /* Delayed Animations */
    .delay-100 { animation-delay: 100ms; }
    .delay-200 { animation-delay: 200ms; }
    .delay-300 { animation-delay: 300ms; }
    .delay-400 { animation-delay: 400ms; }
    .delay-500 { animation-delay: 500ms; }
    .delay-600 { animation-delay: 600ms; }
    .delay-700 { animation-delay: 700ms; }
    .delay-800 { animation-delay: 800ms; }
    .delay-900 { animation-delay: 900ms; }
    .delay-1000 { animation-delay: 1000ms; }

    /* Duration Classes */
    .duration-300 { animation-duration: 0.3s; }
    .duration-500 { animation-duration: 0.5s; }
    .duration-700 { animation-duration: 0.7s; }
    .duration-1000 { animation-duration: 1s; }
    .duration-1500 { animation-duration: 1.5s; }
    .duration-2000 { animation-duration: 2s; }

    /* Staggered Animation Container */
    .stagger-children > * {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeIn 0.6s ease forwards;
    }

    .stagger-children > *:nth-child(1) { animation-delay: 100ms; }
    .stagger-children > *:nth-child(2) { animation-delay: 200ms; }
    .stagger-children > *:nth-child(3) { animation-delay: 300ms; }
    .stagger-children > *:nth-child(4) { animation-delay: 400ms; }
    .stagger-children > *:nth-child(5) { animation-delay: 500ms; }
    .stagger-children > *:nth-child(6) { animation-delay: 600ms; }
    /* ====================== */
    /* SCROLL ANIMATIONS */
    /* ====================== */

    /* Scroll Animation Classes */
    .scroll-animate {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .scroll-animate-left {
      opacity: 0;
      transform: translateX(-50px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .scroll-animate-right {
      opacity: 0;
      transform: translateX(50px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .scroll-animate-scale {
      opacity: 0;
      transform: scale(0.9);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* When element comes into view */
    .scroll-animate.active {
      opacity: 1;
      transform: translateY(0);
    }

    .scroll-animate-left.active {
      opacity: 1;
      transform: translateX(0);
    }

    .scroll-animate-right.active {
      opacity: 1;
      transform: translateX(0);
    }

    .scroll-animate-scale.active {
      opacity: 1;
      transform: scale(1);
    }

    /* Staggered scroll animations */
    .stagger-scroll > * {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .stagger-scroll.active > *:nth-child(1) {
      transition-delay: 100ms;
    }
    .stagger-scroll.active > *:nth-child(2) {
      transition-delay: 200ms;
    }
    .stagger-scroll.active > *:nth-child(3) {
      transition-delay: 300ms;
    }
    .stagger-scroll.active > *:nth-child(4) {
      transition-delay: 400ms;
    }
    .stagger-scroll.active > *:nth-child(5) {
      transition-delay: 500ms;
    }

    .stagger-scroll.active > * {
      opacity: 1;
      transform: translateY(0);
    }

    /* Card hover animations */
    .animated-card {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .animated-card:hover {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    /* ====================== */
    /* HERO ANIMATIONS */
    /* ====================== */

    /* Hero Text Animation */
    .hero-text h1 {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease 0.3s forwards;
    }

    .hero-text p {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease 0.6s forwards;
    }

    .hero-buttons {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease 0.9s forwards;
    }

    /* Hero Image Animation */
    .hero-image {
      opacity: 0;
      transform: translateY(50px) scale(0.9);
      animation: fadeInUp 1.2s ease 0.5s forwards, float 6s ease-in-out infinite 2s;
    }

    .hero-image img {
      animation: pulse 3s ease-in-out infinite 2s;
    }

    /* Typewriter effect for hero text */
    .typewriter-container {
      overflow: hidden;
      border-right: 3px solid var(--primary-color);
      white-space: nowrap;
      animation: typewriter 3.5s steps(40, end), blink 0.75s step-end infinite;
    }
    /* ====================== */
    /* FEATURE CARDS ANIMATIONS */
    /* ====================== */

    .feature-grid {
      opacity: 0;
      transform: translateY(50px);
    }

    .feature-grid.active {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .feature-card {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .feature-grid.active .feature-card:nth-child(1) {
      transition-delay: 100ms;
    }
    .feature-grid.active .feature-card:nth-child(2) {
      transition-delay: 200ms;
    }
    .feature-grid.active .feature-card:nth-child(3) {
      transition-delay: 300ms;
    }
    .feature-grid.active .feature-card:nth-child(4) {
      transition-delay: 400ms;
    }

    .feature-grid.active .feature-card {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Hover effect with animation */
    .feature-card:hover .feature-icon {
      animation: bounce 0.6s ease;
    }

    .feature-card:hover::before {
      animation: gradientShift 2s ease infinite;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
      background-size: 200% auto;
    }
    /* ====================== */
    /* PREVIEW CARDS ANIMATIONS */
    /* ====================== */

    .preview-grid {
      opacity: 0;
      transform: translateY(50px);
    }

    .preview-grid.active {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .preview-card {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Staggered card animations */
    .preview-grid.active .preview-card:nth-child(1) { transition-delay: 100ms; }
    .preview-grid.active .preview-card:nth-child(2) { transition-delay: 200ms; }
    .preview-grid.active .preview-card:nth-child(3) { transition-delay: 300ms; }
    .preview-grid.active .preview-card:nth-child(4) { transition-delay: 400ms; }
    .preview-grid.active .preview-card:nth-child(5) { transition-delay: 500ms; }
    .preview-grid.active .preview-card:nth-child(6) { transition-delay: 600ms; }
    .preview-grid.active .preview-card:nth-child(7) { transition-delay: 700ms; }
    .preview-grid.active .preview-card:nth-child(8) { transition-delay: 800ms; }

    .preview-grid.active .preview-card {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Card hover animations */
    .preview-card {
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .preview-card:hover {
      transform: translateY(-15px) scale(1.03);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
      z-index: 10;
    }

    .preview-card:hover .company-logo,
    .preview-card:hover .course-image {
      transform: scale(1.1);
      transition: transform 0.6s ease;
    }

    /* Category badge animation */
    .category-badge {
      transform: translateY(-10px);
      opacity: 0;
      transition: all 0.4s ease 0.2s;
    }

    .preview-card:hover .category-badge {
      transform: translateY(0);
      opacity: 1;
    }

    /* Apply button animation */
    .apply-btn {
      position: relative;
      overflow: hidden;
    }

    .apply-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%;
    }

    .apply-btn:focus:not(:active)::after {
      animation: ripple 1s ease-out;
    }

    @keyframes ripple {
      0% {
        transform: scale(0, 0);
        opacity: 0.5;
      }
      100% {
        transform: scale(40, 40);
        opacity: 0;
      }
    }
    /* ====================== */
    /* BLOG CARDS ANIMATIONS */
    /* ====================== */

    .blog-grid-vertical {
      opacity: 0;
      transform: translateY(50px);
    }

    .blog-grid-vertical.active {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .blog-card-vertical {
      opacity: 0;
      transform: translateY(40px) rotateX(15deg);
      transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      transform-style: preserve-3d;
    }

    .blog-grid-vertical.active .blog-card-vertical:nth-child(1) { transition-delay: 100ms; }
    .blog-grid-vertical.active .blog-card-vertical:nth-child(2) { transition-delay: 200ms; }
    .blog-grid-vertical.active .blog-card-vertical:nth-child(3) { transition-delay: 300ms; }
    .blog-grid-vertical.active .blog-card-vertical:nth-child(4) { transition-delay: 400ms; }

    .blog-grid-vertical.active .blog-card-vertical {
      opacity: 1;
      transform: translateY(0) rotateX(0);
    }

    /* 3D flip effect on hover */
    .blog-card-vertical:hover {
      transform: translateY(-20px) rotateY(5deg);
    }

    /* Like button animation */
    .btn-like-vertical {
      position: relative;
      overflow: hidden;
    }

    .btn-like-vertical.liked {
      animation: pulse 0.6s ease;
    }

    .btn-like-vertical.liked i {
      animation: bounce 0.6s ease;
    }

    /* Read more button arrow animation */
    .read-more-btn-vertical i {
      transition: transform 0.3s ease;
    }

    .read-more-btn-vertical:hover i {
      transform: translateX(10px) rotate(360deg);
    }
    /* ====================== */
    /* TESTIMONIALS ANIMATIONS */
    /* ====================== */

    .testimonials-carousel {
      opacity: 0;
      transform: scale(0.95);
    }

    .testimonials-carousel.active {
      opacity: 1;
      transform: scale(1);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .testimonial-card {
      opacity: 0;
      transform: translateX(100px) scale(0.9);
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .testimonial-card.active {
      opacity: 1;
      transform: translateX(0) scale(1);
      transition-delay: 200ms;
    }

    .testimonial-card.prev-card {
      opacity: 0.7;
      transform: translateX(-50px) scale(0.95);
      transition-delay: 100ms;
    }

    .testimonial-card.next-card {
      opacity: 0.7;
      transform: translateX(50px) scale(0.95);
      transition-delay: 100ms;
    }

    /* Rating stars animation */
    .testimonial-rating .star {
      display: inline-block;
      animation: bounceIn 0.6s ease backwards;
    }

    .testimonial-rating .star:nth-child(1) { animation-delay: 0.1s; }
    .testimonial-rating .star:nth-child(2) { animation-delay: 0.2s; }
    .testimonial-rating .star:nth-child(3) { animation-delay: 0.3s; }
    .testimonial-rating .star:nth-child(4) { animation-delay: 0.4s; }
    .testimonial-rating .star:nth-child(5) { animation-delay: 0.5s; }

    @keyframes bounceIn {
      0% {
        opacity: 0;
        transform: scale(0.3);
      }
      50% {
        opacity: 1;
        transform: scale(1.05);
      }
      70% {
        transform: scale(0.9);
      }
      100% {
        transform: scale(1);
      }
    }
    /* ====================== */
    /* SECTION TITLE ANIMATIONS */
    /* ====================== */

    .section-title {
      opacity: 0;
      transform: translateY(30px);
    }

    .section-title.active {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .section-title h2 {
      position: relative;
      overflow: hidden;
    }

    .section-title h2::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 0;
      height: 4px;
      background: var(--primary-color);
      border-radius: 2px;
      transition: width 1s ease 0.5s;
    }

    .section-title.active h2::after {
      width: 80px;
      left: 50%;
      transform: translateX(-50%);
    }

    .section-title p {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
    }

    .section-title.active p {
      opacity: 1;
      transform: translateY(0);
    }
    /* ====================== */
    /* BUTTON ANIMATIONS */
    /* ====================== */

    .btn {
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .btn:hover::before {
      width: 300px;
      height: 300px;
    }

    .btn-primary:hover {
      animation: pulse 0.6s ease;
      box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    }

    /* Shimmer effect for CTA buttons */
    .btn-shimmer {
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
      background-size: 200% 100%;
      animation: shimmer 2s infinite;
    }

    /* Floating action button */
    .floating-btn {
      animation: float 3s ease-in-out infinite;
    }

    .floating-btn:hover {
      animation: bounce 0.6s ease;
    }
    /* ====================== */
    /* MOBILE ANIMATION ADJUSTMENTS */
    /* ====================== */

    @media (max-width: 768px) {
      /* Reduce animation intensity on mobile */
      .preview-card:hover,
      .feature-card:hover,
      .blog-card-vertical:hover {
        transform: translateY(-5px) scale(1.01);
      }

      /* Disable some animations on mobile for performance */
      .preview-card:hover .company-logo,
      .preview-card:hover .course-image {
        transform: none;
      }

      /* Faster animations on mobile */
      .animate-fade-in,
      .animate-fade-in-up,
      .animate-fade-in-left,
      .animate-fade-in-right {
        animation-duration: 0.5s;
      }

      /* No 3D transforms on mobile */
      .blog-card-vertical {
        transform-style: flat;
      }

      .blog-card-vertical:hover {
        transform: translateY(-5px);
      }
    }

    /* Disable animations for users who prefer reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
      }

      .scroll-animate,
      .scroll-animate-left,
      .scroll-animate-right,
      .scroll-animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }
    /* ANIMATION END */
