/* Media Page Styles
   media.css
   v=20260729f */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Baloo+Chettan+2:wght@400;500;600&family=Anek+Kannada:wght@400;500;600&family=Anek+Tamil:wght@400;500;600&display=swap');

.media-page {
    font-family: 'Inter', sans-serif;
}

.media-hero-content-container,
.media-articles-left,
.media-article-card,
.media-card-body,
.media-sidebar,
.popular-articles-list,
.popular-article-item {
    display: flex;
    flex-direction: column;
}

/*Hero Section*/
.media-hero {
    position: relative;
    background: #000;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.media-hero .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

section:first-of-type .container {
    padding-top: 0;
}

.media-hero-content-container{
    justify-content: center;
    padding-block: clamp(35px, 6.11vw, 55px);
    width: 35%;
}

.media-hero-image-container{
    aspect-ratio: 200/67;
    width: clamp(650px, 62.2vw, 1008px);
}
.media-hero-image,
.media-hero-image picture,
.media-hero-bg {
    width: 100%;
    height: 100%;
}
.media-hero-image picture{
    display: block;
    overflow: hidden;
}
.media-hero-bg{
    object-fit: cover;
}

.media-hero-content {
    --hero-title-size: clamp(36px, 3.3vw, 55px);
    --hero-title-weight: 300;
    --hero-title-line-height: 1.15;
    --hero-title-margin-bottom: 5px;
    --hero-title-align: left;
    position: relative;
    z-index: 1;
    text-align: left;
    margin-top: 0;
}

.media-hero-content h1 {
    font-size: var(--hero-title-size);
    font-weight: var(--hero-title-weight);
    color: #fff;
    line-height: var(--hero-title-line-height);
    margin-bottom: var(--hero-title-margin-bottom);
    text-align: var(--hero-title-align);
    font-family: 'Inter', sans-serif;
}

.media-hero-content h1 .highlight {
    color: #f49e0d;
    font-weight: 500;
}

.media-hero-content p {
    font-size: clamp(15px, 1.1vw, 18px);
    max-width: 340px;
    font-weight: 300;
    color: #fff;
    font-style: normal;
    line-height: 24px;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/*Latest Article Section*/
.media-articles-section,
.media-coverage-section {
    background: #fafafa;
}

.media-articles-section {
    padding: 40px 0 30px;
    border-radius: 10px;
    width: 100%;
    scroll-margin-top: 80px;
}

/* Override base.css .container { overflow-x: hidden } which causes an
   independent inner scroll on the article section. Restores page-level scroll. */
.media-articles-section .container {
    overflow: visible;
}

.media-articles-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 15px;
    align-items: stretch;
}

/* Left column must match sidebar height so pagination sits at its bottom */
.media-articles-left {
    min-height: 738px;
    align-self: stretch;
}

/* Shared article and media-section typography */
.media-articles-section .section-heading,
.media-coverage-section .section-heading {
    font-size: 50px;
    font-weight: 300;
    color: #1C1D1F;
    margin-bottom: 8px;
    line-height: 1.2;
}

.media-articles-section .section-heading .highlight,
.media-coverage-section .section-heading .highlight {
    color: #F49E0D;
    font-weight: 500;
    font-style: normal;
}

.media-articles-section .section-subtitle,
.media-coverage-section .section-subtitle {
    color: #3A3C3F;
    font-size: 18px;
    font-weight: 300;
    line-height: 20px;
    max-width: 65ch;
}

.media-articles-section .section-subtitle {
    margin-bottom: 36px;
}

/* 3-column card grid */
.media-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 15px;
    row-gap: 30px;
    align-items: stretch;
    width: 100%;
}

.media-article-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.media-article-card:hover,
.popular-article-item:hover {
    color: inherit;
    text-decoration: none;
}

.media-card-image,
.media-card-image img {
    width: 100%;
    height: 204.98px;
}

.media-card-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.media-card-image img {
    object-fit: cover;
    object-position: center;
}

.media-card-body {
    padding: 16px 14px 18px;
    flex: 1;
}

.media-card-tag {
    display: inline-block;
    background: #f49e0d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-card-date {
    display: block;
    color: #f49e0d;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.media-card-divider {
    border: none;
    border-top: 1px solid #B3B3B3;
    color: #B3B3B3;
    background-color: #B3B3B3;
    height: 1px;
    margin: 12px 0;
    width: 40px;
}

.media-card-title,
.popular-article-title {
    font-family: 'Inter', 'Baloo Chettan 2', 'Anek Tamil', 'Anek Kannada', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1E1E1E;
}

.media-card-title {
    line-height: 20.8px;
    margin-bottom: 14px;
    flex: 1;
}

