/* ============================================
   NEWS PAGE - PROFESSIONAL DESIGN
   Primary Color: #1B9985
   Fully Isolated Styles (news-page- prefix)
   ============================================ */

/* === RESET & BASE === */
#news-page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#news-page-wrapper * {
    box-sizing: border-box;
}

/* === HERO SECTION === */
.news-page-hero {
    position: relative;
    background: linear-gradient(135deg, #1B9985 0%, #137a68 100%);
    padding: 100px 20px 80px;
    overflow: hidden;
}

.news-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.news-page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

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

.news-page-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.news-page-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 400;
}

/* === CONTAINER === */
.news-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === MAIN CONTENT === */
.news-page-main {
    background: #f8f9fa;
    padding: 60px 0;
}

/* === SECTION HEADERS === */
.news-page-section-header {
    margin-bottom: 40px;
}

.news-page-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1B9985;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-page-section-title i {
    font-size: 1.75rem;
}

/* === FEATURED SECTION === */
.news-page-featured-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    transform: translateY(-40px);
}

.news-page-featured-carousel-wrapper {
    position: relative;
}

.news-page-featured-swiper {
    padding: 0 60px;
    /* Hide default Swiper buttons */
    --swiper-navigation-size: 0;
}

/* Custom Navigation Buttons */
.news-page-carousel-prev,
.news-page-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #1B9985;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.news-page-carousel-prev:hover,
.news-page-carousel-next:hover {
    background: #137a68;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(27, 153, 133, 0.4);
}

.news-page-carousel-prev {
    left: 0;
}

.news-page-carousel-next {
    right: 0;
}

/* Swiper Slide */
.swiper-slide {
    height: auto;
}

/* Featured Card - Compact & Elegant */
.news-page-featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.news-page-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(27, 153, 133, 0.2);
}

.news-page-featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-page-featured-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.news-page-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}

.news-page-featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #adb5bd;
    font-size: 3rem;
}

.news-page-featured-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.news-page-badge {
    display: inline-block;
    background: #1B9985;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.news-page-featured-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-page-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    color: #6c757d;
    font-size: 0.8rem;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.news-page-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-page-meta-item i {
    color: #1B9985;
    font-size: 0.85rem;
}

.news-page-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1B9985;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
    width: fit-content;
}

.news-page-featured-card:hover .news-page-featured-cta {
    gap: 12px;
}

/* === FILTERS SECTION === */
.news-page-filters-section {
    margin-bottom: 50px;
}

.news-page-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.news-page-filter-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.news-page-filter-btn:hover {
    border-color: #1B9985;
    color: #1B9985;
    transform: translateY(-2px);
}

.news-page-filter-btn.active {
    background: #1B9985;
    border-color: #1B9985;
    color: #fff;
    box-shadow: 0 4px 12px rgba(27, 153, 133, 0.3);
}

/* === ARTICLES GRID === */
.news-page-articles-section {
    margin-bottom: 60px;
}

.news-page-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-page-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-page-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-page-article-card.hidden {
    display: none;
}

.news-page-article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-page-article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.news-page-article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    color: #adb5bd;
    font-size: 3rem;
}

.news-page-article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-page-badge-small {
    font-size: 0.7rem;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.news-page-article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-page-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* === PAGINATION === */
.news-page-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.news-page-pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #e9ecef;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-page-pagination-btn:hover:not(:disabled) {
    border-color: #1B9985;
    color: #1B9985;
    transform: translateY(-2px);
}

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

.news-page-pagination-numbers {
    display: flex;
    gap: 8px;
}

.news-page-pagination-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e9ecef;
    color: #495057;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-page-pagination-number:hover {
    border-color: #1B9985;
    color: #1B9985;
}

.news-page-pagination-number.active {
    background: #1B9985;
    border-color: #1B9985;
    color: #fff;
}

/* === EMPTY STATE === */
.news-page-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.news-page-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 50%;
    color: #adb5bd;
    font-size: 4rem;
}

