/* News Section Styles */
.news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(27, 67, 50, 0.15);
}

.news-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card .card-content {
    padding: 25px;
}

.news-date {
    color: #52B788;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Avenir', sans-serif;
}

.news-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1B4332;
    margin: 0 0 15px;
    line-height: 1.4;
    font-family: 'Avenir', sans-serif;
}

.news-card .card-text {
    color: #8B7355;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-card .btn-outline {
    border: 2px solid #52B788;
    color: #52B788;
    background: transparent;
}

.news-card .btn-outline:hover {
    background: #52B788;
    color: white;
    transform: translateY(-1px);
}

/* Admin buttons */
.admin-btn {
    margin: 0 10px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Avenir', sans-serif;
}

.admin-btn.btn-primary {
    background: linear-gradient(135deg, #1B4332 0%, #52B788 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
}

.admin-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.4);
    color: white;
    text-decoration: none;
}

.admin-btn.btn-outline {
    border: 2px solid #1B4332;
    color: #1B4332;
    background: transparent;
}

.admin-btn.btn-outline:hover {
    background: #1B4332;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-card .card-content {
        padding: 20px;
    }
    
    .news-card .card-title {
        font-size: 1.2rem;
    }
    
    .admin-btn {
        margin: 5px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .news-section .text-center.mt-4 {
        margin-top: 30px !important;
    }
}

@media (max-width: 480px) {
    .admin-btn {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
}

/* ========================================
   NEWS PAGE SPECIFIC STYLES
   ======================================== */

/* News Page Main Container */
.news-page-main {
    background-color: #f5f2e9;
}

/* News Hero Section */
.news-hero {
    min-height: 40vh;
    background: linear-gradient(135deg, #1B4332 0%, #24563d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 130px 0 50px 0;
}

/* News hero subtitle - improved contrast */
.news-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    opacity: 1;
}

/* News hero title - adjusted for smaller height */
.news-hero .hero-title {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
    /* Color and text-shadow defined in style.css */
}

/* Countdown widget - smaller for compact hero */
.countdown-widget-hero {
    padding: 10px 15px;
    margin-top: 15px;
}

.countdown-number-hero {
    font-size: 1.4rem;
}

.countdown-label-hero {
    font-size: 0.7rem;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/construction-bg.jpg') center/cover;
    opacity: 0.2;
    z-index: 1;
}

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

/* News Layout with Sidebar */
.news-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 67, 50, 0.1);
}

.widget-title {
    font-size: 1.3rem;
    color: #1B4332;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #52B788;
    padding-bottom: 10px;
}

/* Category Filter */
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-item {
    margin-bottom: 8px;
}

.category-filter-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #2c3e50;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.category-filter-btn:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: #1B4332;
}

.category-filter-item.active .category-filter-btn {
    background: linear-gradient(135deg, #1B4332, #52B788);
    color: white;
    border-color: #1B4332;
}

.selected-categories {
    margin-bottom: 30px;
    padding: 20px;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #52B788;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-categories h3 {
    margin: 0;
    color: #1B4332;
    font-size: 1.1rem;
}

.clear-all-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-all-filters:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-filter-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

/* News Header */
.news-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* News Card (enhanced) */
.news-page-main .news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(27, 67, 50, 0.1);
}

.news-page-main .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-page-main .news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-page-main .news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-page-main .news-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
}

.news-page-main .news-date .month {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.news-page-main .news-content {
    padding: 25px;
}

.news-page-main .news-category {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.news-title {
    margin: 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.news-title a:hover {
    color: var(--brand-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #333333;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(51, 51, 51, 0.4);
    color: white;
    background: #222222;
}

/* No Posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-posts-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-posts-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.no-posts h3 {
    color: var(--brand-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Pagination */
.news-pagination {
    text-align: center;
    margin-top: 40px;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    color: var(--brand-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(27, 67, 50, 0.2);
    transition: all 0.3s ease;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: var(--brand-primary);
    color: white;
}

/* Countdown Timer in Hero */
.countdown-widget-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 25px auto 0;
    max-width: 700px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-title-hero {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 600;
}

.countdown-timer-hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.countdown-item-hero {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 8px;
    transition: all 0.3s ease;
}

.countdown-item-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.countdown-number-hero {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.countdown-label-hero {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-date-hero {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ========================================
   RESPONSIVE STYLES FOR NEWS PAGE
   ======================================== */

/* Tablet */
@media (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .news-header h2 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-sidebar {
        position: static;
        order: -1;
    }

    .sidebar-widget {
        margin-bottom: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-page-main .news-card {
        margin: 0 15px;
    }

    .news-header h2 {
        font-size: 2rem;
    }

    .news-hero .hero-title {
        font-size: 2.5rem;
        margin-top: 40px;
    }

    .news-pagination .page-numbers {
        padding: 12px 18px;
        margin: 0 8px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .news-page-main .news-category {
        position: relative;
        z-index: 15;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        margin-bottom: 8px;
        margin-top: 15px;
    }

    .countdown-timer-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .countdown-number-hero {
        font-size: 1.8rem;
    }

    .countdown-widget-hero {
        padding: 15px 10px;
        margin-top: 20px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .news-section {
        padding: 40px 0;
    }

    .news-header {
        margin-bottom: 40px;
    }

    .news-page-main .news-content {
        padding: 20px;
    }

    .news-hero .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-top: 0;
    }

    .news-page-main .news-card {
        margin: 0 10px;
    }

    .read-more-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .countdown-timer-hero {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .countdown-item-hero {
        padding: 10px 5px;
    }

    .countdown-number-hero {
        font-size: 1.5rem;
    }

    .countdown-label-hero {
        font-size: 0.7rem;
    }
}
