/*
Theme Name: AN NEXT MEDIA Theme (Hindi Mega Portal)
Theme URI: https://annextmedia.com/
Author: AN NEXT MEDIA NETWORK PRIVATE LIMITED
Description: Hindi News Portal with Web Stories, WhatsApp Integration, Hindi Typography, and Mega-Grid layout.
Version: 4.0.0
*/

:root {
    --brand-red: #da251d;
    --brand-yellow: #ffc107;
    --dark-bg: #000000;
    --light-bg: #f2f2f2;
    --text-dark: #222222;
    --text-light: #ffffff;
    --whatsapp-green: #25D366;
}


/* =========================================
   GLOBAL
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mukta', 'Hind', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-red);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: #a01a14;
}


/* =========================================
   TOP BAR
========================================= */

.super-top-bar {
    background: var(--dark-bg);
    color: #ccc;
    font-size: 13px;
    padding: 5px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.super-top-bar .social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 12px;
}


/* =========================================
   MAIN HEADER
========================================= */

.main-header {
    background: #fff;
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 4px solid var(--brand-red);

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-box h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-box h1 span {
    color: var(--brand-red);
}

.logo-box p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}


/* =========================================
   NAVIGATION
========================================= */

.hindi-nav {
    background: var(--brand-red);
}

.hindi-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.hindi-nav ul li {
    margin: 0;
    padding: 0;
}

.hindi-nav ul li a {
    display: block;
    color: #fff;

    padding: 12px 20px;

    font-size: 18px;
    font-weight: 600;
}

.hindi-nav ul li a:hover,
.hindi-nav ul li a:focus-visible {
    background: #000;
    color: var(--brand-yellow);
}


/* =========================================
   BREAKING NEWS TICKER
========================================= */

.hindi-ticker {
    background: var(--brand-yellow);

    display: flex;
    align-items: center;

    min-height: 45px;

    overflow: hidden;

    border-bottom: 2px solid #e0a800;
}

.ticker-title {
    background: var(--brand-red);
    color: #fff;

    padding: 0 20px;

    min-height: 45px;

    display: flex;
    align-items: center;

    font-weight: 700;
    font-size: 16px;

    position: relative;
    z-index: 2;

    white-space: nowrap;
}

.ticker-title::after {
    content: '';

    position: absolute;
    right: -15px;

    border-top: 22px solid transparent;
    border-bottom: 23px solid transparent;
    border-left: 15px solid var(--brand-red);
}

.ticker-content {
    flex-grow: 1;

    white-space: nowrap;

    animation: scrollLeft 70s linear infinite;

    font-size: 18px;
    font-weight: 600;
    color: #000;

    padding-left: 30px;
}

@keyframes scrollLeft {

    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* =========================================
   MAIN CONTAINER
========================================= */

.mega-container {
    width: 100%;
    max-width: 1300px;

    margin: 20px auto;

    padding: 0 15px;
}

.layout-grid {
    display: grid;

    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);

    gap: 25px;
}


/* =========================================
   SECTION TITLES
========================================= */

.section-title {
    font-size: 24px;
    font-weight: 800;

    border-bottom: 3px solid var(--brand-red);

    margin: 0 0 20px;
    padding-bottom: 5px;

    display: inline-block;
}

.section-title span {
    color: var(--brand-red);
}


/* =========================================
   LEAD NEWS
========================================= */

.lead-news {
    position: relative;

    border-radius: 8px;
    overflow: hidden;

    margin-bottom: 25px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lead-news img {
    display: block;

    width: 100%;
    height: 450px;

    object-fit: cover;
}

.lead-overlay {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );

    padding: 30px 20px 15px;
}

.lead-overlay h2 {
    color: #fff;

    font-size: 32px;

    margin: 0 0 10px;

    font-weight: 800;
    line-height: 1.3;
}

.lead-overlay h2 a {
    color: #fff;
}

.lead-overlay h2 a:hover,
.lead-overlay h2 a:focus-visible {
    color: var(--brand-yellow);
}


/* =========================================
   NEWS GRID
========================================= */

