:root {
    /* Color Palette - Light Theme (Logo Inspired) */
    --color-primary: #0891b2;
    /* Cyan 600 */
    --color-primary-dark: #0e7490;
    /* Cyan 700 */
    --color-secondary: #0f172a;
    /* Slate 900 */
    --color-accent: #f59e0b;
    /* Amber */

    /* Light Theme Backgrounds */
    --color-background: #f8fafc;
    /* Slate 50 */
    --color-surface: #ffffff;
    /* White */

    /* Text Colors */
    --color-text: #0f172a;
    /* Slate 900 */
    --color-text-light: #475569;
    /* Slate 600 */
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows - Softer for Light Mode */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background: transparent;
    /* Transparent track */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(8, 145, 178, 0.5);
    /* Semi-transparent Cyan */
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: content-box;
    /* Makes thumb smaller than track */
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(8, 145, 178, 0.8);
    border: 2px solid transparent;
    background-clip: content-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.5);
}

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

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
}

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

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.btn::after {
    display: none;
}

.nav-link.btn {
    color: #ffffff;
    padding: 0.5rem 1.25rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--color-primary-dark);
}

/* Mobile Menu Toggle Active State */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(rgba(248, 250, 252, 0.5), rgba(248, 250, 252, 0.6)), url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    /* overflow: hidden; Removed to prevent content cutting on mobile */
    /* animation: panBackground 30s ease-in-out infinite; Remove animation if it causes issues, or keep it */
    animation: panBackground 30s ease-in-out infinite;
}

