/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Color Scheme: Neutral with a touch of solar */
    --bg-color: #e0e5ec;
    --bg-color-light-section: #e9edf0; /* For alternating sections */
    --bg-color-dark-footer: #2c3038; /* Darker, sophisticated footer */

    --text-color-dark: #333740;
    --text-color-headings: #1e2025; /* Even darker for strong titles */
    --text-color-light: #f0f2f5;
    --text-color-muted: #6c757d;
    --text-color-hero: #FFFFFF;

    --primary-color: #0d6efd; /* Bootstrap primary for accents */
    --primary-color-darker: #0a58ca;
    --primary-color-lighter: #3f8cff;

    /* Neuromorphism Shadows & Highlights */
    --neu-shadow-concave-dark: #bec8d2;
    --neu-shadow-concave-light: #ffffff;
    --neu-shadow-convex-dark: rgba(163, 177, 198, 0.6);
    --neu-shadow-convex-light: rgba(255, 255, 255, 0.7);

    /* Fonts */
    --font-family-headings: 'Roboto', sans-serif;
    --font-family-base: 'Lato', sans-serif;

    /* Borders & Radii */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Neo-Brutalism elements */
    --neo-border-color: #1a1a1a;
    --neo-border-width: 2px;
    --neo-border-width-thick: 3px;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

    /* Specific element heights */
    --card-image-height: 220px; /* Default height for card images */
    --navbar-height: 70px; /* Approximate navbar height for padding calculations */
    --footer-height-approx: 250px; /* Approximate footer height for 100vh calculations */
}

/* Global Styles */
body {
    font-family: var(--font-family-base);
    background-color: var(--bg-color);
    color: var(--text-color-dark);
    padding-top: var(--navbar-height);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

h1 { font-size: 2.7rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.7rem; }

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

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

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

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

.section-bg-light {
    background-color: var(--bg-color-light-section);
}

.section-title {
    font-weight: 900;
    color: var(--text-color-headings);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: var(--neo-border-width-thick);
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

/* Header / Navbar */
.neu-element-header.navbar {
    background: var(--bg-color);
    box-shadow: 0px 5px 15px var(--neu-shadow-convex-dark);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    min-height: var(--navbar-height);
}

.navbar-brand {
    font-family: var(--font-family-headings);
    font-weight: 900;
    font-size: 1.7rem;
    color: var(--text-color-headings) !important;
}

.nav-link {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-dark) !important;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-speed) var(--transition-timing), color var(--transition-speed) var(--transition-timing);
}

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

.navbar-toggler {
    border: var(--neo-border-width) solid var(--neo-border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
}

.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.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-color);
        margin-top: 10px;
        padding: 15px;
        border-radius: var(--border-radius-md);
        box-shadow: 5px 5px 10px var(--neu-shadow-convex-dark), -5px -5px 10px var(--neu-shadow-convex-light);
    }
    .nav-link {
        margin-bottom: 0.5rem;
    }
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    padding: 5rem 1rem; /* Adjusted padding */
    min-height: calc(85vh - var(--navbar-height)); /* Ensure substantial height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1, .hero-section p.lead {
    color: var(--text-color-hero) !important; /* Ensure white text */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 900;
}
.hero-section .lead {
    font-size: 1.4rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    padding: 0.7rem 1.7rem; /* Slightly adjusted padding */
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem; /* Slightly adjusted font size */
    display: inline-block; /* Ensure proper sizing */
}

/* Applying Neuromorphic style to .neu-button and Bootstrap's .btn-primary */
.neu-button, .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-hero) !important; /* Important for Bootstrap override */
    box-shadow: 6px 6px 12px var(--neu-shadow-convex-dark), -6px -6px 12px var(--neu-shadow-convex-light);
}

.neu-button:hover, .btn-primary:hover {
    background-color: var(--primary-color-darker);
    color: var(--text-color-hero) !important;
    box-shadow: 4px 4px 8px var(--neu-shadow-convex-dark), -4px -4px 8px var(--neu-shadow-convex-light);
    transform: translateY(-2px);
}

.neu-button:active, .btn-primary:active {
    background-color: var(--primary-color-darker);
    color: var(--text-color-hero) !important;
    box-shadow: inset 3px 3px 6px var(--neu-shadow-concave-dark), inset -3px -3px 6px var(--neu-shadow-concave-light);
    transform: translateY(1px);
}

/* Input Fields */
.neu-input, .form-control {
    background: var(--bg-color);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0.8rem 1rem;
    box-shadow: inset 4px 4px 8px var(--neu-shadow-concave-dark), inset -4px -4px 8px var(--neu-shadow-concave-light);
    color: var(--text-color-dark);
    width: 100%;
    transition: box-shadow var(--transition-speed) var(--transition-timing);
    font-size: 0.95rem;
}
.form-control:focus {
    color: var(--text-color-dark);
    background-color: var(--bg-color);
    border-color: transparent;
    outline: 0;
    box-shadow: inset 2px 2px 5px var(--neu-shadow-concave-dark), inset -2px -2px 5px var(--neu-shadow-concave-light), 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
}
textarea.form-control {
    min-height: 120px;
}

