/* ========================================= */
/* MODERN RESPONSIVE CSS FRAMEWORK */
/* Mobile-First Design System */
/* ========================================= */

/* Mobile Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p, h1, h2, h3, h4, h5, h6, span, div.content, .text-content {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Smooth scrolling for better mobile UX */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Mobile-Optimized Fluid Typography Scale */
    --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
    --font-size-base: clamp(1rem, 3vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
    --font-size-3xl: clamp(1.875rem, 6vw, 2.5rem);
    --font-size-4xl: clamp(2.25rem, 8vw, 3.5rem);
    
    /* Mobile-First Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Mobile-Optimized Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-max: 1200px;
    
    /* Mobile Breakpoints */
    --bp-xs: 375px;   /* Small phones */
    --bp-sm: 640px;   /* Large phones */
    --bp-md: 768px;   /* Tablets */
    --bp-lg: 1024px;  /* Small laptops */
    --bp-xl: 1280px;  /* Large screens */
    
    /* Mobile Touch Targets */
    --touch-target-min: 44px;
    --touch-target-comfortable: 48px;
    
    /* Colors with Dark Mode Support */
    --color-primary: #667eea;
    --color-primary-dark: #5a6fd8;
    --color-secondary: #764ba2;
    --color-accent: #10b981;
    
    /* Light Theme Colors */
    --color-bg: #ffffff;
    --color-bg-secondary: #f8f9ff;
    --color-text: #1a1a2e;
    --color-text-muted: #666666;
    --color-border: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1a1a2e;
        --color-bg-secondary: #16213e;
        --color-text: #ffffff;
        --color-text-muted: #a0a0a0;
        --color-border: #334155;
    }
}

