/* --- Global Styles & Variables --- */
:root {
    --primary-red: #D7263D; /* A slightly more vibrant red */
    --primary-red-darker: #B31227;
    --primary-red-lighter: #E84A5F;
    --primary-red-glow: rgba(215, 38, 61, 0.35);
    --accent-color: #F0A07B; /* A warm accent for contrast */

    --text-dark: #1a1a1a;
    --text-medium: #4f4f4f;
    --text-light: #f8f9fa;
    --text-light-variant: #d1d1d1; /* For subtitles on dark backgrounds */

    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-gradient-light: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    --bg-dark: #121212; /* For very dark sections, if needed */
    --bg-dark-red: #9A031E; /* Darker red for sections like testimonials */
    --bg-gradient-dark: linear-gradient(180deg, #2c0b0e 0%, #1a0608 100%); /* Contact section bg */


    --border-color: #e0e0e0;
    --border-color-dark: #444;

    --shadow-xs: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-sm: 0 4px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12); /* Increased for hover effect */
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif; /* Changed to Inter for body */

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-pill: 50px;

    --transition-fast: 0.2s ease-out;
    --transition-std: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

    --header-height: 70px;

    
    
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 { font-family: var(--font-primary); font-weight: 700; line-height: 1.3; margin-bottom: 0.6em; }
h1 { font-size: clamp(2.6em, 5vw, 4em); font-weight: 800; }
h2.section-title { font-size: clamp(2em, 4vw, 3em); text-align: center; margin-bottom: 0.5em; }
h3 { font-size: clamp(1.4em, 3vw, 1.8em); }
h4 { font-size: clamp(1.1em, 2.5vw, 1.4em); font-weight: 600; }

p { margin-bottom: 1.2em; font-size: 1.05em; color: var(--text-medium); }
.section-subtitle {
    font-size: clamp(1em, 2vw, 1.2em);
    color: var(--text-medium);
    max-width: 750px;
    margin: 0 auto 2.5em auto; /* Increased bottom margin */
    text-align: center;
    line-height: 1.6;
}
.text-light { color: var(--text-light) !important; }
.text-light-variant { color: var(--text-light-variant) !important; }
.highlight-red { color: var(--primary-red); }
.highlight-white { color: var(--bg-white); }

a { text-decoration: none; color: var(--primary-red); transition: color var(--transition-fast); }
a:hover { color: var(--primary-red-darker); }
img { max-width: 100%; height: auto; display: block; }

.section-padding { padding: 100px 0; } /* Increased padding */
.bg-light { background-color: var(--bg-light); }
.bg-gradient-light { background: var(--bg-gradient-light); }
.bg-dark-red { background-color: var(--bg-dark-red); }
.bg-gradient-dark { background: var(--bg-gradient-dark); }


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.9em 2.2em;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-std);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before { /* For hover fill effect */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background-color: rgba(255,255,255,0.15);
    transition: width var(--transition-std);
    z-index: -1;
}
.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
    border-color: var(--primary-red);
}
.btn-primary:hover {
    background-color: var(--primary-red-darker);
    border-color: var(--primary-red-darker);
    color: white;
    box-shadow: 0 8px 20px var(--primary-red-glow); /* Kept original shadow */
}
.btn-primary:hover::before { width: 100%; background-color: rgba(255,255,255,0.1); }

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}
.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
    /* Removed translateY here */
}
.hero-section .btn-secondary { color: var(--text-dark); border-color: var(--text-dark); } /* For hero contrast */
.hero-section .btn-secondary:hover { background-color: var(--text-dark); color: var(--text-light); border-color: var(--text-dark); }
.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}
.btn-course-view {
    margin: 0 20px 20px 20px; align-self: stretch; text-align:center;
    font-size: 0.85rem; padding: 0.8em 1.5em;
    background-color: var(--primary-red-lighter); color: var(--text-light);
    /* Added transition for consistency */
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-course-view:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px); /* Kept original lift effect */
    box-shadow: var(--shadow-sm); /* Added subtle shadow */
}