@keyframes panBackground {

    0%,
    100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(8, 145, 178, 0.1), transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(8, 145, 178, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    line-height: 1.25;
}

.hero-subtitle {
    margin-bottom: var(--spacing-lg);
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 550px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    animation: fadeInUp 1s ease-out 0.6s backwards;
    margin-top: var(--spacing-sm);
}

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

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

/* Hero Image Branded Frame */
/* Duplicate .hero-image-frame removed */

/* Old bracket styles removed - now attached to .hero-slide */

.hero-img-content {
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: opacity 1s ease-in-out;
}

/* Slideshow Styles */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.hero-slide.active {
    position: relative;
    /* Keep one relevant for layout flow if needed, but since they are stacked, usually all absolute except one is tricky. 
                         Actually, standard way: container has size, all images absolute. 
                         Or: first one relative, others absolute? 
                         Let's make them ALL absolute and give the container a fixed aspect ratio or let the first one dictate size (but opacity 0 might hide it).
                         
                          BETTER APPROACH: 
                         Make .hero-image-frame use grid/stacking. 
                         grid-area: 1 / 1; 
                      */
}

/* Improved Stacking Context for Slideshow */
.hero-image-frame {
    position: relative;
    padding: 20px;
    display: grid;
    /* Use grid to stack images */
    grid-template-columns: 1fr;
    max-width: 100%;
    /* Ensure aspect ratio is maintained based on the images */
    aspect-ratio: 16 / 9;
    /* Default Desktop Aspect Ratio */
}

/* Slide Container */
.hero-slide {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Image inside slide */
.hero-img-content {
    width: 100%;
    /* Ensure image fills the slide container */
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Global Bracket Styles (Attached to .hero-slide) */
/* Configuration: Bottom-Left (Primary) & Top-Right (Secondary) */
.hero-slide::before {
    content: '';
    position: absolute;
    width: 25%;
    height: 35%;
    /* BL - Primary Color */
    bottom: -15px;
    left: -15px;
    border-left: 5px solid var(--color-primary);
    border-bottom: 5px solid var(--color-primary);
    z-index: 2;
    /* Ensure on top of image */
    transition: all 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through */
}

.hero-slide::after {
    content: '';
    position: absolute;
    width: 25%;
    height: 35%;
    /* TR - Secondary Color */
    top: -15px;
    right: -15px;
    border-top: 5px solid var(--color-secondary);
    border-right: 5px solid var(--color-secondary);
    z-index: 2;
    /* Ensure on top of image */
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Updated Mobile Styles for Frame */
@media (max-width: 768px) {
    .hero-image-frame {
        padding: 20px;
        /* Increased padding to show brackets */
        margin-top: 2rem;
        aspect-ratio: 4 / 3;
        /* Mobile Aspect Ratio */
    }
}


/* Courses Section */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.course-card {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.course-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-img {
    transform: scale(1.05);
}

.course-card-content {
    padding: var(--spacing-md);
}

.course-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-secondary);
}

.course-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.text-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.text-link:hover {
    text-decoration: underline;
}

/* Workshops Section */
.workshops-section {
    background-color: var(--color-surface);
}

.workshop-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.workshop-info h3 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.workshop-form-wrapper {
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.workshop-form-wrapper h3 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.workshop-form .form-group {
    margin-bottom: var(--spacing-sm);
}

/* Workshop Button Selector */
.workshop-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.workshop-btn {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 2px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    font-family: var(--font-body);
}

.workshop-btn:hover {
    border-color: var(--color-primary);
    background-color: rgba(8, 145, 178, 0.05);
    transform: translateX(5px);
}

.workshop-btn.active {
    border-color: var(--color-primary);
    background-color: rgba(8, 145, 178, 0.1);
    color: var(--color-primary);
}

.form-embed-container {
    margin-top: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* AI Section */
/* AI Section */
.ai-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)), url('../assets/images/hero-data-ai.png');
    background-size: cover;
    background-position: center;
    color: var(--color-text);
    text-align: center;
    padding: 6rem 0;
    margin: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.ai-container {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.ai-content {
    /* Full width requested: Removed max-width */
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.ai-content h2 {
    color: var(--color-secondary);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.ai-content p {
    color: var(--color-text-light);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    margin-left: auto;
    margin-right: auto;
    /* Keeping text somewhat contained for readability is automatic via container,
       but removing explicit max-width as requested */
}

/* Removed unused redesign classes (ai-glow, btn-glow) */
/* Removed unused redesign classes (ai-glow, btn-glow) */

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.8);
}

/* Badge update for AI section */
.ai-content .badge {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.2);
    margin-bottom: 1.5rem;
    display: inline-block;
}

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

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

/* Footer Styles */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-top: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    opacity: 1;
    filter: brightness(1.1);
}

.footer-col p {
    color: #94a3b8;
    /* Keep slate-400 for dark footer */
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

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

.footer-col ul li a {
    color: #94a3b8;
    /* Keep slate-400 for dark footer */
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 768px) {

    /* Mobile Menu Toggle - Show on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation - Redesign (Standard "Curtain" + Liquid Glass) */
    /* Mobile Navigation - Professional Curtain Style */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        /* Premium Glassmorphism Background */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        /* Curtain Animation: Slide down from top */
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

        /* Z-Index: High enough to cover everything, but below the toggle button */
        z-index: 1999;

        /* Layout */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 60px;
        /* Space for the header/logo visibility */

        /* Reset Desktop Styles */
        box-shadow: none;
        opacity: 0;
        /* Hide initially for sharper transition availability */
        visibility: hidden;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    /* Staggered Animation for Menu Items */
    .main-nav.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Adjust nav links for mobile */
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    .nav-link {
        font-family: var(--font-heading);
        font-size: 2rem;
        /* Larger, more elegant font */
        color: var(--color-secondary);
        font-weight: 600;
        margin: 0;
        opacity: 0;
        /* Hidden before animation */
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }

    /* Stagger Delays */
    .main-nav.active .nav-list li:nth-child(1) .nav-link {
        transition-delay: 0.1s;
    }

    .main-nav.active .nav-list li:nth-child(2) .nav-link {
        transition-delay: 0.15s;
    }

    .main-nav.active .nav-list li:nth-child(3) .nav-link {
        transition-delay: 0.2s;
    }

    .main-nav.active .nav-list li:nth-child(4) .nav-link {
        transition-delay: 0.25s;
    }

    .main-nav.active .nav-list li:nth-child(5) .nav-link {
        transition-delay: 0.3s;
    }

    .main-nav.active .nav-list li:nth-child(6) .nav-link {
        transition-delay: 0.35s;
    }

    .nav-link:hover {
        color: var(--color-primary);
    }

    /* Ensure the Toggle Button (X) is visible above the curtain */
    .mobile-menu-toggle {
        z-index: 2000;
        position: relative;
        /* Ensure z-index works */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .footer-logo-img {
        margin-left: auto;
        margin-right: auto;
    }

    /* Mobile Typography Fixes */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }



    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .page-header h1 {
        font-size: 2rem;
        line-height: 1.2;
        padding: 0 1rem;
    }

    .page-header p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .ai-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        padding: 0 1rem;
    }

    .ai-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 1rem;
    }

    .course-card h3 {
        font-size: 1.25rem;
    }

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

    /* Mobile Button Fixes */
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: auto;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.95rem;
    }

    /* Mobile Section Spacing */
    .section {
        padding: 2.5rem 0;
    }

    .ai-section {
        margin: 2rem 0.5rem;
    }

    .ai-container {
        padding: 2rem 1rem;
    }

    /* Mobile Course Grid */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Mobile Footer */
    .footer {
        padding-top: 3rem;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-col p,
    .footer-col ul li a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }

    /* Badge */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    /* Home Workshop Section - Mobile Fix */
    .workshop-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .workshop-image-wrapper {
        width: 100%;
        margin-top: 1rem;
    }

    /* Workshops Page - Two Column Layout Fix */
    .workshops-page-section .container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Contact Page - Two Column Layout Fix */
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Workshop Form Sticky Position Fix */
    .workshops-page-section div[style*="position: sticky"] {
        position: static !important;
    }

    /* Search and Filter Row - Mobile Stack */
    .search-filter-row {
        flex-direction: column !important;
    }

    .search-filter-row input,
    .search-filter-row select,
    .search-filter-row button {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Category Glass Tabs - Mobile */
    .category-tab-glass {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
    }

    /* FIX: Mobile Layouts (Hero & Courses) */
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
        /* Center align hero text on mobile */
    }

    .hero-content {
        margin: 0 auto;
    }

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

    .hero-image-frame {
        width: 100%;
        margin-top: 2rem;
        aspect-ratio: 4 / 3;
    }

    .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .course-card {
        max-width: 100%;
        /* Ensure no overflow */
    }

    /* FIX: Course Detail Pages Mobile */
    .course-detail-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .course-detail-container.reverse .course-info {
        order: 2;
    }

    .course-detail-container.reverse .course-img {
        order: 1;
    }

    /* Ensure images fit */
    .course-img img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1.5rem;
    }
}

