/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1.  Root Variables
2.  Global Styles
    - Reset & Base
    - Typography
    - Buttons
    - Forms
    - Utility Classes
3.  Layout & Grid
4.  Header & Navigation
5.  Footer
6.  Hero Section
7.  Features Section
8.  Statistics Section
9.  History Section
10. Instructors Section
11. Portfolio Section
    - Cards & Modals
12. Awards Section
13. Insights Section
14. External Resources Section
15. Contact CTA Section
16. Page Specific Styles
    - About Page
    - Contact Page
    - Privacy & Terms Pages
    - Success Page
17. Components
    - Cards (General)
    - Modals (General)
    - Switches
    - Timeline
18. Animations & Transitions
19. Responsive Design (Media Queries)
-------------------------------------------------------------------*/

/* 1. Root Variables
-------------------------------------------------------------------*/
:root {
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Gradient Color Scheme */
    --gradient-primary: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    --gradient-secondary: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Reversed for variation */
    --gradient-accent: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%); /* Coral to Peach */

    /* Solid Colors */
    --color-primary: #2575fc;
    --color-secondary: #6a11cb;
    --color-accent: #ff7e5f;
    --color-accent-dark: #e06242; /* Darker accent for hover */

    /* Text Colors */
    --color-text-light: #FFFFFF;
    --color-text-dark: #222222; /* For strong contrast on light backgrounds */
    --color-text-medium: #333333;
    --color-text-muted: #6c757d;

    /* Background Colors */
    --color-background-light: #f8f9fa;
    --color-background-medium: #e9ecef;
    --color-background-dark: #1a1a2e; /* Dark theme for footer/contrast */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-darker: rgba(0, 0, 0, 0.1);
    --glass-blur: 10px;
    --glass-border-color: rgba(255, 255, 255, 0.18);

    /* Spacing */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2.5rem;   /* 40px */
    --spacing-xl: 4rem;     /* 64px */
    --section-padding: var(--spacing-xl) 0;

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --text-shadow-light: 1px 1px 3px rgba(0,0,0,0.5);

    /* Transitions */
    --transition-speed-normal: 0.3s;
    --transition-speed-fast: 0.15s;
    --transition-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Elastic bounce */
    --transition-smooth: ease-in-out;

    /* Header Height */
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text-medium);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
    padding-top: var(--header-height); /* Account for fixed header */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    text-align: center; /* Centered titles as per requirement */
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-medium); /* Ensure body text is expressive and not too light */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed-normal) var(--transition-smooth);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm); /* Standard padding for lists */
}

ul li, ol li {
    margin-bottom: var(--spacing-xs);
}

/* Buttons - GLOBAL STYLES */
.cta-button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--color-text-light);
    background-image: var(--gradient-primary);
    padding: 0.8em 1.8em;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: transform var(--transition-speed-normal) var(--transition-elastic),
                box-shadow var(--transition-speed-normal) var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.cta-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
    background-image: var(--gradient-secondary); /* Change gradient on hover */
}

.cta-button:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"], /* Added for potential phone input */
.form-group input[type="url"],  /* Added for potential URL input */
.form-group textarea,
.form-group select { /* Added for select elements */
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed-normal) var(--transition-smooth),
                box-shadow var(--transition-speed-normal) var(--transition-smooth);
    background-color: #fff; /* Ensure inputs are not transparent by default */
    color: var(--color-text-medium);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.25); /* Focus ring similar to Bootstrap */
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.margin-top-md { margin-top: var(--spacing-md); }
.margin-bottom-md { margin-bottom: var(--spacing-md); }
.section-padding { padding: var(--section-padding); }
.section-title { margin-bottom: var(--spacing-sm); } /* Titles are above content */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}
.section-description {
    font-size: 1rem;
    color: var(--color-text-medium);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--spacing-md);
    line-height: 1.8;
}

/* Glassmorphism Effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md);
}

/* Ensuring text on images/dark backgrounds has sufficient contrast */
.dark-overlay-text h1,
.dark-overlay-text h2,
.dark-overlay-text h3,
.dark-overlay-text p,
.dark-overlay-text a {
    color: var(--color-text-light);
    text-shadow: var(--text-shadow-light);
}