/* --- Header & Navigation --- */
#main-header {
    background-color: rgba(255, 255, 255, 0.85); /* Glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    transition: background-color var(--transition-std), box-shadow var(--transition-std), height var(--transition-std);
}
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}
#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.nav-item-dropdown {
    position: relative; /* Needed for dropdown absolute positioning */
}
.nav-item-dropdown.nav-cta > a.btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ensure dropdown icon in button doesn't get weird styles */
.nav-item-dropdown.nav-cta .dropdown-icon {
    transition: transform 0.2s ease-in-out;
    margin: 0;
}
.nav-item-dropdown.nav-cta:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-item-dropdown .nav-link {
     display: flex; /* Allow icon next to text */
     align-items: center;
}

.dropdown-icon {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform var(--transition-fast);
}

/* Rotate icon when dropdown is hovered */
.nav-item-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}


.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: calc(100% + 10px); /* Position below the nav link + slight gap */
    left: 0; /* Align left edge */
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 10px 0;
    min-width: 220px; /* Minimum width for the dropdown */
    z-index: 10; /* Ensure it appears above content */
    opacity: 0;
    pointer-events: none; /* Don't block clicks */
    transform: translateY(10px); /* Start slightly lower */
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* Show dropdown on hover */
.nav-item-dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0; /* Remove list margin */
    padding: 0; /* Remove list padding */
}

.dropdown-menu li a {
    font-family: var(--font-secondary); /* Use body font for dropdown items */
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 20px;
    display: block; /* Make the whole list item clickable area */
    white-space: nowrap; /* Prevent wrapping */
    transition: background-color var(--transition-fast), color var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light); /* Subtle hover background */
    color: var(--primary-red);
    text-decoration: none; /* No underline */
}

/* Active state for dropdown links (if on that page) - Set in HTML */
.dropdown-menu li a.active {
    color: var(--primary-red-darker); /* Darker red for emphasis */
    background-color: rgba(215, 38, 61, 0.08); /* Light red background */
    font-weight: 600; /* Slightly bolder */
}

.logo {
    display: inline-flex; align-items: center;
    font-family: var(--font-primary);
    font-size: 1.6em; /* Slightly smaller for more elegance */
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.css-ladder-logo {
    width: 2.5em; height: 3em; position: relative;
    margin-right: 0.1em; display: flex; flex-direction: column;
    justify-content: space-around; align-items: center;
}

.logo .logo-text-black { color: var(--text-dark); }
.logo .logo-text-red { color: var(--primary-red); }
.logo:hover .logo-text-red { color: var(--primary-red-darker); }

.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 35px; }
.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2.5px; background-color: var(--primary-red);
    border-radius: 2px; transition: width var(--transition-std);
}
.nav-link:hover, .nav-link.active { color: var(--primary-red); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
/* --- Dropdown Navigation Styles --- */
.nav-item-dropdown {
    position: relative; /* Needed for dropdown absolute positioning */
}

.nav-item-dropdown .nav-link {
     display: flex; /* Allow icon next to text */
     align-items: center;
}

.dropdown-icon {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform var(--transition-fast);
}

/* Rotate icon when dropdown is hovered */
.nav-item-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}


.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: calc(100% + 2px); /* Position below the nav link + slight gap */
    left: 0; /* Align left edge */
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 10px 0;
    min-width: 200px; /* Minimum width for the dropdown */
    z-index: 10; /* Ensure it appears above content */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px); /* Start slightly lower */
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-item-dropdown:hover > .dropdown-menu {
    display: block; /* Show on hover */
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0); /* Slide up to position */
}

.dropdown-menu li {
    margin: 0; /* Remove list margin */
    padding: 0; /* Remove list padding */
}

.dropdown-menu li a {
    font-family: var(--font-secondary); /* Use body font for dropdown items */
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 20px;
    display: block; /* Make the whole list item clickable area */
    white-space: nowrap; /* Prevent wrapping */
    transition: background-color var(--transition-fast), color var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light); /* Subtle hover background */
    color: var(--primary-red);
    text-decoration: none; /* No underline */
}

/* Active state for dropdown links (if on that page) */
.dropdown-menu li a.active {
    color: var(--primary-red);
    background-color: rgba(215, 38, 61, 0.05); /* Light red background */
}


.nav-cta { font-size: 0.85rem; padding: 0.7em 1.8em; }
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }


