/* ===== YANGILIKLAR SAHIFASI ===== */

/* PAGE HEADER */
.page-header {
    padding: 100px 5% 60px;
    text-align: center;
    background: linear-gradient(to bottom, var(--navy), var(--bg));
    position: relative;
}
.page-header p {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    color: var(--gold-light);
    margin: 0;
}

/* BACK LINK */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 30px 5% 0;
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.2s;
}
.back-link:hover { gap: 12px; }

/* NEWS GRID */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 5%; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--bg-card, var(--card-bg));
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px var(--shadow, rgba(0,0,0,0.15));
}

/* Rasm konteyner */
.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--navy);
}
.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card:hover .news-img-wrapper img { transform: scale(1.08); }

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: #000;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.news-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-date {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 500;
}
.news-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}
.news-excerpt {
    font-size: 14px;
    color: var(--text2, var(--text));
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
    flex-grow: 1;
}

.read-more {
    margin-top: auto;
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}
.read-more i { transition: transform 0.3s; }
.read-more:hover i { transform: translateX(5px); }

/* ===== NEWS DETAIL SAHIFASI ===== */
.news-detail-container {
    max-width: 860px;
    margin: 40px auto 80px;
    padding: 0 5%;
}

.detail-header { margin-bottom: 28px; }
.detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    color: var(--text);
    line-height: 1.2;
    margin: 12px 0 16px;
}
.detail-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text2, var(--text));
    opacity: 0.7;
}
.detail-meta i { color: var(--gold); margin-right: 6px; }

/* Bosh rasm */
.main-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 36px;
    border: 1px solid var(--border);
}

/* Matn */
.detail-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
}
.detail-content strong {
    font-size: 18px;
    line-height: 1.5;
    display: block;
    margin-bottom: 16px;
    color: var(--text);
}

/* Qo'shimcha rasmlar galereya */
.detail-gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin: 48px 0 24px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.detail-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}
.detail-gallery a:hover { border-color: var(--gold); }
.detail-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.detail-gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201,148,26,0.25);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox-nav:hover { background: var(--gold); color: #000; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 34px; }
    .news-grid { grid-template-columns: 1fr; }
    .detail-title { font-size: 28px; }
    .detail-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .detail-gallery { grid-template-columns: 1fr; }
}
