/* style.css */

/* 1. CSS Variables */
:root {
    --primary-color: #2A7AAF; /* Blue */
    --primary-color-darker: #1E5A87; /* Darker Blue for hover/active */
    --secondary-color: #2A95AA; /* Blue-Green/Teal */
    --secondary-color-darker: #1D7181; /* Darker Teal for hover/active */
    --accent-color: #2A5FAA; /* Blue-Violet */
    --accent-color-darker: #1E437B; /* Darker Blue-Violet for hover/active */
    
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-muted: #6c757d; /* Muted text color */
    
    --background-light: #F4F7F9;
    --background-medium: #E9ECEF; /* Slightly darker light background */
    --background-dark: #363636; /* Footer background */
    --background-dark-overlay: rgba(0, 0, 0, 0.5); /* Standard overlay */
    --hero-overlay: rgba(0, 0, 0, 0.6); /* Darker overlay for hero */

    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Nunito', sans-serif;
    
    --card-background: #FFFFFF;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --card-radius: 8px;
    --card-image-height: 220px; /* Fixed height for card images */

    --heading-color: #222222; /* Dark color for headings for contrast */
    
    --border-color: #dee2e6; /* General border color */

    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    --navbar-height: 52px; /* Default Bulma navbar height */
    --content-padding-top: calc(var(--navbar-height) + 40px); /* For pages with fixed navbar */
}

/* 2. Global Resets/Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-color-darker);
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.title, .subtitle { /* Bulma classes */
    font-family: var(--heading-font);
    color: var(--heading-color) !important; /* Ensure heading color consistency */
    font-weight: 500; /* Oswald default is often 400, make it bolder */
}

.title {
    margin-bottom: 1rem; /* Default Bulma is 1.5rem, can adjust */
    text-align: center; /* Default for section titles */
}
.subtitle {
    font-family: var(--body-font);
    color: var(--text-muted) !important;
    text-align: center;
    margin-bottom: 2rem;
}
.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }

.content p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}
.content ul, .content ol {
    margin-left: 1.5em;
    margin-bottom: 1.25rem;
}
.content li {
    margin-bottom: 0.5em;
}

/* 3. Bulma Overrides/Enhancements */
.section {
    padding: 60px 24px; /* Default padding for sections */
}

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

/* 4. Layout Utilities */
.main-content-page { /* For single pages like privacy, terms */
    padding-top: var(--content-padding-top);
    padding-bottom: 4rem;
    min-height: calc(100vh - var(--navbar-height) - 180px); /* Adjust 180px based on footer height */
}
.main-content-page .container {
    padding-top: 2rem; /* Additional padding inside container if needed */
}
.main-content-page .content h1,
.main-content-page .content h2,
.main-content-page .content h3 {
    text-align: left; /* Override default center for page content */
    margin-bottom: 1rem;
}
.main-content-page .content h1 {
    margin-bottom: 1.5rem;
}


/* 5. Component Styles */

/* Header/Navbar */
.navbar.is-fixed-top {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: var(--text-light);
    height: var(--navbar-height);
}
.navbar-item, .navbar-link {
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active { /* Style for active page */
    background-color: var(--background-light) !important;
    color: var(--primary-color) !important;
}
.navbar-brand .navbar-item {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important; /* Brand color */
}
.navbar-burger {
    color: var(--text-dark);
    height: var(--navbar-height);
    width: var(--navbar-height);
}
.navbar-menu {
    background-color: var(--text-light);
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
    }
    .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}


