/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --primary-color: #215338;
    /* Deep Green */
    --secondary-color: #cfb14b;
    /* Gold */
    --accent-color: #f4f4f4;
    /* Light Gray for backgrounds */
    --text-dark: #333333;
    --text-light: #ffffff;
    --success-color: #28a745;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    /* Authoritative, prestigious */
    --font-body: 'Inter', sans-serif;
    /* Clean, modern */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 80px 20px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 800;
    /* Extra Bold */
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e0c26b;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-reverse {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-reverse:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.courses .section-title p {
    max-width: 900px;
}

.highlight-message {
    color: #fff;
    font-weight: 700;
    margin: 30px auto 0;
    font-size: 1.25rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #2c6e4b);
    padding: 25px 45px;
    border-radius: 8px;
    border-left: 6px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(33, 83, 56, 0.25);
    max-width: 900px;
    position: relative;
    overflow: hidden;
    line-height: 1.5;
}

.highlight-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    pointer-events: none;
}

.highlight-message::after {
    content: '\f10d';
    /* quote-left icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   3. HEADER
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(33, 83, 56, 0.95);
    /* Primary with opacity */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

header .container {
    height: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    font-family: var(--font-heading);
    /* Kept for potential text next to logo */
    font-size: 1.5rem;
    /* Kept for potential text next to logo */
    font-weight: 700;
    /* Kept for potential text next to logo */
    color: var(--secondary-color);
    /* Kept for potential text next to logo */
    gap: 10px;
    /* Kept for spacing between logo image and text */
}

.logo-img {
    height: 60px;
    /* Adjust based on header height (80px) */
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta:hover {
    /* Keep color same, just lift */
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================================
   3.5 DROPDOWN MENU
   ========================================= */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 220px;
    display: block;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--secondary-color);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    padding-left: 25px;
}

.dropdown-menu a::after {
    display: none;
    /* Remove underline effect from main links */
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        border-top: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown>a .fa-chevron-down {
        transition: transform var(--transition-fast);
    }

    .dropdown.active>a .fa-chevron-down {
        transform: rotate(180deg);
    }
}

.mobile-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 90vh;
    /* Reduced height to show content below */
    background: linear-gradient(rgba(33, 83, 56, 0.85), rgba(33, 83, 56, 0.7)), url('https://images.unsplash.com/photo-1479839672679-a46483c0e7c8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 1200px;
    /* Increased to fit single line */
    padding: 20px;
}

.hero-subtitle {
    display: block;
    color: var(--secondary-color);
    font-size: 3rem;
    /* Make it a large highlight */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    /* More spacing */
    font-family: var(--font-heading);
    /* Use serif heading font for authority */
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    /* All White */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-150%);
        transition: transform var(--transition-fast);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 120px 0 60px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        white-space: normal;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-large {
        width: 100%;
        padding: 15px 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .highlight-message {
        padding: 20px;
        font-size: 1.1rem;
        margin: 20px 15px 0;
    }
}

/* =========================================
   6. NEWS TICKER
   ========================================= */
.news-ticker {
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    height: 40px;
    align-items: center;
    overflow: hidden;
    /* Restore overflow hidden on parent */
    position: relative;
    border-bottom: 2px solid var(--secondary-color);
}

.ticker-title {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 900;
    /* Extra Bold */
    white-space: nowrap;
    /* Force single line */
    text-transform: uppercase;
    font-size: 0.9rem;
    /* Bold */
    text-transform: uppercase;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    /* Separator shadow */
    margin-right: 20px;
    /* Space between title and scrolling text */
}

.ticker-content {
    display: flex;
    align-items: center;
    animation: ticker 12s linear infinite;
    /* Faster speed */
    white-space: nowrap;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 50px;
    font-size: 0.9rem;
}

.ticker-item a {
    color: var(--text-light);
    /* Inherit white text */
    text-decoration: none;
    transition: color 0.2s;
}

.ticker-item a:hover {
    color: var(--secondary-color);
    /* Gold on hover */
    text-decoration: underline;
}

.ticker-item::after {
    content: '|';
    margin-left: 50px;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   7. WHY FOA & COURSES
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.bg-accent {
    background-color: var(--accent-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    border-top: 4px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.course-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.course-duration {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.course-features {
    margin-bottom: 30px;
}

.course-features li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-features li i {
    color: var(--success-color);
}

.btn-block {
    display: block;
    text-align: center;
}



/* Success Stories Carousel (Fallback/Alternative use) */
.stories-carousel {
    display: none;
    /* Hidden for now as section is replaced */
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background-color: #1a422d;
    /* Darker Green */
    color: #fff;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col.footer-right {
    text-align: left;
}

.footer-col.footer-right ul {
    list-style: none;
    padding: 0;
}

.footer-col.footer-right ul li {
    justify-content: flex-start;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
    /* Restoring shift for left-aligned items */
}

.footer-col.footer-right .contact-list li {
    justify-content: flex-start;
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #ccc;
}

.contact-list li i {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 2rem;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

/* =========================================
   12. CONTACT PAGE STYLES
   ========================================= */
.contact-hero {
    background: linear-gradient(rgba(33, 83, 56, 0.9), rgba(33, 83, 56, 0.9)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&q=80') center/cover;
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.hero-simple-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .hero-simple-content h1 {
        font-size: 2.2rem;
    }

    .contact-hero {
        padding: 120px 0 40px;
    }
}

.contact-form-title {
    text-align: left;
    margin-bottom: 30px;
}

.success-message {
    text-align: center;
    padding: 40px;
    background: #f0f7f4;
    border-radius: 12px;
    border: 1px solid #c8e6c9;
    margin-bottom: 30px;
}

.success-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-message p {
    color: #555;
    font-size: 1.1rem;
}

.contact-form-title p {
    margin: 0;
    max-width: 100%;
}

.hero-simple-content p {
    font-size: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-container {
    background: #fff;
    padding: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #fff;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23215338' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--secondary-color);
}

.info-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}

/* FAQs */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .highlight-message {
        padding: 15px;
        font-size: 1rem;
    }
}

/* =========================================
   13. RESPONSIVE UPDATES (Cleanup)
   ========================================= */
@media (max-width: 768px) {
    .ticker-content {
        animation: ticker 10s linear infinite;
        /* Faster on mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-col.footer-right {
        text-align: left;
    }

    .footer-col.footer-right ul li,
    .footer-col.footer-right .contact-list li {
        justify-content: flex-start;
    }
}