:root {
    /* Color Scheme: Split-Complementary (Base: Blue, Accents: Orange, Yellow-Orange) */
    --primary-color: #4A72FF; /* Vibrant Blue for CTAs, active states */
    --primary-color-darker: #3A5CCC; /* Darker shade for hover/active */
    --secondary-color: #FFA726; /* Warm Orange for accents, highlights */
    --tertiary-color: #FFC94A; /* Lighter, Softer Yellow-Orange for subtle accents */

    /* Text Colors */
    --text-color-dark: #212529; /* Dark gray for body text on light backgrounds */
    --text-color-headings: #1A2B48; /* Darker blue/gray for headings */
    --text-color-light: #FFFFFF;
    --text-color-muted: #6c757d; /* Bootstrap's muted color */
    --text-color-link: var(--primary-color);
    --text-color-link-hover: var(--primary-color-darker);

    /* Backgrounds */
    --bg-light: #F8F9FA; /* Very light gray / off-white */
    --bg-dark: #20232A;  /* Dark, slightly desaturated blue/gray */
    --bg-section-light-texture: #F1F3F5; /* Default for textured light backgrounds */
    --bg-footer-texture: #1A1C20; /* Default for textured dark backgrounds */

    /* Fonts */
    --font-family-headings: 'Raleway', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    /* UI Elements */
    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem;  /* 8px */
    --border-radius-lg: 0.75rem; /* 12px */
    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --input-border-color: #CED4DA;
    --input-focus-border-color: var(--primary-color);
    --input-focus-box-shadow: 0 0 0 0.2rem rgba(74, 114, 255, 0.25);
}

/* Global Styles */
body {
    font-family: var(--font-family-body);
    color: var(--text-color-dark);
    background-color: var(--text-color-light); /* Default white background */
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.section-title {
    margin-bottom: 3rem !important; /* Bootstrap class override */
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-headings);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

a {
    color: var(--text-color-link);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

/* General section styling */
section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Background Textures (HTML provides specific image paths) */
.bg-light-texture {
    background-color: var(--bg-section-light-texture); /* Fallback */
    /* background-image will be set inline or via data-prompt in HTML */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.footer-texture {
    background-color: var(--bg-footer-texture); /* Fallback */
    /* background-image will be set inline or via data-prompt in HTML */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Header / Navbar */
.navbar {
    box-shadow: var(--box-shadow-light);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color var(--transition-speed) ease;
}

.navbar-brand {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-family: var(--font-family-body);
    font-weight: 600;
    color: var(--text-color-dark) !important;
    transition: color var(--transition-speed) ease;
    padding: 0.5rem 1rem;
}

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

.navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Hero Section */
.hero-section {
    min-height: 75vh; /* Sufficient height for impact */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    color: var(--text-color-light); /* Ensured white text */
    font-size: 3rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.hero-section p.lead {
    color: var(--text-color-light); /* Ensured white text */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease-in-out;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    box-shadow: var(--box-shadow-light);
}

.btn:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25); /* Bootstrap like focus */
}

.btn-primary,
input[type="submit"].btn-primary { /* For forms */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn-primary:hover,
input[type="submit"].btn-primary:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

/* Specific CTA Buttons */
.hero-cta-button {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

.contact-cta-button {
     font-size: 1rem;
    padding: 0.8rem 2rem;
}


/* Card Styles (General) */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    background-color: var(--text-color-light);
    overflow: hidden; /* To ensure border-radius applies to images */
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card .card-image { /* Container for image */
    width: 100%;
    height: 200px; /* Fixed height for consistent card image sizes */
    overflow: hidden;
    display: flex; /* For centering if image is smaller (though object-fit handles it) */
    justify-content: center;
    align-items: center;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform var(--transition-speed) ease;
}

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

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer elements like buttons to stick to bottom */
    text-align: left; /* Default text align */
}

.card-title {
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    color: var(--text-color-headings);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    flex-grow: 1; /* Pushes button down if card-body is flex container */
}

.card-button { /* Used for buttons within cards */
    align-self: flex-start; /* Aligns button to the left if card-body is flex */
    margin-top: auto; /* Pushes button to bottom */
}


/* Mission Section & Timeline */
#mission img {
    border-radius: var(--border-radius-lg);
}

.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 60px; /* Space for icon and line */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-family-headings);
    box-shadow: 0 0 0 4px var(--text-color-light), inset 0 2px 0 rgba(0,0,0,.08), 0 3px 0 4px rgba(0,0,0,.05);
    z-index: 1;
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    position: relative;
}
.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        left: 5px; /* Adjust to align with line */
    }
}


/* Workshops Section (Course Cards) */
.course-card .card-title {
    min-height: 3em; /* Ensure titles have enough space to align cards */
}

/* Stats Section */
.stat-widget {
    background-color: var(--text-color-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-family-headings);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color-muted);
    font-weight: 600;
}

/* Testimonials Section */
.testimonial-card {
    max-width: 700px; /* Control width of single testimonial */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    text-align: center; /* Center content in testimonial card */
    background: rgba(255, 255, 255, 0.8); /* Subtle glassmorphism */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-image-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem; /* Space below image */
    border: 3px solid var(--primary-color);
}