/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 80px); /* Offset for fixed header */
    padding-bottom: 80px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* For background animation */
    background: var(--bg-white); /* Cleaner start */
}
.hero-background-animation { /* Subtle animated gradient or particles */
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(-45deg, var(--primary-red-lighter), var(--accent-color), var(--bg-light), var(--primary-red));
    background-size: 400% 400%;
    animation: gradientBG 25s ease infinite;
    opacity: 0.08; /* Very subtle */
    z-index: 0;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-container { display: flex; align-items: center; gap: 50px; position: relative; z-index: 1; }
.hero-content { flex: 1.2; }
.hero-tagline {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 5px 12px;
    background-color: rgba(215, 38, 61, 0.1);
    border-radius: var(--border-radius-sm);
}
.hero-title { margin-bottom: 0.5em; color: var(--text-dark); }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 1.8em; color: var(--text-medium); max-width: 600px; }
.hero-features {
    display: flex;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}
.hero-features span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    display: flex;
    align-items: center;
}
.hero-features span i {
    color: var(--primary-red);
    margin-right: 8px;
    font-size: 1.1em;
}
.hero-cta-group { display: flex; gap: 20px; }
.hero-cta { min-width: 180px; text-align: center; }
.hero-image-container {
    flex: 1;
    text-align: center;
    perspective: 1500px; /* For 3D tilt */
}
.hero-image-container img {
    max-width: 550px; width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transform: rotateY(-10deg) rotateX(3deg) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow var(--transition-slow);
}
.hero-image-container:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* --- Popular Courses Section --- */
#popular-courses {
    background-color: var(--bg-light); /* Slight contrast from hero */
}
.popular-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Ensure 3 cards fit well */
    gap: 30px;
    margin-bottom: 40px;
}
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    z-index: 2;
}
.course-badge.popular { background-color: var(--primary-red); }
.course-badge.new { background-color: #28a745; } /* Green for new */
.course-badge.hot { background-color: #ffc107; color: var(--text-dark); } /* Yellow for hot */

.view-all-courses-cta {
    text-align: center;
    margin-top: 40px;
}


/* --- Unified Card Hover Effect (Look up, Zoom in, Shadow) --- */
/* Apply this hover effect to all relevant cards *when they are visible* */
.course-card.is-visible:hover,
.stat-item.is-visible:hover,
.unique-feature-card.is-visible:hover,
.who-card.is-visible:hover {
    transform: translateY(-10px) scale(1.0); /* Lift up slightly more and zoom in */
    box-shadow: var(--shadow-lg); /* Apply the larger shadow */
}

/* Ensure all card base classes have the required transitions */
/* Keep the base transition, it's necessary for the animation from data-animation state
   AND the hover effect defined above to transition smoothly */
.course-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md); /* Base shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Ensure transition includes transform and box-shadow */
    transition: transform var(--transition-std), box-shadow var(--transition-std);
    position: relative;
    border: 1px solid var(--border-color);
}
.course-title-bar {
    background-color: var(--primary-red); color: var(--text-light);
    font-family: var(--font-primary); font-weight: 700; font-size: 1.15em;
    padding: 12px 20px; text-align: center;
}
.course-image-container { width: 100%; height: 180px; overflow: hidden; }
.course-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
/* Keep the internal image zoom on course-card hover */
.course-card.is-visible:hover .course-image-container img { transform: scale(1.08); }
.course-description { list-style: none; padding: 20px; margin-bottom: 15px; flex-grow: 1; }
.course-description li { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-medium); display: flex; align-items: flex-start; }
.course-description li i { color: var(--primary-red-lighter); margin-right: 10px; margin-top: 3px; font-size: 0.85em; }


/* --- Torch Jelly Effect (Visuals only, no animation) --- */
/* Applied to course-card and who-card - These effects combine with the main card hover */
.torch-jelly-effect::before { /* Torch Light Gradient */
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--primary-red-glow) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    pointer-events: none; border-radius: inherit; transform: scale(1.3);
    z-index: 1; /* Above border, below content if any content is above */
}
.torch-jelly-effect:hover::before { opacity: 1; transform: scale(1); }

.torch-jelly-effect::after { /* Visible Border for Torch Effect */
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: inherit;
    border: 2px solid transparent;
    transition: border-color 0.3s ease-out;
    pointer-events: none;
    z-index: 0; /* Behind the torch light gradient */
}
.torch-jelly-effect:hover::after {
    border-color: var(--primary-red-darker);
}


