:root {
    /* Color Palette - Analogous Yellow Theme */
    --color-primary: #FFC107; /* Bright Yellow */
    --color-primary-dark: #e0a800; /* Darker Yellow for hovers/shades */
    --color-primary-light: #fff3cd; /* Lighter Yellow for subtle backgrounds */

    --color-accent1: #FF8F00; /* Warm Orange */
    --color-accent1-dark: #e68100; /* Darker Orange */

    --color-background-light: #FFFDE7; /* Main light beige/cream background */
    --color-background-medium: #FFF9E6; /* Slightly darker for alternate sections */
    --color-background-card: var(--color-background-light);

    --color-text-dark: #333333;      /* Primary text on light backgrounds */
    --color-text-medium: #555555;
    --color-text-light: #FFFFFF;     /* Text on dark backgrounds/overlays */
    --color-text-headings: #222222;  /* Stronger headings */
    --color-text-accent: var(--color-accent1);

    --color-border-light: rgba(0, 0, 0, 0.1);
    --color-border-medium: rgba(0, 0, 0, 0.15);

    /* Neomorphism Shadows (based on --color-background-light) */
    --shadow-base-dark-rgb: 210, 200, 180; /* For --color-background-light */
    --shadow-base-light-rgb: 255, 255, 255;

    --shadow-convex: 9px 9px 18px rgba(var(--shadow-base-dark-rgb), 0.5),
                     -9px -9px 18px rgba(var(--shadow-base-light-rgb), 0.9);
    --shadow-convex-hover: 12px 12px 24px rgba(var(--shadow-base-dark-rgb), 0.6),
                           -12px -12px 24px rgba(var(--shadow-base-light-rgb), 1);
    --shadow-concave: inset 5px 5px 10px rgba(var(--shadow-base-dark-rgb), 0.5),
                      inset -5px -5px 10px rgba(var(--shadow-base-light-rgb), 0.9);
    --shadow-concave-focus: inset 7px 7px 14px rgba(var(--shadow-base-dark-rgb), 0.6),
                            inset -7px -7px 14px rgba(var(--shadow-base-light-rgb), 1);

    /* Button specific shadows using primary color for more pop */
    --shadow-button-dark-rgb: 217, 164, 6; /* Darker primary */
    --shadow-button-light-rgb: 255, 255, 77; /* Lighter primary (exaggerated for effect) */
    --shadow-button: 6px 6px 12px rgba(var(--shadow-button-dark-rgb), 0.8),
                     -6px -6px 12px rgba(var(--shadow-button-light-rgb), 0.8);
    --shadow-button-hover: inset 3px 3px 6px rgba(184, 134, 11, 0.7), /* Darker primary inset */
                           inset -3px -3px 6px rgba(255, 215, 0, 0.7); /* Lighter primary inset */


    /* Typography */
    --font-family-headings: 'Montserrat', sans-serif;
    --font-family-body: 'Merriweather', serif;

    /* Spacing & Sizing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem;  /* 8px */
    --spacing-md: 1rem;    /* 16px */
    --spacing-lg: 1.5rem;  /* 24px */
    --spacing-xl: 2rem;    /* 32px */
    --spacing-xxl: 3rem;   /* 48px */

    /* Borders & Transitions */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
    --transition-timing-function: ease-in-out;

    /* Header Height (for content offset) */
    --header-height: 70px; /* Adjust if navbar height changes */
}

/* Global Styles & Bootstrap Overrides */
body {
    font-family: var(--font-family-body);
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-headings);
    font-weight: 700;
    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-md);
    color: var(--color-text-medium);
}

a {
    color: var(--color-accent1);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-timing-function);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove bottom space */
}

/* Section Styling */
section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    position: relative; /* For pseudo-elements or absolute positioning */
}

.section-title {
    text-align: center;
    color: var(--color-text-headings);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text-medium);
}

/* Buttons - GLOBAL STYLES */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: bold;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed-normal) var(--transition-timing-function);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none; /* Prevent text selection */
}

.btn-primary-yellow,
button[type="submit"] { /* Apply to common submit buttons */
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-button);
}

.btn-primary-yellow:hover, .btn-primary-yellow:focus,
button[type="submit"]:hover, button[type="submit"]:focus {
    background-color: var(--color-primary-dark);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-button-hover);
    transform: translateY(1px); /* Subtle press effect */
}
.btn-primary-yellow:active,
button[type="submit"]:active {
    box-shadow: inset 4px 4px 8px rgba(184, 134, 11, 0.8),
                inset -4px -4px 8px rgba(255, 215, 0, 0.8);
    transform: translateY(2px);
}


