@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&display=swap');

:root {
    --clr-primary: #01221F;
    --clr-secondary: #036B63;
    --clr-accent: #e96c00;
    --clr-white: #ffffff;
    --clr-black: #000000;
    --clr-muted: #828282;
    --clr-light-bg: #f5f5f5;
    --clr-hover: #036B63;
    --clr-border: #e0e0e0;

    --ff-primary: "Josefin Sans", sans-serif;
    --fs-base: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.75rem;
    --fs-xxl: 2rem;
    --letter-spacing: 0.05rem;

    --radius: 0.25rem;
    --transition: all 0.3s ease-in-out;
    --max-width: 1170px;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--ff-primary);
    font-size: var(--fs-base);
    background-color: #f9f9f9;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    letter-spacing: var(--letter-spacing);
    text-transform: capitalize;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    font-family: var(--ff-primary);
}

h1 {
    font-size: var(--fs-xxl);
}

h2 {
    font-size: var(--fs-xl);
}

h3 {
    font-size: var(--fs-lg);
}

h4 {
    font-size: var(--fs-base);
}

p {
    margin-bottom: 1.25rem;
    color: var(--clr-muted);
}

img:not(.logo) {
    width: 100%;
    display: block;
}

.section-center {
    max-width: 1200px;
    margin: auto;
}

/* Topbar */
.topbar {
    background-color: var(--clr-secondary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 4rem;
}

.topbar-left {
    display: none;
}

.topbar-right {
    display: flex;
    gap: 12px;
}

.icon-circle {
    background-color: var(--clr-accent);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: var(--transition);
}

.icon-circle.social {
    background-color: white;
    color: var(--clr-accent);
}

.icon-circle.social:hover {
    background-color: var(--clr-accent);
    color: white;
}

/* Navbar */

.navbar {
    background-color: white;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    width: 180px;
}

.section-center {
    width: 90vw;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-toggle {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--clr-primary);
    cursor: pointer;
}

.nav-links {
    display: none;
}

.nav-container .btn-register {
    background-color: var(--clr-accent);
    color: white;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    animation: bounce 4s ease-in-out infinite;
    cursor: pointer;
    text-transform: capitalize;
}

@keyframes bounce {
    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--clr-primary);
    color: white;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 1000;
}

.sidebar.show-sidebar {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.links a {
    display: block;
    font-size: 1.2rem;
    color: white;
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.links a:hover,
.links a:focus {
    padding-left: 2rem;
    color: var(--clr-accent);
    outline: none;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px dashed var(--clr-accent);
    outline-offset: 4px;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    background: url('../images/hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 34, 31, 0.6);
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 1rem;
    color: var(--clr-white);
}

.hero-text h1 {
    letter-spacing: var(--letter-spacing);
}

.hero-text .highlighted {
    color: var(--clr-accent);
}

.hero-text .subtext {
    color: var(--clr-white);
    font-size: var(--fs-base);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    justify-content: center;
}

.btn-hero {
    display: inline-block;
    padding: 0.45rem 1.5rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition);
}

.btn-hero.white {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

.btn-hero.orange {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.btn-hero:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-hero.white:hover {
    background-color: var(--clr-hover);
    color: white;
}

/* About section */
.about {
    padding: 4rem 1rem;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.stat-box {
    position: absolute;
    bottom: -1.5rem;
    left: 1.5rem;
    background: var(--clr-white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    min-width: 130px;
    font-size: 1rem;
    z-index: 1;
}

.stat-box h2 {
    color: var(--clr-secondary);
}

.stat-box span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--clr-accent);
}

.about-text .badge {
    background-color: #ffd5b4;
    color: var(--clr-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.5;
    text-align: justify;
}

.certifications li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.certifications i {
    color: var(--clr-accent);
    margin-right: 0.5rem;
}

.contact-cta {
    margin-top: 1.5rem;
    display: flex;
}

.btn-orange,
.btn-phone {
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: bold;
}

.btn-orange {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: green;
}

/* Courses section */
.courses {
    padding: 6rem 1rem;
    background: #f9f9f9;

}

.courses-header {
    text-align: center;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--clr-secondary);
}

.section-subtitle {
    max-width: 600px;
    margin: 0.5rem auto;
    color: #555;
    font-size: 1rem;

}


.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    padding: 20px;
    transition: transform 0.3s ease;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card i {
    font-size: 2rem;
    color: var(--clr-accent);
    margin-bottom: 10px;
}

.course-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--clr-secondary);
}

.course-card p {
    font-size: 0.95rem;
    color: #475569;
}

.see-more-btn {
    display: block;
    margin: 30px auto 0;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #14b8a6;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.see-more-btn:hover {
    background-color: #0d9488;
}

.hidden {
    display: none;
}

/* Atouts section */
.atouts {
    background-color: var(--clr-light-bg);
    padding: 6rem 1rem;
    text-align: center;
}

.atouts-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-secondary);
}