.grid-news {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.news-card {
    background: #fff;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.news-card img {
    display: block;

    width: 100%;
    height: 180px;

    object-fit: cover;
}

.news-card-body {
    padding: 15px;
}

.news-card-body h3 {
    margin: 0;

    font-size: 20px;
    line-height: 1.4;

    font-weight: 700;
}

.news-card-body h3 a {
    color: var(--text-dark);
}

.news-card-body h3 a:hover,
.news-card-body h3 a:focus-visible {
    color: var(--brand-red);
}

.news-meta {
    font-size: 13px;
    color: #777;

    margin-top: 10px;

    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar-box {
    background: #fff;

    padding: 20px;

    border-radius: 8px;

    margin-bottom: 25px;

    border-top: 4px solid var(--brand-red);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fatafat-list {
    list-style: none;

    padding: 0;
    margin: 0;
}

.fatafat-list li {
    padding: 12px 0;

    border-bottom: 1px dashed #ddd;

    display: flex;

    gap: 12px;

    align-items: center;
}

.fatafat-list li:last-child {
    border-bottom: 0;
}

.fatafat-list li img {
    width: 70px;
    height: 70px;

    border-radius: 5px;

    object-fit: cover;

    flex-shrink: 0;
}

.fatafat-list li h4 {
    margin: 0;

    font-size: 15px;
    line-height: 1.3;
}

.fatafat-list li h4 a {
    color: var(--text-dark);
}

.fatafat-list li h4 a:hover,
.fatafat-list li h4 a:focus-visible {
    color: var(--brand-red);
}


/* =========================================
   WEB STORIES
========================================= */

.web-stories-wrap {
    display: flex;

    gap: 15px;

    overflow-x: auto;

    padding-bottom: 10px;

    -webkit-overflow-scrolling: touch;
}

.story-circle {
    flex: 0 0 100px;

    text-align: center;
}

.story-circle img {
    width: 90px;
    height: 90px;

    border-radius: 50%;

    border: 3px solid var(--brand-red);

    padding: 2px;

    object-fit: cover;
}

.story-circle span {
    display: block;

    font-size: 13px;
    font-weight: 600;

    margin-top: 5px;

    line-height: 1.2;
}


/* =========================================
   WHATSAPP BUTTON
========================================= */

.float-wa {
    position: fixed;

    bottom: 30px;
    right: 30px;

    background: var(--whatsapp-green);

    color: #fff;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 30px;

    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);

    z-index: 9999;
}

.float-wa:hover,
.float-wa:focus-visible {
    color: #fff;

    transform: scale(1.05);
}


/* =========================================
   ARTICLE
========================================= */

.hindi-article {
    background: #fff;

    padding: 40px;

    border-radius: 8px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    min-width: 0;
}

.hindi-article h1 {
    font-size: 42px;

    line-height: 1.3;

    margin-top: 0;
    margin-bottom: 20px;

    font-weight: 800;
}

.hindi-article .content {
    font-size: 22px;

    line-height: 1.8;

    color: #333;

    overflow-wrap: break-word;
}

.hindi-article .content p {
    margin-bottom: 25px;
}


/* =========================================
   LOAD MORE
========================================= */

.load-more-wrap {
    text-align: center;

    margin: 25px 0;
}

#load-more-news {
    background: #e21b23;

    color: #fff;

    border: 0;

    padding: 12px 28px;

    border-radius: 5px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;
}

#load-more-news:hover,
#load-more-news:focus-visible {
    background: #b9141b;
}

#load-more-news.loading {
    opacity: 0.6;

    pointer-events: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 992px) {

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .lead-news img {
        height: 350px;
    }

    .hindi-article {
        padding: 20px;
    }

    .sidebar-box {
        margin-bottom: 20px;
    }
}


/* =========================================
   SMARTPHONE
========================================= */

@media (max-width: 768px) {

    .mega-container {
        margin: 15px auto;

        padding-left: 10px;
        padding-right: 10px;
    }


    .grid-news {
        grid-template-columns: 1fr;
    }


    .main-header {
        flex-direction: column;

        text-align: center;

        gap: 10px;
    }


    .logo-box h1 {
        font-size: 30px;
    }


    .logo-box p {
        font-size: 13px;
    }


    .super-top-bar {
        flex-direction: column;

        gap: 5px;

        text-align: center;
    }


    .hindi-nav ul li a {
        padding: 9px 12px;

        font-size: 16px;
    }


    .lead-news img {
        height: 280px;
    }


    .lead-overlay {
        padding: 25px 15px 12px;
    }


    .lead-overlay h2 {
        font-size: 22px;
    }


    .hindi-article {
        padding: 18px;
    }


    .hindi-article h1 {
        font-size: 30px;
    }


    .hindi-article .content {
        font-size: 18px;
    }


    .ticker-title {
        padding: 0 12px;

        font-size: 14px;
    }


    .ticker-title::after {
        display: none;
    }


    .ticker-content {
        font-size: 16px;

        padding-left: 15px;
    }


    .float-wa {
        width: 52px;
        height: 52px;

        right: 15px;
        bottom: 15px;

        font-size: 25px;
    }
}


/* =========================================
   SMALL SMARTPHONES
========================================= */

@media (max-width: 480px) {

    .logo-box h1 {
        font-size: 26px;
    }


    .hindi-nav ul li a {
        padding: 8px 9px;

        font-size: 15px;
    }


    .lead-news img {
        height: 240px;
    }


    .lead-overlay h2 {
        font-size: 20px;
    }


    .hindi-article h1 {
        font-size: 27px;
    }


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


    .float-wa {
        width: 48px;
        height: 48px;

        right: 12px;
        bottom: 12px;

        font-size: 22px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .ticker-content {
        animation: none;

        transform: none;
    }

    .float-wa {
        transition: none;
    }
}