/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;

    --color-primary: #0B4F6C; /* Deep Teal/Blue */
    --color-primary-rgb: 11, 79, 108;
    --color-primary-dark: #083b53;
    --color-primary-shadow: #073044;


    --color-accent1: #FF6F61; /* Coral */
    --color-accent1-dark: #E05A4F;
    --color-accent1-shadow: #D9574B; /* Approx 15% darker than #FF6F61 */

    --color-accent2: #FFC107; /* Amber */
    --color-accent2-dark: #dba600;

    --color-text: #343A40; /* Bootstrap's dark gray */
    --color-text-light: #F8F9FA; /* Bootstrap's light gray / almost white */
    --color-text-muted: #6c757d; /* Bootstrap's muted text color */
    --color-text-headings: #222222; /* Darker for headings */

    --color-background-light: #F8F9FA; /* Bootstrap's bg-light */
    --color-background-section-alt: #FFFFFF; /* For alternating sections if needed */
    --color-background-dark: #0B4F6C; /* For footer or dark sections */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-border: #DEE2E6; /* Bootstrap's default border color */

    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.125);
    --shadow-volumetric: 0 4px 8px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-volumetric-hover: 0 8px 16px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.08);


    --border-radius: 0.5rem; /* 8px */
    --border-radius-lg: 0.75rem; /* 12px */
    --transition-speed: 0.3s;
    --bounce-easing: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy */
    --smooth-easing: ease-in-out;
}

/*--------------------------------------------------------------
# Global Styles & Typography
--------------------------------------------------------------*/
html {
    scroll-padding-top: 70px; /* Adjust based on actual fixed header height */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    font-size: 1rem; /* Base font size */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
h1, .h1 { font-size: 2.5rem; } /* Adjust as needed */
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }

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

a {
    color: var(--color-accent1);
    text-decoration: none;
    transition: color var(--transition-speed) var(--smooth-easing);
}
a:hover {
    color: var(--color-accent1-dark);
    text-decoration: underline;
}

.section-title {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem; /* Increased padding */
    margin-bottom: 2.5rem; /* Default mb-5 is 3rem */
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent1);
    border-radius: 2px;
}

/*--------------------------------------------------------------
# Buttons - Global Styles
--------------------------------------------------------------*/
.btn, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-secondary);
    font-weight: 500;
    padding: 0.75rem 1.75rem; /* Slightly more padding */
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) var(--bounce-easing);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block; /* Ensure proper behavior */
    line-height: 1.5; /* Consistent line height */
}

.btn:hover, button:hover, input[type='submit']:hover, input[type='button']:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}
.btn:focus, button:focus, input[type='submit']:focus, input[type='button']:focus {
    outline: none;
    box-shadow: var(--shadow-md), 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}
.btn:active, button:active, input[type='submit']:active, input[type='button']:active {
    transform: translateY(0px) scale(1);
    box-shadow: var(--shadow-sm);
}

/* Bootstrap Button Overrides/Enhancements */
.btn-primary {
    background-color: var(--color-accent1);
    border-color: var(--color-accent1);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-accent1-dark);
    border-color: var(--color-accent1-dark);
    color: var(--color-white);
}

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

.btn-outline-primary {
    color: var(--color-accent1);
    border-color: var(--color-accent1);
}
.btn-outline-primary:hover {
    background-color: var(--color-accent1);
    color: var(--color-white);
}

/* Volumetric Button Style */
.volumetric-button {
    background-color: var(--color-accent1);
    color: var(--color-white);
    border: none;
    border-bottom: 4px solid var(--color-accent1-shadow);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transform: translateY(0);
}
.volumetric-button:hover {
    background-color: var(--color-accent1); /* Keep base color or slightly lighten */
    transform: translateY(-2px);
    border-bottom-width: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.volumetric-button:active {
    transform: translateY(1px);
    border-bottom-width: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.volumetric-button-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background-color: transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.volumetric-button-outline:hover {
    background-color: rgba(var(--color-white-rgb, 255,255,255), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.volumetric-button-outline:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/*--------------------------------------------------------------
# Header / Navbar
--------------------------------------------------------------*/
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color var(--transition-speed) var(--smooth-easing), box-shadow var(--transition-speed) var(--smooth-easing);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
}
.nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 1rem !important; /* Bootstrap specificity */
    transition: color var(--transition-speed) var(--smooth-easing);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-accent1);
}
.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    min-height: 85vh; /* Substantial height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 4rem 0;
}
.hero-section h1 {
    color: var(--color-white); /* Ensured by inline style in HTML */
    font-size: 3rem; /* Larger for hero */
    font-weight: 700;
}
.hero-section p.lead {
    color: var(--color-white); /* Ensured by inline style in HTML */
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Parallax effect for backgrounds if desired and not handled by JS */
#hero, #contact[style*="background-image"] {
    /* background-attachment: fixed; */ /* Caution: can be jumpy on mobile or complex layouts */
}

