/* style.css */

/* -------------------------------------------------------------------------- */
/*                                 VARIABLES                                  */
/* -------------------------------------------------------------------------- */
:root {
    --primary-color: #00695C; /* Deep Teal */
    --primary-color-dark: #004D40; /* Darker Deep Teal for hover */
    --accent-color-1: #F0E68C; /* Sandy Beige */
    --accent-color-1-dark: #DDC87E; /* Darker Sandy Beige for hover/active */
    --accent-color-2: #E2725B; /* Terracotta */
    --accent-color-2-dark: #C7563F; /* Darker Terracotta for hover */
    
    --text-dark: #2F4F4F; /* Dark Slate Gray - For main body text on light backgrounds */
    --text-headings-dark: #222222; /* Darker for section titles on light backgrounds */
    --text-light: #FFFFFF; /* For text on dark backgrounds */
    --text-muted: #6c757d;

    --background-light: #F8F8F8; /* Main light background */
    --background-medium: #f0f2f5; /* For alternating sections */
    --background-card: #FFFFFF; /* Card background */
    --background-dark: var(--text-dark); /* Footer background */

    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --navbar-height: 3.25rem; /* Default Bulma navbar height. Adjust if custom styling changes it */
    
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;

    --shadow-light: 0 2px 8px rgba(47, 79, 79, 0.08);
    --shadow-medium: 0 4px 15px rgba(47, 79, 79, 0.1);
    --shadow-strong: 0 8px 25px rgba(47, 79, 79, 0.15);

    --transition-speed: 0.3s;
    --transition-morph: transform var(--transition-speed) ease, opacity var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

/* -------------------------------------------------------------------------- */
/*                                GLOBAL STYLES                               */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light); /* Prevent FOUC for dark mode if ever implemented */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.7;
    font-size: 16px; /* Base font size */
    padding-top: var(--navbar-height); /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color); /* Default heading color */
    font-weight: 700;
}

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

section.section { /* Bulma class */
    padding: 4rem 1.5rem; /* Increased padding for more whitespace */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem; /* Increased margin */
    font-size: 2.8rem; /* Slightly larger */
    color: var(--text-headings-dark);
    font-weight: 700;
    line-height: 1.2;
}
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    section.section {
        padding: 3rem 1rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                                  COMPONENTS                                */
/* -------------------------------------------------------------------------- */

/* ----- Navbar ----- */
.navbar.is-fixed-top {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}
.navbar-brand .navbar-item.title {
    color: var(--text-light);
    font-weight: 700;
}
.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85); /* Light text on primary bg */
    transition: var(--transition-morph);
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: var(--primary-color-dark) !important;
    color: var(--text-light) !important;
}
.navbar-burger {
    color: var(--text-light);
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--primary-color); /* Ensure dropdown menu has bg */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .navbar-menu .navbar-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
     .navbar-menu .navbar-item:last-child {
        border-bottom: none;
    }
}


/* ----- Buttons ----- */
.button { /* Enhancing Bulma's button */
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-medium);
    padding: 0.8em 1.8em;
    transition: var(--transition-morph);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: var(--shadow-light);
}
.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}
.button:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--text-light);
}

.button.is-accent {
    background-color: var(--accent-color-2);
    color: var(--text-light);
}
.button.is-accent:hover {
    background-color: var(--accent-color-2-dark);
    color: var(--text-light);
}
.button.is-large {
    font-size: 1.3rem;
    padding: 1em 2.2em;
}


/* ----- Cards ----- */
.card {
    background-color: var(--background-card);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%; 
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures content respects border-radius */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}
.card .card-image { /* This is the div that wraps the img or figure */
    position: relative; /* For potential overlays if needed */
}
.card .card-image img {
    border-top-left-radius: var(--border-radius-medium); /* Match card */
    border-top-right-radius: var(--border-radius-medium); /* Match card */
    object-fit: cover;
    height: 220px; /* Standardized height for card images */
    width: 100%;
    display: block; /* Remove any extra space below img */
}
/* For card-image containers that are just .image-container (without Bulma's .card-image) */
.image-container img {
    object-fit: cover;
    height: 220px; 
    width: 100%;
    display: block;
}
.card .card-content {
    padding: 1.8rem; /* Increased padding */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}