/* --- Statistics Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.stat-item {
    text-align: center;
    padding: 25px;
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
    /* Ensure transition includes transform and box-shadow */
    transition: transform var(--transition-std), box-shadow var(--transition-std), background-color var(--transition-std);
}
/* Specific hover styles for stat-item that DON'T conflict */
.stat-item.is-visible:hover { /* Apply background hover only when visible and hovered */
     background-color: rgba(255,255,255,0.15); /* Keep specific background hover */
}
.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-red-lighter);
    margin-bottom: 15px;
}
.stat-number {
    font-family: var(--font-primary);
    font-size: clamp(2.2em, 5vw, 3.2em);
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 3px;
    line-height: 1.1;
}
.stat-text {
    font-size: 1rem;
    color: var(--text-light-variant);
    font-weight: 500;
}

/* What Makes Us Unique Section */
.unique-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.unique-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md); /* Base shadow */
    /* Ensure transition includes transform and box-shadow */
    transition: transform var(--transition-std), box-shadow var(--transition-std);
}
/* No specific hover styles here besides the unified one */

.unique-feature-icon {
    font-size: 2.2rem;
    color: var(--primary-red);
    background-color: rgba(215, 38, 61, 0.1);
    padding: 15px;
    border-radius: 50%;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.unique-feature-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.unique-feature-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* Who Can Join Section */
.who-card { /* Also has .torch-jelly-effect class */
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white cards */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.15);
    /* Ensure transition includes transform and box-shadow */
    transition: transform var(--transition-std), box-shadow var(--transition-std), background-color var(--transition-std);
    position: relative; /* Needed for ::before/::after torch effect */
}
/* Specific hover styles for who-card that DON'T conflict */
.who-card.is-visible:hover { /* Apply background hover only when visible and hovered */
    background-color: rgba(255, 255, 255, 0.12); /* Keep specific background hover */
}
.who-can-join-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=70');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: 0;
}
.who-can-join-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(154, 3, 30, 0.88); /* Dark red overlay, increased opacity */
    z-index: -1;
}
.who-can-join-section .section-title,
.who-can-join-section .section-subtitle {
    position: relative;
    z-index: 1;
}
.who-can-join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.who-icon {
    font-size: 2.5rem;
    color: var(--primary-red-lighter);
    margin-bottom: 15px;
}
.who-card h3 { color: var(--text-light); font-size: 1.3rem; margin-bottom: 10px; }
.who-card p { color: var(--text-light-variant); font-size: 0.95rem; }


/* --- Home Page Contact Form Section --- */
.home-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Text | Form */
    gap: 50px;
    align-items: center;
}
.home-form-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}
.home-form-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}
.demo-benefits {
    list-style: none;
    padding-left: 0;
    color: var(--text-light-variant);
}
.demo-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.demo-benefits li i {
    color: var(--primary-red-lighter);
    margin-right: 12px;
    font-size: 1.1em;
}
.contact-form-container.home-form {
    background-color: rgba(255,255,255,0.03);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color-dark);
}
.contact-form-container.home-form h3 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}
/* Floating Labels Form Styling (Shared with contact page if you use same structure) */
.form-group {
    position: relative;
    margin-bottom: 28px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 16px 12px 8px 12px;
    border: 1px solid var(--border-color-dark);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    background-color: rgba(255,255,255,0.05);
    color: var(--text-light);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.form-group label {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 1rem;
    color: var(--text-light-variant);
    pointer-events: none;
    transition: all var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red-lighter);
    background-color: rgba(255,255,255,0.08);
}
.form-group input:focus + label, .form-group select:focus + label, .form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:valid + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 4px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--primary-red-lighter);
    background-color: transparent; /* Adjust if form bg isn't matching section bg */
    padding: 0 4px;
}
#home-contact-form .form-group input:focus + label,
#home-contact-form .form-group select:focus + label,
#home-contact-form .form-group textarea:focus + label,
#home-contact-form .form-group input:not(:placeholder-shown) + label,
#home-contact-form .form-group select:valid + label,
#home-contact-form .form-group textarea:not(:placeholder-shown) + label {
    background-color: #23090b; /* Match dark gradient for label bg */
}
.form-group select option[disabled] { display: none; }
.form-group textarea { min-height: 100px; resize: vertical; } /* Reduced for home page form */