/* 3. Layout & Grid
-------------------------------------------------------------------*/
.page-container {
    max-width: 1320px; /* Standard container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    width: 100%;
}

/* Basic Grid for cards/items */
.features-grid,
.statistics-grid,
.instructors-grid,
.portfolio-grid,
.awards-grid,
.insights-grid,
.values-grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .features-grid,
    .instructors-grid,
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .awards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (min-width: 992px) {
    .statistics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .portfolio-grid {
         grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }
}

/* Two Column Layout for Asymmetry */
.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center; /* Vertically align items */
}

.two-column-layout .column-text,
.two-column-layout .column-image {
    flex: 1 1 300px; /* Base size, allows wrapping */
}

@media (min-width: 768px) {
    .two-column-layout .column-text {
        flex-basis: 55%; /* Asymmetric: text takes more space */
    }
    .two-column-layout .column-image {
        flex-basis: 40%;
    }
    /* Alternate asymmetry */
    .two-column-layout.image-larger .column-text {
        flex-basis: 40%;
    }
    .two-column-layout.image-larger .column-image {
        flex-basis: 55%;
    }
}


/* 4. Header & Navigation
-------------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8); /* Light glassmorphism for header */
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-header .logo a {
    font-family: var(--font-primary);
    font-size: 1.8em;
    color: var(--color-text-dark); /* Dark logo text for light header */
    text-decoration: none;
    font-weight: 700;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: var(--spacing-md);
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-text-medium); /* Dark nav links for light header */
    font-weight: 600;
    padding: 0.5em 0;
    position: relative;
    transition: color var(--transition-speed-normal) var(--transition-smooth);
}

.main-navigation a:hover,
.main-navigation a.active { /* For active page link */
    color: var(--color-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    transition: width var(--transition-speed-normal) var(--transition-elastic);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.burger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above nav */
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: all var(--transition-speed-normal) var(--transition-smooth);
}


/* 5. Footer
-------------------------------------------------------------------*/
.site-footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    text-align: center;
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 1140px;
    margin: 0 auto var(--spacing-lg);
    padding: 0 var(--spacing-md);
    text-align: left;
}

@media (min-width: 768px) {
    .site-footer .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: left;
    }
}

.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    text-align: left; /* Override global h4 center for footer */
}

.footer-column p {
    color: var(--color-text-muted); /* Lighter shade of text for footer */
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-speed-normal) var(--transition-smooth);
}

.footer-column ul a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-column .social-links-text li a {
    padding: 0.3em 0; /* Smaller padding for social links */
    display: inline-block; /* Allows padding to take effect */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* 6. Hero Section
-------------------------------------------------------------------*/
.hero-section {
    min-height: calc(90vh - var(--header-height)); /* Adjusted height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* For pseudo-element overlay if needed */
}

.hero-section .hero-content {
    max-width: 800px;
    position: relative; /* To ensure content is above potential overlay */
    z-index: 2;
}

.hero-section h1 {
    color: var(--color-text-light); /* IMPORTANT: White text */
    text-shadow: var(--text-shadow-light);
    font-size: 3.5rem; /* Larger for hero */
    margin-bottom: var(--spacing-md);
}

.hero-section p {
    color: var(--color-text-light); /* IMPORTANT: White text */
    text-shadow: var(--text-shadow-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.hero-section .cta-button {
    font-size: 1.1rem;
    padding: 1em 2.2em;
}

/* Page Hero (for internal pages like about, contact, etc.) */
.page-hero {
    min-height: 40vh; /* Shorter than main hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero .page-hero-content h1 {
    color: var(--color-text-light);
    text-shadow: var(--text-shadow-light);
    font-size: 2.8rem;
}
.page-hero .page-hero-content p {
    color: var(--color-text-light);
    text-shadow: var(--text-shadow-light);
    font-size: 1.1rem;
}

/* 7. Features Section
-------------------------------------------------------------------*/
.features-section .card {
    text-align: center; /* Centering card content */
}
.features-section .card h3 {
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
}
.features-section .card .switch-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
    display: inline-block;
}

/* 8. Statistics Section
-------------------------------------------------------------------*/
.statistics-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-padding);
}
.statistics-section .section-title,
.statistics-section .section-subtitle,
.statistics-section .statistic-item p,
.statistics-section .section-description {
    color: var(--color-text-dark); /* Ensure contrast if background is lightish glass */
}
.statistics-section.glass-effect { /* If the section itself is glass */
     background: var(--glass-bg-darker); /* Use darker glass if on light page bg */
}

.statistic-item {
    text-align: center;
    padding: var(--spacing-sm);
}

.statistic-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}
.statistic-item p {
    font-size: 1rem;
    color: var(--color-text-dark); /* Ensure visibility */
}

