/* assets/css/main.css */

/* --- 1. VARIABLES --- */
:root {
    --primary: #006837;       /* Nigerian Green */
    --primary-dark: #004d29;
    --secondary: #D4AF37;     /* Gold */
    --text-dark: #2C3E50;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); background-color: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 3. TOP BAR --- */
.top-bar { background-color: var(--primary-dark); color: #fff; font-size: 0.85rem; padding: 10px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.contact-info span { margin-right: 20px; }
.contact-info i { color: var(--secondary); margin-right: 5px; }
.social-links a { margin-left: 15px; color: #ccc; }
.social-links a:hover { color: var(--secondary); }
.staff-link { color: var(--secondary) !important; margin-right: 15px; font-weight: 600; }

/* --- 4. MAIN HEADER --- */
.main-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo */
.logo-area { display: flex; align-items: center; }
.logo-img { height: 50px; margin-right: 12px; }
.logo-text { display: flex; flex-direction: column; }
.school-name { font-family: 'Poppins', serif; font-weight: 700; font-size: 1.2rem; color: var(--primary); line-height: 1.2; }
.school-motto { font-size: 0.7rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }

/* Navigation */
.nav-menu > ul { display: flex; align-items: center; gap: 25px; }
.nav-menu > ul > li { position: relative; }
.nav-menu > ul > li > a { font-weight: 500; font-size: 0.95rem; color: var(--text-dark); padding: 10px 0; font-family: 'Poppins', sans-serif; }

/* Hover Effects */
.nav-menu > ul > li > a:hover,
.nav-menu > ul > li > a.active { color: var(--primary); }
.nav-menu > ul > li > a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--secondary); transition: 0.3s; }
.nav-menu > ul > li > a:hover::after,
.nav-menu > ul > li > a.active::after { width: 100%; }

/* --- 5. DROPDOWN MENUS --- */
.dropdown-content {
    position: absolute; top: 100%; left: 0; width: 220px; background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-top: 3px solid var(--secondary);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s;
    display: block; z-index: 1001;
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content li { border-bottom: 1px solid #f1f1f1; }
.dropdown-content li:last-child { border-bottom: none; }
.dropdown-content a { display: block; padding: 12px 20px; font-size: 0.9rem; color: #555 !important; }
.dropdown-content a:hover { background: #f9f9f9; color: var(--primary) !important; padding-left: 25px; }
.dropdown .fa-chevron-down { font-size: 0.7rem; margin-left: 5px; opacity: 0.6; }

/* --- 6. CTA BUTTON --- */
.nav-btn { background: var(--primary); color: #fff !important; padding: 10px 25px; border-radius: 50px; font-weight: 600; box-shadow: 0 4px 6px rgba(0,104,55,0.2); transition: 0.3s; }
.nav-btn:hover { background: var(--secondary); color: var(--primary-dark) !important; transform: translateY(-2px); }
.nav-btn::after { display: none; }

/* --- 7. MOBILE RESPONSIVE --- */
.mobile-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 900; display: none; }
.menu-overlay.active { display: block; }

@media (max-width: 992px) {
    .top-bar { display: none; }
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
        background: #fff; padding: 80px 20px 20px; transition: 0.3s;
        z-index: 1001; box-shadow: -5px 0 15px rgba(0,0,0,0.1); overflow-y: auto;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav-menu ul li { width: 100%; border-bottom: 1px solid #f1f1f1; }
    .nav-menu > ul > li > a { display: flex; justify-content: space-between; padding: 15px 0; width: 100%; }
    .cta-item { margin-top: 20px; text-align: center; border: none !important; }
    .nav-btn { display: inline-block; }

    /* Mobile Dropdowns */
    .dropdown-content { position: static; box-shadow: none; border: none; background: #f9f9f9; display: none; padding-left: 15px; width: 100%; opacity: 1; visibility: visible; transform: none; }
    .dropdown.active .dropdown-content { display: block; }
    .dropdown.active .fa-chevron-down { transform: rotate(180deg); }
}


/* --- 8. FOOTER STYLES --- */
.main-footer {
    background-color: #1a1a1a; /* Very dark grey, almost black */
    color: #b0b0b0;
    padding-top: 70px;
    font-size: 0.95rem;
    margin-top: auto; /* Pushes footer to bottom if page is short */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

/* Footer Columns */
.footer-col { margin-bottom: 20px; }
.footer-logo-img { height: 60px; margin-bottom: 20px; filter: brightness(0) invert(1); /* Makes logo white */ }
.footer-desc { margin-bottom: 20px; line-height: 1.8; }
.footer-heading { color: #fff; font-size: 1.1rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-heading::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--secondary);
}

/* Footer Links */
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b0b0b0; transition: 0.3s; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }

/* Contact List */
.contact-list li { display: flex; align-items: flex-start; margin-bottom: 15px; }
.contact-list i { color: var(--secondary); margin-right: 15px; margin-top: 5px; }

/* Newsletter Form */
.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input {
    width: 100%; padding: 12px; border: none; outline: none; border-radius: 4px 0 0 4px; background: #333; color: #fff;
}
.newsletter-form button {
    padding: 0 20px; background: var(--primary); border: none; color: #fff; border-radius: 0 4px 4px 0; cursor: pointer; transition: 0.3s;
}
.newsletter-form button:hover { background: var(--secondary); color: #000; }

/* Socials */
.footer-socials a {
    display: inline-block; width: 35px; height: 35px; background: rgba(255,255,255,0.1); color: #fff;
    text-align: center; line-height: 35px; border-radius: 50%; margin-right: 10px; transition: 0.3s;
}
.footer-socials a:hover { background: var(--secondary); color: var(--primary-dark); transform: translateY(-3px); }

/* Bottom Bar */
.footer-bottom { background: #111; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.footer-bottom-links a { margin-left: 20px; color: #777; font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--secondary); }

/* Back to Top Button */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: var(--secondary); color: var(--primary-dark);
    text-align: center; line-height: 45px; border-radius: 5px;
    font-size: 1.2rem; transition: 0.3s; opacity: 0; visibility: hidden; z-index: 99;
}
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); color: #fff; transform: translateY(-5px); }

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
    .footer-bottom-links a { margin: 0 10px; }
}

/* ===== MODERN HOMEPAGE COMPATIBILITY ===== */

/* Container for all sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern button styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: #e6b800;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-icon i {
    margin-right: 8px;
}

/* Section titles compatibility */
.section-title-modern,
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    text-align: center;
}

.section-subtitle-modern {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Grid compatibility */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Ensure footer is always visible */
.main-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Modern homepage section base styles */
.hero-modern-section,
.quick-access-modern,
.features-modern-section,
.updates-modern-section,
.virtual-tour-modern,
.contact-modern-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Emergency display fixes */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Responsive base */
@media (max-width: 992px) {
    .section-title-modern,
    .section-title {
        font-size: 2rem;
    }
    
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title-modern,
    .section-title {
        font-size: 1.8rem;
    }
    
    .grid-2-col,
    .grid-3-col {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Basic animation classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero modern compatibility */
.hero-modern-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
}

.hero-modern-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-modern-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-modern-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-modern-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,104,55,0.9) 0%, rgba(0,104,55,0.7) 100%);
    z-index: 2;
}

.hero-modern-content {
    position: relative;
    z-index: 3;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-modern-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

/* ===== COMPACT HERO STATS ===== */

.hero-modern-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    align-items: center;
    max-width: 1100px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0 auto;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    position: relative;
}

/* Add separators between stats (except last) */
.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.hero-stat i {
    font-size: 1.8rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.stat-number-modern {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    color: white;
    white-space: nowrap;
}

.stat-label-modern {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
    display: block;
    margin-top: 3px;
    white-space: nowrap;
}

/* Responsive for compact version */
@media (max-width: 1100px) {
    .hero-modern-stats {
        max-width: 950px;
        padding: 18px 25px;
    }
    
    .stat-number-modern {
        font-size: 1.8rem;
    }
    
    .hero-stat i {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .hero-modern-stats {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 600px;
        padding: 20px;
        gap: 20px;
    }
    
    .hero-stat {
        flex: 0 0 calc(50% - 10px);
        justify-content: flex-start;
        text-align: left;
    }
    
    .hero-stat:not(:last-child)::after {
        display: none;
    }
    
    /* Add vertical separators for 2-column layout */
    .hero-stat:nth-child(2)::after {
        display: block;
        right: -10px;
        height: 30px;
    }
}

@media (max-width: 600px) {
    .hero-modern-stats {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        align-items: stretch;
    }
    
    .hero-stat {
        flex: 1;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .hero-stat:last-child {
        border-bottom: none;
    }
    
    .hero-stat:not(:last-child)::after,
    .hero-stat:nth-child(2)::after {
        display: none;
    }
}

.title-highlight {
    color: var(--secondary);
}

/* Quick access basic styles */
.access-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.access-card-modern {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
}

/* Fix any potential z-index issues */
.main-header {
    z-index: 1000;
}

.main-footer {
    z-index: 10;
}

/* Remove any conflicting animations */
.news-ticker,
.hero-slider,
.features-grid {
    display: none;
}

/* ===== QUICK ACCESS CAROUSEL - SQUARE CARDS ===== */

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 60px; /* Space for arrows */
}

.carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.access-carousel {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.access-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 25px;
    padding: 5px; /* Small padding for shadow */
}

/* SQUARE CARD STYLES - Keep original square shape */
.access-card-modern.carousel-slide {
    flex: 0 0 calc(33.333% - 16.67px); /* 3 cards visible, accounting for gap */
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary);
    /* Square-ish aspect ratio */
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Different border colors for each card */
.access-card-modern.carousel-slide:nth-child(1) { border-top-color: var(--primary); }
.access-card-modern.carousel-slide:nth-child(2) { border-top-color: var(--secondary); }
.access-card-modern.carousel-slide:nth-child(3) { border-top-color: #4CAF50; }
.access-card-modern.carousel-slide:nth-child(4) { border-top-color: #2196F3; }

/* Original square icon styles */
.access-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px; /* Square-ish corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s;
}

.access-card-modern.carousel-slide:nth-child(2) .access-icon-modern {
    background: linear-gradient(135deg, var(--secondary), #c69500);
}

.access-icon-modern i {
    font-size: 2.5rem;
    color: white;
}

/* Card text styles */
.access-card-modern.carousel-slide h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.access-card-modern.carousel-slide p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Card links */
.access-links-modern {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.access-link-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.access-link-btn.primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.access-link-btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

.access-link-btn.outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.access-link-btn.outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 104, 55, 0.3);
}

.carousel-arrow:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

/* Hover effect for carousel cards */
.access-card-modern.carousel-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.access-card-modern.carousel-slide:hover .access-icon-modern {
    transform: rotate(5deg) scale(1.05);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .access-card-modern.carousel-slide {
        flex: 0 0 calc(33.333% - 16.67px); /* Still 3 cards */
        min-height: 300px;
    }
    
    .carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 992px) {
    .access-card-modern.carousel-slide {
        flex: 0 0 calc(50% - 12.5px); /* 2 cards visible on tablet */
        min-height: 320px;
    }
    
    .carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .access-card-modern.carousel-slide {
        flex: 0 0 calc(100% - 20px); /* 1 card visible on mobile */
        min-height: 300px;
    }
    
    .carousel-wrapper {
        padding: 0 45px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .access-icon-modern {
        width: 70px;
        height: 70px;
    }
    
    .access-icon-modern i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
    }
    
    .access-card-modern.carousel-slide {
        padding: 30px 20px;
    }
}

/* ===== FEATURES SECTION - MODERN FLOATING CARDS ===== */

.features-modern-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.features-modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54 54c-5.5 5.5-14.4 5.5-19.9 0-5.5-5.5-5.5-14.4 0-19.9 5.5-5.5 14.4-5.5 19.9 0 5.5 5.5 5.5 14.4 0 19.9z" fill="%23006837" fill-opacity="0.03"/></svg>');
    opacity: 0.5;
}

.features-grid-modern {
    display: flex !important;           /* Force Flexbox */
    flex-wrap: nowrap !important;       /* FORCE Single line */
    overflow-x: auto !important;        /* Enable scrolling */
    gap: 25px;
    margin-top: 50px;
    padding: 20px 5px 40px 5px;   

.feature-card-modern {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,104,55,0.1);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,104,55,0.15);
}

.feature-icon-modern {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon-modern::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card-modern:hover .feature-icon-modern::after {
    transform: translateX(100%);
}

.feature-card-modern:hover .feature-icon-modern {
    transform: rotateY(180deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary), #e6b800);
}

.feature-icon-modern i {
    font-size: 2.8rem;
    color: white;
    transition: transform 0.4s ease;
}

.feature-card-modern:hover .feature-icon-modern i {
    transform: rotateY(-180deg);
}

.feature-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.feature-card-modern h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.feature-card-modern:hover h3::after {
    width: 80px;
}

.feature-card-modern p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1rem;
}

.feature-stats-modern {
    background: rgba(0,104,55,0.1);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-stats-modern {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.feature-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.feature-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.feature-card-modern:hover .feature-link-modern::after {
    width: 100%;
}

.feature-link-modern i {
    transition: transform 0.3s ease;
}

.feature-card-modern:hover .feature-link-modern i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .feature-card-modern {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .features-grid-modern {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 50px auto 0;
    }
    
    .feature-icon-modern {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon-modern i {
        font-size: 2.5rem;
    }
}