.forecast-pdf {
    transition: transform 0.3s;
    cursor: pointer;
}
.forecast-pdf:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.nav-pills .nav-link.active {
    background-color: #0d6efd;
}
.breaking-news {
    background-color: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin-bottom: 2rem;
}
.pdf-container {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}
.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.pdf-container:hover .pdf-overlay {
    opacity: 1;
}


.fa-cloud-sun, .fa-bolt, .fa-microphone {
    color: #ffffff;
    font-size: 2rem;
}

.fab {
    width: 1.25rem;
    height: 1.25rem;
    text-align: center;
    font-size: 1.25rem;
}

.social-header {
    background: linear-gradient(to right, #6a0000, #8b0000);
    color: white;
    padding: 10px 15px;
    font-weight: 500;
}

.social-icons {
    padding: 15px;
    background-color: #f8f9fa;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.card-header {
    position: relative;
    color: #ffffff;
    background: linear-gradient(90deg, #333333 0%, #4d0000 100%);
    padding: 0.75rem;
    border: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.facebook {
    color: #1877F2;
}

.twit {
    color: #1DA1F2;
}

.instagram {
    color: #E4405F;
}

.youtube {
    color: #FF0000;
}

.tiktok {
    color: #000000;
}

.col-lg-8 {
    width: 100%;
}

/* Responsive layout improvements */
@media (max-width: 991.98px) {
    .col-lg-4 {
        margin-top: 2rem;
    }
}

/* Card improvements */
.card.border-grey {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card.border-grey:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Social media improvements */
.social-icon {
    border-radius: 50%;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Popular news improvements */
.list-group-item {
    border: none;
    padding: 0.75rem 0;
}

.list-group-item:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

.list-group-item a {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.list-group-item a:hover {
    color: #4d0000;
    text-decoration: underline;
}



.container.mt-3 {
    margin-top: 40px; /* Increase margin to ensure separation from the main content */
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    padding: 0 30px; /* Add padding for more space on the sides */
}

.col-md-6, .col-lg-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 20px; /* Ensure consistent spacing between cards */
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Align content and button */
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.btn {
    align-self: flex-start; /* Align button to the start */
    margin-top: auto; /* Push button to the bottom */
}

/* ===== MODERN NEWS SECTION STYLING ===== */

/* Modern News Grid Layout */
.news-section {
    margin-bottom: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #4d0000;
}

.news-card.featured {
    grid-column: span 2;
    min-height: 400px;
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card.featured .news-card-image {
    height: 250px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(77, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.news-card-category {
    background: #4d0000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card.featured .news-card-title {
    font-size: 1.5rem;
}

.news-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.news-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.news-card-read-more {
    background: #4d0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-card-read-more:hover {
    background: #660000;
    transform: translateX(2px);
    color: white;
    text-decoration: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4d0000, #ff6b6b);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .news-card-content {
        padding: 1rem;
    }
    
    .news-card-title {
        font-size: 1.125rem;
    }
    
    .news-card.featured .news-card-title {
        font-size: 1.25rem;
    }
}

/* Modern Breaking News Banner */
.breaking-news-modern {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.breaking-news-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.breaking-news-modern .badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
}

.breaking-news-modern marquee {
    font-weight: 500;
    font-size: 1.1rem;
}