.atouts-header p {
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.atouts-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.atout {
    background: var(--clr-white);
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: rgba(3, 107, 99, 0.1) 0 0 10px;
    border-top: 4px solid var(--clr-secondary);
    transition: var(--transition);
}

.atout:hover {
    transform: translateY(-6px);
    box-shadow: rgba(3, 107, 99, 0.2) 0 6px 16px;
}

.atout-icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.atout h3 {
    color: var(--clr-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.atout p {
    font-size: 0.95rem;
    color: #444;
}

/* Contact section */
.contact {
    background-color: #f8f9fc;
    padding: 8rem 1rem;
}

.contact-container {
    display: grid;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--clr-secondary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: #444;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
}

.contact-details i {
    color: var(--clr-accent);
    margin-right: 0.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #e96c00;
}

/* Collaborations Section */
.collaborations {
    background-color: var(--clr-light-bg);
    padding: 6rem 1rem;
    text-align: center;
}

.collab-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--clr-secondary);
    margin-bottom: 0.5rem;
}

.collab-header p {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.collab-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: center;
    justify-items: center;
}

.collab-card {
    background: var(--clr-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 100%;
    max-width: 250px;
}

.collab-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    /* filter: grayscale(100%); */
    transition: var(--transition);
}

.collab-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-dark);
}

.collab-card:hover img {
    filter: grayscale(0%);
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
    .collab-header h2 {
        font-size: 2.2rem;
    }

    .collab-grid {
        gap: 2.5rem;
    }
}

@media screen and (min-width: 992px) {
    .collab-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* FAQ Section */
.faq {
    background: var(--clr-light-bg);
    padding: 6rem 1rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--clr-secondary);
    margin-bottom: 0.5rem;
}

.faq-header p {
    color: #444;
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--clr-white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--clr-dark);
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--clr-accent);
}


/* Footer section */
.footer {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    padding: 3rem 1rem 2rem;
}

.footer-container {
    display: grid;
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffd5b4;
}

.footer-col p {
    color: white;
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--clr-accent);
}

.footer-col a {
    color: var(--clr-white);
}

.footer-col a:hover {
    color: var(--clr-accent);
}

.social-icons a {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--clr-white);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    text-align: center;
}

.footer-bottom p {
    color: whitesmoke;

}

/* WhatsApp button */
.whatsapp-btn-container {
    position: fixed;
    bottom: -10px;
    right: 24px;
    padding: 24px;
    animation: bounceIn 1s ease forwards;
    transition: transform 0.3s ease;
    z-index: 1;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.whatsapp-btn {
    font-size: 48px;
    color: #25d366;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.2);
}

/* Responsive breakpoints */
@media screen and (min-width: 576px) {
    .logo {
        width: 180px;
    }

    .stat-box {
        bottom: -1rem;
        padding: 1rem;
        font-size: 1rem;
        min-width: 130px;
        left: 50%;
        transform: translateX(-50%);
    }

    .stat-box span {
        font-size: 2rem;
    }
}


@media screen and (min-width: 768px) {
    .logo {
        width: 190px;
    }

    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .topbar-left {
        display: flex;
        gap: 12px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        gap: 1.2rem;
        align-items: center;
    }

    .btn-register {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .hero {
        height: 90vh;
    }

    .hero-buttons {
        flex-direction: row;
        column-gap: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr 1fr;

    }



    .contact-container {
        display: grid;
        flex-direction: row;
        grid-template-columns: 1fr 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .logo {
        width: 200px;
    }

    .about {
        padding: 6rem 3rem;
    }

    .atouts {
        padding: 6rem 1rem;
    }

    .navbar {
        margin-bottom: 0rem;
    }

    .atouts-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);

    }

    .btn-register {
        display: flex;
        margin-left: 1rem;
    }
}