/* ===== Font Imports ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --eac-green: #006633;
    --eac-green-dark: #004d26;
    --eac-gold: #FFB81C;
    --eac-gold-dark: #cc9300;
    --eac-text: #1F2937;
    --font-heading: 'Century Gothic', 'Tw Cen MT', 'URW Gothic L', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Global Typography ===== */
body {
    font-family: var(--font-body);
    color: var(--eac-text);
    background-color: #f9fafb;
}

h1, h2, h3, h4, h5, h6,
.hero-content h1,
.program-card h5,
.footer-eac h5 {
    font-family: var(--font-heading);
}

/* =========================================
   1. Navbar & Top Bar
========================================= */
.navbar-eac {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative; 
}

.navbar-eac.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #ffffff;
}

.top-bar-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1px;
    font-weight: 800;
    line-height: 1.2px;
    font-family: 'Century Gothic';
}

.navbar-eac .nav-link {
    color: var(--eac-green-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: capitalize; 
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    font-family: var(--font-body);
}

.navbar-eac .nav-link:hover,
.navbar-eac .nav-link.active {
    color: var(--eac-gold-dark);
}

.navbar-eac .navbar-toggler {
    border-color: var(--eac-green);
}
.navbar-eac .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23006633' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-nav-apply {
    background-color: var(--eac-gold);
    color: var(--eac-green-dark) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    border-radius: 50rem;
    border: 2px solid var(--eac-gold);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 184, 28, 0.3);
    font-family: var(--font-heading);
}
.btn-nav-apply:hover {
    background-color: var(--eac-gold-dark);
    border-color: var(--eac-gold-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 184, 28, 0.5);
}

/* =========================================
   2. Hero Section & Video Background
========================================= */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-bottom: 100px; 
    padding-top: 80px;     
}

.page-hero {
    min-height: 50vh; 
    padding-top: 60px;
    padding-bottom: 80px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 77, 38, 0.65);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content h1 {
    font-weight: 800; 
}

.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-btn-group .btn {
    min-width: 260px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.btn-primary-eac {
    background-color: var(--eac-gold);
    color: var(--eac-green-dark);
    border: 2px solid var(--eac-gold);
    box-shadow: 0 4px 15px rgba(255, 184, 28, 0.4);
}
.btn-primary-eac:hover {
    background-color: var(--eac-gold-dark);
    border-color: var(--eac-gold-dark);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 184, 28, 0.5);
}

.btn-outline-hero {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}
.btn-outline-hero:hover {
    background-color: #ffffff;
    color: var(--eac-green-dark);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================
   3. Quick Access Bar
========================================= */
.quick-access {
    background: white;
    margin-top: -60px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

/* =========================================
   4. Courses & Program Elements
========================================= */
.program-card {
    transition: all 0.3s ease;
    border-radius: 4px; 
    overflow: hidden;
}
.program-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important; 
}

.btn-card-eac {
    background-color: var(--eac-green);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px; 
    padding: 0.6rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-body);
}
.btn-card-eac:hover {
    background-color: var(--eac-green-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 77, 38, 0.25);
}
.btn-card-eac i {
    transition: transform 0.3s ease;
}
.btn-card-eac:hover i {
    transform: translateX(4px); 
}

.course-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #4b5563;
    font-family: var(--font-body);
}
.course-features li i {
    color: var(--eac-green);
    margin-right: 0.75rem;
    margin-top: 4px;
    font-size: 1.1rem;
}
.course-features li span {
    font-weight: 600;
    color: var(--eac-text);
    line-height: 1.4;
}

/* Clean 2-Column Bulleted List for Entry Requirements */
.req-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2.5rem;
    max-width: 750px; 
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem 2rem;
    font-family: var(--font-body);
}
.req-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0; 
    font-size: 1rem; 
    font-weight: 500;
    color: #ffffff;
}
.req-list li i {
    color: var(--eac-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.req-list li strong {
    color: var(--eac-gold);
}

/* Make the last item (the summary rule) span full width and center */
.req-list li:last-child {
    grid-column: 1 / -1;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

/* Mobile fallback for 2-column list */
@media (max-width: 767.98px) {
    .req-list {
        grid-template-columns: 1fr; 
        max-width: 400px;
        gap: 1rem; 
    }
    .req-list li:last-child {
        grid-column: auto;
        justify-content: flex-start;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        margin-top: 0.5rem;
    }
}

/* =========================================
   5. Modern Footer
========================================= */
.footer-eac {
    background-color: var(--eac-green-dark);
    color: #d1d5db;
    position: relative;
}

.footer-eac::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--eac-gold) 0%, var(--eac-green) 50%, var(--eac-gold) 100%);
}