/* Dark Mode Class Override */
.dark {
    --color-bg: #1a1a2e;
    --color-bg-secondary: #16213e;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: #334155;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Respect reduced motion preference */
@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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent zoom on input focus */
    -webkit-text-size-adjust: 100%;
    /* Improve touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Better mobile performance */
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* iOS Safe Area Support */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Responsive Images with Mobile Optimization */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
    /* Mobile performance optimizations */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Lazy loading support */
    loading: lazy;
    /* Better mobile image quality */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Remove default button styles and ensure touch targets */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

/* Form elements touch targets */
input,
textarea,
select {
    min-height: 44px;
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-4);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Container System */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Responsive Grid System */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

/* Auto-fit grid for responsive cards */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Flexbox utilities */
.flex {
    display: flex;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

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

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Responsive spacing utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Responsive visibility */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }

/* Responsive breakpoint utilities */
@media (min-width: 640px) {
    .sm\:block { display: block !important; }
    .sm\:hidden { display: none !important; }
    .sm\:flex { display: flex !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sm\:text-center { text-align: center; }
    .sm\:text-left { text-align: left; }
}

@media (min-width: 768px) {
    .md\:block { display: block !important; }
    .md\:hidden { display: none !important; }
    .md\:flex { display: flex !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:text-center { text-align: center; }
    .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block !important; }
    .lg\:hidden { display: none !important; }
    .lg\:flex { display: flex !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .lg\:text-center { text-align: center; }
    .lg\:text-left { text-align: left; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .xl\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
}

/* Section System */
.section {
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.section-sm {
    padding: var(--space-8) 0;
}

.section-lg {
    padding: var(--space-16) 0;
}

/* Component System */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    border: 1px solid var(--color-border);
}

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

.card-compact {
    padding: var(--space-4);
}

.card-spacious {
    padding: var(--space-8);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    font-size: var(--font-size-base);
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    touch-action: manipulation;
}

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

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

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

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--color-primary);
    color: var(--color-text);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--color-gray-50);
    color: var(--color-text);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    min-height: 52px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Form System */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    line-height: 1.5;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-input:invalid {
    border-color: var(--color-error);
}

.form-error {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
}

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

.badge-secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

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

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

.badge-error {
    background: var(--color-error);
    color: white;
}

/* Loading states */
.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-300);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive images and media */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* Screen reader utilities */
.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;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-scroll {
    will-change: scroll-position;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Lazy loading images */
.lazy-img {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.lazy-img.loaded {
    opacity: 1;
}

/* Critical resource hints */
.preload-important {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

/* 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;
    }
    
    .hero::before {
        animation: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text: #000000;
        --color-bg: #ffffff;
        --color-primary: #0000ff;
        --color-border: #000000;
    }
    
    .card {
        border: 2px solid var(--color-border);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f0f0f;
        --color-surface: #1a1a1a;
        --color-text: #ffffff;
        --color-text-muted: #a1a1aa;
        --color-border: #27272a;
        --color-gray-50: #1a1a1a;
        --color-gray-100: #27272a;
        --color-gray-200: #3f3f46;
        --color-gray-300: #52525b;
        --color-gray-700: #a1a1aa;
        --color-gray-800: #d4d4d8;
        --color-gray-900: #f4f4f5;
    }
    
    .hero {
        background-attachment: scroll; /* Better performance on mobile dark mode */
    }
}

/* Print styles */
@media print {
    .no-print,
    .mobile-menu-toggle,
    .floating-filter-btn,
    .btn,
    nav,
    footer {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
        margin: 0;
        padding: 0;
    }
    
    .hero {
        background: none;
        color: #000;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* URLs for links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn,
    button,
    input,
    textarea,
    select {
        min-height: 48px;
    }
    
    /* Prevent zoom on input focus */
    input,
    textarea,
    select {
        font-size: 16px;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    :root {
        --container-max-width: 1400px;
    }
}

/* Cross-browser compatibility and final optimizations */
.focus-trap {
    isolation: isolate;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Ensure critical content loads first */
.above-fold {
    contain: layout style;
}

/* Browser-specific optimizations */
@supports (backdrop-filter: blur(10px)) {
    .glass-effect {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@supports (container-type: inline-size) {
    .responsive-container {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .card {
            padding: var(--space-4);
        }
    }
}

/* Prevent layout shift */
.aspect-ratio-container {
    position: relative;
    height: 0;
}

.aspect-ratio-container.ratio-16-9 {
    padding-bottom: 56.25%;
}

.aspect-ratio-container.ratio-4-3 {
    padding-bottom: 75%;
}

.aspect-ratio-container.ratio-1-1 {
    padding-bottom: 100%;
}

.aspect-ratio-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Final responsive framework utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-none { max-width: none; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.z-0 { z-index: 0; }
.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; }

/* Responsive framework complete - ready for production */

.contact-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255,255,255,0.55);
    border-radius: 12px;
    box-shadow: 0 4px 12px 0 rgba(80, 80, 160, 0.08), 0 1px 6px rgba(102,126,234,0.05);
    border: 1px solid rgba(102,126,234,0.08);
    backdrop-filter: blur(18px) saturate(160%);
    padding: 1rem 0.8rem 0.9rem 0.8rem;
    min-width: 160px;
    max-width: 180px;
    flex: 1 1 160px;
    position: relative;
    overflow: visible;
    z-index: 1;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
    opacity: 1;
    /* Enhanced Course Cards for Modern Look */
    .card-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        align-items: stretch;
    }

    .card.course-card {
        background: #ffffff;
        border-radius: 8px;
        padding: 1rem 0.9rem 0.9rem 0.9rem;
        box-shadow: 0 3px 12px rgba(102,126,234,0.06), 0 1px 4px rgba(118,75,162,0.04);
        border: 1px solid rgba(102,126,234,0.04);
        min-width: 240px;
        max-width: 280px;
        flex: 1 1 260px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        position: relative;
        transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1), background 0.3s cubic-bezier(.4,0,.2,1);
        overflow: hidden;
        z-index: 1;
        animation: card-fade-in 1.2s cubic-bezier(.4,0,.2,1) both;
    }
    .card.course-card:hover {
        box-shadow: 0 6px 20px rgba(80, 80, 160, 0.12), 0 1px 6px rgba(102,126,234,0.08);
        transform: translateY(-2px) scale(1.01);
        background: #fafbff;
        border-color: rgba(102,126,234,0.15);
    }
    .card.course-card h3 {
        font-size: 1.3rem;
        font-weight: 800;
        margin-bottom: 0.8rem;
        color: #1a1a2e;
        letter-spacing: 0.01em;
        line-height: 1.3;
    }
    .card.course-card p {
        color: #2d2d4d;
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
        font-weight: 500;
        line-height: 1.6;
    }
    .card.course-card p strong {
        color: #1a1a2e;
        font-weight: 700;
    }
    .card.course-card h4 {
        font-size: 1.08rem;
        font-weight: 700;
        color: #4a4a6a;
        margin: 1.2rem 0 0.6rem 0;
    }
    .card.course-card .btn,
    .card.course-card .btn.btn-secondary {
        margin-top: 0;
        margin-bottom: 0;
        min-width: 140px;
        font-size: 1rem;
        padding: 0.7rem 1.7rem;
        border-radius: 2rem;
        box-shadow: 0 4px 16px rgba(102,126,234,0.10);
        transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    }
    .card.course-card .btn {
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
        color: #fff !important;
        font-weight: 700;
    }
    .card.course-card .btn.btn-secondary {
        background: #fff !important;
        color: #667eea !important;
        border: 2px solid #667eea;
        font-weight: 700;
    }
    .card.course-card .btn:hover,
    .card.course-card .btn.btn-secondary:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 8px 32px rgba(102,126,234,0.18);
    }
    .card.course-card .btn-group {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
    }
    .card.course-card .tech-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .card.course-card .tech-badges span {
        background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
        padding: 0.4rem 0.9rem;
        border-radius: 16px;
        font-size: 0.9rem;
        color: #2d2d4d;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(102,126,234,0.08);
        border: 1px solid rgba(102,126,234,0.1);
    }
    .card.course-card .course-icon {
        font-size: 2.2rem;
        margin-right: 1rem;
        vertical-align: middle;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    @keyframes card-fade-in {
        0% {
            opacity: 0;
            transform: translateY(40px) scale(0.97);
            filter: blur(6px);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
    }
    width: auto;
    min-width: 160px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(102,126,234,0.13);
    border: none;
    letter-spacing: 0.04em;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
    text-shadow: 0 2px 8px #764ba222;
}
.contact-card:hover {
    box-shadow: 0 32px 80px rgba(80, 80, 160, 0.28), 0 8px 32px rgba(102,126,234,0.18);
    transform: translateY(-10px) scale(1.06);
    background: rgba(255,255,255,0.98);
    border-top: 6px solid;
    border-image: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    border-image-slice: 1;
    animation: card-glow-hover 1.2s ease-in-out 1;
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%) !important;
    color: #fff !important;
.contact-card > * {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    width: 100%;
    box-sizing: border-box;
}
    box-shadow: 0 12px 36px rgba(102,126,234,0.18);
    transform: scale(1.06);
@keyframes card-glow {
    0% {
        box-shadow: 0 8px 32px rgba(80, 80, 160, 0.13), 0 1.5px 8px rgba(102,126,234,0.07), 0 0 0 0 rgba(102,126,234,0.18);
    }
    100% {
        box-shadow: 0 8px 32px rgba(80, 80, 160, 0.13), 0 1.5px 8px rgba(102,126,234,0.07), 0 0 16px 4px #764ba2aa;
    }
}
@keyframes card-glow-hover {
    0% {
        box-shadow: 0 8px 32px rgba(80, 80, 160, 0.13), 0 1.5px 8px rgba(102,126,234,0.07), 0 0 0 0 rgba(102,126,234,0.18);
    }
    100% {
        box-shadow: 0 32px 80px rgba(80, 80, 160, 0.28), 0 8px 32px rgba(102,126,234,0.18), 0 0 32px 8px #764ba2cc;
    }
}
}
.highlight-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.highlight-contact .card-icon,
.highlight-contact h3,
.highlight-contact p {
    color: white !important;
}
.streaming-contact {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    filter: blur(6px);
    animation: streaming-fade-in 1.2s cubic-bezier(.4,0,.2,1) forwards;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
@keyframes streaming-fade-in {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.97);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
    filter: brightness(1.04) drop-shadow(0 4px 24px #764ba244);
    z-index: 2;
}
.models-card-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .models-card-grid {
        gap: 2.5rem;
        padding: 0;
        margin: 2.5rem 0 2rem 0;
    }
}
/* Professional Model Cards */
.professional-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .professional-models-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        padding: 0;
    }
}

.professional-model-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf3;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.professional-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.model-header {
    padding: 2rem 2rem 1.5rem;
    text-align: left;
    background: #fafbfc;
    border-bottom: 1px solid #e8ecf3;
    position: relative;
}

.model-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.model-icon-pro {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.model-title-pro {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.02em;
}

.model-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.model-feature {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    min-height: 50px;
}

.model-feature:last-child {
    border-bottom: none;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.feature-label {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
    min-width: 100px;
    flex-shrink: 0;
}

.feature-value {
    font-weight: 500;
    color: #334155;
    text-align: right;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Individual model themes */
.classic-model .model-header::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.classic-model .feature-label {
    color: #d97706;
}

.premium-model .model-header::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.premium-model .feature-label {
    color: #667eea;
}

.flexi-model .model-header::before {
    background: linear-gradient(90deg, #059669 0%, #047857 100%);
}

.flexi-model .feature-label {
    color: #047857;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Header Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 1rem 2rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.logo-image {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.logo-image:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23667eea" width="1200" height="600"/><polygon fill="%23764ba2" points="0,600 1200,300 1200,600"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: var(--space-8) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

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

.hero-content {
    max-width: var(--container-max-width);
    padding: var(--container-padding);
    z-index: 2;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* Video Hero Section */
.video-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-hero .hero-content {
    max-width: var(--container-max-width);
    padding: var(--container-padding);
    z-index: 3;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.video-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.video-hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Video Hero Button - Match Video Colors */
.video-hero .btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
}

.video-hero .btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sections - Extra Compact */
.section {
    padding: 2rem 0;
    background: white;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PAT Compact Card Styling */
.pat-compact-card .course-header {
    margin-bottom: 1rem !important;
}

.pat-compact-card .course-info {
    margin-bottom: 1rem !important;
}

.pat-compact-card .tech-section {
    margin-bottom: 1rem !important;
}

.pat-compact-card .tech-badges {
    gap: 0.5rem !important;
    margin: 0.8rem 0 !important;
}

.pat-compact-card .tech-badges span {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem !important;
    border-radius: 12px !important;
}

.pat-compact-card .course-actions {
    gap: 0.8rem !important;
    margin-top: 0 !important;
}

/* Approach Benefits Cards - Same as Secret Sauce styling */
.approach-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .approach-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        padding: 0;
        max-width: 1200px;
        margin: 4rem auto;
    }
}

.approach-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.approach-card:hover::before {
    opacity: 1;
}

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.approach-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.approach-icon i {
    font-size: 2.2rem;
    color: white;
}

.approach-card:hover .approach-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.approach-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.approach-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    flex-grow: 1;
}

/* Animation states */
.streaming-approach {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(4px);
}

/* Secret Sauce Cards */
.secret-sauce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .secret-sauce-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        padding: 0;
        max-width: 1200px;
        margin: 4rem auto;
    }
}

.secret-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.secret-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.secret-card:hover::before {
    opacity: 1;
}

.secret-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.secret-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.secret-icon i {
    font-size: 2.2rem;
    color: white;
}

.secret-card:hover .secret-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.secret-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.secret-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    flex-grow: 1;
}

/* Animation states */
.streaming-secret {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(4px);
}

/* Cards */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .card-grid {
        gap: 2rem;
        padding: 0;
        margin-top: 3rem;
    }
}

.card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2.2rem 2.3rem 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    margin-bottom: 1.3rem;
    color: #333;
}

