/* Custom Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-green: #004d00;
}

.bg-dark-green {
    background-color: var(--dark-green) !important;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Slider */
.carousel-item {
    /* 2000x800 aspect ratio = 2.5 */
    aspect-ratio: 2.5 / 1 !important;
    height: auto !important;
    min-height: auto !important;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.carousel-caption {
    bottom: 20%;
    text-align: left;
    background: none;
    padding: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Article Cards */
.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Article Detail */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        /* Allow aspect ratio to handle height */
        height: auto;
    }
    
    .carousel-caption {
        display: none !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}