/* ============================================
   NEWS PAGES STYLES
   Dedicated styles for news index and detail pages
   IMPORTANT: These styles override default styles from style.css
   ============================================ */

/* CSS Variables for News Pages */
:root {
    --news-primary-color: #033059;
    --news-secondary-color: #609ABF;
    --news-text-color: #333;
    --news-meta-color: #6c757d;
    --news-border-color: #e9ecef;
    --news-hover-color: #03598C;
    --news-tag-bg: #f8f9fa;
    --news-tag-text: #495057;
}

/* ============================================
   NEWS INDEX PAGE
   ============================================ */

/* Main News Section - Override default styles */
section.news {
    padding: 60px 0 80px !important;
}

section.news h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 1.2 !important;
    color: #000 !important;
    margin-bottom: 15px !important;
}

section.news .news-subtitle {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: var(--news-meta-color) !important;
    margin-bottom: 40px !important;
    max-width: 800px;
}

/* Hide old holder > p style */
section.news .holder > p {
    display: none;
}

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

.news-filter-btn {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    display: inline-block !important;
}

.news-filter-btn.active {
    background: var(--news-primary-color) !important;
    color: white !important;
    border-color: var(--news-primary-color) !important;
}

.news-filter-btn:not(.active) {
    background: var(--news-border-color) !important;
    color: var(--news-tag-text) !important;
}

.news-filter-btn:not(.active):hover {
    background: var(--news-primary-color) !important;
    color: white !important;
    border-color: var(--news-primary-color) !important;
}

/* News Item Card - Override .item styles */
section.news .news-item {
    display: flex !important;
    gap: 40px !important;
    margin-bottom: 60px !important;
    padding-bottom: 60px !important;
    border-bottom: 1px solid var(--news-border-color) !important;
    transition: transform 0.3s ease !important;
}

/* Hide old .item styles */
section.news .item {
    display: none !important;
}

section.news .news-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

section.news .news-item:hover {
    /* No transform effect */
}

/* News Item Image */
.news-item-image {
    flex-shrink: 0 !important;
    width: 380px !important;
    height: 260px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    display: block !important;
}

.news-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.news-item:hover .news-item-image img {
    /* No transform effect */
}

/* News Item Content */
.news-item-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.news-item-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 26px !important;
    line-height: 1.4 !important;
    color: #000 !important;
    margin-bottom: 15px !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

.news-item-title:hover {
    color: var(--news-secondary-color) !important;
}

/* News Item Meta */
.news-item-meta {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 15px !important;
}

