/* CSS Reset & Base Styles */
:root {
    --primary-red: #d32f2f;
    --primary-blue: #1976d2;
    --dark-blue: #0d47a1;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333;
    --text-gray: gray;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Enhanced Typography with Fluid Type */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100px;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--primary-blue);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.highlight {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    opacity: 0.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

ul {
    list-style: none;
}

/* Enhanced Buttons with Ripple Effect */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0a3d8c 100%);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.1), transparent);
    transition: left 0.5s;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
}

/* Enhanced Top Header */
.top-header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #222 100%);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff000057, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-info span:hover {
    transform: translateX(5px);
    color: var(--primary-red);
}

.contact-info i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* Enhanced Main Header with Glass Morphism */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.logo:hover {
    transform: translateX(-5px);
}

.logo img {
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 0;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--primary-blue);
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Enhanced Main Navigation */
.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--dark-gray);
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}

.main-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::before,
.main-nav ul li a.active::before {
    width: 10   0%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-red);
    transform: translateY(-2px);
}

.header-cta {
    margin-left: 20px;
}

/* Enhanced Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-red);
    margin: 5px auto;
    transition: var(--transition);
    position: absolute;
    left: 8px;
}

.mobile-menu-btn span:nth-child(1) { top: 12px; }
.mobile-menu-btn span:nth-child(2) { top: 19px; }
.mobile-menu-btn span:nth-child(3) { top: 26px; }

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    display: block;
    padding: 18px 0;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    color: var(--primary-red);
    padding-left: 10px;
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,245,245,0.95) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path fill="%23f0f0f0" d="M0,0 L100,0 L100,100 L0,100 Z"/></svg>');
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--dark-gray);
    line-height: 1.1;
}

.hero-content h1 .highlight {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--text-gray);
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    animation: slideInRight 0.8s ease-out 0.2s both;
    position: relative;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

/* Enhanced Section Styling */
section {
    padding: clamp(60px, 8vw, 100px) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 60px);
    position: relative;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    display: inline-block;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-gray);
    opacity: 0.9;
}

.bg-light {
    background-color: var(--light-gray);
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
}

/* Enhanced Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
    counter-reset: feature-counter;
}

.feature-card {
    background-color: var(--white);
    padding: clamp(25px, 4vw, 35px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    counter-increment: feature-counter;
    content: "0" counter(feature-counter);
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(211, 47, 47, 0.05);
    line-height: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.feature-card p {
    margin-bottom: 0;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Enhanced Course Categories */
.course-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    padding: clamp(25px, 4vw, 35px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: translateY(-5px) scale(1.1);
}

.category-card ul {
    text-align: left;
    margin: 20px 0;
    padding: 0 10px;
}

.category-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.category-card ul li:last-child {
    border-bottom: none;
}

.category-card ul li::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.category-card ul li:hover {
    transform: translateX(5px);
    color: var(--primary-red);
}

/* Enhanced Success Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.step {
    background-color: var(--white);
    padding: clamp(25px, 4vw, 35px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    z-index: 1;
    transition: var(--transition);
}

.step:hover::before {
    transform: scale(1.1) rotate(360deg);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(211, 47, 47, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover::after {
    opacity: 1;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
}

.step p {
    margin-bottom: 0;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

/* Enhanced Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    padding: clamp(20px, 3vw, 30px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(25, 118, 210, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.course-card.detailed {
    padding: clamp(25px, 4vw, 35px);
}

.course-icon {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.course-card:hover .course-icon {
    transform: scale(1.1) rotate(10deg);
}

.course-details {
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.course-card:hover .course-details {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.9);
}

.course-details h4 {
    margin-bottom: 15px;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.course-details ul {
    list-style-type: none;
    padding-left: 0;
}

.course-details ul li {
    margin-bottom: 8px;
    color: var(--text-gray);
    padding-left: 24px;
    position: relative;
    transition: var(--transition);
}

.course-details ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 0.8rem;
    transition: var(--transition);
}

.course-details ul li:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.course-details ul li:hover::before {
    transform: translateX(3px);
}

/* Enhanced Page Header */

