/* CSS Variables */
:root {
    /* Bright Color Scheme */
    --primary-color: #e74c3c; /* Bright Red/Orange */
    --primary-color-darker: #c0392b; /* Darker shade for hover */
    --secondary-color: #3498db; /* Bright Blue */
    --accent-color: #f1c40f;   /* Bright Yellow */
    --success-color: #2ecc71;  /* Bright Green */
    --danger-color: #e74c3c;   /* (Same as primary for consistency or a different red) */

    /* Neutral Tones */
    --text-color-dark: #333333;
    --text-color-medium: #555555;
    --text-color-light: #ffffff;
    --heading-color: #222222;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --background-dark: #2c3e50; /* Dark Blue-Grey from HTML */
    --border-color: #dee2e6;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    /* Gradients & Overlays */
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    --glass-background: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(10px);

    /* Transitions & Animations */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
    --easing-nonlinear: cubic-bezier(0.22, 1, 0.36, 1); /* Example of non-linear */
    --easing-standard: ease-in-out;

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

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
}

/* Base Styles */
body {
    font-family: var(--font-secondary);
    color: var(--text-color-dark);
    background-color: var(--background-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color-medium);
}

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

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

/* Global Button Styles */
.btn, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem; /* Bootstrap's default is often 0.375rem 0.75rem */
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed-normal) var(--easing-nonlinear);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary, button.btn-primary, input[type='submit'].btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}
.btn-primary:hover, button.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: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-secondary, button.btn-secondary { /* For Bootstrap compatibility */
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-light);
}
.btn-secondary:hover, button.btn-secondary:hover {
    background-color: #2980b9; /* Darker blue */
    border-color: #2980b9;
    color: var(--text-color-light);
    transform: translateY(-2px);
}

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

/* "Read more" link style */
.read-more-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
}
.read-more-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform var(--transition-speed-normal) var(--easing-nonlinear);
}
.read-more-link:hover::after {
    transform: translateX(5px);
}
.read-more-link:hover {
    color: var(--primary-color-darker);
    text-decoration: none;
}


/* Utility Classes */
.section-padding {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}
.text-primary { color: var(--primary-color) !important; }
.bg-primary-light { background-color: #fdf5f4; /* Very light version of primary */}


/* Layout */
section {
    padding: 4rem 0; /* Natural height based on content with consistent padding */
}

.container { /* Bootstrap container is used, this is for potential overrides */
    max-width: 1140px; /* Standard container width */
}

/* Header / Fixed Navigation */
.header.sticky-top {
    background-color: rgba(255, 255, 255, 0.95); /* Slight transparency for glassmorphism */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.8rem; /* From HTML */
}
.navbar-brand span {
    color: var(--primary-color); /* From HTML */
}
.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-color-medium) !important;
    margin: 0 var(--spacing-xs);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed-normal) var(--easing-standard), background-color var(--transition-speed-normal) var(--easing-standard);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(231, 76, 60, 0.05); /* Light accent background on hover */
}
.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(231, 76, 60, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Hero Section */
.hero-section {
    /* min-height: 85vh; (From HTML, can be adjusted if too much space) */
    /* Using a fixed height for hero can be good, or a vh unit */
    padding: 6rem 0; /* Adjust padding if min-height is removed */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */ /* Simple parallax effect */
    position: relative; /* For overlay */
    color: var(--text-color-light); /* Default text color */
}
/* Overlay is applied inline in HTML via linear-gradient */
.hero-section h1 {
    color: var(--text-color-light) !important; /* Explicitly white */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-size: 3.5rem; /* Larger hero title */
}
.hero-section p.lead {
    color: #e0e0e0 !important; /* Explicitly light grey/white */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    font-size: 1.4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section p.lead { font-size: 1.1rem; }
}

/* Card Styles (Generic, Instructor, Media, Gallery) */
.card {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg); /* More pronounced rounding for blocky feel */
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed-normal) var(--easing-nonlinear), 
                box-shadow var(--transition-speed-normal) var(--easing-nonlinear);
    overflow: hidden; /* Ensures content respects border-radius */
    display: flex;
    flex-direction: column;
    /* align-items: center; -- This would center card-image and card-body horizontally IF they have less than 100% width.
                            For full-width children, it has no effect on horizontal alignment.
                            If content within card-body needs centering, do it there. */
}
.card:hover {
    transform: translateY(-8px) scale(1.02); /* Non-linear movement on hover */
    box-shadow: var(--card-hover-shadow);
}

