:root {
    --primary-color: #2c3e50; /* Deep Blue/Slate */
    --secondary-color: #3498db; /* Bright Blue */
    --accent-color: #e67e22; /* Orange/Gold for CTA */
    --text-color: #333;
    --light-bg: #f4f6f8;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.services ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.35);
}

.btn-secondary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 180px;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-index {
    background: transparent;
}

.hero-programs {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

.hero-about {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('assets/about-us-1.jpg');
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 20px 0 30px;
}

.image-row .image-placeholder {
    height: 260px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link .service-card {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1);
}

.service-card .btn {
    margin-top: auto;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    max-width: 700px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-images {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 32px;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-columns .col > * {
    break-inside: avoid;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1351&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.02);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    border-top: 5px solid var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
        position: relative;
        z-index: 2001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .logo img {
        height: 60px;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #f8f9fa; /* Light grey background for better visibility */
        width: 100%;
        height: calc(100vh - 80px); /* Fill remaining height */
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        gap: 0; /* Remove default gap */
        z-index: 999;
        overflow-y: auto; /* Enable scrolling if menu is long */
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #e9ecef; /* Separator lines */
        width: 100%;
    }

    .nav-list a:hover {
        background-color: #e9ecef;
    }

    .nav-list.active {
        left: 0;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-placeholder {
        height: 280px;
    }

    .service-card {
        padding: 25px;
    }

    .page-hero {
        padding-top: 100px;
    }
    
    .contact-form {
        padding: 25px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    }

    .hero-content p {
        font-size: 1.1rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }
}

/* Page Hero */
.page-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

/* Testimonials Page */
.testimonials-page {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author img {
    transform: scale(1.1);
}

.testimonial-card .details h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.testimonial-card .details span {
    font-size: 0.9rem;
    color: #777;
}

/* FAQ Page */
.faq-page {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    transition: all 0.3s ease;
    border-radius: 5px; /* Subtle radius for hover effect */
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background-color: #fcfcfc;
    padding-left: 15px;
    padding-right: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.faq-item p {
    color: #555;
}

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner a {
    color: #ccc;
    text-decoration: underline;
}

.cookie-banner .btn {
    margin-left: 8px;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-content {
    background: var(--white);
    color: var(--text-color);
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 24px;
    transform: scale(0.95);
    animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
    to { transform: scale(1); }
}

.cookie-modal-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.toggle-row:last-child {
    border-bottom: none;
}

.cookie-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Right Animation (From Left) - Effect "Binario" */
.animate-from-left {
    opacity: 0;
    transform: translateX(-150px); /* From Left */
    transition: opacity 2s ease-out, transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.animate-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide Down Animation (From Top) */
.animate-from-top {
    opacity: 0;
    transform: translateY(-150px); /* From Top */
    transition: opacity 2s ease-out, transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.animate-from-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Left Animation (From Right) */
.animate-from-right {
    opacity: 0;
    transform: translateX(150px); /* From Right */
    transition: opacity 2s ease-out, transform 2s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.animate-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* Staggered delays for grid items automatically targeted by JS */
.services-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* Staggered delays for custom directions */
.animate-from-left { transition-delay: 0.1s; }
.animate-from-top { transition-delay: 0.3s; }
.animate-from-right { transition-delay: 0.5s; }

.testimonials-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.testimonials-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.testimonials-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.testimonials-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