/* --- Footer --- */
#main-footer { background-color: var(--text-dark); color: var(--text-light-variant); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col .logo { color: var(--bg-white); margin-bottom: 15px; display: inline-flex; font-size: 1.5em; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: var(--bg-white); font-size: 1.15rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 35px; height: 2.5px; background-color: var(--primary-red); border-radius: 2px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-light-variant); font-size: 0.95rem; transition: color var(--transition-fast), padding-left var(--transition-fast); }
.footer-col ul li a:hover { color: var(--primary-red); padding-left: 5px; }
.footer-social-col .footer-socials { display: flex; gap: 15px; margin-bottom: 15px; }
.footer-social-col .footer-socials a { font-size: 1.4em; color: var(--text-light-variant); }
.footer-social-col .footer-socials a:hover { color: var(--primary-red); }
.footer-contact-info { display:flex; align-items: center; font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact-info i { margin-right: 10px; color: var(--primary-red); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color-dark); font-size: 0.9rem; }
.footer-bottom .fa-heart { transition: color var(--transition-fast), transform var(--transition-fast); }
.footer-bottom:hover .fa-heart { color: var(--primary-red-lighter); transform: scale(1.1); }


/* --- WhatsApp Floating Button --- */
.whatsapp-chat-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow */
}
.whatsapp-chat-button:hover {
    transform: scale(1.1);
    background-color: #1DA851; /* Darker WhatsApp Green */
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* Slightly bigger shadow on hover */
}


/* --- Scroll Animations --- */
/* IMPORTANT: Ensure these rules set the final *rest* state for transform */
/* This is where the conflict might be coming from if not properly set */
[data-animation].is-visible { opacity: 1; transform: translateY(0) scale(1); /* Make sure scale(1) is included here */ }
[data-animation="fadeInDown"].is-visible { transform: translateY(0) scale(1); }
[data-animation="fadeInUp"].is-visible { transform: translateY(0) scale(1); }
[data-animation="fadeInLeft"].is-visible { transform: translateX(0) scale(1); }
[data-animation="fadeInRight"].is-visible { transform: translateX(0) scale(1); }
/* [data-animation="zoomIn"].is-visible already sets transform: scale(1) */


/* --- Responsive Design --- */
@media (max-width: 992px) {
    #main-header .nav-links {
        position: fixed; top: var(--header-height); left: 0;
        width: 100%; height: calc(100vh - var(--header-height));
        background-color: rgba(255,255,255,0.98);
        backdrop-filter: blur(5px);
        flex-direction: column; align-items: center; justify-content: center;
        transform: translateX(100%);
        transition: transform var(--transition-std);
        padding-bottom: var(--header-height);
        z-index: 1000; /* Ensure it's above content when open */
    }
    #main-header .nav-links.nav-active { transform: translateX(0); }
    .nav-links li { margin: 20px 0; }
    .nav-link { font-size: 1.3rem; }
    .nav-cta { display: none; }
    .mobile-nav-toggle { display: block; z-index: 1001; /* Above nav links */ }

    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-content { margin-bottom: 40px; }
    .hero-subtitle { margin: 0 auto 1.8em auto; }
    .hero-features { justify-content: center; }
    .hero-cta-group { justify-content: center; }
    .hero-image-container img { transform: rotateY(0) rotateX(0) scale(1); }

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

    .home-form-wrapper {
        grid-template-columns: 1fr; /* Stack */
        gap: 40px;
    }
    .home-form-text {
        text-align: center;
    }
    .home-form-text .section-title {
        text-align: center;
    }
    .demo-benefits li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.4em; }
    h2.section-title { font-size: 1.8em; }
    .section-padding { padding: 70px 0; }
    .hero-section { padding-top: calc(var(--header-height) + 50px); padding-bottom: 50px; }
    .hero-subtitle { font-size: 1.1rem; }

    .popular-courses-grid { grid-template-columns: 1fr; } /* Stack on smaller */
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-item { padding: 20px; }
    .unique-features-grid { grid-template-columns: 1fr; }
    .unique-feature-card { flex-direction: column; align-items: center; text-align: center; }
    .unique-feature-icon { margin-bottom: 15px; }
    .who-can-join-grid { grid-template-columns: 1fr; }

    #main-footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
    #main-footer .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-social-col .footer-socials { justify-content: center; }
}



