@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-green: #108a4f;
    --primary-green-dark: #0d6b3e;
    --primary-green-light: #eafaf1;
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --text-muted: #718096;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --whatsapp-green: #25d366;
    --whatsapp-green-dark: #128c7e;
    --error-red: #e53e3e;
    --font-sans: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(16, 138, 79, 0.05);
    --shadow-md: 0 4px 12px rgba(16, 138, 79, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(16, 138, 79, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Base Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}

.bg-light-section {
    background-color: var(--bg-light);
}

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

/* Header / Navbar */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-normal);
}

.site-header.scrolled .logo img {
    height: 40px;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--primary-green);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--text-light);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green-light);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--whatsapp-green);
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-size: 1.8rem;
    animation: pulse 2s infinite;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-green-dark);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--bg-white) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-green);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green-dark);
    background-color: rgba(16, 138, 79, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background-color: var(--primary-green-light);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    animation: morphing 15s ease-in-out infinite alternate;
}

.hero-image img {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 450px;
    object-fit: cover;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 4rem 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    .hero-badges {
        justify-content: center;
    }
    .hero-image img {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Section Header */
.section-header {
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-header.text-left h2::after {
    margin-left: 0;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Exam Cards (Home Page) */
.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.exam-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(16, 138, 79, 0.08);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.exam-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    font-size: 1.8rem;
    transition: var(--transition-fast);
}

.exam-card:hover .exam-icon {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.exam-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.exam-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.exam-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.exam-link i {
    transition: transform var(--transition-fast);
}

.exam-card:hover .exam-link i {
    transform: translateX(5px);
}

/* Specific LP elements: Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.details-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 480px;
    width: 100%;
    object-fit: cover;
}

.details-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.details-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.check-list li i {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Call to Action Section (Banner) */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--text-light);
    border-radius: var(--border-radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

.cta-banner .btn-outline {
    border-color: var(--text-light);
    color: var(--text-light);
}

.cta-banner .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .cta-banner {
        padding: 3rem 1.5rem;
    }
    .cta-banner h2 {
        font-size: 1.75rem;
    }
}

/* Testimonials / Trust Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(16, 138, 79, 0.05);
    position: relative;
}

.testimonial-rating {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.testimonial-info h4 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(16, 138, 79, 0.05);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-green);
    background-color: var(--primary-green-light);
}

.faq-question i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
    color: var(--primary-green);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Footer */
.site-footer {
    background-color: #1a1e21;
    color: #a0aec0;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Navigation & UX Enhancements */
@media (max-width: 992px) {
    .hero-buttons {
        justify-content: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .details-grid .check-list {
        display: inline-block;
        text-align: left;
        margin: 0 auto 2rem;
        width: 100%;
        max-width: 500px;
        padding-left: 1rem;
    }
    
    .details-grid .btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        padding: 10px; /* Touch target enhancement */
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        z-index: 999;
        overflow-y: auto; /* Prevent cut-off links on smaller devices */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 0.75rem 0; /* UX spacing for mobile links */
    }
    
    .footer-col h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 1rem 2rem; /* Larger touch friendly buttons on mobile */
        font-size: 1.05rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .details-grid .btn {
        width: 100%;
        display: flex;
    }

    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
    }
}