/*--------------------------------------------------------------
# Cards (General Volumetric Card Style)
--------------------------------------------------------------*/
.volumetric-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-volumetric);
    transition: transform var(--transition-speed) var(--bounce-easing), box-shadow var(--transition-speed) var(--smooth-easing);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* For d-flex align-items-stretch on parent column */
}
.volumetric-card:hover {
    transform: translateY(-6px) scale(1.015); /* Subtler scale */
    box-shadow: var(--shadow-volumetric-hover);
}

.card-image {
    width: 100%;
    display: flex; /* Center image if it's smaller than container */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Clip image if needed */
    background-color: #eee; /* Placeholder background for image area */
}
.card-image img {
    width: 100%;
    height: 100%; /* For fixed height containers */
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) var(--smooth-easing);
}
.volumetric-card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on image hover */
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Key for footer alignment */
    /* text-align: center; -- Apply specifically where needed */
}
.card-title { /* General card title */
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.card-text {
    font-family: var(--font-secondary);
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes elements below (like buttons) to the bottom */
}

/* Specific card content alignments */
#our-process .card .card-body {
    text-align: center;
    align-items: center;
}
#our-process .card-icon svg {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}
#workshops .card .card-title { text-align: center; }
#workshops .card .btn { align-self: center; } /* Centers button if card-body is flex */

/* Fixed height for certain card images */
#workshops .card-image,
#webinars .card-image.h-100 { /* h-100 is used in HTML for webinar card images */
    height: 200px;
}
#webinars .card-image img {
    /* Ensure it fills the fixed height container */
    min-height: 100%; 
}


/*--------------------------------------------------------------
# Forms (Contact Section)
--------------------------------------------------------------*/
.volumetric-form {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
.volumetric-input, .form-control { /* General styling for form inputs */
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
    transition: border-color var(--transition-speed) var(--smooth-easing), box-shadow var(--transition-speed) var(--smooth-easing);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-white); /* Ensure inputs are not transparent */
}
.volumetric-input:focus, .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075), 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
    outline: none;
}
textarea.volumetric-input, textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.form-label {
    font-weight: 500;
    color: var(--color-text-headings);
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
# Custom UI Components (Toggle, Slider)
--------------------------------------------------------------*/
/* Toggle Switch */
.custom-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.form-check-input.custom-toggle {
    width: 3.25em; /* Slightly smaller */
    height: 1.625em;
    background-color: #ccc;
    border-radius: 1.625em;
    position: relative;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--smooth-easing);
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    margin-top: 0; /* Align with label */
}
.form-check-input.custom-toggle:checked {
    background-color: var(--color-accent1);
}
.form-check-input.custom-toggle::before {
    content: "";
    position: absolute;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    background-color: white;
    top: 0.1875em; /* Center calculation */
    left: 0.1875em;
    transition: transform var(--transition-speed) var(--bounce-easing);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.form-check-input.custom-toggle:checked::before {
    transform: translateX(1.625em);
}

/* Custom Slider */
.custom-slider {
    --slider-track-height: 10px;
    --slider-thumb-size: 22px;
    accent-color: var(--color-accent1); /* For modern browsers */
    cursor: pointer;
}
.custom-slider::-webkit-slider-runnable-track {
    height: var(--slider-track-height);
    background: #e0e0e0;
    border-radius: var(--slider-track-height);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.custom-slider::-moz-range-track {
    height: var(--slider-track-height);
    background: #e0e0e0;
    border-radius: var(--slider-track-height);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    background: var(--color-accent1);
    border-radius: 50%;
    margin-top: calc((var(--slider-thumb-size) - var(--slider-track-height)) / -2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.15s var(--bounce-easing);
}
.custom-slider::-moz-range-thumb {
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);
    background: var(--color-accent1);
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.15s var(--bounce-easing);
}
.custom-slider:active::-webkit-slider-thumb,
.custom-slider:focus::-webkit-slider-thumb {
    transform: scale(1.15);
}
.custom-slider:active::-moz-range-thumb,
.custom-slider:focus::-moz-range-thumb {
    transform: scale(1.15);
}

/*--------------------------------------------------------------
# Testimonials Section (Carousel)
--------------------------------------------------------------*/
#testimonialCarousel .carousel-item {
    padding: 0 2rem; /* Space for controls if they overlap */
}
.testimonial-card { /* This is the .volumetric-card in HTML */
    background-color: var(--color-white); /* Ensure background */
}
.testimonial-card .card-image img { /* For testimonial author image */
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--color-accent1);
}
.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}
.testimonial-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}
.carousel-indicators [data-bs-target] {
    background-color: var(--color-accent1);
    opacity: 0.5;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}