/* --- contact.css --- */

/* Import global styles and variables */
/* Assumes style.css is linked BEFORE this file in HTML */
/* If not, you might need to re-declare variables here or use @import */
/* @import url("style.css"); */ /* Not needed if using <link> in HTML */


/* --- Variables Specific to Contact Page (if any, currently relying on style.css) --- */
/* Example: --contact-form-bg-light: rgba(255, 255, 255, 0.7); */
/* Example: --contact-form-bg-dark: rgba(255, 255, 255, 0.08); */


/* --- Contact Page Layout & Elements --- */

/* Page Banner (used for Contact, About, Courses pages) */
.page-banner {
    padding: calc(var(--header-height) + 60px) 0 60px 0; /* Offset for fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient-dark); /* Using dark gradient from index contact */
}

.page-banner h1 {
    font-size: clamp(2em, 4vw, 3em);
    margin-bottom: 0.3em;
    color: var(--text-light);
}

.page-banner p {
     font-size: clamp(1em, 2vw, 1.1em);
     max-width: 700px;
     margin: 0.5em auto 0 auto;
     color: var(--text-light-variant);
}

/* Subtle Background Pattern for Sections */
/* Added to main sections on the contact page */
#contact-banner,
#book-demo-section,
#general-contact {
    /* More subtle noise */
     background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMCUzRVMydmdnIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCI+CiAgPGZpbHRlciBpZD0ibm9pc2UiPgogICAgPGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9Ii43Ljg1IiBudW1PY3RhdmVzPSI2IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+CiAgICA8ZmVDb2xvck1hdHJpeCB0eXBlPSJzYXR1cmF0ZSIgdmFsdWVzPSIwIi8+CiAgPC9maWx0ZXI+CiAgPHJlY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9IndoaXRlIi8+CiAgPHJlY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuMDMiLz4KICA8cmVzdi8+Cjwvc3ZnPg==');
     background-size: 100px 100px;
     /* Ensure base background color is defined here or in style.css */
     /* Since sections have different bg (dark gradient, light), define here */
}
#contact-banner { background: var(--bg-gradient-dark); }
#book-demo-section { background: var(--bg-light); }
#general-contact { background: var(--bg-gradient-dark); }


/* --- Beautiful Section Dividers (Wavy) --- */
.section-divider-wavy {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0; /* Remove extra space below SVG */
    /* background-color is set via inline style in HTML to match the section above */
}

.section-divider-wavy svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px); /* Ensure full width */
    height: 120px; /* Adjust height of the wave */
    transform: rotateY(180deg); /* Flip wave horizontally for variation */
}

.section-divider-wavy.flip-vertical svg {
    transform: rotateY(180deg) rotateX(180deg); /* Flip horizontally and vertically */
}

.section-divider-wavy .shape-fill {
    /* Color is set via CSS variable --divider-color from inline style in HTML */
    fill: var(--divider-color);
}


/* --- Form Section Layout --- */
.form-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Text on left, Form on right */
    gap: 60px; /* Increased gap */
    align-items: flex-start; /* Align items to the top */
}

.form-section-wrapper.reverse-layout {
    grid-template-columns: 1.2fr 1fr; /* Form on left, Text on right */
}
.form-section-wrapper.reverse-layout .form-text-content {
     text-align: left; /* Ensure text aligns left */
}

/* Text Content next to Forms */
.form-text-content .section-title {
     text-align: left; /* Override default center */
     margin-bottom: 20px;
}

.form-text-content p {
     font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    /* color is handled by parent section or global p rule */
}

/* Brighter List Text for Demo Benefits */
.form-text-content .demo-benefits { /* Target benefits list within this context */
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.form-text-content .demo-benefits li {
     margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--primary-red); /* Brighter red text for benefits */
    font-weight: 600;
}

.form-text-content .demo-benefits li i {
     color: var(--primary-red-lighter); /* Keep icon color consistent */
    margin-right: 12px;
    font-size: 1.1em;
}

/* Small Note below Benefits */
.form-text-content .small-note {
     font-size: 0.9rem;
     color: var(--text-medium); /* Default color on light background */
     margin-top: 20px;
     display: flex;
     align-items: flex-start;
}
#general-contact .form-text-content .small-note { /* Adjust for dark section */
    color: var(--text-light-variant);
}