/* 9. History Section
-------------------------------------------------------------------*/
.history-section .history-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

@media (min-width: 992px) {
    .history-section .history-content {
        flex-direction: row;
        align-items: flex-start; /* Asymmetric alignment */
    }
    .history-section .history-timeline {
        flex: 1 1 55%; /* Timeline takes more space */
    }
    .history-section .history-image-container {
        flex: 1 1 40%;
        position: sticky; /* Example of asymmetric element behavior */
        top: calc(var(--header-height) + var(--spacing-md));
    }
}
.history-section .history-image-container img {
    box-shadow: var(--shadow-lg);
}

/* 10. Instructors Section
-------------------------------------------------------------------*/
.instructors-section .card {
    text-align: center;
}
.instructors-section .card h3 {
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
}
.instructors-section .card span { /* Job title */
    display: block;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

/* 11. Portfolio Section
-------------------------------------------------------------------*/
.portfolio-section .card {
    cursor: pointer; /* Indicate clickable for modal */
    transition: transform var(--transition-speed-normal) var(--transition-elastic),
                box-shadow var(--transition-speed-normal) var(--transition-smooth);
}
.portfolio-section .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.portfolio-section .card h3 {
    color: var(--color-secondary);
}

/* 12. Awards Section
-------------------------------------------------------------------*/
.awards-section .award-item {
    text-align: center;
}
.awards-section .award-item img {
    max-height: 100px; /* Control logo size */
    width: auto;
    margin: 0 auto var(--spacing-sm);
}
.awards-section .award-item h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* 13. Insights Section
-------------------------------------------------------------------*/
.insights-section .card {
    text-align: left; /* Insights typically have more text */
    display: flex;
    flex-direction: column;
}
.insights-section .card .card-content {
    flex-grow: 1; /* Make content area fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push link to bottom */
}

.insights-section .card h3 {
    text-align: left;
    color: var(--color-secondary);
}

.read-more-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding: 0.6em 1.2em;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-speed-normal) var(--transition-elastic), transform var(--transition-speed-normal) var(--transition-elastic);
    align-self: flex-start; /* Align to left */
}
.read-more-link:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    text-decoration: none; /* Keep no underline */
    color: var(--color-text-light);
}

/* 14. External Resources Section
-------------------------------------------------------------------*/
.external-resources-section .resources-list {
    display: grid;
    gap: var(--spacing-md);
}
.resource-item {
    padding: var(--spacing-md);
}
.resource-item h4 a {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 1.2rem;
}
.resource-item h4 a:hover {
    color: var(--color-secondary);
}
.resource-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* 15. Contact CTA Section
-------------------------------------------------------------------*/
.contact-cta-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}
.contact-cta-section.glass-effect {
    background-color: var(--glass-bg-darker); /* Example if on light page bg */
}
.contact-cta-section h2,
.contact-cta-section p {
    color: var(--color-text-light); /* Ensure text is white on background image */
    text-shadow: var(--text-shadow-light);
}
.contact-cta-section .cta-button {
    margin-top: var(--spacing-md);
}