.testimonial-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .card-text {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}
.testimonial-card .card-title {
    font-size: 1.1rem;
    color: var(--primary-color);
}
.testimonial-card .card-subtitle {
    font-size: 0.9rem;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color); /* Darker icon for visibility */
    border-radius: 50%;
    padding: 10px; /* Make hit area larger */
    background-size: 60% 60%;
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}


/* External Resources Section */
.resource-card {
    background-color: var(--text-color-light);
    transition: all var(--transition-speed) ease;
}
.resource-card .card-title a {
    color: var(--primary-color);
    font-weight: 600;
}
.resource-card .card-title a:hover {
    color: var(--primary-color-darker);
}
.resource-card p {
    font-size: 0.9rem;
}

/* FAQ Section */
.accordion-button {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--text-color-headings);
    background-color: var(--text-color-light);
    border: none;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #eef2ff; /* Lighter primary */
}
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-button::after { /* Custom accordion icon */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234A72FF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform var(--transition-speed) ease;
}
.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}
.accordion-body {
    background-color: #fdfdff;
    padding: 1.5rem;
    font-size: 0.95rem;
}
.accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.accordion-item:first-of-type {
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}
.accordion-item:last-of-type {
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}


/* Press Section */
.press-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.press-logo {
    max-width: 150px;
    max-height: 60px; /* Control height */
    object-fit: contain;
    filter: grayscale(80%);
    transition: filter var(--transition-speed) ease;
    opacity: 0.8;
}
.press-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.press-logo-container p {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-top: 0.5rem;
}

/* Contact Forms (General for contacts.html and any other forms) */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color-headings);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border-color);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    font-family: var(--font-family-body);
    font-size: 1rem;
    background-color: #fff; /* Ensure background is white for readability */
}

.form-control:focus {
    border-color: var(--input-focus-border-color);
    box-shadow: var(--input-focus-box-shadow);
    outline: 0;
}

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

/* Specific to contact page elements */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.contact-info-item i { /* If using icons */
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 30px; /* Fixed width for alignment */
    text-align: center;
}
.contact-details-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
}

/* Footer */
footer {
    color: var(--text-color-light); /* Default text in footer is light */
    padding-top: 3rem;
    padding-bottom: 1rem;
}
footer h5 {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
footer p.small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
    display: inline-block; /* For padding-left transition */
    padding: 0.25rem 0;
}
.footer-link:hover {
    color: var(--text-color-light);
    text-decoration: none;
    padding-left: 5px;
}
footer ul {
    padding-left: 0;
}
footer hr.footer-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
footer .list-unstyled li {
    margin-bottom: 0.3rem;
}

/* Social Media Text Links in Footer */
footer .list-unstyled a[target="_blank"] { /* Specific to social links */
    font-weight: 500; /* Make them slightly bolder */
}


/* Privacy & Terms Pages */
.privacy-page-content,
.terms-page-content {
    padding-top: 100px; /* To avoid overlap with fixed header */
    padding-bottom: 3rem;
}

.privacy-page-content h1,
.terms-page-content h1 {
    margin-bottom: 2rem;
}

.privacy-page-content h2, .privacy-page-content h3,
.terms-page-content h2, .terms-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}


/* Success Page */
.success-page body, .success-page html { /* Target body if class is on body */
    height: 100%;
    margin: 0;
}
.success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light); /* Or a specific success page background */
}
.success-container h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.success-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.success-icon { /* Placeholder for a potential success icon */
    font-size: 4rem;
    color: var(--secondary-color); /* Or primary */
    margin-bottom: 1.5rem;
}


/* "Read More" link style */
a.read-more {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color var(--transition-speed) ease;
}
a.read-more::after {
    content: '→'; /* Arrow or similar */
    display: inline-block;
    margin-left: 0.3em;
    transition: transform var(--transition-speed) ease;
}
a.read-more:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}
a.read-more:hover::after {
    transform: translateX(3px);
}

/* Scroll Animations (Initial States - GSAP will handle the animation) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Cookie Consent Pop-up (from HTML, minimal styling here if needed) */
/* Basic styling already in HTML, but could be enhanced if necessary */
#cookiePopup a { /* Style links within cookie popup */
    color: var(--tertiary-color) !important; /* Make link stand out */
}

#cookiePopup a:hover {
    color: var(--text-color-light) !important;
}

/* Responsiveness adjustments */
@media (max-width: 991.98px) { /* lg breakpoint */
    .navbar-nav {
        margin-top: 1rem;
        background-color: var(--bg-light); /* Ensure dropdown has background */
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: var(--box-shadow-light);
    }
    .nav-item {
        margin-bottom: 0.5rem;
    }
    .nav-link {
        padding: 0.5rem 0.5rem; /* Adjust padding for mobile menu */
    }
}

@media (max-width: 575.98px) { /* sm breakpoint */
    .section-title {
        font-size: 1.8rem;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .btn, button, input[type="submit"], input[type="button"] {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .card-body {
        padding: 1.25rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
    .timeline-content {
        padding: 15px;
    }
    .timeline-content h4 {
        font-size: 1rem;
    }
}