.card-image { /* Container for the image */
    width: 100%;
    height: 200px; /* Fixed height for image containers */
    overflow: hidden;
    display: flex; /* To center the image if it's smaller than container (though object-fit handles it) */
    align-items: center;
    justify-content: center;
    background-color: #eee; /* Placeholder bg for images */
}
.card-image img, .card img.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, crops if necessary */
    transition: transform var(--transition-speed-slow) var(--easing-nonlinear);
}
.card:hover .card-image img, .card:hover img.card-img-top {
    transform: scale(1.1); /* Zoom effect on hover */
}

.card-body, .card-content { /* .card-content from other frameworks, .card-body from Bootstrap */
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows card body to take remaining space */
    text-align: center; /* Center text content within the card body */
}
.card-body .btn { /* Ensure buttons within cards are centered if card-body is text-align:center */
    margin-top: var(--spacing-sm);
}

.card-title {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}
.card-text {
    color: var(--text-color-medium);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

/* Specific Card Types */
.instructor-card, .media-card, .gallery-card, .value-card {
    /* Inherits .card styles, specific overrides if needed */
}
.gallery-card .gallery-caption { /* As from HTML */
    background-color: var(--background-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-style: italic;
    font-size: 0.85rem;
}


/* Research Section - Statistical Widgets */
.stat-widget {
    background-color: var(--background-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform var(--transition-speed-normal) var(--easing-nonlinear), 
                box-shadow var(--transition-speed-normal) var(--easing-nonlinear);
}
.stat-widget:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}
.stat-icon {
    font-size: 3rem;
    color: var(--primary-color); /* Color set inline in HTML too */
    margin-bottom: var(--spacing-sm);
}
.stat-number {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--background-dark); /* Using footer dark color for strong stat numbers */
    margin-bottom: var(--spacing-xs);
}
.stat-description {
    color: var(--text-color-medium);
    font-size: 0.9rem;
}

/* FAQ Section - Accordion */
.accordion-item {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md) !important; /* Override Bootstrap */
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.accordion-header {
    border-radius: var(--border-radius-md) !important; /* Ensure consistency */
}
.accordion-button {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--heading-color);
    background-color: var(--background-white);
    border-radius: var(--border-radius-md) !important;
    padding: var(--spacing-md);
    box-shadow: none !important; /* Remove Bootstrap focus shadow */
}
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #fef6f5; /* Lighter primary accent */
    border-bottom: 1px solid var(--primary-color) !important;
}
.accordion-button:focus {
    /* box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25); from HTML, can keep or remove */
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.accordion-button::after { /* Custom accordion icon */
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
    background-image: none;
    transform: translateY(-2px) rotate(0deg);
    transition: transform var(--transition-speed-normal) var(--easing-nonlinear);
}
.accordion-button:not(.collapsed)::after {
    content: '−';
    transform: translateY(-2px) rotate(0deg); /* No rotation needed for minus */
}
.accordion-body {
    padding: var(--spacing-md);
    background-color: var(--background-white);
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

/* Behind the Scenes Section */
#behind-the-scenes .image-container img {
    border-radius: var(--border-radius-lg);
}

/* External Resources Section */
.resource-link {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color); /* Accent line */
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    transition: background-color var(--transition-speed-normal) var(--easing-standard), 
                transform var(--transition-speed-normal) var(--easing-nonlinear),
                box-shadow var(--transition-speed-normal) var(--easing-standard);
}
.resource-link:hover {
    background-color: #fef9f8 !important;
    transform: translateX(8px) scale(1.01); /* Non-linear movement */
    box-shadow: var(--card-hover-shadow);
    text-decoration: none;
}
.resource-link h5 {
    color: var(--heading-color);
    font-family: var(--font-primary);
}
.resource-link small {
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Form */
.contact-form-modern {
    background-color: var(--background-white);
    padding: var(--spacing-xl) !important; /* Ensure padding from Bootstrap overrides */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}
.modern-input, .form-control { /* Global styling for form controls */
    font-family: var(--font-secondary);
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1.2rem;
    transition: border-color var(--transition-speed-normal) var(--easing-standard), 
                box-shadow var(--transition-speed-normal) var(--easing-standard);
    color: var(--text-color-dark);
}
.modern-input:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.2); /* Softer focus shadow */
    background-color: var(--background-white);
}
.form-label {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-color-dark);
    margin-bottom: var(--spacing-xs);
}

