/* style.css */

/* --- CSS Variables --- */
:root {
    --primary-color: #00A0B0; /* Vibrant Teal */
    --secondary-color: #EDC951; /* Warm Gold/Yellow */
    --accent-color: #EB6841; /* Coral Red */
    --gradient-start: #E6F4F1; /* Light Mint */
    --gradient-mid: #D0E8E1;   /* Slightly Darker Mint */
    --gradient-end: #B9DCD0;   /* Even Darker Mint */

    --bg-color-light: #F0F4F8; /* Light Neomorphic Background */
    --bg-color-medium: #E0E5EC; /* Medium Neomorphic Background */
    --bg-color-dark: #333745;   /* Darker UI elements */
    --text-color: #363636;      /* Bulma's default text color - good contrast */
    --text-color-light: #FFFFFF;
    --text-color-muted: #7a7a7a;
    --text-color-headings: #2c3e50; /* Darker blue-gray for headings */

    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(163, 177, 198, 0.6); /* Adjusted for light bg */
    --shadow-inset-light: rgba(163, 177, 198, 0.5);
    --shadow-inset-dark: rgba(255, 255, 255, 0.9);


    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --border-radius-soft: 8px;
    --border-radius-medium: 12px;
    --border-radius-large: 20px;

    --transition-smooth: all 0.3s ease-in-out;
}

/* --- Global Styles --- */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-color-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    background-attachment: fixed;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-color-headings);
    font-weight: 700;
}

.section-title {
    color: var(--text-color-headings);
    margin-bottom: 1.5rem !important; /* Bulma override */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section .subtitle {
    color: var(--text-color-muted);
    margin-bottom: 2.5rem;
}

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

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

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

.container {
    max-width: 1140px; /* Standard container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section {
    padding: 4rem 1.5rem; /* Generous padding for sections */
}

/* --- Header & Navigation --- */
.header {
    background-color: rgba(240, 244, 248, 0.85); /* Light, slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar {
    background-color: transparent; /* Handled by header */
}

.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-color-headings);
    transition: var(--transition-smooth);
}

.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent !important; /* Bulma override */
    color: var(--primary-color) !important;
}

.navbar-dropdown {
    background-color: var(--bg-color-light);
    border-top: 2px solid var(--primary-color);
    border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px 0px 10px var(--shadow-light);
}

.navbar-dropdown .navbar-item:hover {
    background-color: var(--gradient-start) !important;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-shadow: 1px 1px 1px var(--shadow-dark);
}

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

.navbar-burger:hover {
    background-color: rgba(0,0,0,0.05);
}

/* --- Hero Section --- */
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::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.7));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    padding-top: 120px; /* Account for fixed header */
}

.hero-title {
    color: var(--text-color-light) !important; /* IMPORTANT for readability on any bg */
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-subtitle {
    color: var(--text-color-light) !important; /* IMPORTANT */
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}


/* --- Neomorphic Button Styles (Global) --- */
.button, button, input[type="submit"], input[type="button"], .neomorphic-button, .neomorphic-button-small {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.8em 1.8em;
    border: none;
    border-radius: var(--border-radius-medium);
    background-color: var(--bg-color-medium);
    color: var(--text-color-headings);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 5px 5px 10px var(--shadow-dark),
                -5px -5px 10px var(--shadow-light);
    outline: none;
    position: relative; /* For potential ::before/::after effects */
    text-decoration: none; /* Remove underline from <a> styled as button */
}
.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, .neomorphic-button:hover, .neomorphic-button-small:hover {
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    color: var(--primary-color);
    transform: translateY(1px); /* Slight press effect */
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active, .neomorphic-button:active, .neomorphic-button-small:active {
    box-shadow: inset 5px 5px 10px var(--shadow-dark),
                inset -5px -5px 10px var(--shadow-light);
    transform: translateY(2px);
}

.button.is-primary, .neomorphic-button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 5px 5px 10px #007380, /* Darker primary */
                -5px -5px 10px #00cdd4; /* Lighter primary */
}
.button.is-primary:hover, .neomorphic-button.is-primary:hover {
    background-color: #008a99; /* Slightly darker primary */
    box-shadow: inset 3px 3px 6px #006673,
                inset -3px -3px 6px #00b6bf;
    color: var(--text-color-light);
}

.button.is-success {
    background-color: #28a745; /* Green */
    color: var(--text-color-light);
     box-shadow: 5px 5px 10px #1e7e34,
                -5px -5px 10px #34d058;
}
.button.is-success:hover {
    background-color: #218838;
    box-shadow: inset 3px 3px 6px #1c7430,
                inset -3px -3px 6px #31c152;
    color: var(--text-color-light);
}

.neomorphic-button-small {
    padding: 0.6em 1.2em;
    font-size: 0.9em;
}
.neomorphic-button-cancel {
    background-color: var(--bg-color-medium);
    color: var(--text-color-muted);
}
.neomorphic-button-cancel:hover {
    color: var(--accent-color);
}

.pulse {
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Card Styles (Neomorphic) --- */
.card.neomorphic-card, .neomorphic-flat-card {
    background-color: var(--bg-color-medium);
    border-radius: var(--border-radius-large);
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
    transition: var(--transition-smooth);
    overflow: hidden; /* Important for image containers */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
}
.card.neomorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--shadow-dark),
                -12px -12px 24px var(--shadow-light);
}