.news-page-empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #495057;
    margin: 0 0 12px;
}

.news-page-empty-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* === RESPONSIVE DESIGN === */

/* Tablets */
@media (max-width: 1024px) {
    .news-page-hero-title {
        font-size: 2.75rem;
    }
    
    .news-page-featured-section {
        padding: 30px;
        transform: translateY(-30px);
    }
    
    .news-page-featured-swiper {
        padding: 0 50px;
    }
    
    .news-page-carousel-prev,
    .news-page-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .news-page-featured-card {
        min-height: 340px;
    }
    
    .news-page-featured-image {
        height: 200px;
    }
    
    .news-page-featured-content {
        padding: 20px;
    }
    
    .news-page-featured-title {
        font-size: 1.05rem;
    }
    
    .news-page-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-page-hero {
        padding: 80px 20px 60px;
    }
    
    .news-page-hero-title {
        font-size: 2.25rem;
    }
    
    .news-page-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .news-page-main {
        padding: 40px 0;
    }
    
    .news-page-featured-section {
        padding: 20px;
        margin-bottom: 40px;
        transform: translateY(-20px);
        border-radius: 12px;
    }
    
    .news-page-featured-swiper {
        padding: 0 40px;
    }
    
    .news-page-carousel-prev,
    .news-page-carousel-next {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .news-page-featured-card {
        min-height: 320px;
    }
    
    .news-page-featured-image {
        height: 180px;
    }
    
    .news-page-featured-content {
        padding: 16px;
    }
    
    .news-page-featured-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .news-page-featured-meta {
        font-size: 0.75rem;
        gap: 12px;
    }
    
    .news-page-section-title {
        font-size: 1.5rem;
    }
    
    .news-page-filters {
        gap: 8px;
    }
    
    .news-page-filter-btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .news-page-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-page-pagination {
        gap: 8px;
    }
    
    .news-page-pagination-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .news-page-pagination-btn span {
        display: none;
    }
    
    .news-page-pagination-number {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .news-page-hero-title {
        font-size: 1.85rem;
    }
    
    .news-page-hero-subtitle {
        font-size: 1rem;
    }
    
    .news-page-container {
        padding: 0 16px;
    }
    
    .news-page-featured-section {
        padding: 16px;
    }
    
    .news-page-featured-swiper {
        padding: 0 35px;
    }
    
    .news-page-featured-card {
        min-height: 300px;
    }
    
    .news-page-featured-image {
        height: 160px;
    }
    
    .news-page-article-content {
        padding: 16px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-page-featured-card,
.news-page-article-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.news-page-featured-card:nth-child(1) { animation-delay: 0.1s; }
.news-page-featured-card:nth-child(2) { animation-delay: 0.2s; }
.news-page-featured-card:nth-child(3) { animation-delay: 0.3s; }

.news-page-article-card:nth-child(n) {
    animation-delay: calc(0.1s * var(--index, 1));
}
/* === SUGGESTION BANNER - NEWS PAGE === */
.suggestion-banner-news {
    background: linear-gradient(135deg, #1B9985 0%, #137a68 100%);
    border-radius: 18px;
    padding: 20px 24px;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 40px rgba(27, 153, 133, 0.25);
    margin-bottom: 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.suggestion-banner-news::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transform: translate(40px, -40px);
}

.suggestion-news {
    position: relative;
    z-10;
}

.suggestion-btn-news {
    background: #fff;
    color: #1B9985;
    padding: 12px 22px;
    border-radius: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.suggestion-btn-news:hover {
    background: #f5f9f8;
    color: #1B9985;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .suggestion-banner-news {
        padding: 20px;
        margin-bottom: 30px;
    }

    .suggestion-news .grid {
        grid-template-columns: 1fr !important;
    }

    .suggestion-news .grid > div:first-child {
        margin-bottom: 16px;
        text-align: center;
    }

    .suggestion-news h3 {
        font-size: 1.25rem;
    }

    .suggestion-news p {
        font-size: 1rem;
    }

    .suggestion-btn-news {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}