/* News Page Styling */
.news-page-container {
    padding-top: 60px;
}

.news-header {
    padding: 60px 5vw 40px;
    text-align: center;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.news-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 950;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: -2px;
}

.news-subtitle {
    color: #555;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    padding: 0 5vw 100px;
    max-width: 1400px;
    margin: 40px auto 0;
}

@media (min-width: 1080px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: rgba(42, 161, 117, 0.3);
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

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

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

.news-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card-content {
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.65rem;
    font-weight: 850;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #2aa175;
}

.news-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #2aa175;
    font-size: 0.95rem;
}

.news-card-footer svg {
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-footer svg {
    transform: translateX(5px);
}

/* Single Article Styling */
.article-container {
    padding-top: 40px;
    padding-bottom: 100px;
    max-width: 1640px; /* Increased width */
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-to-news:hover {
    color: #2aa175;
}

.news-detail-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.news-left-side {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    width: 380px;
    position: sticky;
    top: 100px;
    
}

.sidebar-stick-container {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid #eee;
    z-index: 10;
}

.article-header {
    text-align: left; /* Changed from center */
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    justify-content: flex-start; /* Changed from center */
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    color: #666;
    font-weight: 600;
}

.article-category {
    background: #eefdf7;
    color: #2aa175;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 3rem); /* Slightly smaller to fit layout */
    font-weight: 950;
    line-height: 1.1;
    color: #111;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.article-featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: none;
    border-radius: 32px;
    object-fit: cover;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

.article-content h1, .article-content h2, .article-content h3 {
    color: #111;
    font-weight: 850;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-content h2 { font-size: 2.5rem; }
.article-content h3 { font-size: 2rem; }

.article-content p {
    margin-bottom: 1.8rem;
}

/* Image Block Layouts */
.article-image-block {
    margin: 3rem 0;
    width: 100%;
}

.article-image-block img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-position: center;
}

.article-image-block.layout-horizontal img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.article-image-block.layout-vertical img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    max-width: 60%; /* Adjusted width for vertical */
    margin: 0 auto;
    display: block;
}

.article-image-block.layout-full_width img {
    height: auto;
    object-fit: contain;
}

.image-caption {
    text-align: center;
    font-size: 0.95rem;
    color: #888;
    margin-top: 12px;
    font-style: italic;
    line-height: 1.4;
}

/* Multi-image Gallery Grid within Article */
.article-image-block.is-gallery .article-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.article-image-block.is-gallery.layout-vertical .article-gallery-grid {
    gap: 30px;
}

/* Base item width for Grid (Default) */
.article-gallery-grid > .content-gallery-item {
    flex: 0 1 calc(50% - 15px); /* 2 columns default */
    min-width: 300px;
    max-width: 600px;
}

/* Adjustments for Vertical (3 columns feel) */
.article-image-block.layout-vertical .article-gallery-grid > .content-gallery-item {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 250px;
}

/* Adjustments for Full Format (1 column) */
.article-image-block.layout-full_width .article-gallery-grid > .content-gallery-item {
    flex: 0 1 100%;
    max-width: 1000px;
}

.content-gallery-item {
    display: flex;
    flex-direction: column;
}

.article-image-block.is-gallery .content-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-image-block.is-gallery.layout-vertical .content-image-wrapper {
    aspect-ratio: 3 / 4;
}

.article-image-block.is-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    max-width: 100%; /* Override the 60% for single vertical images when in gallery */
}

.article-image-block.is-gallery .content-image-wrapper:hover img {
    transform: scale(1.05);
}

.article-content ul, .article-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content blockquote {
    border-left: 5px solid #2aa175;
    padding: 20px 30px;
    background: #f9fafb;
    font-style: italic;
    font-size: 1.4rem;
    margin: 3rem 0;
    border-radius: 0 20px 20px 0;
}

/* Layout & Tablet Adjustments */
@media (max-width: 1024px) {
    .news-detail-layout {
        flex-direction: column;
        gap: 0;
    }

    .news-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        padding-bottom: 60px;
    }

    .article-container {
        padding-top: 60px;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .article-featured-image {
        border-radius: 24px;
        margin-bottom: 40px;
    }

    .article-content {
        font-size: 1.15rem;
    }
}
/* ── Sidebar News Section ── */
.sidebar-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-section-title svg {
    color: #2aa175;
}

.tour-sidebar-news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-news-thumb {
    height: 80px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.sidebar-news-item:hover .sidebar-news-thumb img {
    transform: scale(1.1);
}

.sidebar-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.sidebar-news-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-news-item:hover .sidebar-news-item-title {
    color: #2aa175;
}

.sidebar-news-item-date {
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}

.sidebar-sticky-wrapper {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .sidebar-sticky-wrapper {
        position: static;
        gap: 20px;
    }
}