.btn-outline-warning { /* Bootstrap's outline button, enhanced */
    color: var(--color-accent1);
    border-color: var(--color-primary);
    border-width: 2px;
    background-color: transparent;
    box-shadow: none; /* No neomorphic shadow for outline */
}

.btn-outline-warning:hover, .btn-outline-warning:focus {
    background-color: var(--color-primary-light);
    color: var(--color-text-dark);
    border-color: var(--color-primary-dark);
    box-shadow: none;
}

/* Forms - GLOBAL STYLES */
.form-control-neo {
    font-family: var(--font-family-body);
    background-color: var(--color-background-light);
    border: none;
    box-shadow: var(--shadow-concave);
    border-radius: var(--border-radius-sm);
    padding: 0.9rem 1.2rem;
    color: var(--color-text-dark);
    transition: box-shadow var(--transition-speed-normal) var(--transition-timing-function);
    width: 100%; /* Ensure it takes full width of its container */
}

.form-control-neo::placeholder {
    color: var(--color-text-medium);
    opacity: 0.7;
}

.form-control-neo:focus {
    background-color: var(--color-background-light);
    box-shadow: var(--shadow-concave-focus),
                0 0 0 0.2rem rgba(var(--color-primary), 0.3); /* Focus ring */
    outline: none;
}

.form-label {
    font-family: var(--font-family-headings);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-headings);
}


/* Header & Navigation (Fixed Navbar) */
.navbar-custom {
    background-color: rgba(255, 250, 237, 0.85); /* Semi-transparent glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    transition: background-color var(--transition-speed-normal) var(--transition-timing-function);
    height: var(--header-height); /* Set fixed height */
}

.navbar-custom .navbar-brand {
    font-weight: bold;
    color: var(--color-accent1) !important;
    font-size: 1.75rem;
}

.navbar-custom .nav-link {
    color: var(--color-text-medium) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed-fast) var(--transition-timing-function), 
                background-color var(--transition-speed-fast) var(--transition-timing-function);
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
    color: var(--color-primary) !important;
    background-color: rgba(var(--color-primary), 0.1);
}

.navbar-toggler {
    border-color: rgba(var(--color-primary), 0.5);
}
.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(255, 165, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
#hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative; /* For overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light); /* Default text color for hero */
    min-height: 85vh; /* Ensure it's substantial but not overly fixed */
}

#hero::before { /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-text-content {
    position: relative; /* To be above the overlay */
    z-index: 2;
    text-align: center;
}

.hero-text-content h1, .hero-text-content .display-3 {
    color: var(--color-text-light) !important;
    font-size: 3.2rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    margin-bottom: var(--spacing-lg);
}
.hero-text-content p.lead {
    color: var(--color-text-light) !important;
    opacity: 0.9;
    font-size: 1.25rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    margin-bottom: var(--spacing-xl);
}
@media (max-width: 768px) {
    .hero-text-content h1, .hero-text-content .display-3 { font-size: 2.4rem; }
    .hero-text-content p.lead { font-size: 1.1rem; }
}

/* Parallax Background utility */
.parallax-bg {
    background-attachment: fixed;
}
@media (max-width: 992px) { /* Disable parallax on tablets and mobile for performance/rendering issues */
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Cards (Generic Neomorphic Card) */
.card, .card-neo { /* Apply to .card for Bootstrap compatibility & .card-neo for custom */
    background: var(--color-background-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-convex);
    margin-bottom: var(--spacing-xl);
    border: none; /* Override Bootstrap border */
    transition: transform var(--transition-speed-normal) var(--transition-timing-function),
                box-shadow var(--transition-speed-normal) var(--transition-timing-function);
    display: flex;
    flex-direction: column;
    /* align-items: center;  Removed for more flexible content alignment, use text-center in card-body if needed */
    /* text-align: center;  Removed for more flexible content alignment */
}

.card:hover, .card-neo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-convex-hover);
}

.card-body {
    padding: var(--spacing-md); /* Adjust Bootstrap's card-body padding */
    flex-grow: 1; /* Ensure card body takes available space */
    text-align: center; /* Center content within card-body by default */
}

