/* News Page Specific Styles */

/* News listing page hero background */
.page-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.78), rgba(44, 62, 80, 0.85)), url('../images/_A9A7539.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* News detail page hero - override with specific background */
.news-detail-hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.88) 0%, rgba(26, 37, 47, 0.90) 100%), url('../images/_A9A7539.jpg') !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--white);
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 50px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 40px rgba(198, 40, 40, 0.3);
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-newsletter 3s infinite;
}

@keyframes pulse-newsletter {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.newsletter-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.newsletter-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.newsletter-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    position: relative;
    z-index: 1;
}

.newsletter-form .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    background: var(--white);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    background: var(--white);
}

.newsletter-form .btn {
    padding: 18px 35px;
    border: none;
    background: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: var(--secondary-light);
    transform: translateX(2px);
}

.newsletter-form small {
    display: block;
    margin-top: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* News Cards */
.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-card.featured {
    border: 2px solid var(--primary);
}

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

.news-card.featured .news-image {
    height: 350px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--secondary);
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-meta span {
    color: var(--text-body);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta i {
    color: var(--primary);
}

.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* Section Headers */
.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header .lead {
    color: var(--text-body);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid rgba(198, 40, 40, 0.2);
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* News CTA Section */
.news-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.news-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.news-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* News Detail Page Styles */
.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-header .news-meta {
    font-size: 1rem;
}

.news-detail-header .news-meta span {
    margin: 0 10px;
}

.news-detail-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-top: 20px;
}

.news-detail-header .news-meta .badge {
    font-size: 0.9rem;
    padding: 8px 15px;
}

.featured-image-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.featured-image-container img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Article Content Section */
.article-content {
    background: var(--light);
}

/* Article Content */
.news-article {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.news-article .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 30px;
    font-weight: 400;
}

.news-article h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.news-article p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 25px;
}

.news-article ul {
    margin: 25px 0;
    padding-left: 25px;
}

.news-article ul li {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 12px;
}

/* Share Buttons */
.share-buttons {
    padding-top: 30px;
    border-top: 2px solid var(--light);
}

.share-buttons h5 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.social-share {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.whatsapp {
    background: #25D366;
}

/* Sidebar Widgets */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h4 i {
    color: var(--primary);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.newsletter-widget h4,
.newsletter-widget p {
    color: var(--white);
}

.sidebar-newsletter-form .form-control {
    border: none;
    padding: 12px 15px;
}

/* Recent News Widget */
.recent-news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light);
}

.recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-news-item:first-child {
    padding-top: 0;
}

.recent-news-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.recent-news-content h6 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recent-news-content h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.recent-news-content h6 a:hover {
    color: var(--primary);
}

.recent-news-content small {
    color: var(--text-body);
    font-size: 0.85rem;
}

.recent-news-content small i {
    color: var(--primary);
    margin-right: 5px;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid var(--light);
    padding: 12px 0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.category-list span {
    background: var(--light);
    color: var(--text-body);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .newsletter-box {
        padding: 40px 30px;
    }
    
    .newsletter-box h2 {
        font-size: 2rem;
    }
    
    .news-card.featured .news-image {
        height: 280px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .news-cta h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .news-cta .btn {
        margin-top: 20px;
    }
    
    /* News Detail Page Responsive */
    .news-article {
        padding: 35px;
    }
    
    .news-sidebar {
        position: static;
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .page-hero,
    .news-detail-hero {
        padding: 100px 0 60px;
        background-attachment: scroll !important;
    }
    
    .newsletter-box {
        padding: 30px 20px;
    }
    
    .newsletter-icon {
        width: 70px;
        height: 70px;
    }
    
    .newsletter-icon i {
        font-size: 2rem;
    }
    
    .newsletter-box h2 {
        font-size: 1.75rem;
    }
    
    .newsletter-box p {
        font-size: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .newsletter-form .form-control {
        border-radius: 10px 10px 0 0 !important;
        padding: 15px 20px;
    }
    
    .newsletter-form .btn {
        border-radius: 0 0 10px 10px !important;
        width: 100%;
        padding: 15px 25px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header .lead {
        font-size: 1rem;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-image,
    .news-card.featured .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 25px;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .news-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .news-meta {
        gap: 12px;
        font-size: 0.85rem;
    }
    
    .news-cta h2 {
        font-size: 1.8rem;
    }
    
    .news-cta p {
        font-size: 1rem;
    }
    
    /* News Detail Page */
    .news-detail-header h1 {
        font-size: 1.8rem;
    }
    
    .news-detail-header .news-meta {
        font-size: 0.9rem;
    }
    
    .featured-image-container {
        margin-top: -30px;
        margin-bottom: 40px;
    }
    
    .news-article {
        padding: 25px 20px;
    }
    
    .news-article .lead {
        font-size: 1.05rem;
    }
    
    .news-article h3 {
        font-size: 1.4rem;
        margin-top: 30px;
    }
    
    .news-article p,
    .news-article ul li {
        font-size: 0.95rem;
    }
    
    .share-buttons {
        padding-top: 25px;
    }
    
    .share-buttons h5 {
        font-size: 1.1rem;
    }
    
    .social-share {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .sidebar-widget {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .sidebar-widget h4 {
        font-size: 1.2rem;
    }
    
    .recent-news-image {
        width: 70px;
        height: 70px;
    }
    
    .recent-news-content h6 {
        font-size: 0.9rem;
    }
}

