/* 
=======================================
Global Styles for akademe - Optimized
Author: Claude
Version: 1.2
=======================================
*/

/* Base & Reset
----------------------------------------------- */
:root {
    --color-primary: #4361ee;
    --color-primary-dark: #3a56d4;
    --color-secondary: #7209b7;
    --color-accent: #f72585;
    --color-success: #10b981;
    --color-dark: #111827;
    --color-gray-900: #1f2937;
    --color-gray-800: #374151;
    --color-gray-700: #4b5563;
    --color-gray-600: #6b7280;
    --color-gray-500: #9ca3af;
    --color-gray-400: #d1d5db;
    --color-gray-300: #e5e7eb;
    --color-gray-200: #f3f4f6;
    --color-gray-100: #f9fafb;
    --color-white: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 9999px;

    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

html, body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    position: relative; /* Ensure position context for absolute elements */
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Typography
----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Section Header
----------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.accent-bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    margin: 0 auto;
    border-radius: var(--border-radius-full);
}

/* Container
----------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative; /* Ensure position context */
}

/* Buttons
----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal) ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 44px; /* Minimum touch target size */
    min-height: 44px; /* Minimum touch target size */
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-gray-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.full-width {
    width: 100%;
}

/* Navigation
----------------------------------------------- */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 200px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-gray-700);
    transition: color var(--transition-fast) ease;
    position: relative;
    padding: 0.5rem 0; /* Increase touch target */
}

.nav-links a:hover, .nav-links a:focus, .nav-links a.active {
    color: var(--color-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* Increase touch target */
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-gray-800);
    transition: all var(--transition-normal) ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
}

.mobile-menu a {
    padding: 0.75rem 0;
    font-weight: 500;
}

.mobile-menu a.active {
    color: var(--color-primary);
}

.mobile-cta {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

/* Advanced Hero Styling */
.hero-advanced {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    width: 100%;
    /* Responsive height adjustments */
    min-height: 600px;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* Responsive height adjustments */
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.hero-headline {
    position: relative;
    margin-bottom: 1.5rem;
}

.hero-headline h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual;
}

/* Word break helper for titles */
wbr {
    display: none;
}

.headline-shapes {
    position: absolute;
    top: -20px;
    left: -30px;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none; /* Prevent interfering with interactions */
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Removed will-change property for better initial performance */
}

.shape-1 {
    width: 100px;
    height: 100px;
    background-color: var(--color-primary);
    top: 10px;
    left: 20px;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background-color: var(--color-secondary);
    top: -10px;
    left: 100px;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    top: 80px;
    left: 80px;
}

/* Remove morph animation for better performance */
@media (prefers-reduced-motion: no-preference) {
    .shape-1 {
        animation: morph 8s ease-in-out infinite;
    }
    
    .shape-2 {
        animation: morph 8s ease-in-out infinite 1s;
    }
    
    .shape-3 {
        animation: morph 8s ease-in-out infinite 2s;
    }
    
    @keyframes morph {
        0% {
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }
        25% {
            border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        }
        50% {
            border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        }
        75% {
            border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        }
        100% {
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        }
    }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    margin-bottom: 2rem;
    max-width: 90%;
    position: relative;
    z-index: 2;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.hero-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-metrics {
    display: flex;
    gap: 3rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.metric {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem; /* Allow space when wrapped */
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

/* Hero Visuals */
.hero-visuals {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto; /* Remove fixed height */
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper {
    position: relative;
    width: 80%;
    z-index: 2;
    transition: transform 0.3s ease; /* Smoothen transitions */
}

.main-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio instead of fixed height */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.main-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

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

.image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    /* Removed will-change property for better initial performance */
}

.circle-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.2) 0%, rgba(114, 9, 183, 0) 70%);
    top: -80px;
    right: -60px;
}

.circle-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, rgba(67, 97, 238, 0) 70%);
    bottom: -40px;
    left: -30px;
}

.circle-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.2) 0%, rgba(247, 37, 133, 0) 70%);
    top: 50%;
    left: -20px;
}

.decoration-line {
    position: absolute;
    background-color: rgba(67, 97, 238, 0.2);
    border-radius: 999px;
}

.line-1 {
    height: 3px;
    width: 80px;
    transform: rotate(-45deg);
    top: 20px;
    left: -20px;
}

