/**
 * Additional News Sections & Media Styles
 */
.news-sections-wrapper {
    margin-bottom: 40px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.section-block {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-dark);
    margin-bottom: 16px;
}

.block-badge {
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.block-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-dark);
    flex: 1;
    margin-left: 8px;
    font-family: var(--font-english);
}

.block-view-all {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
}

.block-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.block-lead-article {
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 16px;
}

.block-lead-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.block-lead-img img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    font-size: 0;
    color: transparent;
}

.block-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-bottom: 6px;
    font-family: var(--font-malayalam);
}

.block-lead-title {
    font-family: var(--font-malayalam);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.block-lead-title a:hover {
    color: var(--color-primary);
}

.block-lead-desc {
    font-family: var(--font-malayalam);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.block-item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.block-sub-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
}

.sub-item-arrow {
    font-size: 0.65rem;
    color: var(--color-primary);
    margin-top: 5px;
}

.sub-item-text {
    display: flex;
    flex-direction: column;
}

.sub-item-title {
    font-family: var(--font-malayalam);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-main);
    transition: color var(--transition-fast);
}

.sub-item-title:hover {
    color: var(--color-primary);
}

.sub-item-time {
    font-size: 0.7rem;
    color: var(--color-text-light);
    font-family: var(--font-malayalam);
    margin-top: 2px;
}

/* Photo Gallery */
.photo-gallery-section {
    margin-bottom: 40px;
}

.gallery-subtext {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.gallery-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #0f172a;
}

.gallery-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb-wrap img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 32, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.gallery-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(17, 24, 32, 0.85);
    color: #ffffff;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-malayalam);
}

.gallery-info {
    padding: 14px;
}

.gallery-title {
    font-family: var(--font-malayalam);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.gallery-caption {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 24, 32, 0.92);
    backdrop-filter: blur(5px);
}

.lightbox-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    background-color: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    color: #ffffff;
    font-size: 1.4rem;
    background: rgba(0, 0, 0, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
    background-color: var(--color-primary);
}

.lightbox-media-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #000000;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-meta {
    padding: 18px 24px;
    color: #ffffff;
}

.lightbox-meta h3 {
    font-family: var(--font-malayalam);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.lightbox-meta p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.lightbox-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 24px 20px 24px;
}

.lightbox-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.lightbox-btn:hover {
    background-color: var(--color-primary);
}

/* Video News */
.video-news-section {
    background-color: var(--color-dark);
    padding: 36px 0;
    margin-bottom: 40px;
    color: #ffffff;
}

.video-header-row {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.video-title {
    color: #ffffff;
}

.video-heading-icon {
    color: #ff0000;
    margin-right: 6px;
}

.video-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ff0000;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-fast);
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.video-badge-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(215, 25, 32, 0.85);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: var(--color-primary);
}

/* Video Lightbox Modal Player */
.video-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
}

.video-lightbox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-lightbox-title {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.video-lightbox-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.video-lightbox-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.video-lightbox-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-lightbox-player-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-details {
    padding: 14px;
}

.video-headline {
    font-family: var(--font-malayalam);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.video-headline a:hover {
    color: var(--color-primary-light);
}

.video-meta-row {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-malayalam);
}