.news-item-meta span {
    font-size: 15px !important;
    color: var(--news-meta-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.news-item-category {
    background: var(--news-border-color) !important;
    padding: 4px 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--news-tag-text) !important;
}

/* News Item Excerpt */
.news-item-excerpt {
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: var(--news-text-color) !important;
    margin-bottom: 20px !important;
    flex-grow: 1;
}

.news-item-excerpt p {
    margin-bottom: 10px !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

/* News Item Tags */
.news-item-tags {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
}

.news-tag {
    background: var(--news-tag-bg) !important;
    padding: 4px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    color: var(--news-meta-color) !important;
    font-weight: 500 !important;
}

/* Read More Link - styled as button */
.news-read-more {
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    color: white !important;
    background: #03598C !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    transition: background 0.3s ease !important;
    border: none !important;
    align-self: flex-start !important;
    width: auto !important;
}

.news-read-more:hover {
    background: #609ABF !important;
    color: white !important;
}

.news-read-more::after {
    content: none !important;
}

/* ============================================
   NEWS DETAIL PAGE
   ============================================ */

/* Breadcrumbs - hidden */
.news-breadcrumbs {
    display: none !important;
}

/* News Detail Section - Override default */
.news-inner {
    padding: 30px 0 80px !important;
    margin-bottom: 0 !important;
}

/* Override old two-column layout */
.news-inner .holder > div {
    display: block !important;
    max-width: 100% !important;
}

.news-inner .holder > div .title {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Featured Image */
.news-detail-image {
    width: 100% !important;
    max-height: 350px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    margin-bottom: 50px !important;
    display: block !important;
}

/* Article Container */
.news-article-container {
    max-width: 820px !important;
    margin: 0 auto !important;
}

/* Article Header */
.news-article-header {
    margin-bottom: 40px !important;
}

.news-article-header h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 42px !important;
    line-height: 1.3 !important;
    color: #000 !important;
    margin-bottom: 20px !important;
}

.news-article-meta {
    display: flex !important;
    gap: 25px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    padding: 10px 0 !important;
    margin-bottom: 30px !important;
}

.news-article-meta span {
    font-size: 15px !important;
    color: var(--news-meta-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Article Tags - hidden */
.news-article-tags {
    display: none !important;
}

/* Article Content */
.news-article-content {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: var(--news-text-color) !important;
}

.news-article-content p {
    margin-bottom: 20px !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: var(--news-text-color) !important;
}

.news-article-content h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 25px 0 15px !important;
    color: #000 !important;
}

.news-article-content h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    margin: 20px 0 10px !important;
    color: #000 !important;
}

.news-article-content ul,
.news-article-content ol {
    margin: 20px 0 !important;
    padding-left: 30px !important;
}

.news-article-content li {
    margin-bottom: 10px !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
}

.news-article-content blockquote {
    padding-left: 25px !important;
    margin: 30px 0 !important;
    font-style: italic !important;
    color: var(--news-meta-color) !important;
    background: #f8f9fa !important;
    padding: 20px 25px !important;
}

.news-article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 30px 0 !important;
}

.news-article-content a {
    color: var(--news-hover-color) !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

.news-article-content a:hover {
    color: var(--news-secondary-color) !important;
}

/* Back to News Button */
.news-back-button {
    margin-top: 50px !important;
    padding-top: 0 !important;
}

.news-back-button .btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 24px !important;
    background: var(--news-primary-color) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.3s ease !important;
}

.news-back-button .btn:hover {
    background: var(--news-secondary-color) !important;
}

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

@media (max-width: 1200px) {
    .news-item-image {
        width: 320px !important;
        height: 220px !important;
    }

    .news-item-title {
        font-size: 24px !important;
    }
}

@media (max-width: 992px) {
    section.news h1 {
        font-size: 40px !important;
    }

    section.news .news-item {
        flex-direction: column !important;
        gap: 25px !important;
        margin-bottom: 50px !important;
        padding-bottom: 50px !important;
    }

    .news-item-image {
        width: 100% !important;
        height: 300px !important;
    }

    .news-article-header h1 {
        font-size: 36px !important;
    }

    .news-article-content,
    .news-article-content p {
        font-size: 17px !important;
    }
}

@media (max-width: 768px) {
    section.news {
        padding: 40px 0 60px !important;
    }

    section.news h1 {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }

    section.news .news-subtitle {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }

    .news-filters {
        gap: 8px !important;
        margin-bottom: 35px !important;
    }

    .news-filter-btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }

    section.news .news-item {
        margin-bottom: 40px !important;
        padding-bottom: 40px !important;
    }

    .news-item-image {
        height: 220px !important;
    }

    .news-item-title {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }

    .news-item-meta {
        gap: 15px !important;
        margin-bottom: 12px !important;
    }

    .news-item-meta span {
        font-size: 14px !important;
    }

    .news-item-excerpt,
    .news-item-excerpt p {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .news-inner {
        padding: 40px 0 60px !important;
    }

    .news-detail-image {
        max-height: 300px !important;
        margin-bottom: 35px !important;
        border-radius: 12px !important;
    }

    .news-article-header h1 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    .news-article-meta {
        gap: 15px !important;
        padding: 15px 0 !important;
    }

    .news-article-meta span {
        font-size: 14px !important;
    }

    .news-article-content,
    .news-article-content p {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .news-article-content h2 {
        font-size: 26px !important;
        margin: 30px 0 15px !important;
    }

    .news-article-content h3 {
        font-size: 22px !important;
        margin: 25px 0 12px !important;
    }

    .news-article-content li {
        font-size: 16px !important;
    }

    .news-back-button {
        margin-top: 35px !important;
        padding-top: 25px !important;
    }
}

@media (max-width: 480px) {
    section.news h1 {
        font-size: 28px !important;
    }

    .news-item-title {
        font-size: 20px !important;
    }

    .news-item-image {
        height: 180px !important;
    }

    .news-article-header h1 {
        font-size: 24px !important;
    }

    .news-article-content,
    .news-article-content p {
        font-size: 15px !important;
    }
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 50px !important;
}

.pagination .page-link {
    padding: 10px 16px !important;
    border: 1px solid var(--news-border-color) !important;
    border-radius: 6px !important;
    color: var(--news-text-color) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

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

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

.pagination .page-item.disabled .page-link {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* ============================================
   NEWS INDEX PAGE
   ============================================ */

/* Main News Section */
section.news {
    padding: 60px 0 80px;
}

section.news h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #000;
    margin-bottom: 15px;
}

section.news .news-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--news-meta-color);
    margin-bottom: 40px;
    max-width: 800px;
}

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

.news-filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-filter-btn.active {
    background: var(--news-primary-color);
    color: white;
    border-color: var(--news-primary-color);
}

.news-filter-btn:not(.active) {
    background: var(--news-border-color);
    color: var(--news-tag-text);
}

.news-filter-btn:not(.active):hover {
    background: var(--news-primary-color);
    color: white;
    border-color: var(--news-primary-color);
}

/* News Item Card */
section.news .news-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--news-border-color);
    transition: transform 0.3s ease;
}

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