.card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.1rem;
/* Contact form and why-contact card specific tweaks */
.contact-form-card, .why-contact-card {
    min-height: 520px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
/* Container for form and why-contact cards to align them side by side and equal height */
.contact-form-row {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 0 auto 2.5rem auto;
    flex-wrap: wrap;
}
    background: rgba(255,255,255,0.82);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(80, 80, 160, 0.13), 0 1.5px 8px rgba(102,126,234,0.07);
    padding: 2.5rem 2.2rem 2.3rem 2.2rem;
    margin-bottom: 2.2rem;
    box-sizing: border-box;
}
.contact-form-card > *, .why-contact-card > * {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    width: 100%;
    box-sizing: border-box;
}
}

/* Three Phase Journey */
.phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.phase {
    text-align: center;
    padding: 2.2rem 2rem 2rem 2rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(80, 80, 160, 0.13), 0 1.5px 8px rgba(102,126,234,0.07);
    transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
    opacity: 1;
    transform: none;
}
/* Modern phase card enhancements */
.modern-phase {
    border-radius: 28px;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 12px 40px rgba(80, 80, 160, 0.15), 0 2px 12px rgba(102,126,234,0.10);
    position: relative;
    overflow: visible;
    z-index: 1;
    border: none;
    backdrop-filter: blur(12px);
    padding: 2.7rem 2.2rem 2.2rem 2.2rem;
}
.modern-phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 28px 28px 0 0;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(102,126,234,0.10);
}
.modern-phase:hover {
    box-shadow: 0 24px 64px rgba(80, 80, 160, 0.22), 0 4px 16px rgba(102,126,234,0.15);
    transform: translateY(-12px) scale(1.045);
    background: rgba(255,255,255,0.92);
}
.modern-phase .phase-icon {
    font-size: 3.7rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 16px rgba(102, 126, 234, 0.13));
}
.modern-phase h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    color: #1a1a2a;
    letter-spacing: 0.01em;
}
.modern-phase p {
    color: #333;
    font-size: 1.08rem;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.6;
}
/* Streaming phase animation (modern fade-in-up) */
.streaming-phase {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1), filter 0.8s cubic-bezier(.4,0,.2,1);
}
.modern-phase.animated {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
/* removed stray closing brace */
}

.phase:hover {
    transform: translateY(-5px);
}

.phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
}

.phase-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.phase h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Course Grid */
.course-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.course-category {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(80, 80, 160, 0.13), 0 1.5px 8px rgba(102,126,234,0.07);
    transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
/* Modern gradient border effect */
.course-category::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}
.course-category:hover {
    box-shadow: 0 16px 48px rgba(80, 80, 160, 0.22), 0 2px 12px rgba(102,126,234,0.13);
    transform: translateY(-8px) scale(1.03);
}
.course-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}
.course-category h3 i, .course-category h3 svg {
    font-size: 1.3em;
    color: #667eea;
}
.streaming-course {
    opacity: 0;
    transform: translateY(40px);
/* removed stray closing brace */
}

.course-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.course-category h3 {
    margin-bottom: 1rem;
    color: #333;
}

.course-list {
    list-style: none;
    margin: 1rem 0;
}

.course-list li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.course-list li:last-child {
    border-bottom: none;
}

/* Models Comparison */
.models-comparison {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

/* Models Layout with Side Headers */
.models-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.models-side-headers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 85px; /* Match model title + content margin precisely */
    position: sticky;
    top: 100px;
}