/* General Neuromorphic Element Styling */
.neu-element {
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 9px 9px 16px var(--neu-shadow-convex-dark), -9px -9px 16px var(--neu-shadow-convex-light);
    transition: box-shadow var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}
.neu-element:hover {
     transform: translateY(-3px);
     box-shadow: 12px 12px 20px var(--neu-shadow-convex-dark), -12px -12px 20px var(--neu-shadow-convex-light);
}

.neu-element-inset {
    background: var(--bg-color);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    box-shadow: inset 5px 5px 10px var(--neu-shadow-concave-dark), inset -5px -5px 10px var(--neu-shadow-concave-light);
}

.neu-element-inset-deep {
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    box-shadow: inset 7px 7px 14px var(--neu-shadow-concave-dark), inset -7px -7px 14px var(--neu-shadow-concave-light);
}

/* Card Styles */
.card.neu-element {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center; /* Center text content by default */
}

.card .card-image {
    width: 100%;
    height: var(--card-image-height);
    overflow: hidden;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color-headings);
}
.card .card-text, .card .card-subtitle {
    font-size: 0.9rem;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.card .card-subtitle {
    color: var(--text-color-muted);
    font-size: 0.8rem;
}

/* Instructors Section Cards with circular images */
.card.text-center .card-image.p-3 { /* Div wrapping the circular image */
    height: auto;
    margin-bottom: 0;
    border-radius: 0;
    display: flex; /* Centering image inside this container */
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem !important; /* Ensure p-3 from HTML is not overridden to 0 */
    padding-bottom: 0.5rem !important;
}
.card.text-center .card-image.p-3 img.rounded-circle {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    box-shadow: 0px 0px 0px 3px var(--primary-color-lighter),
                4px 4px 8px var(--neu-shadow-convex-dark),
                -4px -4px 8px var(--neu-shadow-convex-light);
    margin: 0; /* Centered by flex parent */
}

/* Success Stories Cards */
@media (min-width: 768px) {
    .success-stories .card {
        flex-direction: row; /* Image and text side-by-side */
        text-align: left;
    }
    .success-stories .card .card-image {
        width: 40%; /* Adjust width as needed */
        height: auto; /* Auto height to match content */
        border-top-left-radius: var(--border-radius-lg);
        border-bottom-left-radius: var(--border-radius-lg);
        border-top-right-radius: 0;
    }
    .success-stories .card .card-image img {
        border-top-left-radius: var(--border-radius-lg);
        border-bottom-left-radius: var(--border-radius-lg);
        border-top-right-radius: 0;
    }
    .success-stories .card .card-content {
        width: 60%;
        text-align: left;
        justify-content: center;
    }
}
@media (max-width: 767.98px) {
    .success-stories .card .card-image img {
        border-bottom-left-radius: 0; /* Reset for stacked view */
    }
}


/* Our Process (Statistical Widgets) */
#process .neu-element {
    padding: 1.8rem 1.3rem;
}
.statistical-widget {
    font-family: var(--font-family-headings);
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* External Resources (List Group) */
.list-group-item.neu-element-inset {
    background-color: transparent;
    border: none;
    padding: 1.3rem;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.list-group-item.neu-element-inset:hover {
    transform: translateX(5px);
    box-shadow: inset 3px 3px 8px var(--neu-shadow-concave-dark), inset -3px -3px 8px var(--neu-shadow-concave-light), 2px 2px 5px var(--neu-shadow-convex-dark);
}
.list-group-item h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
}
.list-group-item p {
    font-size: 0.9rem;
    color: var(--text-color-dark);
}

/* FAQ (Accordion) */
.accordion.neu-element {
    padding: 1rem;
}
.accordion-item.neu-element-inset-deep {
    background: transparent;
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.accordion-header {
    margin-bottom: 0;
}
.accordion-button.neu-button-accordion {
    background-color: var(--bg-color-light-section);
    color: var(--text-color-headings);
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0;
    box-shadow: 3px 3px 6px var(--neu-shadow-concave-dark), -3px -3px 6px var(--neu-shadow-concave-light);
    padding: 1.1rem 1.3rem;
    text-align: left;
}
.accordion-button.neu-button-accordion:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--neu-shadow-concave-dark), inset -3px -3px 6px var(--neu-shadow-concave-light);
}
.accordion-button.neu-button-accordion:focus {
    z-index: 3;
    border-color: transparent;
    outline: 0;
    box-shadow: inset 3px 3px 6px var(--neu-shadow-concave-dark), inset -3px -3px 6px var(--neu-shadow-concave-light), 0 0 0 .2rem rgba(var(--primary-color),.25);
}
.accordion-button.neu-button-accordion::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%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: 1.3rem;
    background-color: var(--bg-color);
    color: var(--text-color-dark);
    font-size: 0.9rem;
    text-align: left;
}