.page-header::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" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.1)" d="M0,0 L100,0 L100,100 L0,100 Z"/></svg>') repeat;
    animation: float 20s infinite linear;
}

/* Current height - reduce both padding and potentially min-height */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    color: var(--white);
    /* Reduce padding from clamp(60px, 8vw, 100px) to smaller values */
    padding: clamp(40px, 6vw, 60px) 0; /* Changed from 60-100px to 40-60px */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    /* Slightly reduce font size */
    font-size: clamp(2rem, 4.5vw, 2.8rem); /* Changed from 2.2-3.2rem to 2-2.8rem */
    margin-bottom: 10px; /* Reduce from 15px */
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    /* Reduce font size */
    font-size: clamp(1rem, 2vw, 1.1rem); /* Changed from 1.1-1.3rem to 1-1.1rem */
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Enhanced Inquiry Form */
.inquiry-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
}

.inquiry-form-container {
    background-color: var(--white);
    padding: clamp(25px, 4vw, 45px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.inquiry-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    margin-bottom: 10px;
}

.inquiry-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 15px;
    opacity: 0.8;
}

/* Enhanced Sidebar */
.inquiry-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background-color: var(--white);
    padding: clamp(20px, 3vw, 30px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.sidebar-card h3 i {
    color: var(--primary-red);
    font-size: 1.3rem;
}

.contact-box, .address-box {
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.8), rgba(255, 255, 255, 0.9));
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-red);
    margin: 10px 0;
    text-decoration: none;
    transition: var(--transition);
}

.phone-number:hover {
    transform: scale(1.05);
    color: #b71c1c;
}

.timing {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 10px;
    opacity: 0.8;
}

/* Enhanced Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: clamp(25px, 4vw, 35px);
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(211, 47, 47, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2.8rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.contact-card p {
    margin-bottom: 5px;
    color: var(--text-gray);
}

/* Enhanced Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: clamp(25px, 4vw, 35px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 6rem;
    color: rgba(211, 47, 47, 0.1);
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-gray);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author h4 {
    color: var(--primary-red);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Enhanced CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: clamp(60px, 8vw, 80px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.1)" d="M0,0 L100,0 L100,100 L0,100 Z"/></svg>') repeat;
    animation: float 20s infinite linear reverse;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Enhanced Eligibility Table */
.eligibility-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.eligibility-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    min-width: 600px;
}

.eligibility-table th,
.eligibility-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.eligibility-table th {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    white-space: nowrap;
}

.eligibility-table th:first-child {
    border-top-left-radius: 12px;
}

.eligibility-table th:last-child {
    border-top-right-radius: 12px;
}

.eligibility-table tr {
    transition: var(--transition);
}

.eligibility-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.eligibility-table tr:hover {
    background-color: rgba(25, 118, 210, 0.05);
    transform: translateX(5px);
}

.eligibility-table tr:hover td {
    color: var(--primary-blue);
}

/* Enhanced Footer */
.footer-top {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #222 100%);
    color: var(--white);
    padding: clamp(50px, 6vw, 70px) 0 30px;
    position: relative;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.footer-col:hover h4::after {
    width: 60px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--white), #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-motto {
    font-style: italic;
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.footer-motto::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-red);
    font-size: 1.5rem;
    font-family: Georgia, serif;
}

.footer-col ul li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-col ul li:hover {
    transform: translateX(5px);
}