section.news .news-item:hover {
    /* No transform effect */
}

/* News Item Image */
.news-item-image {
    flex-shrink: 0;
    width: 380px;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
}

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

.news-item:hover .news-item-image img {
    /* No transform effect */
}

/* News Item Content */
.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.4;
    color: #000;
    margin-bottom: 15px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.news-item-title:hover {
    color: var(--news-secondary-color);
}

/* News Item Meta */
.news-item-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.news-item-meta span {
    font-size: 15px;
    color: var(--news-meta-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-category {
    background: var(--news-border-color);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--news-tag-text);
}

/* News Item Excerpt */
.news-item-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: var(--news-text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-item-excerpt p {
    margin-bottom: 10px;
}

/* News Item Tags */
.news-item-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-tag {
    background: var(--news-tag-bg);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--news-meta-color);
    font-weight: 500;
}

/* ============================================
   NEWS DETAIL PAGE
   ============================================ */

/* Breadcrumbs */
.news-breadcrumbs {
    padding: 25px 0;
    background: #f8f9fa;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li a {
    color: var(--news-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs li a:hover {
    color: var(--news-primary-color);
}

.breadcrumbs li:last-child a {
    color: var(--news-meta-color);
    pointer-events: none;
}

/* News Detail Section */
.news-inner {
    padding: 60px 0 80px;
}

/* Featured Image */
.news-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 50px;
}

/* Article Container */
.news-article-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Article Header */
.news-article-header {
    margin-bottom: 40px;
}

.news-article-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.3;
    color: #000;
    margin-bottom: 20px;
}

/* Article Content */
.news-article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--news-text-color);
}

.news-article-content p {
    margin-bottom: 20px;
}

.news-article-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #000;
}

.news-article-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #000;
}

.news-article-content ul,
.news-article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-article-content li {
    margin-bottom: 10px;
}

.news-article-content blockquote {
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--news-meta-color);
    background: #f8f9fa;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.news-article-content a {
    color: var(--news-hover-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-article-content a:hover {
    color: var(--news-secondary-color);
}

/* Back to News Button */
.news-back-button {
    margin-top: 50px;
    padding-top: 0;
}

.news-back-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--news-primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-back-button .btn:hover {
    background: var(--news-secondary-color);
}

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

@media (max-width: 1200px) {
    .news-item-image {
        width: 320px;
        height: 220px;
    }

    .news-item-title {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    section.news h1 {
        font-size: 40px;
    }

    section.news .news-item {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 50px;
        padding-bottom: 50px;
    }

    .news-item-image {
        width: 100%;
        height: 300px;
    }

    .news-article-header h1 {
        font-size: 36px;
    }

    .news-article-content {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    section.news {
        padding: 40px 0 60px;
    }

    section.news h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    section.news .news-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .news-filters {
        gap: 8px;
        margin-bottom: 35px;
    }

    .news-filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    section.news .news-item {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .news-item-image {
        height: 220px;
    }

    .news-item-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .news-item-meta {
        gap: 15px;
        margin-bottom: 12px;
    }

    .news-item-meta span {
        font-size: 14px;
    }

    .news-item-excerpt {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .news-inner {
        padding: 40px 0 60px;
    }

    .news-detail-image {
        max-height: 300px;
        margin-bottom: 35px;
        border-radius: 12px;
    }

    .news-article-header h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .news-article-meta {
        gap: 15px;
        padding: 15px 0;
    }

    .news-article-meta span {
        font-size: 14px;
    }

    .news-article-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .news-article-content h2 {
        font-size: 26px;
        margin: 30px 0 15px;
    }

    .news-article-content h3 {
        font-size: 22px;
        margin: 25px 0 12px;
    }

    .news-back-button {
        margin-top: 35px;
        padding-top: 25px;
    }
}

@media (max-width: 480px) {
    section.news h1 {
        font-size: 28px;
    }

    .news-item-title {
        font-size: 20px;
    }

    .news-item-image {
        height: 180px;
    }

    .news-article-header h1 {
        font-size: 24px;
    }

    .news-article-content {
        font-size: 15px;
    }
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination .page-link {
    padding: 10px 16px;
    border: 1px solid var(--news-border-color);
    border-radius: 6px;
    color: var(--news-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}