/* Partners Logos */
.partner-logo {
    max-height: 45px;
    filter: grayscale(100%) opacity(0.6);
    transition: filter var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}
#partners .neu-element:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}
#partners .neu-element {
    padding: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px; /* Ensure consistent height for logo containers */
}

/* Footer */
.neu-element-footer {
    background-color: var(--bg-color-dark-footer);
    color: var(--text-color-muted);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    font-size: 0.85rem;
}
.neu-element-footer h5 {
    color: var(--text-color-light);
    font-family: var(--font-family-headings);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}
.neu-element-footer .list-unstyled li {
    margin-bottom: 0.4rem;
}
.neu-element-footer .footer-link {
    color: var(--text-color-muted);
    transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
    display: inline-block; /* For padding-left transition */
}
.neu-element-footer .footer-link:hover {
    color: var(--text-color-light);
    padding-left: 5px;
}
.neu-element-footer hr {
    border-color: rgba(255,255,255,0.1);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* Page Specific Styles */
/* Success Page */
body.success-page { /* Add class "success-page" to body of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page main.container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
body.success-page .neu-element {
    max-width: 600px;
    width: 100%;
}

/* Privacy & Terms Pages */
main#privacy-policy, main#terms-of-service {
    padding-top: 3rem !important; /* Overriding default section padding to add more space from navbar */
    padding-bottom: 3rem !important;
}
main#privacy-policy .neu-element,
main#terms-of-service .neu-element {
    padding: 2rem;
}
main#privacy-policy h3, main#terms-of-service h3,
main#privacy-policy h4, main#terms-of-service h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}
main#privacy-policy h4, main#terms-of-service h4 {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-color-dark);
}
main#privacy-policy p, main#terms-of-service p,
main#privacy-policy li, main#terms-of-service li {
    margin-bottom: 0.7rem;
    line-height: 1.8;
    font-size: 0.95rem;
    text-align: justify;
}
main#privacy-policy ul, main#terms-of-service ul {
    padding-left: 1.5rem;
}


/* Read More Link Style */
.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    padding-bottom: 2px;
    position: relative;
    font-size: 0.9rem;
}
.read-more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--primary-color-darker);
    transition: width .3s ease;
}
.read-more-link:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color-darker);
}
.read-more-link:hover {
    color: var(--primary-color-darker);
}

/* Cookie Popup Styling */
#cookiePopup {
    font-family: var(--font-family-base);
    font-size: 0.85rem;
    /* Inline styles provide base, these can refine */
}
#cookiePopup p a {
    color: var(--primary-color-lighter) !important; /* Ensure visibility on dark popup */
    text-decoration: underline !important;
}
#cookiePopup button#acceptCookie {
    background-color: var(--primary-color) !important; /* Ensure consistency */
    color: var(--text-color-hero) !important;
    font-family: var(--font-family-headings) !important;
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
    border-radius: var(--border-radius-sm) !important;
}


/* Responsive Typography & Spacing Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .hero-section h1 { font-size: 2.5rem; }
    .hero-section .lead { font-size: 1.1rem; }
    .hero-section { padding: 4rem 1rem; min-height: calc(75vh - var(--navbar-height)); }

    section { padding-top: 3rem; padding-bottom: 3rem; }
    .section-title { margin-bottom: 2rem; font-size: 1.8rem; }

    .btn, button, input[type="submit"], input[type="button"] {
        padding: 0.6rem 1.4rem;
        font-size: 0.8rem;
    }

    .neu-input, .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
     .card .card-title { font-size: 1.1rem; }
     .card .card-text, .card .card-subtitle { font-size: 0.85rem;}

    /* Ensure columns stack nicely */
    .row > * { /* Universal selector for columns for some basic stacking behavior if not handled by BS classes */
        margin-bottom: 1rem; /* Add some space when stacked */
    }
    .row > *:last-child {
        margin-bottom: 0;
    }
     /* Fix for success stories card stacking */
    .success-stories .card {
        flex-direction: column;
        text-align: center;
    }
    .success-stories .card .card-image {
        width: 100%;
        height: var(--card-image-height); /* Reset for stacked view */
        border-top-left-radius: var(--border-radius-lg);
        border-top-right-radius: var(--border-radius-lg);
        border-bottom-left-radius: 0;
    }
     .success-stories .card .card-image img{
        border-top-left-radius: var(--border-radius-lg);
        border-top-right-radius: var(--border-radius-lg);
        border-bottom-left-radius: 0;
    }
    .success-stories .card .card-content {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; }
    .neu-element-footer { text-align: center; }
    .neu-element-footer .col-md-4 { margin-bottom: 1.5rem; }
}
html,body{
    overflow-x: hidden;
}