.line-2 {
    height: 3px;
    width: 120px;
    transform: rotate(20deg);
    bottom: 40px;
    right: -20px;
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.card {
    position: absolute;
    width: 240px;
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Cards initially visible for desktop */
    opacity: 1;
    transform: translateY(0);
}

/* Adjust card positioning */
.card-1 {
    top: 10%;
    left: -40px;
}

.card-2 {
    top: 50%;
    right: -60px;
}

.card-3 {
    bottom: 10%;
    left: 10%;
}

/* Add floating animation for desktop */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .card {
        animation: floating 3s ease-in-out infinite;
    }
    
    .card-1 {
        animation-delay: 0s;
    }
    
    .card-2 {
        animation-delay: 0.7s;
    }
    
    .card-3 {
        animation-delay: 1.4s;
    }
    
    @keyframes floating {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
        100% {
            transform: translateY(0);
        }
    }
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--color-gray-900);
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stars {
    color: #FFD700;
    font-size: 0.75rem;
}

.count {
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

/* Educational Icons */
.illustration-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.element {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6; /* Start visible for better mobile performance */
    /* Removed will-change property for better initial performance */
}

.element svg {
    width: 100%;
    height: 100%;
}

.element-1 {
    top: 20%;
    right: 10%;
    color: var(--color-primary);
}

.element-2 {
    bottom: 30%;
    left: 5%;
    color: var(--color-secondary);
}

.element-3 {
    top: 70%;
    right: 15%;
    color: var(--color-accent);
}

/* Use fade animations only on larger screens */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .element {
        opacity: 0;
    }
    
    .element-1 {
        animation: fade-in 0.8s ease forwards 0.8s;
    }
    
    .element-2 {
        animation: fade-in 0.8s ease forwards 1s;
    }
    
    .element-3 {
        animation: fade-in 0.8s ease forwards 1.2s;
    }
    
    @keyframes fade-in {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 0.6;
        }
    }
}

/* Features Section
----------------------------------------------- */
.features {
    padding: 5rem 0;
    overflow: hidden; /* Prevent horizontal overflow */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius-md);
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
    /* Cards start fully visible */
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-100);
    border-radius: var(--border-radius-full);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* Video Section
----------------------------------------------- */
.video-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-placeholder:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 20px 60px rgba(67, 97, 238, 0.2);
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg), 0 10px 25px rgba(67, 97, 238, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Increase touch target and accessibility */
    min-width: 90px;
    min-height: 90px;
    z-index: 3;
}

.play-button svg {
    width: 30px;
    height: 30px;
    color: white;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-xl), 0 15px 35px rgba(67, 97, 238, 0.4);
}

/* Add focus state for accessibility */
.play-button:focus {
    outline: 3px solid var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.v-circle-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.15) 0%, rgba(114, 9, 183, 0) 70%);
    top: -80px;
    right: -60px;
    border-radius: 50%;
}

.v-circle-2 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, rgba(67, 97, 238, 0) 70%);
    bottom: -40px;
    left: -30px;
    border-radius: 50%;
}

.v-circle-3 {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.15) 0%, rgba(247, 37, 133, 0) 70%);
    top: 40%;
    right: -20px;
    border-radius: 50%;
}

.video-caption {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--color-gray-700);
    font-weight: 500;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

/* Mission Section
----------------------------------------------- */
.mission-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-gray-100) 100%);
    position: relative;
    overflow: hidden;
}