.side-header-item {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1rem 1rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(45, 55, 72, 0.15);
    border-left: 3px solid #080808;
    transition: all 0.3s ease;
    min-height: 70px; /* Match model-value height exactly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-header-item:hover {
    background: linear-gradient(135deg, #292929 0%, #313131 100%);
    transform: translateX(3px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

/* Professional Models Grid */
.professional-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    align-items: start;
}

.professional-model-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.professional-model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--card-color) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.professional-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.professional-model-card:hover::before {
    opacity: 1;
}

/* Model Colors - Enhanced with CSS variables */
.classic-model {
    --card-color: #f59e0b;
}

.premium-model {
    --card-color: #3b82f6;
}

.flexi-model {
    --card-color: #10b981;
}

/* Model Colors - just for borders and titles */

.model-title-pro {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
    padding: 0.8rem 0;
    border-bottom: 2px solid #f1f5f9;
    color: #1e293b;
    position: relative;
}

.model-title-pro::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--card-color, #64748b);
}

.model-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
    margin-top: 0.5rem;
}

.model-row {
    background: #f8f9ff;
    padding: 0.7rem 0.8rem;
    border-radius: 5px;
    border: 1px solid #e8f2ff;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.model-row:hover {
    background: #e8f2ff;
    transform: translateY(-1px);
}

.model-label {
    font-weight: 600;
    color: #667eea;
    font-size: 0.8rem;
    min-width: 80px;
    flex-shrink: 0;
}

.model-value {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4;
    min-height: 65px; /* Exact match with side headers */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.model-value:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--card-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .models-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .models-side-headers {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding-top: 0;
        margin-bottom: 1rem;
    }
    
    .side-header-item {
        font-size: 0.75rem;
        padding: 0.6rem 0.5rem;
    }
    
    .professional-models-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .professional-model-card {
        padding: 1.5rem;
    }
}

/* Modern Comparison Table Design */
.models-comparison {
    margin: 3rem 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    border: none;
    min-width: 120px;
}

.comparison-table th:first-child {
    text-align: left;
    min-width: 150px;
}

.comparison-table th i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #2c3e50;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    vertical-align: middle;
    line-height: 1.4;
    transition: all 0.3s ease;
    min-height: 80px;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 700;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    color: #667eea;
    font-size: 1rem;
    border-right: 3px solid #667eea;
    vertical-align: middle;
    min-width: 150px;
}

.comparison-table tbody tr {
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    z-index: 10;
    position: relative;
}

.comparison-table tbody tr:hover td {
    border-color: transparent;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .payment-cell {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    color: #27ae60;
    font-weight: 600;
}

.comparison-table .delivery-cell {
    background: linear-gradient(135deg, #fff5e6 0%, #ffeaa7 100%);
    color: #e67e22;
    font-weight: 600;
}

.comparison-table .schedule-cell {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    color: #3498db;
    font-weight: 600;
}

.comparison-table .assurance-cell {
    background: linear-gradient(135deg, #e8f5e8 0%, #d5f4e6 100%);
    color: #27ae60;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table .target-cell {
    background: linear-gradient(135deg, #f3e5f5 0%, #ffeaa7 100%);
    color: #8e44ad;
    font-weight: 600;
    font-style: italic;
}

.comparison-table .check-mark {
    color: #27ae60;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.comparison-table small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.2;
}

.comparison-table strong {
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .models-comparison {
        margin: 2rem -1rem;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.6rem;
    }
    
    .comparison-table th {
        font-size: 0.75rem;
    }
    
    .comparison-table td:first-child {
        font-size: 0.85rem;
    }
    
    .comparison-table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .models-comparison {
        margin: 2rem -1rem;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.6rem;
    }
    
    .comparison-table th {
        font-size: 0.75rem;
        padding: 1.2rem 0.6rem;
    }
    
    .comparison-table td:first-child {
        font-size: 0.85rem;
        padding: 1rem 0.8rem;
    }
    
    .comparison-table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Enhanced Animation */
@keyframes tableSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.models-comparison.fade-in {
    animation: tableSlideIn 0.8s ease-out;
}

/* Row highlight effect */
.comparison-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.comparison-table tbody tr:hover::before {
    transform: scaleY(1);
}

/* Alumni Section */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.alumni-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.alumni-card:hover {
    transform: translateY(-5px);
}

.alumni-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Main content wrapper */
main, .main-content {
    flex: 1 0 auto;
}

/* Enhanced Footer Design with Responsive Framework */
.footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%) !important;
    color: white;
    padding: 2rem 0 0.5rem;
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

/* Mobile footer optimizations */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-4) 0 var(--space-2);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: 0 var(--space-4);
        text-align: center;
        margin-bottom: var(--space-3);
    }
}

/* Ultra-compact mobile footer */
@media (max-width: 576px) {
    .footer {
        padding: var(--space-3) 0 var(--space-2);
    }
    
    .footer-content {
        gap: var(--space-3);
        margin-bottom: var(--space-2);
        padding: 0 var(--space-3);
    }
}

.footer-section {
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Mobile footer section heading optimization */
@media (max-width: 768px) {
    .footer-section h3 {
        margin-bottom: 0.8rem;
        font-size: 1rem;
        padding-bottom: 0.3rem;
    }
}

@media (max-width: 576px) {
    .footer-section h3 {
        margin-bottom: 0.6rem;
        font-size: 0.95rem;
    }
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.2rem 0;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #ccc;
}

.footer-section p i {
    color: #667eea;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

/* Mobile footer list optimization */
@media (max-width: 768px) {
    .footer-section ul li {
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 576px) {
    .footer-section ul li {
        margin-bottom: 0.3rem;
    }
}

.footer-section a:hover {
    color: #667eea;
    transform: translateX(5px);
}

/* Social Media Icons Enhancement */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 576px) {
    .social-links {
        gap: 0.6rem;
        margin-top: 0.6rem;
    }
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem 0.5rem;
    text-align: center;
    margin: 0 -2rem;
    background: none !important;
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding: 0.5rem 1rem 0.3rem;
        margin: 0 -1rem;
    }
}

/* Ultra-compact mobile footer bottom */
@media (max-width: 576px) {
    .footer-bottom {
        padding: 0.4rem 0.8rem 0.2rem;
        margin: 0 -0.8rem;
    }
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
}

.company-tagline {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Footer Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.3s;
}

/* Enhanced Video Footer Styles */
.video-footer {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    margin-top: auto;
    background: #000;
}

.footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-footer-overlay {
    position: relative;
    z-index: 2;
    background: rgba(26, 35, 50, 0.85);
    backdrop-filter: blur(2px);
    color: white;
    padding: 3rem 0 1rem;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-footer-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 3;
}

/* Inherit existing footer styles for content */
.video-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.video-footer .footer-section {
    transition: transform 0.3s ease;
}

.video-footer .footer-section:hover {
    transform: translateY(-2px);
}

.video-footer .footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.video-footer .footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.video-footer .footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.video-footer .footer-section a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.video-footer .footer-section p {
    color: #d0d0d0;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.video-footer .footer-section ul {
    list-style: none;
    padding: 0;
}

.video-footer .footer-section ul li {
    margin-bottom: 0.6rem;
}

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

.video-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-footer .social-links a:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.video-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.3);
}