.card .card-content .title {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1.3;
}
.card .card-content .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.card .card-content p:not(.title):not(.subtitle) {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}
/* Centered content within cards when specified */
.card .card-content.has-text-centered .title,
.card .card-content.has-text-centered .subtitle,
.card .card-content.has-text-centered p {
    text-align: center;
}

/* ----- Forms ----- */
.input, .textarea {
    border-radius: var(--border-radius-small);
    border: 1px solid #dbdbdb;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    font-size: 1rem;
    padding: 0.8em 1em;
}
.input:focus, .textarea:focus,
.input.is-focused, .textarea.is-focused {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 105, 92, 0.25); /* Primary color with opacity */
}
.label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.75em; /* More space for label */
}

/* ----- Progress Bars ----- */
progress.progress {
    border-radius: var(--border-radius-large); /* Smoother radius */
    height: 0.8rem;
}
progress.progress.is-primary::-webkit-progress-value { background-color: var(--primary-color); }
progress.progress.is-primary::-moz-progress-bar { background-color: var(--primary-color); }
progress.progress.is-primary::-ms-fill { background-color: var(--primary-color); }

progress.progress.is-accent::-webkit-progress-value { background-color: var(--accent-color-2); }
progress.progress.is-accent::-moz-progress-bar { background-color: var(--accent-color-2); }
progress.progress.is-accent::-ms-fill { background-color: var(--accent-color-2); }

/* ----- Accordions (Details/Summary) ----- */
details {
    background: var(--background-card);
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    border: 1px solid #e0e0e0;
    transition: box-shadow var(--transition-speed) ease;
}
details:hover {
    box-shadow: var(--shadow-medium);
}
details summary {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    list-style-position: inside; /* Ensure marker is nicely aligned */
}
details summary::marker { /* For Firefox */
    color: var(--primary-color);
}
details summary::-webkit-details-marker { /* For Chrome/Safari */
    color: var(--primary-color);
}
details[open] summary {
    border-bottom: 1px solid #e0e0e0;
}
details div.content { /* Bulma's .content class can be used inside */
    padding: 1.5rem;
    color: var(--text-dark);
}
details div.content p {
    margin-bottom: 0.8em;
}

/* -------------------------------------------------------------------------- */
/*                              SECTION SPECIFIC                              */
/* -------------------------------------------------------------------------- */

/* ----- Hero Section ----- */
.hero-section {
    background-size: cover;
    background-position: center center;
    position: relative; /* For ::before pseudo-element */
}
.hero-section::before { /* Dark overlay for text readability on image */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
    z-index: 1;
}
.hero-section .hero-body {
    position: relative; /* To be above ::before */
    z-index: 2;
    padding: 6rem 1.5rem; /* Adjust padding as needed */
}
.hero-section .title, 
.hero-section .subtitle {
    color: var(--text-light); /* Ensure white text for hero */
}
.hero-section .title {
    font-size: 3.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.hero-section .subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    font-weight: 400; /* Lighter subtitle */
}
@media screen and (max-width: 768px) {
    .hero-section .title { font-size: 2.5rem; }
    .hero-section .subtitle { font-size: 1.2rem; }
}

/* ----- Vision Section ----- */
#vision .content p {
    font-size: 1.1rem;
    line-height: 1.8;
}
#vision img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
}

/* ----- Instructors Section ----- */
#instructors {
    background-color: var(--background-medium);
}
#instructors .card .card-content p:not(.title):not(.subtitle):not(.mt-3) {
    font-size: 0.9rem; /* Slightly smaller text for description */
}
#instructors .card .card-content .mt-3 { /* Expertise title */
    font-size: 0.95rem;
    color: var(--text-dark);
}