.mission-content {
    position: relative;
    z-index: 2;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.mission-text {
    position: relative;
}

.mission-text p {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.mission-text p:last-child {
    margin-bottom: 0;
}

.mission-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.mission-stat {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
    /* Start fully visible for better mobile performance */
    opacity: 1;
    transform: translateY(0);
}

.mission-stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--color-primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.mission-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.mission-stat .stat-label {
    font-size: 1rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

/* Carousel Section
----------------------------------------------- */
.carousel-section {
    padding: 5rem 0;
    background-color: var(--color-gray-100);
    overflow: hidden; /* Prevent horizontal overflow */
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast) ease;
    /* Improve touch targets */
    min-width: 50px;
    min-height: 50px;
}

.carousel-btn:hover, .carousel-btn:focus {
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

/* Add focus styles for accessibility */
.carousel-btn:focus {
    outline: 3px solid var(--color-primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 16px; /* Increased size for touch targets */
    height: 16px; /* Increased size for touch targets */
    border-radius: var(--border-radius-full);
    background-color: var(--color-gray-400);
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
}

.dot.active {
    background-color: var(--color-primary);
}

/* Add focus state for keyboard navigation */
.dot:focus {
    outline: 3px solid var(--color-primary-dark);
}

/* CTA Section
----------------------------------------------- */
.cta-section {
    padding: 7rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background-color: rgba(255, 255, 255, 0.1);
    /* Removed will-change for better initial performance */
}

.cta-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.cta-shape.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
}

.cta-shape.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 50px;
    right: 10%;
}

/* Only add animations for non-mobile and if user doesn't prefer reduced motion */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .cta-shape.shape-1 {
        animation: morph 10s ease-in-out infinite;
    }
    
    .cta-shape.shape-2 {
        animation: morph 10s ease-in-out infinite 2s;
    }
    
    .cta-shape.shape-3 {
        animation: morph 10s ease-in-out infinite 4s;
    }
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    /* Prevent breaking words across lines */
    white-space: normal;
    word-break: keep-all;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

.cta-section .btn-primary:hover {
    background-color: var(--color-gray-100);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-icons {
    display: none; /* Changed from flex to none to hide the icons */
}

/* Footer
----------------------------------------------- */
footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: 4rem 0 2rem;
    overflow: hidden; /* Prevent horizontal overflow */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
  	margin-top: -70px;
}

.footer-logo a {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 200px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--color-gray-400);
    transition: color var(--transition-fast) ease;
    padding: 0.25rem 0; /* Increase touch target */
}

.footer-column a:hover, .footer-column a:focus {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-800);
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

/* Media Queries
----------------------------------------------- */
@media (max-width: 1200px) {
    .hero-headline h1 {
        font-size: 3rem;
    }
    
    .main-image {
        aspect-ratio: 16 / 10; /* Slight adjustment for this breakpoint */
    }
    
    .card {
        width: 220px;
    }
    
    .mission-grid {
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1rem;
    }
    
    .hero-headline h1 {
        font-size: 2.5rem;
    }
    
    .hero-advanced {
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding: 3rem 0 1.5rem;
        order: 0; /* Ensure content comes first on mobile */
    }
    
    .hero-visuals {
        height: auto;
        padding-bottom: 2rem;
        order: 1; /* Visuals come after content on mobile */
    }
    
    .main-image-wrapper {
        width: 85%;
        margin: 0 auto;
    }
    
    /* Hide cards on tablet/mobile */
    .floating-cards {
        display: none;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mission-text {
        order: 0; /* Changed from 1 to 0 to ensure text appears first on mobile */
    }
    
    .mission-stats-container {
        order: 1; /* Changed from 0 to 1 to ensure stats appear after text on mobile */
    }
    
    /* Adjust CTA buttons for better spacing */
    .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Fix mobile navigation */
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .nav-logo img {
        height: 150px;
      	margin-left: -20px;
    }
    
    .hero-headline h1 {
        font-size: 2rem;
        text-align: center; /* Center align heading on mobile */
    }
    
    .hero-description {
        font-size: 1.1rem;
        text-align: center; /* Center align paragraph on mobile */
        max-width: 100%; /* Allow full width for centered text */
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center; /* Ensure CTA buttons are centered */
    }
    
    .hero-metrics {
        gap: 1.5rem;
        justify-content: center; /* Center metrics on mobile */
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .hero-visuals {
        height: auto;
        max-height: 450px;
    }
    
    .main-image {
        aspect-ratio: 16 / 9;
    }
    
    /* Hide all floating cards on mobile */
    .floating-cards {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-stats-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .mission-stat {
        padding: 1.5rem 1rem;
    }
    
    .mission-stat .stat-number {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logo img {
        height: 150px;
      	margin-left: -20px;
    }
    
    /* Carousel adjustments */
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    /* Fix text wrapping on section headers for mobile */
    .section-header h2, .cta-content h2 {
        white-space: normal;
        word-break: keep-all;
        hyphens: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-advanced {
        padding: 0;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-headline h1 {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-metrics {
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }
    
    .metric {
        min-width: 80px;
    }
    
    .metric-number {
        font-size: 1.75rem;
    }
    
    .metric-label {
        font-size: 0.85rem;
    }
    
    .hero-visuals {
        height: auto;
        max-height: 350px;
    }
    
    .main-image-wrapper {
        width: 90%;
    }
    
    /* Hide all floating cards on small mobile devices */
    .floating-cards {
        display: none;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
    }
    
    .play-button svg {
        width: 20px;
        height: 20px;
    }
    
    .mission-stats-container {
        grid-template-columns: 1fr;
    }
    
    .carousel-buttons {
        padding: 0 0.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        /* Prevent word breaking in the middle of words */
        white-space: normal;
        word-break: keep-all;
        hyphens: none;
    }
    
    .video-placeholder {
        margin: 0 auto;
        width: 95%;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        /* Prevent word breaking in the middle of words */
        white-space: normal;
        word-break: keep-all;
        hyphens: none;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-icons {
        gap: 2rem;
    }
    
    /* Add overscroll behavior to prevent bounce causing horizontal scroll */
    html, body {
        overscroll-behavior-x: none;
    }
}

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

/* Focus styles for keyboard navigation */
a:focus, button:focus, [tabindex="0"]:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-container, 
    .hero-visuals, 
    .video-section, 
    .carousel-section, 
    .cta-section, 
    footer {
        display: none;
    }
    
    .hero-content, 
    .features, 
    .mission-section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
}

/* Reduced motion preferences */
@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;
    }
    
    .card, .shape, .cta-shape, .element, .mission-stat {
        animation: none !important;
        transform: none !important;
    }
    
    .hero-content, .hero-visuals {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Utility classes for improving performance */
.no-animation {
    animation: none !important;
    transition: none !important;
}

.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Performance class for cards and features */
.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Added for Mobile Menu Button Fix */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        width: 24px;
        height: 18px;
        position: relative;
        padding: 0;
        margin: 10px;
    }
    
    .mobile-menu-btn span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color-gray-800);
        border-radius: 1px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: all 0.25s ease-in-out;
    }
    
    .mobile-menu-btn span:nth-child(1) {
        top: 0;
    }
    
    .mobile-menu-btn span:nth-child(2) {
        top: 8px;
    }
    
    .mobile-menu-btn span:nth-child(3) {
        top: 16px;
    }
}

/* 
=======================================
Enhanced Styles for Freelancers Page
=======================================
*/

/* Enhanced Sub-Hero Section
----------------------------------------------- */
.enhanced-sub-hero {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    overflow: hidden;
}

.enhanced-sub-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.enhanced-sub-hero .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.enhanced-sub-hero .section-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.enhanced-sub-hero .accent-bar {
    margin: 0;
}

.enhanced-sub-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    margin-bottom: 1.5rem;
}

.enhanced-sub-hero .btn {
    margin-top: 1rem;
}

.sub-hero-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.sub-hero-image:hover {
    transform: translateY(-10px);
}

.sub-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.sub-hero-image:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.image-decoration .decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.image-decoration .circle-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.2) 0%, rgba(114, 9, 183, 0) 70%);
    top: -80px;
    right: -60px;
}