/* 16. Page Specific Styles
-------------------------------------------------------------------*/
/* About Page */
.about-page-content .content-section { /* Generic wrapper for about page sections */
    padding: var(--section-padding);
}
.about-page-content .two-column-layout img {
    box-shadow: var(--shadow-lg);
}
.values-grid .value-item {
    text-align: center;
    padding: var(--spacing-sm);
}
.value-item .value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    fill: var(--color-primary); /* For SVG icons */
}
.value-item h4 {
    color: var(--color-primary);
}
.history-detailed-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}
.team-preview-section { text-align: center; }
.team-preview-section .team-highlight img {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Contact Page */
.contact-form-section .contact-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}
.contact-form-container {
    flex: 2 1 400px; /* Form takes more space */
}
.contact-info-container {
    flex: 1 1 300px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start; /* Align icon and text nicely */
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
}
.contact-info-item .contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    /* fill: var(--color-primary); For SVG */
}
.contact-info-item h3 {
    text-align: left;
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
    color: var(--color-primary);
}
.contact-info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-text-medium);
}

.map-section .map-container img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 400px; /* Fixed height for map placeholder */
    object-fit: cover;
}

/* Privacy & Terms Pages */
.privacy-page-content,
.terms-page-content {
    padding-top: var(--header-height); /* Ensure content below fixed header - already in body, but explicit for these pages */
}
.privacy-page-content .content-section,
.terms-page-content .content-section {
    padding-bottom: var(--spacing-xl); /* Extra padding at bottom */
}

.text-content-container { /* For privacy/terms text blocks */
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg); /* Add padding if it's a glass effect container */
}
.text-content-container h3 {
    text-align: left;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}
.text-content-container ul {
    list-style-type: disc;
    padding-left: var(--spacing-md);
}
.text-content-container ul li {
    margin-bottom: var(--spacing-xs);
}


/* Success Page */
.success-message-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height, 200px)); /* Adjust footer height estimate */
    text-align: center;
}
.success-message-section .success-content {
    max-width: 600px;
    padding: var(--spacing-xl);
}
.success-message-section h1 {
    color: var(--color-primary);
}


/* 17. Components
-------------------------------------------------------------------*/
/* Cards (General) */
.card {
    background-color: var(--color-background-light); /* Fallback if not glass */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Ensures image corners are rounded if image is first child */
    display: flex;
    flex-direction: column;
    /* align-items: center; Removed from global card to allow varied alignments, apply per section if needed */
    height: 100%; /* Make cards in a grid equal height */
    transition: transform var(--transition-speed-normal) var(--transition-elastic), box-shadow var(--transition-speed-normal) var(--transition-smooth);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card.glass-effect {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-color);
}

.card .card-image {
    width: 100%;
    overflow: hidden; /* For object-fit */
    text-align: center; /* Center image if it's smaller than container */
}

.card .card-image img {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    object-fit: cover; /* Ensures image covers the area, crops if necessary */
    border-radius: 0; /* Remove individual radius if card has overflow:hidden */
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* STROGO: Ensure centering */
}
/* Specific centering for cards that need it, if text-align:center is too broad */
.card.text-center-content,
.card .content-center {
    align-items: center;
    text-align: center;
}
.card.text-center-content h3,
.card .content-center h3 {
    text-align: center;
}


.card .card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to fill space if card is flex column */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes actions (like read more) to bottom */
}
.card .card-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}
.card .card-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    flex-grow: 1;
}

/* Modal (General) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for modal */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn var(--transition-speed-normal) var(--transition-smooth);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: var(--spacing-lg);
    width: 90%;
    max-width: 800px; /* Max width for modal content */
    border-radius: var(--border-radius-lg);
    animation: slideIn var(--transition-speed-normal) var(--transition-elastic);
}
.modal-content.glass-effect { /* Ensure glass effect is applied correctly */
    background: var(--glass-bg); /* Light glass on dark overlay */
}