.form-text-content .small-note i {
    margin-right: 8px;
    margin-top: 2px; /* Better align icon */
    color: var(--primary-red-lighter);
}


/* --- Form Container & Glassmorphism Effects --- */

/* Base Form Container Styling (can be global in style.css, but applied here) */
/* Keeping these base styles here for clarity, assuming style.css has simpler defaults */
.contact-form-container {
    padding: 35px;
    border-radius: var(--border-radius-lg);
    position: relative; /* For positioning elements if needed */
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 25px;
    /* color is handled by parent glassmorphism class */
}

/* Enhanced Glassmorphism Variants */
.contact-form-container.glassmorphism-light {
    background-color: rgba(255, 255, 255, 0.7); /* More opaque white */
    backdrop-filter: blur(15px); /* Stronger blur */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color-glass-dark); /* Subtle dark border */
    box-shadow: var(--shadow-glass-light); /* Lighter glass shadow */
    color: var(--text-dark); /* Default text color inside */
}
.contact-form-container.glassmorphism-light h3 {
     color: var(--text-dark);
}


.contact-form-container.glassmorphism-dark {
    background-color: rgba(255, 255, 255, 0.08); /* More opaque translucent white */
    backdrop-filter: blur(15px); /* Stronger blur */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color-glass-light); /* Subtle light border */
    box-shadow: var(--shadow-glass-dark); /* Darker glass shadow */
     color: var(--text-light); /* Default text color inside */
}
.contact-form-container.glassmorphism-dark h3 {
     color: var(--text-light);
}


/* Floating Label Background Adjustments within Glassmorphism Forms */
/* Ensure the label background matches the form container's glass background */
/* Note: Form field base styles and base label floating logic come from style.css */

.contact-form-container.glassmorphism-light .form-group input:focus + label,
.contact-form-container.glassmorphism-light .form-group select:focus + label,
.contact-form-container.glassmorphism-light .form-group textarea:focus + label,
.contact-form-container.glassmorphism-light .form-group input:not(:placeholder-shown) + label,
.contact-form-container.glassmorphism-light .form-group select:valid + label,
.contact-form-container.glassmorphism-light .form-group textarea:not(:placeholder-shown) + label,
.contact-form-container.glassmorphism-light .phone-group select:valid ~ label,
.contact-form-container.glassmorphism-light .phone-group input[type="tel"]:not(:placeholder-shown) ~ label,
.contact-form-container.glassmorphism-light .phone-group select:focus ~ label,
.contact-form-container.glassmorphism-light .phone-group input[type="tel"]:focus ~ label {
     background-color: rgba(255, 255, 255, 0.7); /* Match light glass background */
     padding: 0 4px; /* Re-add padding */
}

.contact-form-container.glassmorphism-dark .form-group input:focus + label,
.contact-form-container.glassmorphism-dark .form-group select:focus + label,
.contact-form-container.glassmorphism-dark .form-group textarea:focus + label,
.contact-form-container.glassmorphism-dark .form-group input:not(:placeholder-shown) + label,
.contact-form-container.glassmorphism-dark .form-group select:valid + label,
.contact-form-container.glassmorphism-dark .form-group textarea:not(:placeholder-shown) + label,
.contact-form-container.glassmorphism-dark .phone-group select:valid ~ label,
.contact-form-container.glassmorphism-dark .phone-group input[type="tel"]:not(:placeholder-shown) ~ label,
.contact-form-container.glassmorphism-dark .phone-group select:focus ~ label,
.contact-form-container.glassmorphism-dark .phone-group input[type="tel"]:focus ~ label {
     background-color: rgba(255, 255, 255, 0.08); /* Match dark glass background */
     padding: 0 4px; /* Re-add padding */
}


/* Input Focus Shadow (Could be global, putting here for contact-specific enhancement) */
/* If you want this site-wide, move to style.css */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-red); /* Primary red border on focus */
    box-shadow: 0 0 8px rgba(215, 38, 61, 0.4); /* Subtle red glow */
}