.footer-eac h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-eac p {
    color: #a7b0ad;
    line-height: 1.7;
    font-family: var(--font-body);
}

.footer-eac a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: var(--font-body);
}

.footer-eac a:hover {
    color: var(--eac-gold);
    transform: translateX(5px);
}

.footer-eac .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-eac .contact-item i {
    color: var(--eac-gold);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--eac-gold);
    color: var(--eac-green-dark) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* =========================================
   6. Responsive Media Queries
========================================= */
@media (min-width: 992px) {
    .navbar-eac .navbar-nav .nav-link {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-eac .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        width: 60%;
        background-color: rgba(255, 255, 255, 0.80);
        backdrop-filter: blur(8px);
        border-left: 1px solid rgba(0,0,0,0.05);
        box-shadow: -8px 8px 20px rgba(0,0,0,0.15);
        border-radius: 0 0 0 12px;
        padding: 1.5rem 1rem;
        z-index: 1050;
    }

    .navbar-eac .navbar-nav {
        width: 100%;
        align-items: flex-start;
    }
    .navbar-eac .navbar-nav .nav-link {
        text-align: left;
        padding: 0.75rem 0;
    }
    
    .btn-nav-apply {
        margin-top: 0.5rem;
        display: inline-block;
    }
}

/* =========================================
   7. Contact Page Styles
========================================= */

/* Contact Info List */
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}
.contact-info-list .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 102, 51, 0.1);
    color: var(--eac-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.contact-info-list h5 {
    font-weight: 700;
    color: var(--eac-green-dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}
.contact-info-list p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-body);
}

/* Contact Form Wrapper */
.form-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Custom Form Inputs */
.form-control-eac {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--eac-text);
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.form-control-eac:focus {
    background-color: #ffffff;
    border-color: var(--eac-green);
    box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.15);
    outline: none;
}
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

/* Map Section */
.map-section {
    margin-top: 3rem;
    border-top: 4px solid var(--eac-gold);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
}

/* =========================================
   8. Navbar Dropdown Menu & Anchors
========================================= */

/* Style the Dropdown Menu */
.dropdown-menu-eac {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 0.5rem;
    background-color: #ffffff;
    min-width: 280px;
}

/* Style the Dropdown Items */
.dropdown-menu-eac .dropdown-item {
    color: var(--eac-green-dark);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-family: var(--font-body);
}

/* Hover effect for Dropdown Items */
.dropdown-menu-eac .dropdown-item:hover {
    background-color: rgba(0, 102, 51, 0.08);
    color: var(--eac-green);
    padding-left: 1.25rem; /* Slight indent on hover */
}

/* Style the divider */
.dropdown-menu-eac .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e5e7eb;
}

/* Ensure sticky navbar doesn't cover section titles when jumping via dropdown */
section[id] {
    scroll-margin-top: 100px;
}

/* Make the dropdown arrow slightly smaller and aligned */
.navbar-eac .dropdown-toggle::after {
    font-size: 0.7rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* Dropdown animation */
.dropdown-menu-eac {
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust dropdown for mobile (inside the right-aligned collapse menu) */
@media (max-width: 991.98px) {
    .navbar-eac .dropdown-menu {
        position: static !important;
        transform: none !important;
        background-color: rgba(0, 102, 51, 0.05);
        border: none;
        box-shadow: none;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    .navbar-eac .dropdown-item {
        color: var(--eac-green-dark);
    }
}

/* =========================================
   9. Hover Dropdown for Desktop
========================================= */

/* Only apply hover effect on screens larger than 992px (Desktop) */
@media (min-width: 992px) {
    .navbar-eac .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; /* Removes the default gap so the hover isn't broken */
    }
    
    /* Optional: Keeps the arrow visible and rotated slightly when hovered */
    .navbar-eac .dropdown:hover > .dropdown-toggle {
        color: var(--eac-gold-dark);
    }
}