/* Footer Styles */
.footer {
    background-color: var(--background-dark);
    color: #bdc3c7; /* Light grey text for footer */
    padding: var(--spacing-xl) 0;
}
.footer h5 {
    color: var(--text-color-light);
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}
.footer p.small {
    color: #a7b3ba; /* Slightly lighter than main footer text */
}
.footer-link {
    color: #ecf0f1; /* Very light grey for footer links */
    text-decoration: none;
    transition: color var(--transition-speed-normal) var(--easing-standard), 
                padding-left var(--transition-speed-normal) var(--easing-nonlinear);
    display: inline-block; /* For padding transition */
    padding: 0.25rem 0;
}
.footer-link:hover {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 5px; /* Slight indent on hover */
}
.footer .list-unstyled li {
    margin-bottom: var(--spacing-xs);
}
.footer hr {
    border-top: 1px solid #3e576f; /* Darker separator line */
}
.footer .small { /* For copyright */
    color: #95a5a6;
}
/* Footer Social Links (Text-based) */
.footer .list-unstyled a[target="_blank"]::after { /* Optional: Add external link icon */
    /* content: ' ↗'; */
    /* font-size: 0.8em; */
}

/* Animations - Scroll-triggered (JS will add .is-visible) */
.animated-element {
    opacity: 0;
    transform: translateY(50px) scale(0.95); /* Start slightly scaled down */
    transition: opacity 0.8s var(--easing-nonlinear), 
                transform 0.8s var(--easing-nonlinear);
}
.animated-element.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Specific Page Styles */
/* Success page */
.success-page-container { /* Assuming success.html main content is wrapped in this */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg);
}
#success-message-content { /* Styles from HTML example can be enhanced here */
    max-width: 600px;
    background-color: var(--background-white);
    padding: var(--spacing-xl) !important; /* Override bootstrap p-5 if needed */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
#success-message-content .success-icon {
    font-size: 5rem; /* Larger icon */
    color: var(--success-color); /* Using success color */
    margin-bottom: var(--spacing-md);
}

/* Privacy & Terms pages - Content padding */
#privacy-policy-content, #terms-conditions-content {
    padding-top: 100px; /* To avoid overlap with fixed header */
}
.content-block { /* For text blocks on privacy/terms */
    background-color: var(--background-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--spacing-lg);
    border-left: 5px solid var(--primary-color); /* Accent line */
}
.content-block h2 { margin-bottom: var(--spacing-sm); }
.content-block h4 { margin-top: var(--spacing-md); margin-bottom: var(--spacing-xs); }
.content-block ul { padding-left: 20px; }
.content-block ul li { margin-bottom: var(--spacing-xs); }

/* Cookie Consent Popup (from HTML, basic styling here) */
#cookieConsentPopup {
    font-family: var(--font-secondary);
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
    /* Other styles are inline in HTML */
}
#cookieConsentPopup p {
    color: #f0f0f0; /* Ensure good contrast on dark background */
    margin-bottom: 0;
}
#cookieConsentPopup a {
    color: var(--accent-color) !important; /* Use accent for link in cookie bar */
}
#cookieConsentPopup button {
    text-transform: none; /* Override global button style for these */
    font-size: 0.85rem;
}


/* Responsive Adjustments */
@media (max-width: 992px) { /* Medium devices (tablets, less than 992px) */
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p.lead { font-size: 1.2rem; }
    .section-title { font-size: 1.8rem; } /* Slightly smaller section titles */
}

@media (max-width: 768px) { /* Small devices (landscape phones, less than 768px) */
    body { font-size: 0.95rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-section { padding: 4rem 0; }
    .navbar-nav {
        background-color: var(--background-white); /* Add background to collapsed menu */
        padding: var(--spacing-sm) 0;
        margin-top: var(--spacing-xs);
        border-radius: var(--border-radius-md);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .nav-link {
        padding: 0.75rem 1rem !important; /* More padding for touch */
        text-align: center;
    }
    .contact-form-modern {
        padding: var(--spacing-lg) !important;
    }
}

@media (max-width: 576px) { /* Extra small devices (portrait phones, less than 576px) */
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section p.lead { font-size: 1rem; }
    section { padding: 2.5rem 0; }
    .btn, button, input[type='submit'] {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .card-body, .card-content { padding: var(--spacing-sm); }
    .stat-widget { padding: var(--spacing-md); }
    .stat-number { font-size: 2.2rem; }
}

/* Ensure high contrast for text on various backgrounds - mainly handled by variable choices */
/* Additional accessibility considerations */
*:focus-visible { /* Modern focus indicator */
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: none; /* Remove default browser focus styles if this is preferred */
}