.carousel-indicators .active {
    opacity: 1;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(var(--color-primary-rgb), 0.7);
    border-radius: 50%;
    padding: 1.2rem; /* Make clickable area larger */
    background-size: 50% 50%;
}
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(var(--color-primary-rgb), 1);
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.resource-card a.stretched-link { /* Already styled in HTML, but good to ensure */
    color: var(--color-accent1);
    font-weight: 500;
}
.resource-card a.stretched-link:hover {
    color: var(--color-accent1-dark);
}
.resource-card .card-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
    background-color: var(--color-background-dark); /* Uses var(--color-primary) */
    color: var(--color-text-light);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}
footer h5 {
    font-family: var(--font-primary);
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
footer p {
    color: #E0E0E0; /* As per HTML */
    font-size: 0.95rem;
}
.footer-link {
    color: #BDBDBD;
    font-size: 0.95rem;
    transition: color var(--transition-speed) var(--smooth-easing), padding-left var(--transition-speed) var(--smooth-easing);
    display: inline-block; /* For padding transition */
}
.footer-link:hover {
    color: var(--color-white);
    text-decoration: none; /* Preference for no underline in footer */
    padding-left: 5px; /* Subtle hover effect */
}
footer hr {
    border-color: rgba(255,255,255,0.15);
}
footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
/* Social media links are text, styled by .footer-link */

/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/
/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px); /* Account for potential header/footer */
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background-light);
}
.success-page-container h1 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
.success-page-container p {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    max-width: 600px;
}
.success-page-container .btn {
    background-color: var(--color-accent1);
    color: var(--color-white);
    padding: 0.8rem 2rem;
}

/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: calc(70px + 2rem); /* Navbar height + extra space */
    padding-bottom: 3rem;
}
.legal-page-content .container {
    max-width: 800px; /* Constrain width for readability */
}
.legal-page-content h1,
.legal-page-content h2,
.legal-page-content h3 {
    color: var(--color-primary);
    margin-top: 2em;
    margin-bottom: 0.75em;
}
.legal-page-content h1:first-child,
.legal-page-content h2:first-child {
    margin-top: 0;
}
.legal-page-content p,
.legal-page-content li {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1rem;
}
.legal-page-content ul, .legal-page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.bg-cover {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.text-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/*--------------------------------------------------------------
# Animations (AOS is used, these are complementary)
--------------------------------------------------------------*/
/* General hover scale up for interactive elements not covered by buttons/cards */
.interactive-scale:hover {
    transform: scale(1.05);
    transition: transform var(--transition-speed) var(--bounce-easing);
}

/*--------------------------------------------------------------
# Responsive Design Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    .section-title {
        font-size: 1.8rem; /* Responsive section title */
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
        padding: 3rem 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }

    #contactForm .btn {
        width: 100%;
    }
    footer .col-lg-4, footer .col-lg-2, footer .col-lg-3 { /* Footer columns */
        text-align: center;
        margin-bottom: 1.5rem;
    }
    footer .list-unstyled {
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem; /* Slightly smaller base font for small devices */
    }
    .hero-section .btn {
        display: block;
        width: 80%;
        margin: 0.5rem auto;
    }
    .volumetric-form {
        padding: 1.5rem !important; /* Bootstrap p-4 p-md-5 */
    }
    #testimonialCarousel .carousel-item {
        padding: 0 0.5rem;
    }
}
.navbar-toggler{
    display: none;
}