/* Homepage Specific Styles - High Specificity */

/* Hero Section */
body .hero-section {
    background: linear-gradient(135deg, rgba(45, 92, 61, 0.8) 0%, rgba(74, 122, 89, 0.8) 50%, rgba(143, 191, 143, 0.8) 100%) !important;
    background-size: 200% 200% !important;
    background-position: center !important;
    color: white !important;
    padding: 80px 0 !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    animation: heroZoom 20s ease-in-out infinite !important;
}

@keyframes heroZoom {
    0% {
        background-position: 0% 50% !important;
    }
    50% {
        background-position: 100% 50% !important;
    }
    100% {
        background-position: 0% 50% !important;
    }
}

body .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

body .hero-content {
    position: relative;
    z-index: 2;
}

/* Quick Actions Section */
body .quick-actions {
    background: #f8f9fa !important;
    padding: 60px 0 !important;
}

body .action-card {
    background: white !important;
    border-radius: 0 !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    border: none !important;
}

body .action-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

body .action-icon {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #2D5C3D, #4a7a59) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    color: white !important;
    font-size: 24px !important;
}

/* Services Section */
body .services-section {
    padding: 80px 0 !important;
}

body .service-card {
    background: white !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
}

body .service-card:hover {
    transform: translateY(-5px) !important;
}

body .service-image {
    height: 200px !important;
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6c757d !important;
    font-size: 48px !important;
}

/* News Section */
body .news-section {
    background: #f8f9fa !important;
    padding: 80px 0 !important;
}

body .news-card {
    background: white !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
}

body .news-card:hover {
    transform: translateY(-5px) !important;
}

body .news-date {
    color: #6c757d !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

/* CTA Section */
body .cta-section {
    background: linear-gradient(135deg, #3baf6c, #8fbf8f) !important;
    color: white !important;
    padding: 60px 0 !important;
    text-align: center !important;
}

body .btn-custom {
    padding: 12px 30px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

body .btn-custom:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Navigation */
body .navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 60px !important;
}

/* Match main app navbar styling exactly */
body #topMenu {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 60px !important;
}

body .navbar-collapse {
    padding: 0 !important;
    margin: 0 !important;
}

body .navbar-nav {
    padding: 0 !important;
    margin: 0 !important;
}

/* Container with equal top and bottom padding */
body .navbar-custom .container {
    padding: 10px 15px !important;
    display: flex !important;
    align-items: flex-start !important;
    min-height: 60px !important;
}

/* Logo alignment to top of navigation items */
body .navbar-brand {
    display: flex !important;
    align-items: flex-start !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .navbar-brand img {
    height: 50px !important;
}

/* Ensure logo is same size and position for both logged in and logged out states */
body .navbar-brand img.logo,
body .navbar-brand img {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
}

/* Override any conflicting logo styles */
body .home-logo {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
}

body .nav-link {
    font-weight: 500 !important;
    color: #495057 !important;
    transition: color 0.3s ease !important;
}

body .nav-link:hover {
    color: #2D5C3D !important;
}

body .btn-login {
    background: linear-gradient(135deg, #2D5C3D, #4a7a59) !important;
    border: none !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

body .btn-login:hover {
    background: linear-gradient(135deg, #1b2e22, #2D5C3D) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(45, 92, 61, 0.3) !important;
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    body .hero-section {
        padding: 60px 0 !important;
    }
    
    body .action-card, 
    body .service-card, 
    body .news-card {
        margin-bottom: 30px !important;
    }
}

/* Override any conflicting styles */
body main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body .container {
    max-width: 1200px !important;
}

/* Ensure proper spacing */
body .hero-section {
    margin-top: 60px !important; /* Reduced to match main app navbar height */
}
