/* style.css */

:root {
    /* Gradient Color Scheme */
    --gradient-start: #6a11cb; /* Vibrant Purple */
    --gradient-end: #2575fc;   /* Bright Blue */
    --gradient-main: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    --gradient-main-alt: linear-gradient(to right, #8e2de2, #4a00e0); /* Purple alternative */

    /* Accent Colors */
    --accent-color-1: #ff9800; /* Warm Orange */
    --accent-color-2: #00bcd4; /* Cyan/Teal */
    --accent-color-1-darker: #f57c00;
    --accent-color-2-darker: #0097a7;

    /* Text Colors */
    --text-color-dark: #222222; /* For light backgrounds */
    --text-color-medium: #555555;
    --text-color-light: #ffffff; /* For dark backgrounds / hero */
    --text-color-headings: #1a1a1a;
    --text-color-link: var(--gradient-end);
    --text-color-link-hover: var(--gradient-start);

    /* Background Colors */
    --background-light: #f9f9f9;
    --background-white: #ffffff;
    --background-dark: #121212; /* For dark sections if any */
    --background-section-odd: var(--background-white);
    --background-section-even: var(--background-light);
    --background-overlay: rgba(0, 0, 0, 0.5); /* For text over images */
    --background-overlay-hero: rgba(0, 0, 0, 0.45); /* Specific for hero */
    --background-gradient-subtle: linear-gradient(180deg, rgba(245,247,250,0.5) 0%, rgba(255,255,255,1) 100%);

    /* Fonts */
    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-body: 'DM Sans', sans-serif;

    /* Spacing & Sizing */
    --spacing-unit: 1rem; /* 16px */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;
    --header-height: 70px;
    --container-width: 1140px;
    --container-padding: 1.5rem;

    /* Shadows */
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 15px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 10px 20px rgba(0,0,0,0.1);
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    --button-shadow: 0 2px 5px rgba(0,0,0,0.1);

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-medium: 0.3s;
    --transition-speed-slow: 0.5s;
    --transition-timing-function: ease-in-out;
}

/* Global Styles & Resets */
html {
    scroll-behavior: smooth;
    font-size: 100%; /* Corresponds to 16px for 1rem */
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color-medium);
    line-height: 1.6;
    background-color: var(--background-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700;
    line-height: 1.3;
}

.title {
    color: var(--text-color-headings);
}
.subtitle {
    color: var(--text-color-medium);
}

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

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

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

/* Global Button Styles (Bulma Theming & Custom) */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 500;
    padding: 0.75em 1.5em;
    border-radius: var(--border-radius-medium);
    transition: all var(--transition-speed-medium) var(--transition-timing-function);
    cursor: pointer;
    box-shadow: var(--button-shadow);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0px);
    box-shadow: var(--button-shadow);
}

.button.is-primary {
    background: var(--gradient-main);
    color: var(--text-color-light);
    border-color: transparent;
}

.button.is-primary:hover {
    background: var(--gradient-main-alt);
    color: var(--text-color-light);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.button.is-link.is-outlined {
    border-color: var(--text-color-link);
    color: var(--text-color-link);
    background-color: transparent;
}
.button.is-link.is-outlined:hover {
    background-color: var(--text-color-link);
    color: var(--text-color-light);
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    font-weight: 500;
    color: var(--accent-color-1);
    text-decoration: none;
    padding: 0.25em 0;
    position: relative;
    transition: color var(--transition-speed-fast) ease;
}

.read-more-link::after {
    content: '→';
    margin-left: 0.5em;
    transition: transform var(--transition-speed-fast) ease;
    display: inline-block;
}

.read-more-link:hover {
    color: var(--accent-color-1-darker);
    text-decoration: none;
}

.read-more-link:hover::after {
    transform: translateX(4px);
}


/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    height: var(--header-height);
}

.navbar {
    height: var(--header-height);
}

.navbar-brand .navbar-item, .navbar-menu .navbar-item {
    color: var(--text-color-dark);
    font-family: var(--font-family-headings);
    font-weight: 500;
    transition: color var(--transition-speed-fast) var(--transition-timing-function);
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    height: 100%;
}
.navbar-brand .navbar-item:hover, .navbar-menu .navbar-item:hover {
    color: var(--gradient-start);
    background-color: transparent;
}
.navbar-item.is-active {
    color: var(--gradient-start);
    font-weight: 700;
}
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.navbar-burger {
    color: var(--text-color-dark);
    height: var(--header-height);
    width: var(--header-height);
}
.navbar-burger span {
    background-color: var(--text-color-dark);
    height: 2px;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-white);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
    }
    .navbar-menu .navbar-item {
        justify-content: center;
    }
}

/* Main Container & Sections */
.main-container {
    padding-top: var(--header-height); /* Offset for fixed header */
}

.section {
    padding: 4rem var(--container-padding); /* Default padding for sections */
}
.section.has-background-light {
    background-color: var(--background-section-even) !important;
}
.section:nth-child(odd) {
     background-color: var(--background-section-odd);
}
.section:nth-child(even) {
     background-color: var(--background-section-even);
}