/* Buttons (Global) */
.button { /* Base Bulma button */
    font-family: var(--body-font);
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 24px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.button:active {
    transform: translateY(0px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

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

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

.button.is-accent { /* Example for accent color */
    background-color: var(--accent-color);
    color: var(--text-light);
}
.button.is-accent:hover {
    background-color: var(--accent-color-darker);
    color: var(--text-light);
}

.button.is-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}
.button.is-fullwidth {
    display: block;
    width: 100%;
}

/* Cards */
.card {
    background-color: var(--card-background);
    box-shadow: var(--card-shadow);
    border-radius: var(--card-radius);
    overflow: hidden; /* Ensures content respects border radius */
    height: 100%; /* For equal height cards in columns */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card .card-image { /* Container for the image */
    height: var(--card-image-height);
    overflow: hidden;
    position: relative; /* For potential overlays */
    background-color: var(--background-medium); /* Placeholder if image fails to load */
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, may crop */
    object-position: center; /* Center the image content */
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}
.card .card-image .image { /* Bulma's figure.image if used inside */
    height: 100%;
    padding-top: 0 !important; /* Override Bulma's aspect ratio padding */
    margin-bottom: 0; /* Remove Bulma's default margin */
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Pushes footer down */
    display: flex;
    flex-direction: column;
}
.card .card-content .title { /* Titles within card content */
    margin-bottom: 0.75rem;
    font-size: 1.25rem; /* Adjust as needed */
    color: var(--heading-color) !important;
    text-align: left; /* Default text align for card titles */
}
.card .card-content .title.has-text-centered {
    text-align: center;
}
.card .card-content .content {
    font-size: 0.9rem;
    color: var(--text-dark);
    flex-grow: 1;
    line-height: 1.6;
}
.card .card-content .content ul {
    margin-left: 1.2em;
}

.card .card-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background-color: var(--background-light);
}
.card .card-footer a, .card .card-footer .button {
    font-weight: bold;
}
.card .card-footer-item.read-more-modal-trigger,
.card .card-footer-item {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.card .card-footer-item.read-more-modal-trigger:hover,
.card .card-footer-item:hover {
    color: var(--primary-color-darker);
}

/* Text on image for cards (if needed, not in current HTML structure) */
.card-image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.0) 100%);
    color: var(--text-light);
}
.card-image-overlay-text .title {
    color: var(--text-light) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Accordion */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
}
.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-header {
    background-color: var(--card-background);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: var(--text-dark);
}
.accordion-header:hover {
    background-color: var(--background-light);
}
.accordion-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--text-light);
    display: none; /* Hidden by default, JS toggles */
    font-size: 0.95rem;
}
.accordion-item.is-active .accordion-content {
    display: block;
}
.accordion-header::after {
    content: '+'; /* Icon for collapsed */
    font-size: 1.5em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.accordion-item.is-active .accordion-header::after {
    content: '−'; /* Icon for expanded */
    transform: rotate(180deg);
}

/* Modals (Bulma handles base, apply glassmorphism/customizations) */
.modal-card {
    border-radius: var(--card-radius);
    max-width: 700px; /* As per HTML style block */
    /* Glassmorphism example - subtle */
    /* background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); */
}
.modal-card-head, .modal-card-foot {
    background-color: var(--background-light);
    border-color: var(--border-color);
}
.modal-card-title {
    color: var(--heading-color);
    font-family: var(--heading-font);
}
.modal-card-body {
    background-color: var(--text-light);
    font-size: 0.95rem;
}
.modal-card-body .content img {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--card-radius);
    max-width: 100%;
    height: auto;
}

/* Switches (as per HTML styles) */
.switch-field {
    display: flex;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    margin-bottom: 1.5rem;
    justify-content: center; /* As per HTML */
}
.switch-field input {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}
.switch-field label {
    background-color: var(--text-light);
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    padding: 10px 20px;
    margin-right: -1px; /* For seamless borders */
    border-right: 1px solid var(--primary-color);
    transition: all 0.1s ease-in-out;
    cursor: pointer;
    font-weight: 500;
}
.switch-field label:last-of-type {
    border-right: none;
}
.switch-field input:checked + label {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: none;
}

/* Statistical Widgets */
.stat-widget {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}
.stat-widget:hover {
    transform: translateY(-3px);
}
.stat-widget .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--heading-font);
    line-height: 1.2;
}
.stat-widget .stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: var(--body-font);
    font-weight: 600;
}