.modal-content .close-button {
    color: var(--color-text-light); /* Light close button on glass */
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform var(--transition-speed-fast) var(--transition-smooth);
}
.modal-content .close-button:hover {
    transform: scale(1.2);
    color: var(--color-accent);
}
.modal-image {
    width: 100%;
    max-height: 70vh; /* Limit image height within modal */
    object-fit: contain; /* Show full image, no crop */
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}
.modal-content h3 {
    color: var(--color-text-light);
    text-shadow: var(--text-shadow-light);
}
.modal-content p {
    color: #e0e0e0; /* Slightly dimmer white for readability */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-top: var(--spacing-sm);
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s var(--transition-smooth);
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s var(--transition-smooth);
}
input:checked + .slider {
    background-color: var(--color-primary);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--color-primary);
}
input:checked + .slider:before {
    transform: translateX(22px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

/* Timeline */
.history-timeline {
    position: relative;
    padding-left: var(--spacing-lg); /* Space for the timeline line */
}

.history-timeline::before { /* The vertical line */
    content: '';
    position: absolute;
    left: calc(var(--spacing-xs) / 2); /* Adjust to center with icon */
    top: 0;
    bottom: 0;
    width: 3px;
    background-image: var(--gradient-primary);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-lg); /* Space for icon */
}

.timeline-icon {
    position: absolute;
    left: -10px; /* Position over the line, adjust with line's left */
    top: 0;
    width: 24px;
    height: 24px;
    background-color: var(--color-accent);
    border: 3px solid var(--color-background-light);
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-content {
    position: relative; /* For potential asymmetric styling */
    padding: var(--spacing-md);
}
.timeline-content h3 {
    text-align: left;
    color: var(--color-primary);
    margin-top: 0;
}


/* 18. Animations & Transitions
-------------------------------------------------------------------*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Elastic animation for statistic numbers (JS will trigger this) */
.statistic-number.animate {
    animation: countUp var(--transition-speed-normal) var(--transition-elastic) forwards;
}
@keyframes countUp {
    from { transform: scale(0.8); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}


/* 19. Responsive Design (Media Queries)
-------------------------------------------------------------------*/
@media (max-width: 991px) {
    .site-header .main-navigation {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98); /* Solid for mobile nav */
        box-shadow: var(--shadow-md);
        padding: var(--spacing-sm) 0;
        flex-direction: column;
        align-items: center;
    }
    .site-header .main-navigation.active { /* Class added by JS */
        display: flex;
        animation: fadeIn 0.3s var(--transition-smooth);
    }
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .main-navigation li {
        margin: var(--spacing-xs) 0;
        width: 100%;
    }
    .main-navigation a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        color: var(--color-text-dark);
    }
    .main-navigation a::after { display: none; } /* No underline effect on mobile for cleaner look */

    .burger-menu {
        display: block; /* Show burger on mobile */
    }
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section h1 { font-size: 2.5rem; }
    .hero-section p { font-size: 1.1rem; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }

    .history-section .history-content { flex-direction: column; }
    .history-section .history-image-container { position: static; } /* Unstick image */

    .contact-form-section .contact-content-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .hero-section { min-height: 70vh; }
    .page-hero { min-height: 30vh; }

    .statistics-grid { grid-template-columns: 1fr; } /* Stack stats items */
    .features-grid,
    .instructors-grid,
    .portfolio-grid,
    .insights-grid,
    .awards-grid,
    .values-grid {
        grid-template-columns: 1fr; /* Single column for cards */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h4, .footer-column p, .footer-column ul {
        text-align: center;
    }
     .footer-column .social-links-text li {
        display: inline-block; /* Social links side-by-side if space */
        margin: 0 var(--spacing-xs);
    }

    .two-column-layout,
    .two-column-layout.image-larger {
        flex-direction: column;
    }
    .two-column-layout .column-text,
    .two-column-layout .column-image,
    .two-column-layout.image-larger .column-text,
    .two-column-layout.image-larger .column-image {
        flex-basis: 100%; /* Full width on small screens */
    }
}

@media (max-width: 575px) {
    html { font-size: 15px; } /* Slightly smaller base font */
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .page-container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    .cta-button, button, input[type="submit"], input[type="button"] {
        padding: 0.7em 1.5em;
        font-size: 0.9rem;
    }
}

/* Cookie Popup Basic Styles (as per HTML structure) */
#cookiePopup {
    box-sizing: border-box; /* ensure padding doesn't expand width */
}
#cookiePopup p {
    color: white; /* Ensuring text visibility */
    text-shadow: none; /* Remove any inherited shadow that might blur it */
    margin-bottom: 10px;
}
#cookiePopup button {
    background: var(--color-primary); /* Use a theme color */
    border-radius: var(--border-radius-sm);
    /* Other button styles will be inherited from global button styles */
}