.media-card-read-more {
    font-size: 14px;
    color: #1E1E1E;
    font-weight: 500;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.media-card-read-more:hover {
    text-decoration: none;
}

/* Pagination always sits at the bottom of the left column,
   aligned with the sidebar bottom on every page */
.media-articles-section .blog-pagination {
    margin-top: auto;
    padding-top: 32px;
    padding-bottom: 0;
}

/*Most Popular Sidebar*/
.media-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    align-self: stretch;
}

.popular-articles-list {
    flex: 1;
    justify-content: space-between;
}

.media-sidebar .sidebar-heading {
    font-size: 24px;
    font-weight: 500;
    color: #E27A01;
    margin-bottom: 2px;
    padding-bottom: 0;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    border-bottom: none;
    line-height: 28.8px;
}

.popular-article-item {
    justify-content: flex-start;
    padding: 12px 0 35px;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
}

.popular-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.art-tag {
    display: inline-block;
    background: transparent;
    color: #1C1D1F;
    font-size: 12px;
    font-weight: 400;
    padding: 0;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
    font-style: normal;
}

.art-date {
    font-size: 12px;
    color: #A7A7A7;
    font-weight: 300;
    line-height: 12px;
    text-align: right;

}

.popular-article-title {
    line-height: 22.4px;
    font-style: normal;
    margin-top: 6px;
}

/* ── Promo Banner ── */
.media-promo-banner {
    background: #f49e0d;
    padding: 20px 0;
}

.media-promo-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.media-promo-banner p {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.btn-promo {
    background: #fff;
    color: #f49e0d;
    padding: 10px 26px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s;
}

.btn-promo:hover {
    background: #fff8e1;
    color: #f49e0d;
    text-decoration: none;
}

/*In Medias Section*/
.media-coverage-section {
    padding: 0 0 100px;
}

.media-coverage-section .section-heading .highlight {
    font-size: 50px;
}

.media-coverage-section .section-subtitle {
    margin-bottom: 40px;
}

.media-coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.media-coverage-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    aspect-ratio: 197 / 111;
    height: auto;
    width: 100%;
}

.media-coverage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Video hover overlay */
.media-coverage-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #F59C00 4.52%, rgba(0, 0, 0, 0) 96.25%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 12px;
    pointer-events: none;
}

.media-coverage-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 46.998px;
    background-image: url('../images/playbutton.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.media-coverage-card:hover::before {
    opacity: 1;
}

.media-coverage-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Subtle lift movement on hover */
.media-coverage-card:hover img {
    transform: translateY(-4px);
}

.media-coverage-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e53935;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.5);
    z-index: 2;
}


/*Responsive*/
@media (max-width: 1150px) {

    .media-hero-bg{
        object-fit: fill;
    }

    .media-articles-layout {
        grid-template-columns: 1fr 260px;
        gap: 32px;
    }

    .media-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 1024px) {
    .media-hero-bg{
        object-fit: cover;
    }

    .media-hero .container {
        flex-direction: column;
        position: relative;
    }

    section:first-of-type .container{
        padding-inline: 0;
    }

    .media-hero-content-container{
        width: 100%;
        position: absolute;
        bottom: 0;
        align-items: center;
    }

    .media-hero-content{
        width: 75%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .media-hero-image-container{
        width: 100%;
    }
}


@media (max-width: 900px) {
    .media-articles-layout {
        grid-template-columns: 1fr;
    }

    .media-sidebar {
        display: none;
    }

    .media-coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .media-articles-grid,
    .media-coverage-grid {
        grid-template-columns: 1fr;
    }

    .media-promo-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .media-articles-section .section-heading,
    .media-coverage-section .section-heading {
        font-size: 28px;
    }
}

/* Tablet view (736–900px): show all videos, hide View More button, restore camera image */
@media (min-width: 736px) and (max-width: 900px) {

    /* Reveal all hidden video cards */
    #mobile-videos-grid .media-coverage-card.mobile-card-hidden {
        display: block;
    }

    /* Remove the peek effect on the 6th card */
    #mobile-videos-grid .media-coverage-card.mobile-video-peek {
        max-height: none;
        -webkit-mask-image: none;
        mask-image: none;
        pointer-events: auto;
    }

    /* Hide the View More button in the In Medias section */
    #videos-view-more {
        display: none;
    }
}

.pagination-btn-extra,
.pagination-next-extra {
    display: none;
}


.show-only-925x936 {
    display: none;
}

@media (min-width: 768px) and (max-width: 1150px) {
    .pagination-btn-extra,
    .pagination-next-extra {
        display: inline-flex;
    }

    /* Reveal the duplicated tablet-only cards so each page shows 4 cards. */
    .show-only-925x936 {
        display: block;
    }

    /* Hide cards 5+ on every page so each page shows 4 cards (2 rows × 2 cols). */
    .desktop-articles-only .media-article-card:nth-child(n+5) {
        display: none;
    }
}