.video-footer .footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.4;
}

.video-footer .company-tagline {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Video footer responsive adjustments */
@media (max-width: 768px) {
    .video-footer {
        min-height: 350px;
    }
    
    .video-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .video-footer-overlay {
        padding: 2rem 0 1rem;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .video-footer {
        min-height: 300px;
    }
    
    .video-footer-overlay {
        min-height: 300px;
    }
}

/* AI Bot */
/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Locked Fee Display */
.fee-locked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
    font-weight: 600;
}

.fee-form {
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.fee-revealed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Course Filter Styles */
.course-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    padding: 0 1rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .course-filter {
        gap: 1rem;
        margin: 2rem 0;
        padding: 0;
    }
}

/* Enhanced Filter buttons styling */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.filter-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: auto;
}

@media (min-width: 768px) {
    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
}

.filter-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.filter-btn:hover:before {
    left: 100%;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4) !important;
}

/* New Course Layout - Professional & Responsive */
.filter-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.course-section {
    padding: 3rem 0;
    background: white;
    margin-bottom: 0;
}

.course-section:nth-child(even) {
    background: #fafbfc;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.section-title i {
    color: #007bff;
    font-size: 1.8rem;
}

.section-desc {
    text-align: center;
    font-size: 1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    grid-auto-rows: max-content; /* Prevents height stretching */
}

@media (min-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.2rem;
        padding: 0;
        grid-auto-rows: max-content;
    }
}

@media (min-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        max-width: 1200px;
        gap: 1.5rem;
        grid-auto-rows: max-content;
    }
}

.course-grid .course-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px; /* More modern radius */
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04); /* Modern shadow */
    border: 1px solid rgba(102, 126, 234, 0.08); /* Subtle colored border */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth modern transition */
    display: flex;
    flex-direction: column;
    height: 420px !important;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    backdrop-filter: blur(10px); /* Modern glass effect */
}

@media (min-width: 768px) {
    .course-grid .course-card {
        padding: 1.2rem; /* Reduced from 1.5rem */
        height: 440px !important; /* Slightly taller for desktop with more padding - FORCED */
    }
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4); /* Modern gradient */
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-card:hover::before {
    left: 0;
}

.course-card:hover {
    transform: translateY(-6px) scale(1.02); /* More modern lift */
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08); /* Premium shadow */
    border-color: rgba(102, 126, 234, 0.2);
}

.course-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem; /* Reduced from 1rem */
    gap: 0.6rem; /* Reduced from 0.8rem */
    flex-shrink: 0; /* Don't shrink the header */
}

.course-icon {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    background: linear-gradient(135deg, #6366f1, #8b5cf6); /* Modern gradient icon */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2)); /* Modern shadow */
}

.course-header h3 {
    font-size: 1.1rem; /* Slightly smaller */
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2; /* Tighter */
}

.course-info {
    margin-bottom: 0.5rem; /* Even smaller */
    flex-shrink: 0; /* Don't shrink this section */
}

.course-info p {
    color: #2d2d4d;
    line-height: 1.3; /* Tighter */
    margin-bottom: 0.3rem; /* Smaller */
    font-size: 0.8rem; /* Even smaller */
}

.course-info p strong {
    color: #1a1a2e;
    font-weight: 600;
}

.tech-section {
    flex-grow: 1; /* Takes available space */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scroll */
    padding-right: 0.3rem; /* Space for scrollbar */
    margin-right: -0.3rem; /* Offset the padding */
}

/* Custom scrollbar styling for tech-section */
.tech-section::-webkit-scrollbar {
    width: 4px;
}

.tech-section::-webkit-scrollbar-track {
    background: transparent;
}

.tech-section::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 2px;
}

.tech-section::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.5);
}

.tech-section h4 {
    color: #1a1a2e;
    font-size: 0.7rem; /* Even smaller */
    font-weight: 600;
    margin: 0.4rem 0 0.2rem 0; /* Even tighter margins */
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem; /* Even smaller gap */
    margin-bottom: 0.3rem; /* Even less margin */
}

.tech-badges span {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); /* Modern subtle gradient */
    color: #475569;
    padding: 0.1rem 0.3rem;
    border-radius: 6px; /* Modern radius */
    font-size: 0.5rem;
    font-weight: 600; /* Slightly bolder */
    border: 1px solid rgba(148, 163, 184, 0.2); /* Modern border */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.2;
    backdrop-filter: blur(4px); /* Subtle glass effect */
}

.tech-badges span:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6); /* Modern gradient on hover */
    color: white;
    border-color: transparent;
    transform: translateY(-1px) scale(1.05); /* Subtle lift */
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); /* Modern shadow */
}

/* Modern Success/Checkmark Indicator */
.success-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.success-indicator::after {
    content: '';
    color: white;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
}

.success-indicator.large {
    width: 24px;
    height: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.success-indicator.large::after {
    font-size: 14px;
}

/* Modern Badge for Job Assurance */
.job-assurance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.job-assurance-badge .success-indicator {
    width: 16px;
    height: 16px;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

.job-assurance-badge .success-indicator::after {
    font-size: 10px;
}

.course-actions {
    display: flex;
    gap: 0.6rem; /* Reduced from 0.8rem */
    margin-top: auto; /* Pushes to bottom */
    padding-top: 0.8rem; /* Reduced from 1rem */
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0; /* Never shrink - always visible */
    background: white; /* Ensure it has background */
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 0.7rem 1rem; /* Slightly more padding */
    border-radius: 10px; /* More modern radius */
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Modern transition */
    text-decoration: none;
    text-align: center;
    border: 2px solid;
    backdrop-filter: blur(4px); /* Modern glass effect */
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6); /* Modern gradient */
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3); /* Modern shadow */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed); /* Darker gradient on hover */
    transform: translateY(-2px) scale(1.02); /* Modern lift */
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4); /* Enhanced shadow */
}