/* ----- Parallax Sections (e.g., Accolades) ----- */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative; /* For ::before pseudo-element */
}
.parallax-section::before { /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 0;
}
.parallax-section .container {
    position: relative; /* To be above ::before */
    z-index: 1;
}
.parallax-section .title, 
.parallax-section p,
.parallax-section strong {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
#accolades .card { /* Testimonial cards on parallax bg */
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#accolades .card p, #accolades .card strong {
    color: var(--text-light); /* Ensure text is light on this card variant */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ----- Awards Section ----- */
#awards .image.is-96x96 img {
    border-radius: 50%; /* Circular icons */
    padding: 5px; /* Optional: if icons need a "border" like effect */
    background-color: var(--background-light); /* If icons are transparent */
    box-shadow: var(--shadow-light);
}
#awards .column h4.title {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

/* ----- Community Section ----- */
#community {
    background-color: var(--background-medium);
}
#community .content p {
    font-size: 1.05rem;
}
#community img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
}

/* ----- Gallery Section ----- */
#gallery .image.is-square img {
    border-radius: var(--border-radius-small);
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}
#gallery .image.is-square img:hover {
    transform: scale(1.05);
    opacity: 0.85;
}


/* ----- Partners Section ----- */
#partners {
    background-color: var(--background-medium);
}
#partners .image.is-128x128 img {
    /* filter: grayscale(100%); Optional: grayscale partner logos */
    transition: filter var(--transition-speed) ease, transform var(--transition-speed) ease;
    max-height: 80px; /* Control logo size */
    width: auto;
}
#partners .image.is-128x128 img:hover {
    /* filter: grayscale(0%); */
    transform: scale(1.1);
}
#partners .column p strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ----- External Resources Section ----- */
#external-resources .card .title a {
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}
#external-resources .card .title a:hover {
    color: var(--primary-color-dark);
}

/* ----- Contact Section ----- */
#contact .subtitle {
    margin-bottom: 2.5rem;
}
#contact .has-text-centered.mt-6 p a {
    color: var(--accent-color-2);
    font-weight: 600;
}
#contact .has-text-centered.mt-6 p a:hover {
    color: var(--accent-color-2-dark);
}


/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--background-dark);
    color: var(--accent-color-1); /* Light text for footer */
    padding: 4rem 1.5rem 2rem; /* More top padding */
}
.footer .title {
    color: var(--text-light); /* White titles in footer */
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
.footer p, .footer ul li {
    color: var(--accent-color-1); /* Light text for paragraphs */
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer a {
    color: var(--accent-color-1);
    font-weight: 500; /* Normal weight for footer links, or bold if preferred */
    transition: color var(--transition-speed) ease;
}
.footer a:hover {
    color: var(--text-light); /* Brighter hover for links */
}
.footer hr {
    background-color: rgba(240, 230, 140, 0.3); /* Accent color with opacity */
    height: 1px;
    border: none;
    margin: 2rem 0;
}
.footer .content.has-text-centered p {
    font-size: 0.9rem;
    color: var(--accent-color-1);
    opacity: 0.8;
}
.footer .social-links a { /* If a specific class is used for social links */
    margin: 0 0.5em;
    display: inline-block;
    font-size: 1rem; /* Adjust if needed */
}
.footer .column ul {
    list-style: none;
    margin-left: 0;
}
.footer .column ul li {
    margin-bottom: 0.5em;
}

/* -------------------------------------------------------------------------- */
/*                             PAGE SPECIFIC STYLES                           */
/* -------------------------------------------------------------------------- */

/* ----- Success Page (success.html) ----- */
body.page-success {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-light);
    /* padding-top: 0; If it has its own header or no header, otherwise keep body padding-top */
}
body.page-success .navbar {
    flex-shrink: 0; /* Prevent navbar from shrinking */
}
body.page-success main.success-main-content { /* Specific class for main on success page */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}
body.page-success .success-container {
    background-color: var(--background-card);
    padding: 2.5rem 3.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-strong);
    text-align: center;
    max-width: 600px;
    width: 90%;
}
body.page-success .success-container .success-icon {
    max-width: 80px; /* If using an image icon */
    margin-bottom: 1.5rem;
    /* For font icon:
    color: var(--primary-color);
    font-size: 4rem;
    margin-bottom: 1rem;
    */
}
body.page-success .success-container .title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}
body.page-success .success-container p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
body.page-success .footer {
    flex-shrink: 0; /* Prevent footer from shrinking */
}