.footer-col ul li a {
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-col ul li a::before {
    content: '→';
    color: var(--primary-red);
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info p {
    color: #aaa;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: var(--transition);
}

.contact-info p:hover {
    color: var(--white);
    transform: translateX(5px);
}

.contact-info i {
    color: var(--primary-red);
    margin-top: 5px;
    flex-shrink: 0;
}

.timing p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col .social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.footer-col .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-col .social-links a:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.footer-bottom {
    background: #222;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Enhanced Floating Buttons */
.eligibility-floating-btn {
    position: fixed;
    left: 20px;
    bottom: 100px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
    z-index: 999;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eligibility-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
}

.scroll-to-footer {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-to-footer:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.4);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 20px;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .inquiry-container {
        grid-template-columns: 1fr;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 900px) {
    .features-grid,
    .course-categories,
    .steps-container,
    .courses-grid,
    .testimonial-slider {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.9rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .top-header .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .inquiry-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btns .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .eligibility-floating-btn {
        left: 10px;
        bottom: 80px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .scroll-to-footer {
        right: 10px;
        bottom: 10px;
        width: 50px;
        height: 50px;
    }
    
    .mobile-menu {
        width: 280px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    section {
        padding: 50px 0;
    }
    
    .features-grid,
    .course-categories,
    .steps-container,
    .courses-grid,
    .testimonial-slider,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .inquiry-form-container {
        padding: 20px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .page-header {
        padding: 50px 0;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .feature-card,
    .category-card,
    .step,
    .course-card,
    .sidebar-card,
    .contact-card,
    .testimonial-card {
        padding: 20px;
    }
    
    .feature-icon,
    .category-icon {
        font-size: 2.8rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .eligibility-floating-btn {
        left: 5px;
        bottom: 70px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .scroll-to-footer {
        right: 5px;
        bottom: 5px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .hero-btns .btn,
    .cta-btns .btn {
        max-width: 100%;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .eligibility-floating-btn span {
        display: none;
    }
    
    .eligibility-floating-btn i {
        margin: 0;
    }
}

/* Print Styles */
@media print {
    .top-header,
    .main-header,
    .mobile-menu-btn,
    .scroll-to-footer,
    .eligibility-floating-btn,
    .btn,
    .social-links,
    .floating-elements,
    .hero-btns,
    .cta-btns {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: #fff !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .page-header {
        background: #fff !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .page-header h1,
    .page-header p {
        color: #000 !important;
    }
    
    .course-card,
    .feature-card,
    .category-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .footer-top {
        background: #fff !important;
        color: #000 !important;
        border-top: 2px solid #000;
    }
    
    .footer-col h4 {
        color: #000 !important;
    }
}

/* Reduced Motion */
@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-content,
    .hero-image {
        animation: none !important;
    }
    
    .floating-elements {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #cc0000;
        --primary-blue: #0000cc;
        --dark-blue: #000099;
        --light-gray: #f0f0f0;
        --medium-gray: #cccccc;
        --dark-gray: #000000;
        --text-gray: #333333;
        --white: #ffffff;
        --black: #000000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .course-card:hover,
    .feature-card:hover,
    .category-card:hover,
    .step:hover,
    .testimonial-card:hover,
    .contact-card:hover,
    .sidebar-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .main-nav ul li a:hover,
    .footer-col ul li a:hover,
    .social-links a:hover {
        transform: none;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        transform: none;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .mobile-menu {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Dark Mode Support (Optional, doesn't change colors) */
@media (prefers-color-scheme: dark) {
    /* This media query is intentionally left almost empty */
    /* We're only changing subtle things that don't affect the color scheme */
    .hero {
        background: rgba(227, 227, 227, 0.7);
    }
    
    .course-details,
    .contact-box,
    .address-box {
        background-color: rgba(216, 221, 255, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Performance Optimizations */
img {
    content-visibility: auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-red), var(--primary-blue));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#b71c1c, var(--dark-blue));
}

/* Selection Styling */
::selection {
    background: rgba(211, 47, 47, 0.3);
    color: var(--dark-gray);
}

::-moz-selection {
    background: rgba(211, 47, 47, 0.3);
    color: var(--dark-gray);
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 2px;
}

/* Viewport Height Units for Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }
    
    .page-header {
        min-height: 40vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Container Queries Support (Future) */
@supports (container-type: inline-size) {
    @container (min-width: 400px) {
        .course-card {
            padding: 25px;
        }
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: var(--shadow); }
.shadow-hover { box-shadow: var(--shadow-hover); }

/* Glass Morphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-gray) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-checkbox .checkmark::after {
    content: '✓';
    color: var(--white);
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.custom-checkbox input:checked + .checkmark {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.custom-checkbox input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox:hover .checkmark {
    border-color: var(--primary-blue);
}

/* Custom Radio */
.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.custom-radio input {
    display: none;
}

.custom-radio .radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-radio .radiomark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.custom-radio input:checked + .radiomark {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.custom-radio input:checked + .radiomark::after {
    opacity: 1;
    transform: scale(1);
}

.custom-radio:hover .radiomark {
    border-color: var(--primary-blue);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-secondary {
    background: var(--primary-blue);
}

.badge-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-error {
    background: rgba(211, 47, 47, 0.1);
    border-color: var(--primary-red);
    color: #b71c1c;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
    color: #ef6c00;
}

.alert-info {
    background: rgba(25, 118, 210, 0.1);
    border-color: var(--primary-blue);
    color: var(--dark-blue);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--dark-gray);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.pagination-item:hover,
.pagination-item.active {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

.tab {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-gray);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.tab:hover,
.tab.active {
    color: var(--primary-red);
}

.tab.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Accordion */
.accordion {
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--medium-gray);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 20px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-gray);
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--light-gray);
    color: var(--primary-red);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.accordion-header.active::after {
    content: '-';
    color: var(--primary-red);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 20px;
    max-height: 1000px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark-gray);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.active {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.toast.error {
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
}

.toast.info {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

/* Load More Button */
.load-more {
    display: block;
    margin: 40px auto 0;
    padding: 12px 40px;
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.load-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.1), transparent);
    transition: left 0.5s;
}

.load-more:hover::before {
    left: 100%;
}

.load-more:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Enhanced Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--primary-red);
    background: rgba(211, 47, 47, 0.05);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.error-message {
    color: var(--primary-red);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    color: #4caf50;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.success .success-message {
    display: block;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .password-strength-meter {
    width: 33%;
    background: var(--primary-red);
}

.password-strength.medium .password-strength-meter {
    width: 66%;
    background: #ff9800;
}

.password-strength.strong .password-strength-meter {
    width: 100%;
    background: #4caf50;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.char-counter.near-limit {
    color: #ff9800;
}

.char-counter.over-limit {
    color: var(--primary-red);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
}

/* Text Gradient Animation */
.text-gradient-animate {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue), var(--primary-red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
    to {
        background-position: 200% center;
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Scale on Hover */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Rotate on Hover */
.hover-rotate {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Glow on Hover */
.hover-glow {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.3);
}

/* Border Animation */
.border-animate {
    position: relative;
    overflow: hidden;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    animation: borderSlide 3s infinite;
}

@keyframes borderSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-red);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-red); }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Staggered Children Animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Grid Masonry Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 10px;
    grid-gap: 20px;
}

.masonry-item {
    grid-row-end: span 20;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Card Flip */
.card-flip {
    perspective: 1000px;
    width: 300px;
    height: 400px;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-flip-front {
    background: var(--white);
    color: var(--dark-gray);
}

.card-flip-back {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    transform: rotateY(180deg);
}

/* Count Up Animation */
.count-up {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-red);
    display: inline-block;
}

/* Lazy Load Fade In */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Range Slider */
.custom-range {
    -webkit-appearance: none; /* This is the WebKit prefix */
    appearance: none; /* Standard property for compatibility */
    width: 100%;
    height: 6px; /* Adjusted height */
    background: var(--light-gray); /* Ensure you define this variable */
    border-radius: 3px; /* Adjusted border radius */
    outline: none; /* No outline */
}


.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.custom-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
}

/* Custom File Upload */
.custom-file-upload {
    display: inline-block;
    padding: 12px 24px;
    background: var(--light-gray);
    color: var(--text-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px dashed var(--medium-gray);
    text-align: center;
}

.custom-file-upload:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.custom-file-upload input[type="file"] {
    display: none;
}

/* Rating Stars */
.rating {
    display: inline-flex;
    gap: 5px;
}

.rating-star {
    color: var(--medium-gray);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.rating-star:hover,
.rating-star.active {
    color: #ff9800;
    transform: scale(1.2);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--medium-gray);
}

.breadcrumb-item:last-child {
    color: var(--primary-red);
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-red), var(--primary-blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-red);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-red);
}

/* Avatar */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-sm {
    width: 30px;
    height: 30px;
}

/* Chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--light-gray);
    color: var(--text-gray);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chip:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.chip-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.chip-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--medium-gray);
}

.divider span {
    padding: 0 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-red);
    padding-left: 25px;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
}

.toolbar-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.search-box button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Sticky Element */
.sticky {
    position: sticky;
    top: 100px;
    z-index: 100;
}

/* Aspect Ratio Container */
.aspect-ratio-16-9 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.aspect-ratio-16-9 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Scroll Progress */
.custom-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    transform: translateY(0);
}

/* Grid Overlay for Debug */
.debug-grid {
    background-image: linear-gradient(rgba(211, 47, 47, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(25, 118, 210, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Last Child Margin Reset */
.last-child-margin-reset > *:last-child {
    margin-bottom: 0;
}

/* Fluid Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide Scrollbar but Keep Functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Responsive Embed */
.responsive-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-embed iframe,
.responsive-embed object,
.responsive-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Text Truncation */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-2 {
    display: -webkit-box; /* Use -webkit-box layout */
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical; /* Specify box orientation */
    overflow: hidden; /* Hide overflow content */
    /* Standard property for compatibility */
    line-clamp: 2; /* Fallback for non-webkit browsers */
}

.text-truncate-3 {
    display: -webkit-box; /* Use -webkit-box layout */
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical; /* Specify box orientation */
    overflow: hidden; /* Hide overflow content */
    /* Standard property for compatibility */
    line-clamp: 3; /* Fallback for non-webkit browsers */
}


/* Visibility Classes */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.hidden { display: none; }

/* Print Helper */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

/* Screen Reader Only */
.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;
}

/* Focus Helper */
.focus-helper:focus {
    outline: 3px solid var(--primary-red);
    outline-offset: 2px;
}

/* Smooth Appear */
.smooth-appear {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Hardware Acceleration */
.hardware-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
    .no-motion {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode Helper */
@media (prefers-contrast: high) {
    .high-contrast-border {
        border: 2px solid #000;
    }
}

/* Touch Target Sizing */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Orientation Specific */
@media (orientation: portrait) {
    .portrait-only { display: block; }
    .landscape-only { display: none; }
}

@media (orientation: landscape) {
    .portrait-only { display: none; }
    .landscape-only { display: block; }
}

/* Pixel Ratio Detection */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .retina {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Internet Explorer Fallbacks */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .ie-fallback {
        display: block;
    }
    
    .grid-fallback {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Edge Browser Support */
@supports (-ms-ime-align: auto) {
    .edge-fallback {
        display: block;
    }
}

/* Safari Specific */
@supports (-webkit-touch-callout: none) {
    .safari-only {
        display: block;
    }
}

/* Firefox Specific */
@-moz-document url-prefix() {
    .firefox-only {
        display: block;
    }
}

/* Chrome Specific */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
    .chrome-only {
        display: block;
    }
}

/* Custom Properties Fallback */
@supports not (--css: variables) {
    :root {
        --primary-red: #d32f2f;
        --primary-blue: #1976d2;
        --dark-blue: #0d47a1;
        --light-gray: #f5f5f5;
        --medium-gray: #e0e0e0;
        --dark-gray: #333;
        --text-gray: #666;
        --white: #ffffff;
        --black: #000000;
    }
}

/* Final Optimization - Remove Unused */
@media (max-width: 768px) {
    .desktop-only { display: none; }
}

@media (min-width: 769px) {
    .mobile-only { display: none; }
}

/* Print Optimization */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]::after {
        content: " (" attr(title) ")";
    }
    
    .no-print, 
    .no-print * {
        display: none !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    .avoid-break {
        page-break-inside: avoid;
    }
}

/* Performance Critical */
.perf-critical {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* LCP Optimization */
.lcp-optimize {
    content-visibility: auto;
}

/* CLS Prevention */
.cls-prevention {
    width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

/* FID Optimization */
.fid-optimize {
    will-change: transform;
}

/* INP Optimization */
.inp-optimize {
    touch-action: manipulation;
}

/* Final Responsive Grid System */
.grid-system {
    --grid-gap: 30px;
    --grid-columns: 12;
    
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: var(--grid-gap);
}

.grid-col-1 { grid-column: span 1; }
.grid-col-2 { grid-column: span 2; }
.grid-col-3 { grid-column: span 3; }
.grid-col-4 { grid-column: span 4; }
.grid-col-5 { grid-column: span 5; }
.grid-col-6 { grid-column: span 6; }
.grid-col-7 { grid-column: span 7; }
.grid-col-8 { grid-column: span 8; }
.grid-col-9 { grid-column: span 9; }
.grid-col-10 { grid-column: span 10; }
.grid-col-11 { grid-column: span 11; }
.grid-col-12 { grid-column: span 12; }

@media (max-width: 768px) {
    .grid-col-1,
    .grid-col-2,
    .grid-col-3,
    .grid-col-4,
    .grid-col-5,
    .grid-col-6,
    .grid-col-7,
    .grid-col-8,
    .grid-col-9,
    .grid-col-10,
    .grid-col-11,
    .grid-col-12 {
        grid-column: span 12;
    }
}

/* Fluid Spacing System */
:root {
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.5vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2rem);
    --space-xl: clamp(2rem, 4vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 4rem);
}

/* Final Animation Optimizations */
@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;
    }
}

/* Performance Monitoring Helper */
.perf-monitor {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 99999;
    display: none;
}

.debug .perf-monitor {
    display: block;
}

/* Accessibility Overlay */
.accessibility-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255, 0, 0, 0.1) 1px,
        rgba(255, 0, 0, 0.1) 2px
    );
    display: none;
}

.debug-accessibility .accessibility-overlay {
    display: block;
}

/* Final Touch - Custom Properties for Theme */
.theme-primary { color: var(--primary-red); }
.theme-secondary { color: var(--primary-blue); }
.theme-light { color: var(--light-gray); }
.theme-dark { color: var(--dark-gray); }

.bg-primary { background-color: var(--primary-red); }
.bg-secondary { background-color: var(--primary-blue); }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--dark-gray); }

.border-primary { border-color: var(--primary-red); }
.border-secondary { border-color: var(--primary-blue); }
.border-light { border-color: var(--light-gray); }
.border-dark { border-color: var(--dark-gray); }

/* Ultimate Responsive Container */
.ultimate-container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

/* Viewport Units with Fallback */
.min-vh-100 {
    min-height: 100vh;
    min-height: 100dvh;
}

.min-vw-100 {
    min-width: 100vw;
    min-width: 100dvw;
}

/* Dynamic Viewport Units */
.dynamic-vh-100 {
    height: 100vh;
    height: 100dvh;
}

/* Final Optimization - Remove Outlines for Mouse Users */
.mouse-user :focus {
    outline: none;
}

.mouse-user :focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 2px;
}

/* Keyboard User Detection */
.keyboard-user :focus {
    outline: 3px solid var(--primary-red);
    outline-offset: 2px;
}

/* Final Performance Tip */
.perf-tip {
    content-visibility: auto;
    contain-intrinsic-size: 1px 5000px;
}

/* Ultimate Fallback */
.no-js .js-only {
    display: none;
}

.js .no-js-only {
    display: none;
}

/* Final CSS Size Optimization */
/* Minified version would remove comments and whitespace */
/* This is the development version with all features */

/* END OF ENHANCED CSS */

/* Make the Top Header more compact */
.top-header {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #222 100%);
    color: var(--white);
    padding: 8px 0; /* Reduced from 12px */
    font-size: 0.85rem; /* Slightly smaller text */
}

/* Make the Main Header much more compact */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    min-height: 60px; /* Set a minimum but smaller height */
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px; /* Reduced from 12px */
    min-height: 60px; /* Reduced from default */
}

/* Make the logo smaller */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px; /* Reduced from likely 60px */
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    color: var(--primary-red);
    margin-bottom: 0;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b71c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.8rem; /* Reduced from 0.9rem */
    color: var(--primary-blue);
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: 0.5px; /* Reduced from 1px */
}

/* Adjust navigation links spacing */
.main-nav ul {
    display: flex;
    gap: 20px; /* Reduced from 25px */
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--dark-gray);
    padding: 6px 0; /* Reduced from 8px */
    font-size: 0.95rem; /* Slightly smaller */
}

/* Adjust the active indicator */
.main-nav ul li a.active::after {
    bottom: -3px; /* Adjusted position */
    height: 2px; /* Thinner line */
}

/* Make the Enroll Now button smaller */
.header-cta .btn {
    padding: 10px 24px; /* Reduced from 14px 32px */
    font-size: 0.95rem; /* Smaller text */
}

/* Adjust mobile menu button */
.mobile-menu-btn {
    width: 36px; /* Smaller */
    height: 36px; /* Smaller */
}

.mobile-menu-btn span {
    width: 22px; /* Smaller */
    height: 2px;
}

.mobile-menu-btn span:nth-child(1) { top: 10px; }
.mobile-menu-btn span:nth-child(2) { top: 17px; }
.mobile-menu-btn span:nth-child(3) { top: 24px; }

/* Adjust mobile menu */
.mobile-menu {
    padding: 70px 30px 30px; /* Reduced top padding */
}

.mobile-menu ul li a {
    padding: 15px 0; /* Reduced from 18px */
    font-size: 1rem; /* Slightly smaller */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header .container {
        padding: 6px 15px; /* Even more compact on mobile */
        min-height: 55px;
    }
    
    .logo img {
        height: 40px; /* Smaller on mobile */
    }
    
    .logo-text h1 {
        font-size: 1.3rem; /* Smaller on mobile */
    }
    
    .logo-text p {
        font-size: 0.75rem; /* Smaller on mobile */
    }
    
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
    }
    
    .mobile-menu-btn span {
        width: 20px;
    }
    
    .mobile-menu-btn span:nth-child(1) { top: 9px; }
    .mobile-menu-btn span:nth-child(2) { top: 15px; }
    .mobile-menu-btn span:nth-child(3) { top: 21px; }
}

@media (max-width: 480px) {
    .top-header {
        padding: 6px 0; /* Even more compact */
        font-size: 0.8rem;
    }
    
    .main-header .container {
        padding: 4px 10px;
        min-height: 50px;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
}   /* Recommended: 3D lift effect with subtle color */
.enhanced-hover {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.enhanced-hover:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.1),
                0 10px 20px rgba(25, 118, 210, 0.05),
                0 0 0 1px rgba(211, 47, 47, 0.1);
}

/* Add subtle gradient border on hover */
.enhanced-hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    border-radius: calc(16px + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-hover:hover::after {
    opacity: 0.3;
}
