/* Global Styles - Design Clean e Moderno */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores da Marca - Tons da Paleta Oficial */
    --primary-blue-dark: #050A30;
    --primary-blue: #1487ff;
    --secondary-blue: #38B6FF;
    --light-blue: #85D6FF;
    --accent-blue: #6baaff;
    --bg-blue-light: #B9d5f1;
    --bg-cyan: #00E0FF;
    --bg-white: #ffffff;
    --bg-gray: rgba(133, 214, 255, 0.15);
    
    /* Cores de Texto */
    --text-primary: #050A30;
    --text-secondary: rgba(5, 10, 48, 0.78);
    --text-light: rgba(107, 170, 255, 0.9);
    
    /* Cores de Apoio */
    --success-color: #38B6FF;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128C7E;
    
    /* Tipografia */
    --font-heading: 'Nexa', 'Montserrat', sans-serif;
    --font-body: 'Garet', 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Espaçamento e Layout */
    --container-width: 1200px;
    --section-padding: 60px 20px;
    --border-radius: 16px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.65;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-blue-dark);
}

h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Clean e Moderno */
.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(5, 10, 48, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 50px;
    width: auto;
}

.nav-brand a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.93rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-blue);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Buttons - Clean Design */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-secondary);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 18px rgba(56, 182, 255, 0.18);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: white;
    box-shadow: 0 4px 18px rgba(56, 182, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(56, 182, 255, 0.3);
}

.btn-secondary {
    background-color: rgba(56, 182, 255, 0.12);
    color: var(--primary-blue-dark);
    border: 2px solid rgba(56, 182, 255, 0.45);
    box-shadow: 0 4px 14px rgba(56, 182, 255, 0.18);
}

.btn-secondary:hover {
    background-color: rgba(56, 182, 255, 0.22);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #1EBE57 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.32);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--whatsapp-hover) 0%, #0E7C6E 100%);
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35);
}

.btn-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-link:hover {
    color: var(--primary-blue);
}

/* Hero Section - Clean e Moderno */
.hero {
    background: linear-gradient(135deg, var(--bg-blue-light) 0%, rgba(185, 213, 241, 0.3) 100%);
    padding: 60px 20px 60px;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: 560px;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-blue-dark);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 720px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.93rem;
    background-color: rgba(133, 214, 255, 0.25);
    padding: 0.65rem 1rem;
    border-radius: 50px;
}

.feature-item i {
    color: var(--secondary-blue);
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 420px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    mask-image: radial-gradient(ellipse at center, black 65%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 95%);
}

/* Sections - Clean Design */
section {
    padding: var(--section-padding);
}