/* Ensure inputs inside glassmorphism forms match color scheme */
.contact-form-container.glassmorphism-light .form-group input,
.contact-form-container.glassmorphism-light .form-group select,
.contact-form-container.glassmorphism-light .form-group textarea,
.contact-form-container.glassmorphism-light .phone-group .phone-input-wrapper select,
.contact-form-container.glassmorphism-light .phone-group .phone-input-wrapper input[type="tel"] {
    background-color: rgba(255, 255, 255, 0.5); /* Inputs slightly more transparent */
    color: var(--text-dark);
    border-color: var(--border-color-glass-dark);
}

.contact-form-container.glassmorphism-dark .form-group input,
.contact-form-container.glassmorphism-dark .form-group select,
.contact-form-container.glassmorphism-dark .form-group textarea,
.contact-form-container.glassmorphism-dark .phone-group .phone-input-wrapper select,
.contact-form-container.glassmorphism-dark .phone-group .phone-input-wrapper input[type="tel"] {
    background-color: rgba(255, 255, 255, 0.03); /* Inputs slightly more transparent */
    color: var(--text-light);
    border-color: var(--border-color-glass-light);
}

/* Placeholder color for better visibility within glassmorphism forms */
.contact-form-container.glassmorphism-light .form-group input::placeholder,
.contact-form-container.glassmorphism-light .form-group textarea::placeholder {
     color: rgba(0, 0, 0, 0.3); /* Darker placeholder on light form inputs */
}
.contact-form-container.glassmorphism-dark .form-group input::placeholder,
.contact-form-container.glassmorphism-dark .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4); /* Lighter placeholder on dark form inputs */
}


/* Combined Phone Number Input Styling */
.phone-group { /* Ensure form-group structure */
     position: relative;
     margin-bottom: 28px;
}

/* Label floating state styles are handled by rules targeting .form-group ... label in style.css
   or overridden for background color by the glassmorphism specific rules above */


.phone-group .phone-input-wrapper { /* Container for select+input, takes up full width */
    display: flex; /* Use flexbox for side-by-side */
    gap: 10px;
    width: 100%;
}
.phone-group .phone-input-wrapper select {
     flex-shrink: 0; /* Don't shrink */
     width: auto; /* Allow width based on content + padding */
     min-width: 80px; /* Minimum width */
     /* Padding, border, background, color handled by input/select rules within glassmorphism containers */
}
.phone-group .phone-input-wrapper input[type="tel"] {
    flex-grow: 1; /* Grow to fill remaining space */
     /* Padding, border, background, color handled by input/select rules within glassmorphism containers */
}


/* --- Contact Details List --- */
.contact-details {
    margin-top: 40px; /* Increased space above contact details */
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Increased space between items */
    font-size: 1.1rem;
    color: var(--text-light); /* Brighter white text */
    font-weight: 500;
}
.contact-item i {
    color: var(--primary-red-lighter);
    margin-right: 15px;
    font-size: 1.3em;
    min-width: 30px; /* Fixed width for icons */
}
.contact-item span {
    word-break: break-all; /* Prevent long emails/addresses from overflowing */
}


/* --- Map Embed Styling --- */
.map-embed {
    margin-top: 30px;
    border-radius: var(--border-radius-md);
    overflow: hidden; /* Ensure border-radius applies */
    box-shadow: var(--shadow-md); /* Reuse global shadow */
}
.map-embed iframe {
     display: block; /* Remove extra space below iframe */
}

/* --- Responsive Adjustments Specific to Contact Page --- */
@media (max-width: 992px) {
    .page-banner {
        padding: calc(var(--header-height) + 40px) 0 40px 0;
    }
    .form-section-wrapper {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 40px;
    }
    .form-section-wrapper.reverse-layout {
        grid-template-columns: 1fr; /* Stack columns */
    }
    /* Center text content title on smaller screens */
    .form-text-content .section-title {
         text-align: center;
    }
     /* Center lists when stacked */
    .form-text-content .demo-benefits li {
        justify-content: center;
    }
     .contact-details .contact-item {
         justify-content: center; /* Center contact items */
     }
     .form-text-content .small-note {
        justify-content: center;
     }
}

@media (max-width: 768px) {
    .page-banner h1 { font-size: 1.8em; }
    .page-banner p { font-size: 1em; }

    .form-section-wrapper {
        gap: 30px;
    }

    .phone-group .phone-input-wrapper select {
         min-width: 70px; /* Smaller minimum width */
    }
}