.image-decoration .circle-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, rgba(67, 97, 238, 0) 70%);
    bottom: -40px;
    left: -30px;
}

.image-decoration .line-1 {
    position: absolute;
    height: 3px;
    width: 120px;
    background-color: rgba(67, 97, 238, 0.2);
    transform: rotate(20deg);
    bottom: 40px;
    right: -20px;
    border-radius: 999px;
}

/* Enhanced Benefits Section
----------------------------------------------- */
.enhanced-benefits {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.enhanced-benefits .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-card.expanded {
    box-shadow: var(--shadow-lg);
}

.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    background: linear-gradient(to right, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.benefit-card.expanded .benefit-header {
    background: linear-gradient(to right, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
}

.benefit-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0;
}

.expand-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: var(--color-primary);
}

.expand-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: rotate(90deg);
}

.expand-btn .icon-plus,
.expand-btn .icon-minus {
    width: 16px;
    height: 16px;
    transition: opacity 0.3s ease;
}

.expand-btn .icon-minus {
    position: absolute;
    opacity: 0;
}

.expand-btn[aria-expanded="true"] .icon-plus {
    opacity: 0;
}

.expand-btn[aria-expanded="true"] .icon-minus {
    opacity: 1;
}

.expand-btn[aria-expanded="true"] {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: rotate(180deg);
}

