/*
 * style.css
 * Theme: Business Training ('Academia Nexus')
 * Design System: Creative
 * Trend: Volumetric UI
 * Color Scheme: Split-Complementary
 * Animation Style: Morphing
 */

/* ----------------------------------------------------------------
   1. CSS Variables & Global Setup
   ---------------------------------------------------------------- */

:root {
    /* Color Palette (Split-Complementary Inspired) */
    --primary-color: #2A3D66; /* Deep Navy Blue */
    --accent-color-1: #F9A825; /* Vibrant Yellow/Gold */
    --accent-color-1-dark: #c17d0b; /* Darker shade for shadow/hover */
    --accent-color-2: #4ECDC4; /* Contrasting Teal */
    --neutral-light: #F5F7FA; /* Light Gray for backgrounds */
    --neutral-dark: #363636; /* Default Bulma text color, for consistency */
    --text-light: #FFFFFF;
    --text-dark: #222222; /* High contrast dark text */
    --border-color: #dbdbdb;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* UI Elements */
    --border-radius-soft: 8px;
    --border-radius-sharp: 12px;
    --shadow-volume: 0 8px 15px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --shadow-volume-hover: 0 12px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.1);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--text-light); /* Set a base background */
}

body {
    font-family: var(--font-body);
    color: var(--neutral-dark);
    line-height: 1.7;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------
   2. Typography & Base Styles
   ---------------------------------------------------------------- */

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

.title.is-1 { font-size: 3.5rem; }
.title.is-2 { font-size: 2.5rem; }
.subtitle { font-family: var(--font-body); }

.section-title {
    margin-bottom: 3rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

a {
    color: var(--accent-color-2);
    transition: color 0.3s ease;
}

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

.section {
    padding: 5rem 1.5rem;
}

/* ----------------------------------------------------------------
   3. Global Components (Buttons, Inputs)
   ---------------------------------------------------------------- */

/* Volumetric Button Style */
.custom-button, .button.is-primary {
    background-color: var(--accent-color-1);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-soft);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1.5em 2.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 0 var(--accent-color-1-dark);
    transition: all 0.15s ease-in-out;
}

.custom-button:hover, .button.is-primary:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--accent-color-1-dark);
    background-color: #ffb742; /* Slightly lighter on hover */
    color: var(--primary-color);
}

.custom-button:active, .button.is-primary:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 var(--accent-color-1-dark);
}

.custom-button-small, .button.is-small.is-primary {
    padding: 1em 1.5em;
    font-size: 0.8rem;
}

/* Custom Input Fields */
.custom-input {
    border-radius: var(--border-radius-soft) !important;
    border: 2px solid #e0e0e0 !important;
    box-shadow: var(--shadow-inset) !important;
    transition: all 0.3s ease;
}

.custom-input:focus, .custom-input:active {
    border-color: var(--accent-color-2) !important;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3), var(--shadow-inset) !important;
}

/* ----------------------------------------------------------------
   4. Header & Navigation
   ---------------------------------------------------------------- */
.navbar.is-fixed-top {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.is-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    background-color: transparent !important;
    color: var(--accent-color-1) !important;
}

.navbar-burger {
    color: var(--primary-color);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--text-light);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
}


/* ----------------------------------------------------------------
   5. Section-Specific Styles
   ---------------------------------------------------------------- */

/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.parallax-bg {
    background-attachment: fixed; /* Simple parallax effect */
}

#hero .title.has-text-white, #hero .subtitle.has-text-white {
    color: var(--text-light) !important;
}

/* --- Services & Projects (Cards) --- */
.service-card, .project-card {
    height: 100%;
    border-radius: var(--border-radius-sharp);
    box-shadow: var(--shadow-volume);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-volume-hover);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card .title {
    color: var(--primary-color);
}

.project-card .card-content {
    flex-grow: 1;
}

/* --- Vision Section --- */
#vision .image img {
    border-radius: var(--border-radius-sharp);
    box-shadow: var(--shadow-volume);
}

/* --- Success Stories (Testimonials) --- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: auto;
    text-align: center;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-slide .image {
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-volume);
    border-radius: 50%;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-prev, .slider-next {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.slider-prev { margin-left: -60px; }
.slider-next { margin-right: -60px; }
.slider-prev:hover, .slider-next:hover {
    background: var(--primary-color);
    color: var(--text-light);
}


/* --- Events Calendar (Accordion) --- */
.events-accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-soft);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: var(--text-light);
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--neutral-light);
}

.accordion-header .icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.accordion-header.is-active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: var(--neutral-light);
}
.accordion-content p {
    padding: 1.5rem 0;
}

/* --- Partners Section --- */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.partners-logos img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Media Section (External Resources) --- */
.resource-item {
    background-color: var(--neutral-light);
    border-radius: var(--border-radius-soft);
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-volume);
}
.resource-link {
    display: block;
    padding: 1.5rem;
    color: var(--neutral-dark);
}
.resource-link:hover {
    color: var(--neutral-dark);
}
.resource-link h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem !important;
}
.resource-url {
    font-size: 0.9rem;
    color: var(--accent-color-2);
    font-family: monospace;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer .title {
    color: var(--text-light);
}
.footer .title.is-5 {
    margin-bottom: 1rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--accent-color-1);
}
.footer .content p {
    color: rgba(255, 255, 255, 0.6);
}

/* ----------------------------------------------------------------
   6. Page-Specific Styles
   ---------------------------------------------------------------- */

/* --- Success Page --- */
.success-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--neutral-light);
    padding: 2rem;
}
.success-card {
    background-color: var(--text-light);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-sharp);
    box-shadow: var(--shadow-volume);
}
.success-card .title {
    color: var(--primary-color);
}

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page-content {
    padding: 100px 0 50px 0; /* Top padding to clear fixed navbar */
}

.legal-page-content .content h1,
.legal-page-content .content h2,
.legal-page-content .content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

/* ----------------------------------------------------------------
   7. Media Queries & Responsiveness
   ---------------------------------------------------------------- */

@media screen and (max-width: 768px) {
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .section { padding: 3rem 1.5rem; }
    
    .slider-controls {
        display: none; /* Hide side controls on mobile */
    }

    .project-card .columns {
        flex-direction: column;
    }
}