/* Homepage Custom Styles */

/* Card Image Heights */
.news-card-image,
.activity-card-image,
.gallery-card-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover Effects for Cards */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.card-hover:hover .news-card-image,
.card-hover:hover .activity-card-image,
.card-hover:hover .gallery-card-image {
    transform: scale(1.05);
}

/* News Category Tabs */
.nav-pills .nav-link {
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #6c757d;
    border: 1px solid transparent;
}

.nav-pills .nav-link:hover {
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
    border-color: rgba(0,123,255,0.2);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 20px;
}

/* Card Body Enhancements */
.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Read More Button */
.btn-outline-primary {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Responsive Image Heights */
@media (max-width: 768px) {
    .news-card-image,
    .activity-card-image,
    .gallery-card-image {
        height: 200px;
    }
}

@media (min-width: 1200px) {
    .news-card-image,
    .activity-card-image,
    .gallery-card-image {
        height: 280px;
    }
}

/* Section Headers */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px;
}

/* Stats Section Enhancements */
.stats-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Loading Animation */
.card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,123,255,0.1) 0%, rgba(0,86,179,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-hover:hover .image-overlay::before {
    opacity: 1;
}

/* Text Truncation */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animation Delays for AOS */
[data-aos="fade-up"]:nth-child(1) { animation-delay: 0.1s; }
[data-aos="fade-up"]:nth-child(2) { animation-delay: 0.2s; }
[data-aos="fade-up"]:nth-child(3) { animation-delay: 0.3s; }
[data-aos="fade-up"]:nth-child(4) { animation-delay: 0.4s; }
[data-aos="fade-up"]:nth-child(5) { animation-delay: 0.5s; }
[data-aos="fade-up"]:nth-child(6) { animation-delay: 0.6s; }