/* Inner Page Styles */
.page-header {
    background-color: var(--color-surface);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.course-detail-section {
    padding: var(--spacing-lg) 0;
}

.course-detail-section.alt-bg {
    background-color: var(--color-surface);
}

.course-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.course-detail-container.reverse .course-info {
    order: 2;
}

.course-detail-container.reverse .course-img {
    order: 1;
}

.course-desc {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.course-features {
    margin-bottom: var(--spacing-md);
}

.course-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text);
}

.course-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

.info-item {
    margin-bottom: var(--spacing-md);
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.info-item p {
    color: var(--color-text);
}

.contact-form-wrapper {
    background-color: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-text-light);
    background-color: var(--color-background);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===================================
   Course Browse Page Styles
   =================================== */

/* Category Tabs */
.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(34, 211, 238, 0.3);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover {
    border-color: var(--color-primary);
    background: rgba(34, 211, 238, 0.1);
}

.category-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Glass Theme Category Tabs */
.category-tab-glass {
    padding: 0.75rem 1.5rem;
    border: none;
    background: rgba(8, 145, 178, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-text);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.category-tab-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-tab-glass:hover {
    background: rgba(8, 145, 178, 0.15);
    border-color: rgba(8, 145, 178, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.category-tab-glass:hover::before {
    opacity: 1;
}

.category-tab-glass.active {
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.4);
}

.category-tab-glass.active::before {
    opacity: 0;
}

/* Modern Course Card */
.course-card-modern {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 211, 238, 0.1);
}

.course-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(34, 211, 238, 0.2);
    border-color: var(--color-primary);
}

.course-card-image img {
    transition: transform 0.3s ease;
}

.course-card-modern:hover .course-card-image img {
    transform: scale(1.05);
}

/* Button Link */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    gap: 0.75rem;
    text-decoration: underline;
}

/* Search Input Focus */
#courseSearch:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* Filter Select Styling */
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .category-tab {
        width: 100%;
        text-align: center;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls select,
    .filter-controls button {
        width: 100%;
    }
}

/* ============================
   Enroll Modal Styles
   ============================ */
/* Enhanced Glass Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    /* Darker overlay for better contrast */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(8, 145, 178, 0.25);
    /* Cyan tinted shadow */
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(8, 145, 178, 0.1);
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: var(--color-text-light);
}

.modal-body {
    padding: 2rem;
}

/* Glass Inputs in Modal */
.modal-body input,
.modal-body select,
.modal-body textarea {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 1rem;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.modal-body label {
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
    color: var(--color-text);
}

.modal-body button {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: var(--radius-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.05);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px 0 rgba(31, 38, 135, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-primary);
}

.glass-input {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Contact Page Specific Styles */
.contact-hero {
    background: linear-gradient(rgba(241, 245, 249, 0.8), rgba(248, 250, 252, 0.9)), url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Decorative Blobs for Glassmorphism Context */
.contact-hero::before,
.contact-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.contact-hero::before {
    background: var(--color-primary);
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.contact-hero::after {
    background: var(--color-accent);
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.contact-header-content {
    /* text-align: center; Removed center alignment for split layout */
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.contact-header-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.contact-info-grid {
    display: grid;
    gap: var(--spacing-md);
}

.contact-info-card {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3);
}

.contact-form-glass {
    padding: var(--spacing-lg);
}

.contact-h2 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}



@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        padding-top: 100px;
        /* Space for fixed header */
        align-items: flex-start;
    }

    .contact-hero::before,
    .contact-hero::after {
        opacity: 0.4;
    }
}

/* =========================================
   Notification System
   ========================================= */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.notification-toast {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    border-left: 5px solid var(--color-primary);
    animation: slideInRight 0.4s ease-out forwards;
    pointer-events: auto;
    /* Re-enable clicks on the toast itself */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border for glass effect context */
}

.notification-toast.success {
    border-left-color: #10b981;
    /* Emerald 500 */
}

.notification-toast.error {
    border-left-color: #ef4444;
    /* Red 500 */
}

.notification-content {
    flex-grow: 1;
    margin-right: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--color-text);
}

.notification-toast.hiding {
    animation: fadeOutRight 0.4s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}