/* ----- Content Pages (privacy.html, terms.html, about.html) ----- */
body.page-content main.static-page-main-content { /* Specific class for main on static content pages */
    padding-top: 3rem; /* Space below fixed navbar */
    padding-bottom: 4rem;
    background-color: var(--background-card); /* Optional: give content area a card-like feel */
    min-height: calc(100vh - var(--navbar-height) - 100px); /* 100px approx footer height */
}
body.page-content .static-page-main-content .container .content {
    max-width: 800px; /* Readable line length */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
}
@media screen and (max-width: 768px) {
    body.page-content .static-page-main-content .container .content {
        padding: 1rem;
    }
}

body.page-content .static-page-main-content .content h1,
body.page-content .static-page-main-content .content h2,
body.page-content .static-page-main-content .content h3 {
    color: var(--primary-color);
    margin-top: 2em;
    margin-bottom: 0.8em;
}
body.page-content .static-page-main-content .content h1 { font-size: 2.2rem; }
body.page-content .static-page-main-content .content h2 { font-size: 1.8rem; }
body.page-content .static-page-main-content .content h3 { font-size: 1.5rem; }

body.page-content .static-page-main-content .content p,
body.page-content .static-page-main-content .content ul,
body.page-content .static-page-main-content .content ol {
    margin-bottom: 1.2em;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-dark);
}
body.page-content .static-page-main-content .content ul,
body.page-content .static-page-main-content .content ol {
    padding-left: 1.5em;
}

/* -------------------------------------------------------------------------- */
/*                               UTILITY CLASSES                              */
/* -------------------------------------------------------------------------- */
.has-text-primary { color: var(--primary-color) !important; }
.has-text-accent-1 { color: var(--accent-color-1) !important; }
.has-text-accent-2 { color: var(--accent-color-2) !important; }
.has-text-light { color: var(--text-light) !important; }
.has-text-dark { color: var(--text-dark) !important; }

.has-bg-primary { background-color: var(--primary-color) !important; }
.has-bg-medium { background-color: var(--background-medium) !important; }

/* ----- "Read More" Link Style ----- */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color-2);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: color var(--transition-speed) ease;
}
.read-more-link::after {
    content: " \00BB"; /* Right-pointing double angle quotation mark */
    display: inline-block;
    margin-left: 0.3em;
    transition: transform var(--transition-speed) ease;
}
.read-more-link:hover, .read-more-link:focus {
    color: var(--accent-color-2-dark);
    text-decoration: none; /* Optional: underline on hover */
}
.read-more-link:hover::after {
    transform: translateX(4px);
}

/* ----- Glassmorphism Effect Utility ----- */
.glass-effect {
    background: rgba(255, 255, 255, 0.1); /* Adjust transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-medium);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/* Example Usage on a card: <div class="card glass-effect"> */

/* -------------------------------------------------------------------------- */
/*                                 AOS OVERRIDES (Optional)                   */
/* -------------------------------------------------------------------------- */
[data-aos] {
    /* You can add global defaults for AOS if needed, e.g., easing */
    /* transition-timing-function: ease-in-out; */
}

/* Ensure full width for columns that are supposed to be is-two-thirds or similar */
.column.is-two-thirds {
    /* Bulma handles this, no override needed unless specific adjustments are required */
}

/* Final check for text shadows on light text against potentially light parts of images */
.hero .title, .hero .subtitle,
.parallax-section .title, .parallax-section p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* Ensure readability */
}
/* Titles of sections on light backgrounds */
.section-title {
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle shadow for depth, if desired */
}