/* Mobile-only components are hidden until the mobile breakpoint. */
.mobile-view-more-btn,
.mobile-articles-only {
    display: none;
}

@media (max-width: 768px) {
    .media-hero-content {
        --hero-title-size: 36px;
        --hero-title-weight: 400;
        --hero-title-line-height: normal;
        --hero-title-margin-bottom: 10px;
        --hero-title-align: center;
        z-index: 2;
        width: 100%;
        max-width: 100%;
        margin: auto 0 0;
        padding: 0 28px 44px;
        text-align: center;
    }

    .media-hero-content h1 .highlight {
        font-size: inherit;
        font-weight: 600;
    }

    .media-hero-content p {
        max-width: 320px;
        margin: 0 auto;
        font-size: 15px;
        font-weight: 400;
        line-height: normal;
    }

    .container {
        padding-inline: 20px;
    }

    .media-articles-section,
    .media-coverage-section {
        background: #F5F6F6;
    }

    .media-articles-section {
        padding: 24px 0;
    }

    .media-articles-section .section-heading {
        font-size: 32px;
    }

    .media-articles-section .section-subtitle {
        margin-top: 8px;
        font-size: 15px;
        font-weight: 400;
    }

    .media-card-date {
        font-weight: 400;
    }

    .media-articles-left {
        min-height: unset;
    }

    .mobile-articles-only {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        overflow: hidden;
    }

    .mobile-articles-only::after {
        content: "";
        position: absolute;
        z-index: 5;
        right: 0;
        bottom: 0;
        left: 0;
        height: 130px;
        background: linear-gradient(to bottom, rgba(245, 246, 246, 0), rgba(245, 246, 246, .5) 20%, rgba(245, 246, 246, .9) 50%, #F5F6F6 70%);
        pointer-events: none;
    }

    .mobile-articles-only.expanded::after {
        display: none;
    }

    #articles-view-more {
        position: relative;
        z-index: 10;
        margin-top: -50px;
    }

    .mobile-articles-only.expanded ~ #articles-view-more {
        margin-top: 16px;
    }

    .desktop-articles-only,
    .blog-pagination,
    .mobile-card-hidden {
        display: none;
    }

    .media-promo-banner .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .media-promo-banner p {
        font-size: 15px;
    }

    .media-coverage-section {
        padding: 24px 0 48px;
    }

    .media-coverage-section .section-heading,
    .media-coverage-section .section-heading .highlight {
        font-size: 36px;
    }

    .media-coverage-section .section-heading {
        font-weight: 500;
    }

    .media-coverage-section .section-subtitle {
        margin: 0 0 22px;
        font-size: 15px;
        font-weight: 400;
    }

    .media-coverage-grid {
        gap: 16px;
    }

    .media-coverage-card {
        aspect-ratio: 16 / 9;
    }

    .mobile-video-peek {
        display: block;
        max-height: 80px;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
        mask-image: linear-gradient(to bottom, #000 40%, transparent);
        pointer-events: none;
    }

    #videos-view-more {
        margin-top: 16px;
    }

    .mobile-view-more-btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border: 0;
        border-radius: 10px;
        background: #fff;
        color: #1C1D1F;
        font: 500 14px 'Inter', sans-serif;
        text-align: center;
        cursor: pointer;
    }
}

@media (min-width: 736px) and (max-width: 768px) {
    .media-articles-section .mobile-view-more-btn,
    .media-articles-section .mobile-articles-only {
        display: none;
    }

    .media-articles-section .blog-pagination {
        display: flex;
    }

    .media-articles-section .desktop-articles-only {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .media-hero-content {
        padding: 0 18px 32px;
    }

    .container {
        padding-inline: 16px;
    }

    .media-articles-section {
        padding: 20px 0;
    }

    .media-articles-section .section-heading {
        font-size: 36px;
    }

    .media-articles-section .section-subtitle,
    .media-coverage-section .section-subtitle {
        line-height: 18px;
    }

    .media-articles-section .section-subtitle {
        margin-bottom: 18px;
    }

    .media-articles-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .media-card-image {
        aspect-ratio: 469.66 / 344.16;
    }

    .media-card-body {
        padding: 12px 12px 14px;
    }

    .media-card-read-more {
        font-size: 13px;
    }

    .media-promo-banner {
        padding: 16px 0;
    }

    .media-promo-banner p {
        font-size: 14px;
    }

    .btn-promo {
        padding: 9px 20px;
        font-size: 13px;
    }

    .media-coverage-section {
        padding: 20px 0 36px;
    }

    .media-coverage-section .section-subtitle {
        margin-bottom: 32px;
    }

    .media-coverage-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mobile-video-peek {
        max-height: 200px;
    }
}