.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-headings);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-medium);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    text-align: center;
}

/* Hero Section */
#hero.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For parallax layer */
}
.hero-body {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Ensure content is above parallax if any */
    z-index: 2;
}
#hero .hero-title, #hero .hero-subtitle {
    color: var(--text-color-light) !important; /* Strictly white text for hero */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
#hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* JS will animate transform for parallax */
}

/* Card Styles */
.card {
    background-color: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed-medium) var(--transition-timing-function), box-shadow var(--transition-speed-medium) var(--transition-timing-function);
    height: 100%; /* Make cards in a row equal height */
    display: flex;
    flex-direction: column;
    /* align-items: center; -- Per strict requirement for centering images in cards */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card .image-container, /* For wrapper div */
.card .card-image { /* For Bulma's card-image div */
    height: 250px; /* Fixed height for image containers */
    width: 100%;
    overflow: hidden;
    position: relative; /* For potential overlays on image */
}

.card .image-container img,
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, centered */
    display: block;
    transition: transform var(--transition-speed-slow) var(--transition-timing-function);
}

.card:hover .image-container img,
.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space if card height is fixed by row */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if it's the last child */
    text-align: left; /* Default text align for content */
}
/* If content itself needs to be centered:
.card .card-content {
    text-align: center;
}
.card .card-content > * {
    margin-left: auto;
    margin-right: auto;
}
*/

.card .title, .card .subtitle {
    margin-bottom: 0.75rem;
}
.card .title.is-4, .card .title.is-5 {
    color: var(--text-color-headings);
}

.course-card .price {
    font-weight: 700;
    color: var(--gradient-start);
    font-size: 1.2rem;
    margin: 1rem 0;
}
.course-card .button, .blog-card .button, .project-card .button {
    margin-top: auto; /* Pushes button to the bottom of card-content */
}

/* Blog Card Specifics */
.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Research Section */
.research-section .content p {
    font-size: 1.1rem;
    line-height: 1.7;
}
.accordion-container {
    margin-top: 2rem;
}
.accordion-item {
    background-color: var(--background-white);
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.accordion-header {
    background: var(--gradient-subtle);
    color: var(--text-color-headings);
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed-fast);
}
.accordion-header:hover {
    background-color: #e9e9e9;
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform var(--transition-speed-medium) var(--transition-timing-function);
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed-medium) var(--transition-timing-function), padding var(--transition-speed-medium) var(--transition-timing-function);
}
.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 500px; /* Adjust as needed */
}
.accordion-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section .image-container {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.gallery-section .image-container img {
     transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}
.gallery-section .image-container:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}