.card .card-title, .card-neo .card-title { /* Also targets Bootstrap's .card-title */
    color: var(--color-text-accent);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

.card-image, .card .image-container { /* Standardized image container in cards */
    width: 100%;
    /* height: 200px;  Example fixed height, adjust per card type or make it %-based */
    max-height: 250px; /* Control max height */
    overflow: hidden;
    border-radius: var(--border-radius-md); /* Rounded corners for image area */
    margin-bottom: var(--spacing-md);
    margin-left: auto; /* Center block element */
    margin-right: auto; /* Center block element */
}

.card-image img, .card .image-container img, .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for fixed height containers */
    border-radius: var(--border-radius-md); /* Ensure image itself is rounded if it overflows container */
}

/* Specific Card types that require content centering */
.card.text-center, /* Bootstrap utility */
.card-neo.text-center,
.item, /* Generic item class */
.testimonial, /* Testimonial card */
.team-member, /* Team member card */
.accolade-item, /* Accolade card */
.event-card, /* Event card */
.resource-card, /* Resource card */
.award-card /* Award card */
{
    align-items: center; /* Flex alignment for direct children */
    text-align: center;  /* For inline/text content */
}

/* Accordion (Bootstrap customization) */
.accordion-item {
    background-color: transparent; /* Use card-neo for background */
    border: none; /* Remove default accordion border */
    margin-bottom: var(--spacing-sm); /* Spacing between accordion items if they are separate cards */
}
.accordion-item:first-of-type, .accordion-item:last-of-type {
    border-radius: var(--border-radius-lg); /* If it's a single card */
}
.accordion-button {
    font-family: var(--font-family-headings);
    font-weight: 600;
    background-color: var(--color-primary-light);
    color: var(--color-text-headings);
    border-radius: var(--border-radius-md) !important; /* Needs !important for Bootstrap */
    box-shadow: none; /* Remove default Bootstrap shadow */
    padding: var(--spacing-md) var(--spacing-lg);
}
.accordion-button:not(.collapsed) {
    color: var(--color-accent1);
    background-color: var(--color-primary-light); /* Keep consistent or slightly change */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 .2rem rgba(var(--color-primary), 0.3);
}
.accordion-button::after { /* Custom chevron */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF8F00'%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");
}
.accordion-body {
    padding: var(--spacing-lg);
    font-size: 0.95rem;
    background-color: var(--color-background-card); /* If accordion item is not already a card */
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}


/* Carousel (Bootstrap customization) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 15px;
    width: 2.8rem;
    height: 2.8rem;
    background-size: 50%;
}
.carousel-indicators [data-bs-target] {
    background-color: var(--color-primary);
    opacity: 0.5;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border: 1px solid rgba(var(--color-text-light), 0.5);
}
.carousel-indicators .active {
    opacity: 1;
    background-color: var(--color-accent1);
}

/* Specific Section Adjustments */
#resources-section .card-image,
#awards .card-image {
    width: 120px; /* For icon-like images */
    height: 120px;
    margin-left: auto;
    margin-right: auto;
}
#awards .card-neo img { /* For award logos */
    max-width: 150px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}


#accolades #testimonialCarousel .card-neo,
#testimonialCarousel .card-neo { /* For testimonials */
    padding: var(--spacing-xl);
}
#accolades #testimonialCarousel img.rounded-circle,
#testimonialCarousel img.rounded-circle {
    width: 90px;
    height: 90px;
    border: 3px solid var(--color-primary);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-md);
}
#accolades .client-logo img {
    max-width: 150px;
    height: 60px; /* Consistent height for client logos */
    object-fit: contain; /* Ensure logo is not cropped */
    margin: 0 auto var(--spacing-md) auto;
    filter: grayscale(80%) opacity(0.7); /* Subtle display */
    transition: filter var(--transition-speed-normal);
}
#accolades .client-logo img:hover {
    filter: grayscale(0%) opacity(1);
}

/* External Resources List */
#external-resources .list-group-item.card-neo {
    padding: var(--spacing-lg);
    text-align: left; /* Override card's default center */
}
#external-resources .list-group-item h5 a {
    color: var(--color-accent1);
    font-weight: 600;
}
#external-resources .list-group-item h5 a:hover {
    color: var(--color-accent1-dark);
}
#external-resources .list-group-item p {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-xs);
}
#external-resources .list-group-item small {
    font-size: 0.8rem;
    color: var(--color-text-medium);
    opacity: 0.8;
}