/* Form elements */
.input, .textarea, .select select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(10,10,10,.05);
    font-family: var(--body-font);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input:focus, .textarea:focus, .select select:focus,
.input:active, .textarea:active, .select select:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(42, 122, 175, 0.25); /* Bulma's default focus color is good */
}
.label {
    color: var(--text-dark) !important; /* To override Bulma's default if needed */
    font-weight: 600;
    font-family: var(--body-font);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.select::after { /* Arrow for select */
    border-color: var(--primary-color) !important;
}


/* 6. Section-Specific Styles */

/* Parallax Base */
.parallax-background {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: var(--text-light);
}
.parallax-background::before { /* Overlay for readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background-dark-overlay);
    z-index: 1;
}
.parallax-content {
    position: relative;
    z-index: 2;
}
.parallax-content .title, .parallax-content .subtitle,
.parallax-content h1, .parallax-content h2, .parallax-content p {
    color: var(--text-light) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Hero Section */
#hero {
    min-height: 90vh; /* Slightly less than fullheight for navbar visibility */
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero.parallax-background::before {
    background-color: var(--hero-overlay); /* Darker overlay for hero */
}
#hero .hero-body {
    padding: 3rem 1.5rem;
}
#hero .hero-body .title.is-1 {
    font-size: 3.5rem; /* Larger for hero */
    font-weight: 700; /* Bolder for hero title */
    margin-bottom: 1rem;
}
#hero .hero-body .subtitle.is-3 {
    font-size: 1.5rem; /* Larger for hero subtitle */
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.5;
}
#hero .button.is-primary.is-large {
    padding: 16px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Us Summary Section */
#about-us-summary .content p {
    font-size: 1.05rem; /* Slightly larger for readability */
    text-align: justify;
}
#about-us-summary img {
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Our Courses / Process Section (#our-courses) */
#our-courses .tabs ul {
    justify-content: center;
    border-bottom-color: var(--primary-color);
    margin-bottom: 2.5rem;
}
#our-courses .tabs li.is-active a {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
    font-weight: bold;
}
#our-courses .tabs a {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-bottom-width: 3px;
}
#our-courses .tabs a:hover {
    border-bottom-color: var(--secondary-color);
    color: var(--secondary-color) !important;
}
#our-courses .content-tab {
    padding: 1rem 0;
}
#our-courses .content-tab h3 {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}
#our-courses .content-tab p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Pricing Section */
#pricing .card {
    text-align: center; /* Center content within pricing cards */
}
#pricing .card .card-content .title.is-4 { /* Plan name */
    text-align: center;
    font-weight: 700;
}
#pricing .card .card-content ul {
    text-align: left;
    margin-bottom: 1.5rem;
    list-style: disc;
    padding-left: 20px; /* Ensure bullets are visible */
}
#pricing .card .card-content ul li {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}
#pricing .card .card-content .title.is-3 { /* Price */
    text-align: center;
    color: var(--primary-color) !important;
    margin-top: 1rem;
    margin-bottom: 0;
}
#pricing .card .card-footer .button {
    margin: auto; /* Center button in footer if not fullwidth */
}

/* Blog Highlights Section (#blog) */
#blog .card .card-content .title.is-5 {
    min-height: 3em; /* Ensure titles have enough space, prevent jumpiness */
    line-height: 1.4;
}

/* Customer Stories Section (#testimonials) */
#testimonials .card {
    background-color: rgba(255, 255, 255, 0.9); /* Lighten card for parallax */
}
#testimonials .card .content p:first-child { /* The quote */
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
#testimonials .card .content p strong { /* Author name */
    color: var(--primary-color);
    font-family: var(--heading-font);
}

/* External Resources Section */
.external-resource-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.external-resource-card .card-content .title.is-5 {
    min-height: 2.8em; /* Similar to blog titles for consistency */
}
.external-resource-card .card-footer-item {
    font-weight: bold;
}

