/* News Page Specific Styles */
.news-page {
    overflow-x: hidden;
}

/* News Hero Section */
.news-hero {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(118, 75, 162, 0.9)), url('../../img/gallery-1.jpg');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding-top: 90px;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,186.7C960,192,1056,160,1152,138.7C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

.news-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.news-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.news-hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* News Categories */
.news-categories {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, #007bff, #764ba2);
    border-color: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Featured News */
.featured-news {
    margin-bottom: 60px;
}

.featured-article {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    z-index: 10;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-info {
    padding: 50px 40px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #6c757d;
}

.featured-category {
    background: linear-gradient(135deg, #007bff, #764ba2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-date {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.featured-date i {
    margin-right: 8px;
    color: #007bff;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-article:hover .featured-title {
    color: #007bff;
}

.featured-excerpt {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-read-more {
    background: linear-gradient(135deg, #007bff, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    color: white;
}

.btn-read-more:hover::before {
    left: 100%;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* News Card */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #764ba2, #28a745);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.news-card .news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-card .news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.news-card .news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-card .news-content {
    padding: 25px 20px;
}

.news-card .news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #007bff;
}

.news-card .news-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #6c757d;
}

.news-card .news-author {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.news-card .news-author i {
    margin-right: 8px;
    color: #007bff;
}

.news-card .news-readtime {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.news-card .news-readtime i {
    margin-right: 8px;
    color: #28a745;
}

/* Sidebar */
.news-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #764ba2);
    border-radius: 3px;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post:hover {
    transform: translateX(5px);
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.popular-post:hover h6 {
    color: #007bff;
}

.popular-post-meta {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.tag:hover {
    background: linear-gradient(135deg, #007bff, #764ba2);
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #f8f9fa, white);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.newsletter-signup h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-signup p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.15);
}

.newsletter-form .btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        order: -1;
    }
    
    .featured-info {
        padding: 30px 25px;
    }
    
    .news-sidebar {
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 2.5rem;
    }
    
    .news-hero p {
        font-size: 1.1rem;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .category-tab {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-info {
        padding: 25px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .sidebar-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .news-card .news-content {
        padding: 20px 15px;
    }
    
    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .popular-post {
        gap: 10px;
    }
    
    .popular-post-image {
        width: 60px;
        height: 60px;
    }
}

/* Animation Keyframes */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Search Results */
.search-results {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.search-info {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.search-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.search-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h4 {
    margin-bottom: 15px;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}