.card-image.image-container { /* This is the direct child of .card for Bulma compatibility */
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
    overflow: hidden;
    position: relative;
    /* Fixed height or aspect ratio via Bulma's .image.is-XYZ */
}
.card-image.image-container .image { /* Bulma's .image wrapper */
   height: 100%; /* Fill the container */
}
.card-image.image-container img {
    width: 100%;
    height: 100%; /* Ensure image fills the figure */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card.neomorphic-card:hover .card-image.image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to expand and push footer down if card uses flex */
    display: flex;
    flex-direction: column;
}
.card-content .title.card-title {
    font-size: 1.5rem;
    color: var(--text-color-headings);
    margin-bottom: 0.75rem;
}
.card-content .subtitle.card-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.card-content .content.card-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    flex-grow: 1;
}

/* Centering images within cards, if not using Bulma's figure */
.card .image-container { /* If you have a custom image container */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Specific for portfolio/project cards where image might be main content */
.card.neomorphic-card .card-image.image-container.is-16by9,
.card.neomorphic-card .card-image.image-container.is-4by3,
.card.neomorphic-card .card-image.image-container.is-1by1 {
    /* Bulma handles aspect ratio. Ensure image covers */
}
.card.neomorphic-card .card-image.image-container.is-1by1 {
    height: 250px; /* Example fixed height for square images */
}
@media screen and (max-width: 768px) {
    .card.neomorphic-card .card-image.image-container.is-1by1 {
        height: 200px;
    }
}


/* --- Success Stories (Testimonial Card) --- */
.testimonial-card .media-left .image.is-96x96 {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}
.testimonial-card .media-left .image.is-96x96 img {
    object-fit: cover;
}
.testimonial-card .media-content .title {
    margin-bottom: 0.25rem;
}
.testimonial-card .media-content .subtitle {
    color: var(--text-color-muted);
}
.testimonial-card .content {
    font-style: italic;
    color: var(--text-color);
}

/* --- Workshops & Modals --- */
.modal-card.neomorphic-modal {
    background-color: var(--bg-color-medium);
    border-radius: var(--border-radius-large);
    box-shadow: 10px 10px 20px var(--shadow-dark),
                -10px -10px 20px var(--shadow-light);
    max-width: 700px;
}
.modal-card-head, .modal-card-foot {
    background-color: var(--bg-color-light);
    border-bottom: 1px solid var(--gradient-mid);
    border-top: 1px solid var(--gradient-mid);
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}
.modal-card-foot {
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
    justify-content: flex-end; /* Align buttons to the right */
}
.modal-card-title {
    color: var(--text-color-headings);
}
.modal-card-body {
    background-color: var(--bg-color-medium);
    color: var(--text-color);
}
.modal-card-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}
.modal-card-body li {
    margin-bottom: 0.5rem;
}