/* FAQ Section (#faq) */
#faq .accordion-header {
    font-size: 1.1rem;
}

/* Careers Section (#careers) */
#careers .content.is-medium p {
    font-size: 1.05rem;
}
#careers img {
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Contact Section (#contact) */
#contact.parallax-background::before {
    background-color: rgba(42, 122, 175, 0.1); /* Light primary color overlay */
}
#contact .parallax-content { /* The white-ish box */
    background-color: rgba(255,255,255,0.92); /* Increased opacity */
    padding: 3rem;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
#contact .title, #contact .subtitle {
    color: var(--heading-color) !important; /* Override parallax text color */
    text-shadow: none;
}
#contact .label, #contact h4, #contact p, #contact a {
    color: var(--text-dark) !important; /* Override parallax text color */
    text-shadow: none;
}
#contact p a {
    color: var(--primary-color) !important;
    font-weight: 600;
}
#contact p a:hover {
    color: var(--primary-color-darker) !important;
}
#contact .field.is-grouped.is-grouped-centered .control .button {
    min-width: 200px;
}

/* 7. Footer */
.footer {
    background-color: var(--background-dark);
    color: #E0E0E0; /* Light gray for footer text */
    padding: 3rem 1.5rem;
    font-size: 0.9rem;
}
.footer .title.is-5 {
    color: var(--text-light) !important;
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    text-align: left;
}
.footer p {
    color: #E0E0E0;
    line-height: 1.6;
}
.footer ul {
    list-style: none;
    margin-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer a {
    color: var(--text-light);
    font-weight: 500; /* Normal weight for footer links */
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--secondary-color); /* Use secondary for hover */
}
.footer .content.has-text-centered p {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #B0B0B0; /* Lighter muted for copyright */
}

/* 8. Specific Page Styles */
/* success.html */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
}
.success-page-container .success-content {
    background-color: var(--card-background);
    padding: 2.5rem 3rem;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    max-width: 600px;
}
.success-page-container .success-icon {
    font-size: 4rem; /* Example, if using an icon font */
    color: var(--success-color);
    margin-bottom: 1.5rem;
}
.success-page-container h1 {
    color: var(--success-color) !important;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.success-page-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* 9. Animations & Transitions */
/* Barba.js transitions (basic opacity) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.3s ease-in-out;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* Animate on scroll - base class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px); /* Start slightly lower */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform; /* Performance hint */
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 10. Cookie Consent Popup */
/* Styles are in HTML, this is just a placeholder if more complex styling is needed */
#cookieConsentPopup {
    /* Basic styles are inline in HTML as per prompt for simplicity */
    /* Can add font overrides or more complex styles here if needed */
    font-family: var(--body-font); /* Ensure consistent font */
}
#cookieConsentPopup p {
    color: var(--text-light) !important; /* Ensure text is light on dark bg */
    text-shadow: none !important; /* Remove any global text shadow */
}
#acceptCookieButton {
    font-family: var(--body-font); /* Ensure consistent font */
}

/* 11. Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .section {
        padding: 40px 15px;
    }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .title.is-3 { font-size: 1.75rem; }

    #hero .hero-body .title.is-1 {
        font-size: 2.8rem;
    }
    #hero .hero-body .subtitle.is-3 {
        font-size: 1.25rem;
    }

    .columns.is-vcentered .column:first-child { /* Stack image above text on mobile */
        order: 1;
    }
     .columns.is-vcentered .column:last-child {
        order: 2;
    }
    #about-us-summary .column:last-child, /* image column */
    #careers .column:first-child { /* image column */
        margin-bottom: 2rem; /* Add space below image when stacked */
    }

    .card .card-image {
        height: 180px; /* Adjust card image height for smaller screens */
    }
    .stat-widget .stat-number {
        font-size: 2.5rem;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .title.is-5 {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 1.5rem;
    }
    .main-content-page {
         padding-top: calc(var(--navbar-height) + 20px);
    }
}