/* Instructors Section */
.instructor-card .card-image { /* Bulma's card-image */
    width: 150px; /* Example size, adjust as needed */
    height: 150px;
    border-radius: 50%;
    margin: 1.5rem auto 1rem; /* Center the image */
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.instructor-card .card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.instructor-card .card-content {
    text-align: center;
}

/* Resources Section */
.resource-card {
    margin-bottom: 1rem;
}
.resource-card .card-content {
    padding: 1.25rem 1.5rem;
}
.resource-card .title.is-5 a {
    color: var(--text-color-headings);
}
.resource-card .title.is-5 a:hover {
    color: var(--gradient-start);
}
.resource-card .subtitle.is-6 {
    color: var(--text-color-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Contact Section & Form */
.contact-form .label {
    color: var(--text-color-dark);
    font-weight: 500;
}
.contact-form .input, .contact-form .textarea, .contact-form .select select {
    border-radius: var(--border-radius-medium);
    border: 1px solid #dbdbdb;
    box-shadow: var(--shadow-soft);
    transition: border-color var(--transition-speed-fast), box-shadow var(--transition-speed-fast);
    padding: 0.75em 1em;
    font-size: 1rem;
}
.contact-form .input:focus, .contact-form .textarea:focus, .contact-form .select select:focus,
.contact-form .input:active, .contact-form .textarea:active, .contact-form .select select:active {
    border-color: var(--gradient-end);
    box-shadow: 0 0 0 0.125em rgba(37, 117, 252, 0.25); /* Bulma's focus shadow, themed */
}
.contact-form .select:not(.is-multiple):not(.is-loading)::after { /* Arrow for select */
    border-color: var(--gradient-end);
    right: 1.125em;
    z-index: 4;
}
.contact-form .main-cta-button {
    padding: 0.8em 2.5em;
    font-size: 1.1rem;
}


/* Footer */
.site-footer {
    background-color: #2c3e50; /* Dark Blue-Gray */
    color: #bdc3c7; /* Light Gray text */
    padding: 3rem var(--container-padding) 1.5rem;
}
.site-footer .footer-title {
    color: var(--text-color-light);
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.site-footer p, .site-footer li {
    font-size: 0.95rem;
    color: #bdc3c7;
}
.site-footer a {
    color: #ecf0f1; /* Lighter gray for links */
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease;
}
.site-footer a:hover {
    color: var(--accent-color-2);
    text-decoration: underline;
}
.site-footer hr {
    background-color: #34495e; /* Slightly darker separator */
    height: 1px;
    margin: 1.5rem 0;
}
.site-footer .social-links li {
    display: inline-block;
    margin-right: 1rem;
}
.site-footer .social-links a {
    font-weight: 500;
}
.site-footer .social-links a:hover {
    color: var(--accent-color-1);
}
.site-footer .content p {
    color: #95a5a6; /* Even lighter gray for copyright */
    font-size: 0.85rem;
}

/* Page Specific Styles */
/* Hero for sub-pages */
.page-hero, .page-hero-small {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
}
.page-hero .hero-body, .page-hero-small .hero-body {
    padding: 4rem 1.5rem; /* Adjust as needed */
}
.page-hero-small .hero-body {
    padding: 3rem 1.5rem;
}
.page-hero .title, .page-hero .subtitle,
.page-hero-small .title, .page-hero-small .subtitle {
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Privacy & Terms pages content */
.privacy-page-content .content,
.terms-page-content .content {
    padding-top: 2rem; /* Account for fixed header if not using .main-container's padding */
}
.privacy-page-content h2, .terms-page-content h2,
.privacy-page-content h3, .terms-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color-headings);
}
.privacy-page-content p, .terms-page-content p,
.privacy-page-content li, .terms-page-content li {
    color: var(--text-color-medium);
    line-height: 1.7;
}

/* Success Page */
.success-page-container {
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: var(--gradient-subtle);
}
.success-page-container .icon {
    font-size: 4rem;
    color: var(--gradient-end); /* Or a success green */
    margin-bottom: 1.5rem;
}
.success-page-container .title {
    color: var(--text-color-headings);
    margin-bottom: 0.5rem;
}
.success-page-container .subtitle {
    color: var(--text-color-medium);
    margin-bottom: 2rem;
}

/* About Page Specifics */
.page-hero .hero-body h1 {
    font-size: 2.8rem;
}
.page-hero .hero-body h2 {
    font-size: 1.4rem;
    font-weight: 400;
}

.section-title-subpage {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color-headings);
    padding-bottom: 0.5rem;
}

#mission-vision .content.is-medium {
    font-size: 1.1rem;
    color: var(--text-color-medium);
}
#mission-vision .image-container img {
    border-radius: var(--border-radius-large);
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-white);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.value-card .icon.is-large {
    margin-bottom: 1rem;
}
.value-card .icon i {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.value-card .title.is-4 {
    margin-bottom: 0.5rem;
}
.value-card p {
    font-size: 0.95rem;
    color: var(--text-color-medium);
}

.reasons-list {
    list-style: none;
    padding-left: 0;
}
.reasons-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-color-medium);
}
.reasons-list li .icon {
    margin-right: 0.75rem;
    margin-top: 0.25rem; /* Align icon better with text */
    flex-shrink: 0;
}
.reasons-list li .icon i {
     color: var(--gradient-end);
}

/* Contact Page Specifics */
.contact-info-card {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
}
.contact-info-card .icon.is-large i {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-info-card p, .contact-info-card a {
    color: var(--text-color-medium);
}
.contact-info-card a:hover {
    color: var(--gradient-start);
}
.contact-info-card small {
    font-size: 0.85rem;
    color: #777;
}

#map {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
}
.cta-contact-form {
    background-color: var(--background-section-even);
}

/* AOS Animations - ensure elements are initially hidden if needed by AOS */
[data-aos] {
    /*opacity: 0;*/
    transition-property: opacity, transform;
}
.aos-animate {
    opacity: 1;
}


/* Utility classes */
.has-text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: calc(var(--spacing-unit) * 0.5) !important; }
.mb-2 { margin-bottom: var(--spacing-unit) !important; }
.mb-3 { margin-bottom: calc(var(--spacing-unit) * 1.5) !important; }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 2) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: calc(var(--spacing-unit) * 0.5) !important; }
.mt-2 { margin-top: var(--spacing-unit) !important; }
.mt-3 { margin-top: calc(var(--spacing-unit) * 1.5) !important; }
.mt-4 { margin-top: calc(var(--spacing-unit) * 2) !important; }

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem var(--container-padding);
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    #hero .hero-title {
        font-size: 2.2rem;
    }
    #hero .hero-subtitle {
        font-size: 1.2rem;
    }
    .card .image-container, .card .card-image {
        height: 200px; /* Adjust for smaller screens if needed */
    }
    .columns.is-mobile { /* Ensure mobile columns stack as expected or adjust */
      display: flex;
      flex-wrap: wrap;
    }
    .column.is-half-tablet { /* Ensure Bulma's tablet columns work as expected */
        flex: none;
        width: 50%;
    }
     .page-hero .hero-body h1, .page-hero-small .hero-body h1 {
        font-size: 2.2rem;
    }
    .page-hero .hero-body h2, .page-hero-small .hero-body h2 {
        font-size: 1.2rem;
    }
}

/* Cookie Consent Popup Minimal Styles */
#cookieConsentPopup a:hover {
    text-decoration: underline !important; /* Ensure underline for this specific link */
}