.btn-secondary {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0); /* Modern gradient */
    color: #475569;
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.15); /* Subtle shadow */
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6); /* Modern gradient on hover */
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Mobile Course Cards - Better padding and sizing */
    .course-grid .course-card {
        padding: 1.2rem;
        height: auto !important; /* Let content determine height on mobile */
        min-height: 350px;
        margin-bottom: 1rem;
    }
    
    .course-header h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .course-info p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-badges span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .course-actions {
        padding-top: 1rem;
        gap: 0.8rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .filter-btn {
        min-width: 200px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .course-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .course-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    /* General mobile card improvements */
    .card {
        padding: 1.2rem !important;
        margin: 0.8rem 0;
    }
    
    /* Better container padding on mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Improve tab/card spacing */
    .tab-content,
    .modal-content,
    .section {
        padding: 1rem;
    }
    
    /* Better button sizing */
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: var(--touch-target-comfortable); /* 48px for comfortable touch */
        min-width: var(--touch-target-comfortable);
        /* Enhance touch responsiveness */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        /* Prevent double-tap zoom */
        user-select: none;
        /* Better mobile interaction */
        position: relative;
        overflow: hidden;
    }
    
    /* Enhanced touch feedback */
    .btn:active {
        transform: translateY(1px) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Better mobile focus states */
    .btn:focus {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    }
    
    /* Remove excessive focus borders on mobile */
    .btn:focus,
    .card:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 1px solid var(--color-primary);
        outline-offset: 1px;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    }
    
    /* Optimize form inputs for mobile */
    input,
    textarea,
    select {
        min-height: var(--touch-target-comfortable);
        font-size: 16px; /* Prevent zoom on iOS */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        /* Better mobile keyboard handling */
        border-radius: var(--radius-md);
        padding: 1rem;
        touch-action: manipulation;
    }
    
    /* Better textarea handling on mobile */
    textarea {
        resize: vertical;
        min-height: 120px;
    }
    
    /* Optimize navigation for mobile */
    .nav-container {
        padding: 0.8rem 1rem;
        min-height: 60px;
    }
    
    .nav-menu {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        min-height: var(--touch-target-comfortable);
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    /* Mobile menu improvements */
    .mobile-menu-toggle {
        min-width: var(--touch-target-comfortable);
        min-height: var(--touch-target-comfortable);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile Performance Optimizations */
    
    /* Reduce animations on mobile for better performance */
    .card,
    .btn,
    .course-card {
        animation-duration: 0.2s;
        transition-duration: 0.2s;
    }
    
    /* Optimize hero sections for mobile */
    .hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 1.5rem;
    }
    
    /* Better section spacing on mobile */
    section {
        padding: 3rem 1rem;
    }
    
    /* Optimize grids for mobile */
    .grid,
    .course-grid,
    .alumni-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Mobile-specific container improvements */
    .container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }
    
    /* Better mobile typography */
    h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    h3 { font-size: clamp(1.3rem, 5vw, 1.75rem); }
    h4 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
    
    /* Mobile scroll optimizations */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* Better mobile modal/overlay handling */
    .modal,
    .overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        margin: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Enhanced animations */
@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes section-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Button improvements for better visibility */
.card.course-card .btn:focus {
    outline: none;
    animation: button-pulse 1.5s infinite;
}

.card.course-card .btn-group {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .filter-btn {
        min-width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .card.course-card .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card.course-card .btn {
        min-width: auto;
        padding: 0.7rem 1rem;
    }
}

/* Ensure all elements are clearly visible */
.card.course-card * {
    position: relative;
    z-index: 1;
}

/* Smooth section transitions */
.section {
    transition: all 0.3s ease;
}



/* Course Grid Styles */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.section-desc {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Course Card Enhancements */
.course-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    height: fit-content;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-icon {
    font-size: 2.5rem;
    color: #667eea;
}

.course-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.course-info {
    margin-bottom: 1.5rem;
}

.course-info p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.tech-section h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badges span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-filter {
        gap: 0.5rem;
        margin: 1rem 0;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    .course-actions {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Text Responsive Utilities */
.text-responsive {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure all headings are responsive */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* Responsive text sizes - Extra Compact */
h1 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

h2 {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

h3 {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

/* Paragraph text responsive - Extra Compact */
p {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive tables */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

@media (min-width: 768px) {
    table {
        display: table;
        white-space: normal;
    }
}

/* Final responsive safeguards */
* {
    max-width: 100%;
}

pre, code {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Ensure buttons don't overflow */
button, .btn {
    max-width: 100%;
    word-wrap: break-word;
}

/* Footer responsive */
footer {
    width: 100%;
    overflow-x: hidden;
}

footer .container {
    width: 100%;
    max-width: 100%;
}

/* ========================================= */
/* ENHANCED MOBILE RESPONSIVENESS */
/* ========================================= */

/* Mobile-first hero sections */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0 1.5rem;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
}

/* Mobile hero section improvements */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
        min-height: 60vh;
        height: auto !important;
    }
    
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 1.5rem !important;
        border-radius: 15px !important;
    }
    
    .hero p,
    .hero .subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
        padding: 1.2rem !important;
        border-radius: 12px !important;
        line-height: 1.6 !important;
    }
    
    .hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0 1.5rem;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        padding: 1.2rem !important;
    }
    
    .hero p,
    .hero .subtitle {
        font-size: 0.95rem !important;
        padding: 1rem !important;
    }
    
    .hero-content {
        padding: 0 0.8rem;
    }
}

/* Mobile content sections */
@media (max-width: 768px) {
    .content-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* Course card animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.course-card {
    transition: all 0.3s ease;
}

.course-card.filter-show {
    animation: slideInLeft 0.4s ease forwards;
}

/* Filter Section Below Hero */
.filter-section {
    background: #f8f9ff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 990;
    backdrop-filter: blur(10px);
}

.filter-section .container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-left: 1rem !important;
}

.floating-filter-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    animation: floatPulse 3s ease-in-out infinite !important;
}

.floating-filter-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    animation: none !important;
}

.floating-filter-btn:active {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.floating-filter-btn.active {
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    animation: filterPulse 0.3s ease-out !important;
}

@keyframes filterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

.floating-filter-btn.active #filter-arrow {
    transform: rotate(180deg);
}

/* Floating button animation */
@keyframes floatPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .filter-section .container {
        padding-left: 1rem !important;
        justify-content: flex-start !important;
    }
    
    .floating-filter-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .filter-section .container {
        padding-left: 0.8rem !important;
    }
    
    .floating-filter-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

/* Floating button tooltip */
.floating-filter-btn::after {
    content: attr(title);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.floating-filter-btn:hover::after {
    opacity: 1;
}

/* Hide floating button on desktop (show sidebar instead) */
@media (min-width: 769px) {
    .floating-filter-btn {
        display: none !important;
    }
}

/* Adjust floating button for mobile */
@media (max-width: 768px) {
    .floating-filter-btn {
        display: flex !important;
        left: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .floating-filter-btn {
        left: 10px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Mobile filter toggle button styles */
.mobile-filter-toggle {
    display: none;
}

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

#mobile-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile filter overlay */
.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9997 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(2px);
}

.mobile-filter-overlay.active {
    opacity: 1 !important;
    display: block !important;
}
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    /* Courses page specific layout */
    .courses-layout {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    /* Mobile Filter Toggle Button */
    .mobile-filter-toggle {
        display: block !important;
    }
    
@media (max-width: 768px) {
    /* Hide desktop sidebar on mobile */
    .filter-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 350px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: white !important;
        border-right: none !important;
        border: none !important;
        padding: 2rem 0 !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.25) !important;
        z-index: 9998 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        border-radius: 0 15px 15px 0 !important;
    }
    
    .filter-sidebar.active {
        left: 0 !important;
        box-shadow: 4px 0 30px rgba(0,0,0,0.4) !important;
        z-index: 9998 !important;
    }
    
    /* Enhanced visibility for mobile filter items */
    .filter-sidebar .filter-item {
        padding: 1.2rem !important;
        margin: 0.5rem 1rem !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
    }
    
    /* Show course cards by default on mobile */
    .course-card {
        display: block !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Mobile courses content area */
    .courses-content {
        padding: 1.5rem !important;
        width: 100% !important;
    }
}
    
    /* Add close button for mobile filter - More specific selector */
    .filter-sidebar .mobile-filter-close,
    #filter-sidebar .mobile-filter-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: #667eea;
        cursor: pointer;
        z-index: 9999 !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f8f9ff;
        transition: all 0.3s ease;
        border: 2px solid #667eea;
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
        pointer-events: auto !important;
    }
    
    .filter-sidebar .mobile-filter-close:hover,
    #filter-sidebar .mobile-filter-close:hover {
        background: #667eea;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        z-index: 9999 !important;
    }
    
    /* Hide any stray close buttons outside the filter sidebar */
    .mobile-filter-close:not(#filter-sidebar .mobile-filter-close) {
        display: none !important;
    }
    
    .courses-content {
        padding: 1.5rem !important;
        width: 100% !important;
    }
    
    /* Filter menu mobile - keep original layout */
    .filter-menu {
        padding: 0 1.5rem;
    }
    
    .filter-item {
        margin-bottom: 0.8rem !important;
        padding: 1rem !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 576px) {
    .cards-grid {
        gap: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Mobile courses layout */
    .filter-sidebar {
        padding: 1.5rem 0 !important;
        width: 90% !important;
    }
    
    .filter-item {
        padding: 0.9rem !important;
        font-size: 0.85rem !important;
    }
    
    .courses-content {
        padding: 1rem !important;
    }
}

/* Mobile spacing improvements */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        margin-bottom: 2rem;
    }
    
    .section {
        padding: 2rem 0 !important;
    }
    
    /* Mobile page-specific improvements */
    .hero .container,
    .content-section .container,
    .section .container {
        padding: 0 1rem;
    }
    
    /* Better button spacing on mobile */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        margin: 0.5rem 0;
    }
    
    /* Mobile text alignment improvements */
    .text-center {
        text-align: center !important;
    }
    
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.8rem;
    }
    
    section {
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 1.5rem 0 !important;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0.3rem 0;
    }
    
    /* Extra small screen text */
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .section-subtitle {
        font-size: 0.95rem !important;
    }
    
    /* Models page mobile optimization */
    .models-comparison .comparison-grid > div {
        padding: 1rem !important;
        margin-bottom: 0.8rem !important;
        border-radius: 12px !important;
    }
}

