/* News Page Redesign - Professional News Platform */

/* Hero Section */
.news-hero {
    background: linear-gradient(135deg, #09552F 0%, #063d21 100%);
    margin-top: 80px;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.4;
}

.news-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #6FCF4D;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.news-hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* News Content Layout */
.news-content-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

/* Category Filters */
.news-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    border-color: #09552F;
    color: #09552F;
    background: rgba(9, 85, 47, 0.05);
}

.filter-btn.active {
    background: #09552F;
    color: white;
    border-color: #09552F;
}

/* News Grid */
.news-grid {
    display: grid;
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px) !important;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-card-meta .category {
    background: #09552F;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.news-card-meta .date {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-meta .date::before {
    content: '•';
    color: #09552F;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    color: #09552F;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 10px;
    color: #063d21;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-state i {
    font-size: 2rem;
    color: #09552F;
    margin-bottom: 15px;
}

.loading-state p {
    font-size: 1.1rem;
}

/* Modern Loader Animation */
.modern-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #6FCF4D;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-circle:nth-child(1) {
    border-top-color: #6FCF4D;
    animation-delay: -0.45s;
}

.loader-circle:nth-child(2) {
    border-top-color: #09552F;
    animation-delay: -0.3s;
}

.loader-circle:nth-child(3) {
    border-top-color: #5fc03d;
    animation-delay: -0.15s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover:not(:disabled) {
    border-color: #09552F;
    color: #09552F;
    background: rgba(9, 85, 47, 0.05);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-num:hover,
.page-num.active {
    background: #09552F;
    color: white;
    border-color: #09552F;
}

/* Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: auto;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #09552F;
    font-size: 1.2rem;
}

/* Sidebar Cards */
.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.sidebar-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.sidebar-card:hover {
    background: #f8f9fa;
    border-color: #09552F;
}

.sidebar-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-card-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
    line-height: 1.3;
}

.sidebar-card-content p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Sidebar List */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sidebar-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.sidebar-list-item:hover {
    background: #f8f9fa;
    border-color: #09552F;
}

.sidebar-list-item i {
    color: #09552F;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sidebar-list-item h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.sidebar-list-item p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* View All Button */
.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #09552F;
    border: 2px solid #09552F;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-all-btn:hover {
    background: #09552F;
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #09552F 0%, #063d21 100%);
    color: white;
}

.newsletter-section .sidebar-title {
    color: white;
}

.newsletter-section .sidebar-title i {
    color: #6FCF4D;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #6FCF4D;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 12px;
    background: #6FCF4D;
    color: #09552F;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: #5fc03d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 207, 77, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        grid-row: 2;
        max-width: 100%;
        height: auto;
    }
    
    .sidebar-section {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 40px 0;
        margin-top: 70px;
    }
    
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .news-hero p {
        font-size: 1rem;
    }
    
    .news-content-section {
        padding: 40px 0;
    }
    
    .news-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .news-card-image {
        height: 200px;
    }
    
    .news-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .sidebar-section {
        padding: 20px;
        min-height: auto;
    }
    
    .news-sidebar {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .news-hero h1 {
        font-size: 1.75rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}