.benefit-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.benefit-content p {
    padding: 1.5rem 0;
    margin: 0;
    color: var(--color-gray-700);
    line-height: 1.6;
}

/* Enhanced How It Works Section
----------------------------------------------- */
.enhanced-how-it-works {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--color-white), var(--color-gray-100));
    overflow: hidden;
}

.enhanced-how-it-works .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step:hover::before {
    transform: scaleX(1);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-gray-900);
}

.step-content p {
    color: var(--color-gray-700);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Enhanced Success Stories Section
----------------------------------------------- */
.enhanced-success-stories {
    padding: 5rem 0;
    background-color: var(--color-gray-100);
}

.enhanced-success-stories .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.story-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-rating {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-top-left-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-rating .stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.story-rating .count {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.story-content {
    padding: 2rem;
}

.story-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.story-quote {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.quote-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    opacity: 0.6;
}

.story-quote p {
    font-style: italic;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin: 0;
}

.story-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--color-gray-200);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Adjustments
----------------------------------------------- */
@media (max-width: 991px) {
    .enhanced-sub-hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .enhanced-sub-hero .section-header {
        text-align: center;
    }
    
    .enhanced-sub-hero .accent-bar {
        margin: 0 auto;
    }
    
    .benefits-container,
    .steps-container,
    .stories-container {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .enhanced-sub-hero .section-header h1 {
        font-size: 2.2rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .story-image {
        height: 180px;
    }
    
    .story-content {
        padding: 1.5rem;
    }
    
    .story-stats {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .enhanced-sub-hero {
        padding: 3rem 0;
    }
    
    .enhanced-sub-hero .section-header h1 {
        font-size: 1.8rem;
    }
    
    .enhanced-sub-hero p {
        font-size: 1rem;
    }
    
    .benefit-header h3 {
        font-size: 1.1rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .story-content h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
}

/* Print Style Adjustments
----------------------------------------------- */
@media print {
    .enhanced-sub-hero,
    .enhanced-benefits,
    .enhanced-how-it-works,
    .enhanced-success-stories {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .sub-hero-image,
    .benefit-card,
    .step,
    .story-card {
        box-shadow: none;
    }
}

/* Reduced Motion Preferences
----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .sub-hero-image,
    .sub-hero-image img,
    .benefit-card,
    .step,
    .step::before,
    .story-card,
    .story-image img,
    .expand-btn {
        transition: none;
        animation: none;
        transform: none;
    }
}

/* 
=======================================
Enhanced Styles for Schools Page
=======================================
*/

/* Schools Hero Specific Styling
----------------------------------------------- */
.schools-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #eef2ff 100%);
}

.schools-hero .section-header h1 {
    color: var(--color-primary);
}

/* Safety Section
----------------------------------------------- */
.enhanced-safety {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--color-white), var(--color-gray-100));
}

.enhanced-safety .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.safety-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.safety-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.safety-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.safety-card:hover::after {
    transform: scaleX(1);
}

.safety-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--color-primary);
}

.safety-icon svg {
    width: 40px;
    height: 40px;
}

.safety-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.safety-card p {
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Adjustments for Safety Section
----------------------------------------------- */
@media (max-width: 767px) {
    .safety-card {
        padding: 2rem 1.5rem;
    }
    
    .safety-icon {
        width: 60px;
        height: 60px;
    }
    
    .safety-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .safety-cards {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
}

/* 
=======================================
Enhanced Styles for About Us Page
=======================================
*/

/* Page Header
----------------------------------------------- */
.enhanced-page-header {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    overflow: hidden;
    text-align: center;
}

.header-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.header-bg-decoration .bg-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
}

.header-bg-decoration .shape1 {
    background-color: var(--color-primary);
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.header-bg-decoration .shape2 {
    background-color: var(--color-secondary);
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -150px;
}

.header-bg-decoration .shape3 {
    background-color: var(--color-accent);
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
}

.header-content {
    position: relative;
    z-index: 2;
}

.enhanced-page-header .section-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* About Content
----------------------------------------------- */
.enhanced-about-content {
    padding: 5rem 0;
}

.about-intro {
    position: relative;
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.intro-decoration {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(114, 9, 183, 0.1) 100%);
    border-radius: var(--border-radius-full);
    color: var(--color-primary);
}

.intro-icon {
    width: 40px;
    height: 40px;
}

.about-intro p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: 0;
}

.about-mission {
    margin-bottom: 5rem;
}

.about-mission .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.enhanced-about-content .mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.enhanced-about-content .mission-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.enhanced-about-content .mission-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.enhanced-about-content .mission-image:hover img {
    transform: scale(1.05);
}

.enhanced-about-content .mission-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: 0;
}

/* Values Carousel
----------------------------------------------- */
.about-values {
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.about-values .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.values-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.value-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.value-card:hover::after {
    transform: scaleX(1);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--color-primary);
}

.value-icon svg {
    width: 35px;
    height: 35px;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.value-card p {
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Values Navigation */
.values-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.values-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

.values-nav-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.values-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.values-dots {
    display: flex;
    gap: 0.5rem;
}

.values-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-gray-300);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.values-dots .dot.active {
    background-color: var(--color-primary);
}

/* Responsive Adjustments
----------------------------------------------- */
@media (max-width: 1200px) {
    .value-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 991px) {
    .enhanced-page-header .section-header h1 {
        font-size: 3rem;
    }
    
    .enhanced-about-content .mission-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .enhanced-about-content .mission-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .value-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .enhanced-page-header {
        padding: 4rem 0;
    }
    
    .enhanced-page-header .section-header h1 {
        font-size: 2.5rem;
    }
    
    .about-intro {
        padding: 1.5rem;
    }
    
    .about-intro p {
        font-size: 1.1rem;
    }
    
    .value-card {
        flex: 0 0 calc(100% - 10px);
    }
}

@media (max-width: 576px) {
    .enhanced-page-header .section-header h1 {
        font-size: 2rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
}

/* Print Style Adjustments
----------------------------------------------- */
@media print {
    .enhanced-page-header,
    .enhanced-about-content {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .about-intro,
    .value-card {
        box-shadow: none;
    }
    
    .values-nav,
    .cta-section {
        display: none;
    }
}

/* Reduced Motion Preferences
----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .enhanced-about-content .mission-image img,
    .value-card,
    .value-card::after,
    .values-carousel {
        transition: none;
        animation: none;
        transform: none;
    }
}

/* 
=======================================
Enhanced Styles for Legal Pages
=======================================
*/

/* Legal Header Styles
----------------------------------------------- */
.enhanced-page-header .last-updated {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin-top: 1rem;
}

/* Legal Content Styles
----------------------------------------------- */
.enhanced-legal-content {
    padding: 4rem 0 6rem;
    background: linear-gradient(to bottom, var(--color-white), var(--color-gray-100));
}

.legal-section {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.legal-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--color-gray-700);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section strong {
    font-weight: 600;
    color: var(--color-gray-900);
}

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

.legal-section ul li {
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast) ease;
}

.legal-section a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Responsive Adjustments
----------------------------------------------- */
@media (max-width: 991px) {
    .enhanced-legal-content {
        padding: 3rem 0 5rem;
    }
    
    .legal-section {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .enhanced-page-header .last-updated {
        font-size: 0.9rem;
    }
    
    .legal-section h2 {
        font-size: 1.35rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .enhanced-legal-content {
        padding: 2rem 0 4rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-section ul {
        padding-left: 1.5rem;
    }
}

/* 
=======================================
Styles for Sign Up Pages
=======================================
*/

/* Sign Up Section
----------------------------------------------- */
.signup-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    min-height: calc(100vh - 80px - 320px); /* Viewport height minus header and footer */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.signup-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.signup-bg-decoration .bg-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
}

.signup-bg-decoration .shape1 {
    background-color: var(--color-primary);
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.signup-bg-decoration .shape2 {
    background-color: var(--color-secondary);
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -150px;
}

.signup-container {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.signup-header {
    padding: 2.5rem 2.5rem 1rem;
    text-align: center;
}

.signup-header .section-header {
    margin-bottom: 0;
}

.signup-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.signup-header p {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    color: var(--color-gray-600);
}

.signup-form-container {
    padding: 2rem 2.5rem 2.5rem;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-gray-700);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-group input::placeholder {
    color: var(--color-gray-500);
}

/* Custom styling for select dropdowns */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--color-gray-600);
    pointer-events: none;
    font-size: 0.8rem;
}

.select-wrapper select {
    width: 100%;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Checkbox styling */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-white);
    cursor: pointer;
    position: relative;
    top: 0.125rem;
    flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0.25rem;
    width: 0.375rem;
    height: 0.6875rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-checkbox label {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast) ease;
}

.form-checkbox a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.signup-form .btn {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.form-alternate {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.form-alternate p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin: 0;
}

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

.form-alternate a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Active state for sign up buttons in nav */
.nav-actions .btn.active,
.mobile-menu .btn.active {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}

/* Responsive Adjustments 
----------------------------------------------- */
@media (max-width: 768px) {
    .signup-section {
        padding: 4rem 0;
    }
    
    .signup-container {
        max-width: 100%;
    }
    
    .signup-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .signup-header h1 {
        font-size: 2rem;
    }
    
    .signup-form-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .signup-section {
        padding: 3rem 0;
    }
    
    .signup-header h1 {
        font-size: 1.75rem;
    }
    
    .signup-header p {
        font-size: 1rem;
    }
    
    .form-checkbox {
        align-items: flex-start;
    }
    
    .form-checkbox input[type="checkbox"] {
        top: 0.25rem;
    }
}

/* 
=======================================
Thank You Page Styles
=======================================
*/

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.thank-you-icon svg {
    width: 100%;
    height: 100%;
}

.thank-you-message {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    margin-bottom: 2rem;
}

.thank-you-actions {
    margin-top: 1rem;
}

.thank-you-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thank-you-actions .btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .thank-you-content {
        padding: 2rem 1.5rem;
    }
    
    .thank-you-icon {
        width: 70px;
        height: 70px;
    }
    
    .thank-you-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .thank-you-content {
        padding: 1.5rem 1rem;
    }
    
    .thank-you-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .thank-you-message {
        font-size: 1rem;
    }
}

/* 
=======================================
Sign Up Choice Page Styles
=======================================
*/

.signup-choice-container {
    padding: 2rem 2.5rem 2.5rem;
}

.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.choice-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.choice-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.choice-card:hover::after {
    transform: scaleX(1);
}

.choice-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--color-primary);
}

.choice-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.choice-card p {
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.choice-card .btn {
    margin-top: auto;
    padding: 1rem;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choice-card .btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Responsive Adjustments 
----------------------------------------------- */
@media (max-width: 768px) {
    .signup-choice-container {
        padding: 1.5rem;
    }
    
    .choice-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .choice-card {
        padding: 1.5rem;
    }
    
    .choice-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .choice-card h3 {
        font-size: 1.1rem;
    }
}

/* Add these CSS rules to your existing styles.css file */

/* Benefits Section Update - Desktop vs Mobile Display
----------------------------------------------- */

/* Default desktop styles for benefits */
@media (min-width: 769px) {
    .benefit-card {
        padding-bottom: 1rem; /* Add consistent bottom padding */
    }
    
    .benefit-content {
        max-height: none !important; /* Always show content on desktop */
        overflow: visible; /* Ensure content is not hidden */
    }
    
    .benefit-header {
        margin-bottom: 0.5rem; /* Consistent spacing below header */
    }
    
    /* Hide expand buttons on desktop */
    .expand-btn {
        display: none;
    }
    
    /* Update header to make it more prominent on desktop */
    .benefit-header h3 {
        position: relative;
        padding-bottom: 0.75rem; /* Add space for underline */
    }
    
    .benefit-header h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    }
    
    /* Equalize card heights on desktop */
    .benefits-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        align-items: stretch; /* Make all cards same height */
    }
    
    .benefit-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .benefit-content {
        flex-grow: 1; /* Allow content to expand to fill card */
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .benefit-header {
        border-bottom: none; /* Remove border for unexpanded cards */
    }
    
    .benefit-card.expanded .benefit-header {
        border-bottom: 1px solid var(--color-gray-200);
        margin-bottom: 0.5rem;
    }
    
    .benefit-content {
        padding: 0 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* Fix the expand button on mobile */
    .expand-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent awkward word breaks across all text elements */
p, h1, h2, h3, h4, h5, h6, li, blockquote, span, a, div {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Remove blue focus outline from interactive elements */
a:focus, button:focus, [tabindex]:focus {
    outline: none !important;
}