/* --- Events Calendar --- */
.event-list {
    margin-top: 2rem;
}
.neomorphic-flat-card { /* For list items, less pronounced shadow */
    background-color: var(--bg-color-light);
    border-radius: var(--border-radius-medium);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 8px var(--shadow-dark),
                -4px -4px 8px var(--shadow-light);
    transition: var(--transition-smooth);
}
.neomorphic-flat-card:hover {
    transform: translateY(-3px) scale(1.01);
     box-shadow: 6px 6px 12px var(--shadow-dark),
                -6px -6px 12px var(--shadow-light);
}
.event-item .media-left .date-badge {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-radius: var(--border-radius-soft);
    width: 64px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2), inset -2px -2px 4px rgba(255,255,255,0.7);
}
.date-badge .month {
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}
.date-badge .day {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
}
.event-item .media-content .event-title-link {
    font-family: var(--font-heading);
    color: var(--text-color-headings);
    font-size: 1.25rem;
}
.event-item .media-content .event-title-link:hover {
    color: var(--accent-color);
}
.event-item .media-content small {
    color: var(--text-color-muted);
}

/* --- Instructors Section --- */
/* Uses .neomorphic-card, specific content styling */
.instructors-section .card-content.has-text-centered .card-title {
    margin-top: 0.5rem;
}
.instructors-section .card-content.has-text-centered .card-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* --- Partners Section --- */
.partner-logo-container {
    padding: 1rem;
    background-color: var(--bg-color-light);
    border-radius: var(--border-radius-medium);
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px; /* Match image size if needed */
    margin-bottom: 0.5rem; /* Space before name */
}
.partner-logo-container img {
    max-width: 100%;
    max-height: 80px; /* Control logo size inside container */
    object-fit: contain;
}
.partner-name {
    font-family: var(--font-body);
    color: var(--text-color-headings);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* --- External Resources Section --- */
.external-links-list {
    list-style: none;
    padding-left: 0;
}
.external-links-list li { /* Uses .neomorphic-flat-card */
    margin-bottom: 1.5rem;
}
.external-links-list h4 a {
    color: var(--text-color-headings);
    font-family: var(--font-heading);
}
.external-links-list h4 a:hover {
    color: var(--accent-color);
}
.external-links-list p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 0;
}

/* --- Contact CTA Section --- */
.contact-cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-color-light);
}
.contact-cta-section .section-title, .contact-cta-section .subtitle {
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.contact-cta-section .button.is-large.is-primary {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2), -5px -5px 10px rgba(255,255,255,0.2);
}
.contact-cta-section .button.is-large.is-primary:hover {
    background-color: var(--bg-color-light);
    color: var(--accent-color);
     box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2), inset -3px -3px 6px rgba(255,255,255,0.1);
}