/* "Read More" Link Style */
.read-more-link {
    display: inline-block;
    font-family: var(--font-family-headings);
    color: var(--color-accent1);
    font-weight: 600;
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-speed-fast);
}
.read-more-link::after {
    content: '→';
    display: inline-block;
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-speed-fast);
}
.read-more-link:hover {
    color: var(--color-accent1-dark);
    text-decoration: none;
}
.read-more-link:hover::after {
    transform: translateX(4px); /* Non-linear movement */
}


/* Footer */
.footer-custom {
    background-color: var(--color-background-medium);
    color: var(--color-text-dark);
    padding: var(--spacing-xxl) 0 var(--spacing-xl) 0;
    border-top: 4px solid var(--color-primary);
    text-align: center;
}
.footer-custom h5 {
    color: var(--color-text-headings);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}
.footer-custom p {
    color: var(--color-text-medium);
    font-size: 0.95rem;
}
.footer-custom .list-unstyled li {
    margin-bottom: var(--spacing-sm);
}
.footer-custom .list-unstyled a { /* For quick links and social media text links */
    color: var(--color-text-medium);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed-fast), background-color var(--transition-speed-fast);
    display: inline-block; /* For padding and hover effect */
}
.footer-custom .list-unstyled a:hover {
    color: var(--color-accent1);
    background-color: rgba(var(--color-primary), 0.1);
    text-decoration: none;
}
.footer-custom hr {
    border-color: var(--color-border-medium);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* Specific Page Styles */
/* Privacy & Terms pages - content offset from fixed header */
body.privacy-page main.content-section,
body.terms-page main.content-section {
    padding-top: calc(var(--header-height) + var(--spacing-xl)); /* Header height + extra space */
}
body.privacy-page .content-section h2,
body.terms-page .content-section h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-accent1);
}


/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page main.content-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-box {
    background: var(--color-background-medium);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-convex);
    max-width: 600px;
    margin: auto;
}
.success-box h1 {
    color: var(--color-accent1);
    margin-bottom: var(--spacing-lg);
}
.success-box img { /* For the success icon */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
}

/* Cookie Consent Popup (already has inline styles, but can be enhanced here) */
#cookieConsentPopup {
    /* Minimal styles are inline as requested, this is for overrides if needed */
    font-family: var(--font-family-body);
}
#cookieConsentPopup p a {
    color: var(--color-primary);
}
#cookieConsentPopup button#acceptCookieButton {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    font-family: var(--font-family-headings);
}


/* Animations & Transitions (using AOS for scroll, this is for hovers/interactions) */
/* Non-linear movement example for a class */
.animated-element-hover:hover {
    transform: translateY(-5px) rotate(-2deg) scale(1.05); /* Example non-linear */
    transition: transform var(--transition-speed-slow) cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy */
}

/* Curved Grid Elements - Visual hints (placeholder, actual SVGs are in HTML) */
.curved-divider {
    line-height: 0; /* Remove any extra space under SVG */
    overflow: hidden; /* Clip SVG if it's too large */
    position: relative;
    /* height: 80px; set in HTML for now */
}
.curved-divider svg {
    display: block; /* Remove any extra space under SVG */
    /* fill is set in HTML */
}

/* Utility Classes */
.text-primary-yellow { color: var(--color-primary) !important; }
.bg-primary-yellow { background-color: var(--color-primary) !important; }
.text-accent1 { color: var(--color-accent1) !important; }
.bg-accent1 { background-color: var(--color-accent1) !important; }

.bg-light-yellow-alt {
    background-color: var(--color-background-medium);
}

/* Responsive Typography & Spacing (general adjustments) */
@media (max-width: 991.98px) { /* Tablets */
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    section {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    .navbar-custom .nav-link {
        margin: 0.3rem 0;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 767.98px) { /* Mobile */
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .lead { font-size: 1.05rem; }
    .btn, button, input[type="submit"], input[type="button"] {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
    .card, .card-neo { padding: var(--spacing-md); }
    .form-control-neo { padding: 0.8rem 1rem; }
    section {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    body.privacy-page main.content-section,
    body.terms-page main.content-section {
        padding-top: calc(var(--header-height) + var(--spacing-md));
    }
}

.navbar-collapse.show{
    background: #fff;
}