/* Add spacing control for specific sections */
.featured-course {
    padding-top: 60px;
    padding-bottom: 40px;
    background-color: var(--bg-gray);
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.course-video {
    max-width: 340px;
}

.course-video .video-caption {
    color: var(--text-secondary);
}

.formations {
    padding-top: 60px;
    padding-bottom: 60px;
}

.formations-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.showcase-video {
    background: linear-gradient(180deg, rgba(56, 182, 255, 0.18) 0%, rgba(5, 10, 48, 0.08) 100%);
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(5, 10, 48, 0.12);
    position: relative;
}

.showcase-video::after {
    content: "";
    position: absolute;
    inset: 1.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(5, 10, 48, 0.2);
    z-index: 1;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.video-caption {
    margin-top: 1.25rem;
    color: var(--primary-blue-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    margin-bottom:0;
}

.showcase-gallery {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gallery-gap, 1.1rem);
}

.gallery-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 12px 24px rgba(5, 10, 48, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    outline: none;
    display: block;
    aspect-ratio: 4 / 3;
}

.gallery-photo:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(5, 10, 48, 0.18);
}

.gallery-photo:focus-visible {
    outline: 3px solid rgba(5, 10, 48, 0.65);
    outline-offset: 4px;
    box-shadow: 0 22px 44px rgba(5, 10, 48, 0.22);
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .gallery-photo {
        aspect-ratio: 3 / 2;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        --gallery-row-height: 160px;
        --gallery-gap: 1.25rem;
        grid-auto-rows: var(--gallery-row-height);
        gap: var(--gallery-gap);
    }

    .gallery-photo {
        aspect-ratio: auto;
        height: 100%;
    }

    .gallery-photo.photo-1 {
        grid-column: 1;
        grid-row: span 1;
    }

    .gallery-photo.photo-2 {
        grid-column: 2;
        grid-row: span 1;
    }

    .gallery-photo.photo-3 {
        grid-column: 3;
        grid-row: span 2;
    }

    .gallery-photo.photo-4 {
        grid-column: 1;
        grid-row: span 1;
    }

    .gallery-photo.photo-5 {
        grid-column: 2;
        grid-row: span 1;
    }

    .gallery-photo.photo-6 {
        grid-column: 1 / span 3;
        grid-row: span 2;
        height: calc(var(--gallery-row-height, 160px) * 2 + var(--gallery-gap, 1.25rem));
    }
}

@media (min-width: 1201px) {
    /* Force the last showcase image to align with the video baseline on wide layouts */
    .formations-showcase .gallery-photo.photo-6 {
        width: 100%;
        object-fit: cover;
        grid-row: span 1;
        justify-self: stretch;
        height: var(--gallery-row-height, 160px);
        aspect-ratio: auto;
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        --gallery-row-height: 190px;
        --gallery-gap: 1.35rem;
        grid-auto-rows: var(--gallery-row-height);
        gap: var(--gallery-gap);
    }
}

@media (max-width: 1200px) {
    .formations-showcase {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase-video {
        max-width: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .formations-showcase {
        gap: 2rem;
    }

    .showcase-video {
        padding: 1rem;
    }

    .video-caption {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-photo {
        aspect-ratio: 4 / 3;
    }
}

.about-preview {
    padding-top: 60px;
    padding-bottom: 60px;
}

.testimonials {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards - Modern Design */
.card {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(5, 10, 48, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(56, 182, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(5, 10, 48, 0.15);
    border-color: var(--light-blue);
}

/* Featured Course */
.featured-course {
    background-color: var(--bg-gray);
}

.course-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(5, 10, 48, 0.08);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(56, 182, 255, 0.08);
}

.course-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.course-description {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.course-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .course-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
    }

    .course-video {
        max-width: 300px;
        width: 100%;
    }

    .course-features {
        grid-template-columns: 1fr;
    }
}

.course-layout .course-card {
    width: 100%;
}

@media (max-width: 480px) {
    .course-video {
        max-width: 260px;
    }
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.course-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Formations Grid */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1200px) {
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .formations-grid {
        grid-template-columns: 1fr;
    }
}

.formation-card {
    background-color: white;
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px rgba(5, 10, 48, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(56, 182, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(5, 10, 48, 0.15);
    border-color: var(--light-blue);
}

.formation-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.formation-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.formation-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.formation-actions .btn-link {
    font-size: 0.875rem;
    flex: 1;
    text-align: center;
}

.formations-cta {
    text-align: center;
}

/* About Preview */
.about-preview {
    background-color: var(--bg-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    max-width: 350px;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(5, 10, 48, 0.12);
    display: flex;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h3 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-highlights {
    margin: 2rem 0;
}

.highlight {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight i {
    color: var(--secondary-blue);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.highlight ul {
    list-style: none;
    margin-top: 0.5rem;
}

.highlight li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.about-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Testimonials */
.testimonials {
    background-color: white;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.stars {
    color: var(--secondary-blue);
}

.rating-text {
    color: var(--text-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background-color: var(--bg-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(56, 182, 255, 0.1);
}

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

.testimonial-header {
    margin-bottom: 1rem;
}

.testimonial-header strong {
    display: block;
    color: var(--primary-blue-dark);
}

.testimonial-header span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-rating i {
    color: var(--secondary-blue);
    font-size: 1.25rem;
}

.testimonials-actions {
    text-align: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--bg-blue-light) 0%, rgba(185, 213, 241, 0.3) 100%);
    color: var(--text-primary);
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--light-blue) 0%, transparent 70%);
    opacity: 0.25;
    border-radius: 50%;
}

.final-cta h2 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Footer - Clean Design */
.footer {
    background-color: var(--primary-blue-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
    font-size: 0.8rem;
}

.footer-bottom p {
    color: var(--accent-blue);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-size: 0.8rem;
}

/* WhatsApp Float Button - Modern */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #1EBE57 100%);
    color: white;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.28);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, var(--whatsapp-hover) 0%, #0E7C6E 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(18, 140, 126, 0.35);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (min-width: 992px) {
    .home .hero {
        padding-bottom: 0;
    }

    .hero-layout {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .hero-image {
        flex: 0 0 350px;
        max-width: 350px;
        align-self: flex-end;
        display: flex;
        align-items: flex-end;
    }

    .home .hero-layout {
        padding-left: calc(clamp(300px, 33vw, 400px) + 2rem);
        min-height: clamp(640px, 74vh, 780px);
    }

    .home .hero-image {
        position: absolute;
        bottom: 0;
        left: 0;
        width: clamp(300px, 33vw, 400px);
        max-width: none;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        transform: none;
    }

    .home .hero-content {
        margin-top: clamp(8px, 2vh, 32px);
        margin-bottom: clamp(40px, 7vh, 88px);
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
        flex: 1;
    }

    .hero-subtitle {
        margin: 0;
    }

    .hero-features {
        justify-content: flex-start;
    }

    .hero-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 50px 20px;
    }

    .navbar .container {
        padding: 1rem 20px;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-title {
        font-size: clamp(2.3rem, 6vw, 3.1rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .btn {
        padding: 13px 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
        z-index: 1100;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        padding: 2rem;
        gap: 2rem;
        z-index: 1050;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding: 80px 20px 60px; /* Adjusted padding */
    }

    .hero-title {
        font-size: 2.2rem; /* Slightly smaller for better fit */
        line-height: 1.2;
    }

    /* Course Section */
    .course-layout {
        gap: 2.5rem;
    }

    .course-card {
        padding: 2rem;
    }

    .course-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Formations Showcase */
    .formations-showcase {
        gap: 2.5rem;
    }

    /* About Preview */
    .about-content {
        gap: 2.5rem;
    }

    .about-image {
        max-width: 300px;
    }

    .highlight {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .highlight i {
        margin: 0;
    }
    
    /* Testimonials */
    .testimonials-grid {
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .course-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .formations-showcase {
        margin-bottom: 2rem;
    }

    .about-image {
        max-width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
    
    .contact-info li {
        justify-content: center;
    }
}

/* Lightbox */
body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 10, 48, 0.78);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1300;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox__content {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.75rem 3rem 2.25rem;
    box-shadow: 0 28px 55px rgba(5, 10, 48, 0.35);
}

.lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(5, 10, 48, 0.25);
}

.lightbox-control {
    background: rgba(5, 10, 48, 0.1);
    border: none;
    color: var(--primary-blue-dark);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-control:hover,
.lightbox-control:focus-visible {
    background: rgba(5, 10, 48, 0.2);
    transform: translateY(-2px);
    outline: none;
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(5, 10, 48, 0.1);
    border: none;
    color: var(--primary-blue-dark);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(5, 10, 48, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.lightbox-counter {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue-dark);
    letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
    .gallery-lightbox__content {
        max-width: 720px;
        padding: 2.25rem 2.25rem 1.75rem;
    }

    .lightbox-image {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 1.5rem;
    }

    .gallery-lightbox__content {
        padding: 2rem 1.75rem 1.5rem;
    }

    .lightbox-stage {
        flex-direction: column;
    }

    .lightbox-control {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .lightbox-image {
        max-height: 55vh;
    }
}

@media (max-width: 480px) {
    .gallery-lightbox {
        padding: 1rem;
    }

    .gallery-lightbox__content {
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .lightbox-close {
        top: 0.8rem;
        right: 0.8rem;
    }

    .lightbox-counter {
        font-size: 0.9rem;
    }
}