/* --- Footer --- */
.footer.neomorphic-footer {
    background-color: var(--bg-color-dark);
    color: #B0B8C5; /* Light gray for text on dark bg */
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.3);
}
.footer.neomorphic-footer .title.footer-title {
    color: var(--text-color-light);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.footer.neomorphic-footer .footer-text,
.footer.neomorphic-footer .footer-links li a {
    color: #B0B8C5;
    font-size: 0.95rem;
}
.footer.neomorphic-footer .footer-links {
    list-style: none;
    padding-left: 0;
}
.footer.neomorphic-footer .footer-links li {
    margin-bottom: 0.5rem;
}
.footer.neomorphic-footer .footer-links li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.footer-hr {
    background-color: #4A5060;
    height: 1px;
    margin: 1.5rem 0;
}
.footer.neomorphic-footer .content p {
    color: #98A0B0; /* Slightly more muted for copyright */
    font-size: 0.9rem;
}

/* --- Contact Form Page (contacts.html) --- */
.contact-form-section {
    padding-top: 120px; /* Account for fixed header */
    min-height: calc(100vh - 80px); /* Footer height approx 80px */
    display: flex;
    align-items: center;
}

.contact-form-section .section-title {
    margin-bottom: 2rem;
}

.neomorphic-form .field {
    margin-bottom: 1.5rem;
}

.neomorphic-form .label {
    color: var(--text-color-headings);
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.neomorphic-form .input,
.neomorphic-form .textarea {
    background-color: var(--bg-color-light);
    border: none;
    border-radius: var(--border-radius-medium);
    padding: 1em 1.2em;
    color: var(--text-color);
    font-family: var(--font-body);
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
                inset -4px -4px 8px var(--shadow-light);
    transition: var(--transition-smooth);
    width: 100%;
    font-size: 1rem;
}
.neomorphic-form .input:focus,
.neomorphic-form .textarea:focus {
    outline: none;
    box-shadow: inset 6px 6px 12px var(--shadow-dark),
                inset -6px -6px 12px var(--shadow-light),
                0 0 0 2px var(--primary-color); /* Focus ring */
}
.neomorphic-form .textarea {
    min-height: 150px;
    resize: vertical;
}
.neomorphic-form .button.is-primary { /* Uses global button styles */
    width: 100%;
    padding: 1em;
    font-size: 1.1em;
}

/* --- Success Page (success.html) --- */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    padding-top: 100px; /* Account for header if it's on this page */
}
.success-content {
    background-color: var(--bg-color-light);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: 8px 8px 16px var(--shadow-dark),
                -8px -8px 16px var(--shadow-light);
    max-width: 600px;
}
.success-content .icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.success-content .title {
    color: var(--text-color-headings);
    margin-bottom: 0.5rem;
}
.success-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* --- Privacy & Terms Pages --- */
.static-page-content {
    padding-top: 120px; /* Ensure content is below fixed header */
    padding-bottom: 4rem;
    min-height: calc(100vh - 180px); /* Adjust based on header/footer height */
}
.static-page-content .container {
    background-color: var(--bg-color-light);
    padding: 2rem;
    border-radius: var(--border-radius-medium);
    box-shadow: 4px 4px 12px var(--shadow-dark);
}
.static-page-content h1.title {
    margin-bottom: 1.5rem;
    color: var(--text-color-headings);
}
.static-page-content h2.subtitle, .static-page-content h3.subtitle {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.static-page-content p, .static-page-content li {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.static-page-content ul {
    list-style: disc;
    margin-left: 20px;
}


/* --- Read More Link Style --- */
.read-more-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.3em 0;
    position: relative;
    transition: var(--transition-smooth);
}
.read-more-link::after {
    content: '→';
    margin-left: 0.3em;
    transition: margin-left 0.3s ease;
}
.read-more-link:hover {
    color: var(--primary-color);
    text-decoration: none; /* Remove default underline if any */
}
.read-more-link:hover::after {
    margin-left: 0.6em;
}

/* Responsive adjustments for columns */
@media screen and (max-width: 1023px) { /* Bulma's tablet breakpoint */
    .columns.is-centered .column.is-one-third,
    .columns.is-centered .column.is-half {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) { /* Bulma's mobile breakpoint */
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .navbar-menu {
        background-color: var(--bg-color-light);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: .5rem 0;
        border-top: 1px solid var(--gradient-mid);
    }
    .navbar-item, .navbar-link {
        padding: 0.75rem 1rem;
    }
    .columns.is-multiline .column { /* Ensure cards stack nicely */
        margin-bottom: 1.5rem;
    }
    .static-page-content, .contact-form-section {
        padding-top: 100px; /* Adjust for potentially smaller header */
    }
}

/* Cookie Consent Popup - Basic Styling */
#cookieConsentPopup {
    /* HTML inline styles are used as per prompt, this is just a placeholder if needed for overrides */
    font-family: var(--font-body);
}
#cookieConsentPopup button {
    font-family: var(--font-heading);
    box-shadow: none; /* Override neomorphic if needed for flat popup button */
}
#cookieConsentPopup button:hover {
    box-shadow: none;
    background-color: #3e8e41 !important; /* Darker green for hover */
}

/* AOS Animation Overrides (if necessary) */
[data-aos] {
    transition-property: transform, opacity, -webkit-transform; /* Default AOS properties */
}

/* Ensure content is not overlapped by fixed header initially */
body {
    padding-top: 70px; /* Adjust to match header height */
}
/* If a page has a full-height hero, it might need specific adjustment */
.hero.is-fullheight .hero-body {
    padding-top: 0; /* Override body padding if hero itself handles header offset */
}
/* For pages like privacy/terms, the .static-page-content already has padding-top */
.static-page-content {
  padding-top: 60px !important; /* Overriding body padding-top because this class handles its own space */
}
.success-page-container, .contact-form-section {
    padding-top: 60px !important; /* Overriding body padding-top */
}

/* Ensure columns behave on smaller screens */
@media screen and (max-width: 768px) {
    .columns.is-multiline .column.is-one-third,
    .columns.is-multiline .column.is-half,
    .columns.is-multiline .column.is-one-quarter,
    .columns.is-multiline .column.is-two-thirds {
        width: 100%; /* Stack columns on mobile */
        margin-left: 0;
        margin-right: 0;
    }
}