/* News Page Specific Styles */
.news-page {
    overflow-x: hidden;
}

/* ================================
   Professional aesthetic overrides
   (kept at top for fast load)
   ================================ */
.news-page{
    --n-ink:#0f172a;
    --n-muted:#64748b;
    --n-line:rgba(2,6,23,.10);
    --n-soft:#f5f7fb;
    --n-accent:#0b4d4d;
    --n-accent2:#0b2a4a;
    background: var(--n-soft);
}

.news-hero{
    background: radial-gradient(1200px 420px at 20% 20%, rgba(255,255,255,.16), transparent 60%),
                linear-gradient(135deg, #0b2a4a 0%, #0b4d4d 55%, #06182b 100%);
    min-height: 420px;
}

.news-hero::before{
    opacity: .22;
}

.news-hero .hero-content{max-width: 860px; margin: 0 auto;}
.news-hero__kicker{display:inline-flex; gap:10px; align-items:center; font-weight:800; letter-spacing:.16em; text-transform:uppercase; font-size:.78rem; color: rgba(255,255,255,.88); margin-bottom: 12px;}
.news-hero h1{font-size: clamp(2.1rem, 3.4vw, 3.35rem); font-weight: 900; letter-spacing: -.02em;}
.news-hero p{font-size: 1.05rem; max-width: 720px; margin-left:auto; margin-right:auto; opacity: .95;}

.news-search{margin-top: 18px;}
.news-search__row{
    display:flex;
    align-items:center;
    gap:10px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 10px 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.news-search__icon{width:40px; height:40px; border-radius:999px; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.14); color:#fff;}
.news-search__input{
    flex:1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 8px 6px;
}
.news-search__input::placeholder{color: rgba(255,255,255,.80); font-weight:600;}
.news-search__btn{
    border: none;
    background: #fff;
    color: var(--n-accent2);
    font-weight: 900;
    padding: 10px 18px;
    border-radius: 999px;
}
.news-search__btn:hover{filter: brightness(.98)}
.news-search__hint{margin-top: 10px; color: rgba(255,255,255,.90); font-weight: 600;}
.news-search__hint a{color:#fff; text-decoration: underline; text-underline-offset: 3px;}

.news-categories{background: var(--n-soft); padding: 54px 0;}
.category-tab{
    text-transform:none;
    letter-spacing: 0;
    font-size: .95rem;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--n-line);
    color: var(--n-muted);
    background: rgba(255,255,255,.9);
}
.category-tab:hover,
.category-tab.active{
    background: rgba(11,77,77,.10);
    border-color: rgba(11,77,77,.25);
    color: var(--n-accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(2,6,23,.10);
}

.featured-article{border-radius: 18px; box-shadow: 0 24px 60px rgba(2,6,23,.12);}
.featured-article::before{display:none;}
.featured-title{color: var(--n-ink);}
.featured-article:hover .featured-title{color: var(--n-accent);}
.btn-read-more{background: linear-gradient(135deg, var(--n-accent) 0%, var(--n-accent2) 100%); border-radius: 999px;}

.news-grid{gap: 22px;}
.news-card{
    border-radius: 16px;
    border: 1px solid var(--n-line);
    box-shadow: 0 14px 30px rgba(2,6,23,.08);
}
.news-card:hover{transform: translateY(-6px); box-shadow: 0 22px 54px rgba(2,6,23,.12);}

.news-image img{transition: transform .55s ease;}
.news-card:hover .news-image img{transform: scale(1.04);}

.news-title{color: var(--n-ink); font-weight: 900; letter-spacing: -.01em;}
.news-excerpt{color: var(--n-muted);}

.news-category{
    background: rgba(11,77,77,.12);
    color: var(--n-accent);
    border: 1px solid rgba(11,77,77,.22);
    text-transform:none;
}

/* Modal */
.news-modal{border-radius: 16px; overflow:hidden; border: 1px solid var(--n-line);}
.news-modal .modal-header{background: #fff; border-bottom: 1px solid var(--n-line);} 
.news-modal__meta{color: var(--n-muted); font-weight: 700; font-size: .9rem; margin-bottom: 4px;}
.news-modal .modal-title{font-weight: 900; color: var(--n-ink); letter-spacing: -.01em;}
.news-modal__img{border-radius: 14px; overflow:hidden; margin-bottom: 14px; border:1px solid var(--n-line);} 
.news-modal__img img{width:100%; height:auto; display:block; max-height: 420px; object-fit: cover;}
.news-modal__content{color: var(--n-ink); line-height: 1.75;}

@media (max-width: 768px){
    .featured-content{grid-template-columns: 1fr;}
    .featured-image{height: 260px;}
    .news-grid{grid-template-columns: 1fr;}
    .news-search__row{border-radius: 16px; flex-wrap: wrap;}
    .news-search__btn{width:100%;}
}

/* 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;
}

/* ================================
     Compact modern news cards
     (requested: smaller cards)
     ================================ */
.news-page .news-grid{gap: 16px;}
.news-page .news-card{border-radius: 14px; box-shadow: 0 12px 28px rgba(2,6,23,.08);}
.news-page .news-image{height: 150px;}
.news-page .news-content{padding: 14px 14px 16px;}
.news-page .news-title{font-size: 1.02rem; line-height: 1.25;}
.news-page .news-excerpt{font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;}
.news-page .news-meta{font-size: .82rem;}
.news-page .news-category{font-size: .74rem; padding: 6px 10px;}

@media (min-width: 992px){
    .news-page .news-grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}

@media (max-width: 576px){
    .news-page .news-image{height: 140px;}
    .news-page .news-title{font-size: .98rem;}
}