/* ========================================= */
/* MOBILE NAVIGATION HAMBURGER MENU */
/* ========================================= */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
    position: relative;
    order: 2; /* Ensure it appears in the right position */
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1a1a2e;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

/* White background hamburger for dark headers */
.header.dark .mobile-menu-toggle span,
header .mobile-menu-toggle span {
    background-color: white;
}

/* Ensure hamburger is visible on all backgrounds */
.mobile-menu-toggle span {
    background-color: #1a1a2e !important;
}

/* White hamburger for dark backgrounds */
.hero .mobile-menu-toggle span,
.dark-background .mobile-menu-toggle span {
    background-color: white !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1003;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        position: relative;
    }
    
    .logo {
        order: 1;
        z-index: 1003;
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1002;
        padding-top: 2rem;
        box-shadow: 0 2px 20px rgba(0,0,0,0.15);
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        overflow-y: auto;
        order: 3;
        display: flex;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 90%;
        text-align: center;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 1.2rem;
        font-size: 1.1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
        color: #1a1a2e;
        text-decoration: none;
        border: 2px solid transparent;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .nav-container {
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }
}

/* ========================================= */
/* COMPREHENSIVE MOBILE & TABLET RESPONSIVE */
/* ========================================= */

/* ========================================= */
/* COMPREHENSIVE MOBILE & TABLET RESPONSIVE */
/* ========================================= */

/* Enhanced Mobile Container and Layout */
@media (max-width: 768px) {
    .container {
        padding: 0 0.8rem !important;
        max-width: 100% !important;
    }
    
    /* Body padding adjustment for mobile */
    body {
        padding-top: 70px; /* Account for fixed header */
    }
    
    /* Header height consistency */
    .header {
        height: 70px;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1002;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    /* Main content top spacing */
    main {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Enhanced Card Grid for Mobile */
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
    }
    
    /* Contact Cards Mobile */
    .contact-card {
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 0 1rem 0 !important;
    }
    
    /* Section Padding Mobile */
    .section {
        padding: 2rem 0 !important;
    }
    
    /* Typography Mobile */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        text-align: center !important;
    }
}

/* Models Page Mobile Responsiveness */
@media (max-width: 768px) {
    .model-card {
        margin-bottom: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .comparison-table {
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    
    .comparison-table table {
        min-width: 600px !important;
    }
}

/* FAQ Page Mobile */
@media (max-width: 768px) {
    .faq-category {
        margin-bottom: 2rem !important;
    }
    
    .faq-item {
        margin-bottom: 1rem !important;
    }
    
    .faq-question {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .faq-answer {
        padding: 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* Contact Page Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 1.5rem !important;
    }
    
    .embed-map-container {
        height: 250px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .contact-info {
        text-align: center !important;
    }
}

/* Alumni Page Mobile */
@media (max-width: 768px) {
    .map-container {
        height: 400px !important;
        margin: 1rem 0 !important;
    }
    
    .alumni-stats {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Courses Layout Mobile Responsiveness */
@media (max-width: 768px) {
    .courses-layout {
        flex-direction: column !important;
        max-width: 100% !important;
    }
    
    .filter-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-height: 400px;
        overflow-y: auto;
        border-right: none !important;
        border-bottom: 1px solid #eee;
    }
    
    .courses-content {
        width: 100% !important;
        padding: 1rem !important;
    }
    
    .course-card {
        margin-bottom: 1.5rem !important;
    }
}

/* Hero Section Mobile Optimization */
@media (max-width: 768px) {
    .hero {
        height: 60vh !important;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .subtitle {
        font-size: 1.1rem !important;
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh !important;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .hero-content .subtitle {
        font-size: 1rem !important;
        padding: 0.8rem !important;
    }
}

/* Button Mobile Improvements */
@media (max-width: 768px) {
    .btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .btn-group {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* Text and Typography Mobile */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    p {
        font-size: 0.9rem !important;
    }
}

/* Extra Small Devices (phones, up to 576px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hero section mobile optimization */
    .hero {
        height: 80vh;
        min-height: 500px;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        padding: 15px !important;
    }
    
    .hero .subtitle, .hero p {
        font-size: 0.85rem !important;
        line-height: 1.4;
        padding: 12px !important;
        margin-bottom: 1rem;
    }
    
    /* Navigation mobile */
    .nav-menu {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.5rem;
    }
    
    /* Cards and sections */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    /* Text sizing */
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero h1 {
        font-size: 2.2rem !important;
        padding: 18px !important;
    }
    
    .hero .subtitle, .hero p {
        font-size: 0.95rem !important;
        padding: 15px !important;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem !important;
        padding: 20px !important;
    }
    
    .hero .subtitle, .hero p {
        font-size: 1rem !important;
        padding: 16px !important;
    }
    
    .hero {
        height: 70vh;
        min-height: 550px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero h1 {
        font-size: 3rem !important;
        padding: 22px !important;
    }
    
    .hero .subtitle, .hero p {
        font-size: 1.1rem !important;
        padding: 18px !important;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem !important;
        padding: 25px !important;
    }
    
    .hero .subtitle, .hero p {
        font-size: 1.2rem !important;
        padding: 20px !important;
    }
}

/* Contact Page Responsive */
@media (max-width: 767px) {
    /* Talk to Counselor card mobile optimization */
    .contact .card {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1.2rem !important;
    }
    
    /* Phone number cards stack on mobile */
    .contact .card > div:has(> .fas.fa-phone),
    .contact .card > div:has(> .fas.fa-phone-alt) {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .contact .card > div > div {
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* WhatsApp buttons stack on mobile */
    .contact .card > div:last-child {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .contact .card > div:last-child > a {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Models Page Comparison Table Responsive */
@media (max-width: 991px) {
    .models-comparison {
        padding: 0 1rem;
    }
    
    .models-comparison .comparison-grid {
        display: block !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        gap: 0 !important;
    }
    
    .models-comparison .comparison-grid > div {
        display: block !important;
        margin-bottom: 1rem !important;
        padding: 1.5rem !important;
        border-radius: 15px !important;
        background: white !important;
        box-shadow: 0 8px 25px rgba(102,126,234,0.15) !important;
        border: 2px solid rgba(102, 126, 234, 0.1) !important;
    }
    
    /* Hide the header row on mobile */
    .models-comparison .comparison-grid > div:nth-child(-n+6) {
        display: none !important;
    }
    
    /* Style model sections as cards */
    .models-comparison .comparison-grid > div:nth-child(7),
    .models-comparison .comparison-grid > div:nth-child(13),
    .models-comparison .comparison-grid > div:nth-child(19) {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin-top: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .models-comparison {
        padding: 0 0.5rem;
    }
    
    .models-comparison .comparison-grid > div {
        padding: 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    .models-comparison .comparison-grid > div:nth-child(7),
    .models-comparison .comparison-grid > div:nth-child(13),
    .models-comparison .comparison-grid > div:nth-child(19) {
        font-size: 1.1rem !important;
    }
}

/* FAQ Page Responsive */
@media (max-width: 767px) {
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/* Alumni Page Responsive */
@media (max-width: 767px) {
    .alumni-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .alumni-card {
        padding: 1.2rem !important;
    }
}

/* Courses Page Responsive */
@media (max-width: 991px) {
    .courses-container {
        flex-direction: column !important;
    }
    
    .courses-sidebar {
        width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    .courses-grid {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .course-card {
        padding: 1.2rem !important;
    }
    
    .course-card h3 {
        font-size: 1.1rem !important;
    }
    
    .course-card p {
        font-size: 0.85rem !important;
    }
}

/* General Text and Layout Mobile Fixes */
@media (max-width: 767px) {
    /* Ensure all inline styles are overridden for mobile */
    h1[style*="font-size"] {
        font-size: 1.8rem !important;
    }
    
    p[style*="font-size"] {
        font-size: 0.85rem !important;
    }
    
    /* Navigation improvements */
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Logo sizing - ensure proper horizontal layout */
    .logo-image {
        max-height: 35px !important;
        width: auto !important;
        flex-shrink: 0;
    }
    
    .logo,
    .logo a {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
    
    /* Section spacing */
    .section {
        padding: 2rem 0 !important;
    }
    
    /* Grid layouts */
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Flex layouts */
    [style*="display: flex"][style*="gap"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* Landscape phone specific */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
    }
    
    .hero .subtitle, .hero p {
        font-size: 0.8rem !important;
    }
}

/* iPad specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .nav-menu {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Force responsive behavior for all background images */
@media (max-width: 991px) {
    [style*="background:"][style*="url("] {
        background-size: cover !important;
        background-position: center !important;
    }
}

/* Ensure transparent boxes are readable on all devices */
@media (max-width: 767px) {
    [style*="background: rgba(255,255,255,0.2)"] {
        background: rgba(255,255,255,0.9) !important;
        color: #1a1a1a !important;
    }
    
    [style*="backdrop-filter: blur(3px)"] {
        backdrop-filter: none !important;
    }
}
