/* -------------------------------------------------------------------------- */
/*                                 Variables                                  */
/* -------------------------------------------------------------------------- */
:root {
    --amd-news-portal-primary: rgb(221 53 69);
    --amd-news-portal-primary-light: rgba(255, 235, 238, 0.612);
    --amd-news-portal-secondary: #003366;
    --amd-news-portal-text-main: #1a1a1a;
    --amd-news-portal-text-muted: #666666;
    --amd-news-portal-bg: #ffffff;
    --amd-news-portal-bg-secondary: #f8f9fa;
    --amd-news-portal-border: #e0e0e0;
    --amd-news-portal-overlay-bg: #ffffff;
    --amd-news-portal-input-text: #333333;

    --amd-news-portal-font-serif: "Merriweather", serif;
    --amd-news-portal-font-sans: "Mukta", "Roboto", sans-serif;
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] {
    --amd-news-portal-primary-light: rgb(48, 48, 48);
    --amd-news-portal-text-main: #e0e0e0;
    --amd-news-portal-text-muted: #b0b0b0;
    --amd-news-portal-bg: #121212;
    --amd-news-portal-bg-secondary: #1e1e1e;
    --amd-news-portal-border: #333333;
    --amd-news-portal-overlay-bg: rgb(33, 37, 41);
    --amd-news-portal-input-text: #ffffff;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #252525;
    border-color: #444;
}

[data-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #333;
    color: #fff;
}

[data-theme="dark"] .amd-mega-menu {
    background-color: #252525;
}

[data-theme="dark"] .offcanvas {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .amd-mobile-nav-list a {
    /* color: #e0e0e0 !important; */
    border-color: #333 !important;
}

[data-theme="dark"] .collapse.bg-light {
    background-color: #222 !important;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .form-control {
    color: #fff;
    border-color: #444;
}

[data-theme="dark"] .form-control:focus {
    background-color: #bebebe;
    color: #fff;
    border-color: #666;
}

[data-theme="dark"] .amd-news-portal-bg-secondary {
    background-color: #1e1e1e !important;
}

[data-theme="dark"] .tab-content {
    background-color: var(--amd-news-portal-bg);
}

/* [data-theme="dark"] .amd-news-portal-ad-leaderboard,
[data-theme="dark"] .amd-news-portal-ad-skyscraper {
    background-color: #222;
    border: 1px dashed #444;
} */

[data-theme="dark"] .amd-news-portal-search-overlay {
    background-color: var(--amd-news-portal-bg);
    /* dark transparent background */
}

[data-theme="dark"] .amd-news-portal-search-overlay input {
    color: var(--amd-news-portal-text-main) !important;
    /* light input text for dark bg */
    background-color: #222;
    /* optional: dark background input */
    border: 1px solid #444;
    /* subtle border */
}

[data-theme="dark"] .amd-news-portal-search-overlay i {
    color: #bbb;
    /* lighter icon color */
}

[data-theme="dark"] .amd-news-portal-event-block {
    background: transparent;
    /* lighter icon color */
}

[data-theme="dark"] .amd-news-portal-tabs .nav-link,
[data-theme="dark"] .amd-news-portal-widget a {
    color: var(--amd-news-portal-text-main);
}

/* card bg in dark mode */
[data-theme="dark"] .amd-news-portal-timeline-content,
[data-theme="dark"] .amd-news-portal-opinion-card,
[data-theme="dark"] .amd-news-portal-tabs,
[data-theme="dark"] .amd-province-tabs button,
[data-theme="dark"] .amd-province-card,
[data-theme="dark"] .amd-section-cards,
[data-theme="dark"] .amd-news-portal-card,
[data-theme="dark"] .amd-sport-live-rightside,
[data-theme="dark"] .amd-related-news-card {
    background: rgb(33, 37, 41) !important;
    color: var(--amd-news-portal-text-main);
}

/* -------------------------------------------------------------------------- */
/*                               Global Resets                                */
/* -------------------------------------------------------------------------- */
/* img click effects */
/* GLOBAL CLICKABLE IMAGE */
/* ============================= */
/* GLOBAL IMAGE INTERACTION FX   */
/* ============================= */

/* Lenis Smooth Scroll Setup */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/*  */

.amd-news-portal-body {
    background-color: var(--amd-news-portal-bg);
    color: var(--amd-news-portal-text-main);
    font-family: var(--amd-news-portal-font-sans);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.amd-news-portal-text-main {
    color: var(--amd-news-portal-text-main);
}

/* ===============================
   GLOBAL SCROLLBAR STYLE
================================ */

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--amd-news-portal-primary),
        #ff6b6b
    ) !important;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #b02a37,
        var(--amd-news-portal-primary)
    ) !important;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--amd-news-portal-primary) #f1f1f1 !important;
}

body {
    font-family: var(--amd-news-portal-font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--amd-news-portal-font-serif);
    font-weight: 700;
    color: var(--amd-news-portal-text-main);
    transition:
        color 0.2s ease,
        transform 0.2s ease !important;
}

h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
    color: var(--amd-news-portal-primary) !important;
    /* theme color */

    text-decoration: none !important;
    cursor: pointer;
}

.font-serif {
    font-family: var(--amd-news-portal-font-serif);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover,
.hover-red:hover {
    color: var(--amd-news-portal-primary) !important;
}

/* icon clock */
.fa-clock {
}

/* Scroll to Top */
.amd-news-portal-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--amd-news-portal-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.amd-news-portal-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* global btn ******************* */
.amd-view-all-btn {
    color: var(--amd-news-portal-primary);
    font-weight: 600;
    transition: all ease-in 0.2s;
}

.amd-view-all-btn:hover {
    color: var(--amd-news-portal-primary);
    transition: all;
}

/* Global AMD button base style */
.amd-btn {
    display: inline-block;
    padding: 7px 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--amd-news-portal-primary);
    cursor: pointer;
    background-color: transparent;
    color: var(--amd-news-portal-primary);
    user-select: none;
    text-align: center;
    text-decoration: none;

    /* smooth interactions */
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

/* Hover & focus */
.amd-btn:hover,
.amd-btn:focus {
    background-color: var(--amd-news-portal-primary);
    color: white !important;
    outline: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* CLICK / PRESS EFFECT 🔥 */
.amd-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) inset;
}

/* Disabled state */
.amd-btn:disabled {
    background-color: #a0a0a0;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Important AMD button modifier */
.amd-btn-important {
    background-color: var(--amd-news-portal-primary);
    color: white;
}

/* Hover for important */
.amd-btn-important:hover,
.amd-btn-important:focus {
    background-color: transparent;
    color: var(--amd-news-portal-primary) !important;
}

/* Click effect for important button */
.amd-btn-important:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) inset;
}

@media (max-width: 768px) {
    .amd-btn {
        font-size: 1rem;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    .amd-btn {
        font-size: 1rem;
        padding: 4px 6px;
    }
}

@media (max-width: 568px) {
    .amd-btn {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
}

/* global btn end*********** */
/* global img hover and clickable effect */
/* Body class to enable effect globally */

/* Wrapper for each image */
body.click-shine-active .img-wrap {
    position: relative;
    cursor: pointer;
    overflow: clip;
}

/* Images style */
body.click-shine-active .img-wrap img {
    transition: transform 0.2s ease;
}

/* Spread circle */
body.click-shine-active .img-wrap .spread {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    width: 0;
    height: 0;
    background: rgba(244, 253, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 10;
}

/* Pressed image scale */
body.click-shine-active .img-wrap.pressed img {
    transform: scale(0.96);
}

/* Animation for spread circle */
body.click-shine-active .img-wrap .spread.animate {
    animation: spreadExpand 0.5s ease forwards;
}

@keyframes spreadExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        opacity: 0.4;
        width: 250px;
        height: 250px;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        width: 350px;
        height: 350px;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/*global img clickable effect end */

/* global subscribe form or login form */
/* 1. OVERLAY WRAPPER */
.amd-sub-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Active State */
.amd-sub-overlay.active {
    display: flex;
    opacity: 1;
}

/* 2. MODAL CARD */
.amd-sub-card {
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.amd-sub-overlay.active .amd-sub-card {
    transform: scale(1) translateY(0);
}

/* CLOSE BUTTON */
.amd-sub-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
    color: #333;
}

.amd-sub-close:hover {
    background: var(--amd-news-portal-primary);
    color: #fff;
    transform: rotate(90deg);
}

/* 3. LEFT PANEL (Ad / Visual) */
.amd-sub-left {
    width: 45%;
    background-image: url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?q=80&w=800&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    color: white;
}

/* Dark Gradient Overlay for text readability */
.amd-sub-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.9)
    );
}

.amd-sub-left-content {
    position: relative;
    z-index: 2;
}

.amd-sub-sponsor-badge {
    background: var(--amd-news-portal-primary);
    color: white;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 2px;
}

/* 4. RIGHT PANEL (Form) */
.amd-sub-right {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amd-sub-title {
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #111;
}

.amd-sub-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Benefits List */
.amd-sub-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.amd-sub-benefits li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
}

.amd-sub-benefits li i {
    color: var(--amd-news-portal-primary);
    margin-right: 10px;
}

/* Form Input */
.amd-sub-input-group {
    position: relative;
    margin-bottom: 15px;
}

.amd-sub-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    transition: 0.3s;
}

.amd-sub-input:focus {
    border-color: var(--amd-news-portal-primary);
    outline: none;
}

.amd-sub-btn {
    width: 100%;
    padding: 15px;
    background: var(--amd-news-portal-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.amd-sub-btn:hover {
    background: var(--amd-news-portal-primary);
    transform: translateY(-2px);
}

/* Internal Ad in Modal */
.amd-sub-internal-ad {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    text-align: center;
}

.amd-sub-ad-box {
    background: #f4f4f4;
    color: #999;
    font-size: 0.7rem;
    padding: 15px;
    border-radius: 4px;
    display: block;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .amd-sub-card {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .amd-sub-left {
        width: 100%;
        height: 200px;
        padding: 20px;
    }

    .amd-sub-right {
        width: 100%;
        padding: 25px;
    }

    .amd-sub-title {
        font-size: 1.5rem;
    }
}

/* global subscribe form or login form end */

/* global limit text */
.amd-text-limit-2 {
    color: var(--amd-news-portal-text-muted);
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* global limit text end */

/* ads run container */
.amd-news-portal-sponsored-card {
    background-color: rgb(255 240 194 / 10%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--amd-news-portal-text-main);
}

.amd-news-portal-sponsored-card img {
    width: 100%;
    height: 90%;
    border-radius: 6px;
    object-fit: cover;
}

/* advertisment section */
.amd-news-portal-ad-leaderboard {
    /* margin: 1.5rem auto; */
    /* vertical spacing + center align */
}

.amd-ad-link {
    display: inline-block;
    width: 100%;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.amd-ad-link:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.amd-ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    /* to prevent image drag */
}

/* advertisment section end*/
/* sidebar */

/* ads run container end */

/* timeline css */
/* live time line section and related time lines both css */
/* timelines section and
        related time lines  */

.amd-news-portal-event-block {
    padding: 20px;
    margin-bottom: 40px;
}

.amd-news-portal-timeline-wrapper {
    height: 320px;
    overflow-y: auto;
}

.amd-news-portal-timeline-wrapper-container {
    height: 260px !important;
}

/* Timeline Container */
.amd-news-portal-timeline {
    position: relative;
    padding-left: 48px;
    height: auto;
    overflow-x: auto;
}

/* Gradient Vertical Line */
.amd-news-portal-timeline::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #dc3545,
        #ff6b6b,
        #dc3545,
        transparent
    );
    border-radius: 10px;
}

/* Timeline Item */
.amd-news-portal-timeline-item {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

/* Marker */
.amd-news-portal-timeline-marker {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 4px solid #dc3545;
    border-radius: 50%;
    z-index: 3;
}

/* LIVE CURRENT MARKER */
.amd-news-portal-timeline-marker.current {
    background: #dc3545;
    border-color: #dc3545;
}

/* LIVE WAVE */
.amd-news-portal-timeline-marker.current::before,
.amd-news-portal-timeline-marker.current::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(220, 53, 69, 0.4);
    animation: liveWave 2s infinite;
}

.amd-news-portal-timeline-marker.current::after {
    animation-delay: 1s;
}

/* Content Card */
.amd-news-portal-timeline-content {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    padding: 5px 9px;
    margin-right: 20px;
    width: 100%;
    transition: transform 0.3s ease;
}

.amd-news-portal-timeline-content:hover {
    transform: translateX(6px);
    color: var(--amd-news-portal-primary);
}

.amd-news-portal-timeline-content:hover .amd-news-portal-headline-sm {
    color: var(--amd-news-portal-primary);
}

/* Time */
.amd-news-portal-timeline-content span {
    letter-spacing: 0.4px;
}

/* Read More */
.amd-news-portal-timeline-content a {
    color: #dc3545;
    font-weight: 600;
}

.amd-news-portal-timeline-content a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* LIVE Animation */
@keyframes liveWave {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Mobile Optimized */
@media (max-width: 576px) {
    .amd-news-portal-timeline {
        padding-left: 38px;
    }

    .amd-news-portal-timeline::before {
        left: 13px;
    }

    .amd-news-portal-timeline-content {
        padding: 14px;
    }

    .amd-news-portal-event-block {
        padding: 10px;
    }

    .amd-news-portal-section-title {
        font-size: 1.1rem;
    }
}

/* live time line section and related time lines both css end*/
/* timeline css end */

/* update story notification badge  */
.amd-news-update-badge {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dc3545, #b32430);
    color: #fff;
    font-weight: 600;
    font-family: "Mukta", sans-serif;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 30px;
    box-shadow:
        0 6px 15px rgba(220, 53, 69, 0.5),
        0 1px 4px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
    opacity: 0;
    transition:
        top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Show State */
.amd-news-update-badge.show {
    top: 50px;
    opacity: 1;
}

/* Hide State */
.amd-news-update-badge.hide {
    top: -60px;
    opacity: 0;
}

/* Refresh Icon */
.refresh-icon {
    stroke: #fff;
    width: 18px;
    height: 18px;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.amd-news-update-badge:active .refresh-icon {
    transform: rotate(360deg);
}

/* Hover Effect */
.amd-news-update-badge:hover {
    background: linear-gradient(135deg, #c82333, #a61e2a);
    box-shadow:
        0 8px 20px rgba(200, 35, 51, 0.7),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

/* update story notification badge  end*/

/* -------------------------------------------------------------------------- */
/*                                 Header                                     */
/* -------------------------------------------------------------------------- */
.amd-news-portal-header {
    background-color: var(--amd-news-portal-bg);
    border-bottom: 1px solid var(--amd-news-portal-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1020;
}

.amd-news-portal-logo {
    font-family: var(--amd-news-portal-font-serif);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--amd-news-portal-text-main);
}

.amd-mobile-search-bar {
    background: var(--amd-news-portal-border);
}

.amd-news-portal-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--amd-news-portal-text-main);
}

.amd-news-portal-nav .nav-link:hover {
    color: var(--amd-news-portal-primary);
}

.amd-news-portal-nav .active,
.amd-mobile-nav-list .active {
    color: var(--amd-news-portal-primary) !important;
}

.amd-mobile-nav-list i.fas.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Rotate arrow when expanded */
.collapse.show + a i.fas.fa-chevron-down,
a[aria-expanded="true"] i.fas.fa-chevron-down {
    transform: rotate(180deg);
}

/* mega menus type1 type2 type3  */
/* mega menu base */
.amd-mega-menu-item {
    position: static;
}

.amd-mega-menu {
    left: 0 !important;
    right: 0 !important;
    inset: 0px auto auto 0px !important;
    transform: translate(0, 43px) !important;
    width: 100%;
    display: none;
    margin-top: 50px;
}

/* hover desktop */
@media (min-width: 992px) {
    .amd-mega-menu-item:hover > .amd-mega-menu {
        display: block;
        margin-top: 50px !important;
    }
}

/* ---------------- TYPE–A LEFT ---------------- */
.amd-pradesh.active {
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--amd-news-portal-border) !important;
    color: var(--amd-news-portal-text-main) !important;
}

.amd-pradesh-title {
    color: var(--amd-news-portal-text-main);
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin-bottom: 6px;
}

.amd-pradesh.active .amd-pradesh-title {
    color: var(--amd-news-portal-primary) !important;
}

.amd-palika-list {
    list-style: none;
    padding-left: 12px;
    display: none;
    font-size: 15px;
}

.amd-pradesh.active .amd-palika-list {
    display: block;
}

/* ---------------- TYPE–A RIGHT (FIXED) ---------------- */

/* default hidden */
.amd-palika-cards {
    display: none;
    opacity: 0;
    transform: translateX(10px);
}

/* show */
.amd-palika-cards.active {
    display: block;
    /* 🔥 NOT flex */
    opacity: 1;
    transform: translateX(0);
    animation: fadeIn 0.25s ease;
}

/* cards */
.amd-palika-card {
    display: flex;
    gap: 10px;
    padding: 5px 8px;
    color: var(--amd-news-portal-text-main) !important;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: var(--amd-news-portal-overlay-bg);
    font-size: 13px;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    cursor: pointer;
    /* pointer cursor for hoverable cards */
}

.amd-palika-card img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* Hover effect */
.amd-palika-card:hover {
    background-color: var(--amd-news-portal-primary-light, #f8d7da);
    /* example soft red/pink background, replace with your variable or hex */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    color: var(--amd-news-portal-primary, #dc3545) !important;
    /* change text color on hover */
}

/* mobile view  */
.amd-pradesh-palika-list {
    margin-bottom: 10px;
    border-radius: 6px;
    background: var(--amd-news-portal-border);
}

/* ---------------- TYPE–B SIMPLE ---------------- */

.amd-mega-simple .amd-palika-card,
.amd-mega-simple .amd-palika-list {
    display: none !important;
}

/* ---------------- animation ---------------- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* mega menu type 3 */
/* WRAPPER */
.amd-loc-section {
    padding: 30px 20px;
}

/* HEADERS */
.amd-loc-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--amd-news-portal-primary);
    margin-bottom: 15px;
}

.amd-loc-header span {
    color: var(--amd-news-portal-text-main);
}

/* For dynamic text */

/* BUTTON STYLES (Default) */
.amd-loc-btn {
    background-color: var(--amd-news-portal-overlay-bg);
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--amd-news-portal-text-main);
    width: 100%;
    position: relative;
}

.amd-loc-btn:hover {
    background-color: var(--amd-news-portal-primary-light);
    color: var(--amd-news-portal-primary);
    border-color: var(--amd-news-portal-primary);
}

/* ACTIVE STATE (Red Border & Pink BG) */
.amd-loc-btn.active {
    background-color: #fbe9e7;
    /* Light Pink */
    border: 2px solid var(--amd-news-portal-primary);
    color: var(--amd-news-portal-primary);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.15);
}

/* LEFT SIDE GRID (2 Columns) */
.amd-province-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 items per row */
    gap: 15px;
}

/* RIGHT SIDE LISTS (Flex Wrap) */
.amd-item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amd-item-list .amd-loc-btn {
    width: auto;
    /* Auto width based on text */
    min-width: 100px;
}

.district-group,
.palika-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* DIVIDER LINE */
.amd-loc-divider {
    border-right: 1px solid #e0e0e0;
}

/* ANIMATION */
.fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .amd-loc-divider {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .amd-item-list .amd-loc-btn {
        flex: 1 0 auto;
    }

    /* Expand on mobile */
}

/* mega menus type1 type2 type3 end */

/* Actions */
.amd-news-portal-icon-btn {
    color: var(--amd-news-portal-text-main);
}

.amd-news-portal-icon-btn:hover {
    color: var(--amd-news-portal-primary);
}

.amd-news-portal-theme-toggle {
    /* color: var(--amd-news-portal-text-main); */
    border: 1px solid var(--amd-news-portal-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amd-news-portal-lang-btn {
    color: var(--amd-news-portal-text-main);
    background: transparent;
}

/* Search Overlay */
.amd-news-portal-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--amd-news-portal-overlay-bg);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.amd-news-portal-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.amd-news-portal-search-overlay input {
    font-size: 1.5rem;
    font-family: var(--amd-news-portal-font-serif);
    color: var(--amd-news-portal-input-text);
}

.amd-news-portal-search-overlay button i {
    color: var(--amd-news-portal-text-muted);
}

/* -------------------------------------------------------------------------- */
/*                                 Header End                                 */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/*                               Sections UI                                  */
/* -------------------------------------------------------------------------- */
/* home page *******************************************/
.amd-news-portal-section-header {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--amd-news-portal-text-main);
    border-left: 5px solid var(--amd-news-portal-primary);

    padding-left: 15px;
    border-bottom: var(--amd-news-portal-border);
}

/* Breaking Bar */
.amd-news-portal-breaking-bar {
    position: sticky;
    top: 61px;
    z-index: 7;
    background-color: var(--amd-news-portal-bg-secondary);
    border-bottom: 1px solid var(--amd-news-portal-border);
    height: 40px;
    color: var(--amd-news-portal-text-main);
}

.amd-news-portal-breaking-label {
    background-color: var(--amd-news-portal-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    position: relative;
}

.amd-news-portal-breaking-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 40px solid var(--amd-news-portal-primary);
    border-right: 10px solid transparent;
}

.amd-news-portal-breaking-content {
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amd-news-portal-ticker-text {
    white-space: nowrap;
    display: inline-block;
    will-change: transform;
    cursor: grab;
}

.amd-news-portal-ticker-text:active {
    cursor: grabbing;
}

.amd-ticker-item {
    margin-right: 40px;
}

.amd-news-portal-ticker-text {
    color: var(--amd-news-portal-text-main);
}

.amd-news-portal-ticker-text:hover {
    color: var(--amd-news-portal-primary);
}

/* Breaking Bar end */

/* 1st ribbon section */
/* layout helper */
.amd-text-hero-split {
    position: relative;
}

/* RELATED NEWS CARD */
.amd-related-news-card {
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.amd-related-news-header {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 1.5rem;

    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--amd-news-portal-text-main);
}

.amd-related-news-list {
    max-height: 220px;
    overflow-y: auto;
    flex-grow: 1;
}

.amd-related-news-list::-webkit-scrollbar {
    width: 6px;
}

.amd-related-news-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.amd-related-news-item {
    text-decoration: none;
    padding: 6px 0;
}

.amd-related-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.amd-related-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.amd-related-news-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    text-decoration: none;
    border-bottom: 1px dashed #e5e5e5;
    color: #212529;
    transition: background 0.2s;
}

.amd-related-news-item:last-child {
    border-bottom: none;
}

.amd-related-news-item .amd-related-title:hover {
    color: var(--amd-news-portal-primary);
}

.amd-related-tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--amd-news-portal-primary);
    text-transform: uppercase;
}

.amd-related-title {
    color: var(--amd-news-portal-text-main);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.amd-related-time {
    font-size: 13px;
    color: var(--amd-news-portal-text-muted);
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 4px;
}

.amd-related-time i {
    font-style: normal;
    /* font awesome icon fix */
}

/* 2nd ribbon css */

/* without img just text ribon section */
/* TEXT HERO BOX */
.amd-text-hero-box {
    padding: 28px 28px 24px;
    text-align: center;
}

.amd-text-hero-box p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--amd-news-portal-text-muted);
}

.amd-text-hero {
    position: relative;
}

/* ===============================
   REGION / RIBBON BADGE
================================ */
.amd-text-ribbon {
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--amd-news-portal-primary),
        #51100f
    );
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

/* ===============================
   HEADLINE
================================ */
.amd-hero-head {
    position: relative;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 6px;
    padding-left: 26px;
    /* curve space */
}

/* ===============================
   CURVED POINTER (reply style)
================================ */
.amd-curve-pointer {
    position: absolute;
    left: 43%;
    top: -10px;
    width: 26px;
    height: 22px;
    border-left: 3px solid var(--amd-news-portal-primary);
    border-bottom: 3px solid var(--amd-news-portal-primary);
    border-radius: 0 0 0 14px;
    transform: rotate(70deg);
}

@media (max-width: 991px) {
    .amd-text-hero-box {
        padding: 15px 15px 20px;
        text-align: center;
    }

    .amd-curve-pointer {
        width: 29px;
        height: 29px;
        top: -15px;
    }
}

@media (max-width: 768px) {
    .amd-curve-pointer {
        width: 30px;
        height: 36px;
        top: -24px;
    }
}

@media (max-width: 576px) {
    .amd-curve-pointer {
        width: 25px;
        height: 46px;
        top: -31px;
    }

    .amd-text-ribbon {
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* Reuse meta styles (already made earlier) */
.amd-text-hero-box .amd-hero-meta {
    justify-content: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px;
    font-size: 14px;
}

.amd-text-hero-box .amd-hero-author {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    gap: 6px;
    font-weight: 600;
}

.amd-text-hero-box .amd-hero-author img {
    width: 45px;
    height: 45px;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    object-fit: contain;
}

.amd-text-hero-box .amd-hero-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.2rem;
    color: var(--amd-news-portal-text-main);
}

/* with img ribon section */
.amd-ribbon-hero {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.amd-hero-head {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin: 0 auto 20px auto;
    transition: all ease-in 0.1s;
}

.amd-hero-head:hover {
    color: var(--amd-news-portal-primary);
}

.amd-ribbon-badge {
    position: absolute;
    top: 9px;
    left: -6px;
    background: linear-gradient(
        135deg,
        var(--amd-news-portal-primary),
        #b02a37
    );
    color: #fff;
    padding: 3px 7px 3px 7px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 0 6px 6px 0;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Ribbon triangle cut */
.amd-ribbon-badge::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    border-top: 8px solid #7a1822;
    border-left: 6px solid transparent;
}

.amd-ribbon-hero .amd-section-cards .amd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.amd-ribbon-hero .amd-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.86) 0%,
        rgba(0, 0, 0, 0.4) 83%,
        transparent 100%
    );

    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amd-ribbon-hero .amd-hero-overlay p {
    color: white !important;
    text-shadow: 1px 5px 15px #000000;

    font-weight: 500;
    font-size: 2.3rem;
    margin-bottom: 0;
    align-items: center;
    max-width: 1100px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 👈 sirf 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .amd-hero-head {
        font-size: 2.5rem;
    }

    .amd-ribbon-badge {
        font-size: 0.7rem;
    }

    .amd-ribbon-hero .amd-hero-overlay p {
        font-size: 1.65rem;
    }
}

@media (max-width: 568px) {
    .amd-hero-head {
        font-size: 1.7rem;
    }

    .amd-ribbon-hero .amd-hero-overlay p {
        font-size: 1.3rem;
    }
}

.amd-ribbon-hero .amd-hero-meta {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #f1f1f1;
}

.amd-ribbon-hero .amd-hero-author {
    color: var(--amd-news-portal-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 500;
}

.amd-ribbon-hero .amd-hero-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.amd-ribbon-hero .amd-hero-time {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
    font-size: 1.2rem;
}

.amd-ribbon-hero .amd-hero-time i {
    font-size: 13px;
}

/* =========================================
           TICKER & CAROUSELS
           ========================================= */
.amd-ribbon-hero .amd-ticker-wrap {
    background: var(--amd-bg-surface);
    border-bottom: 1px solid var(--amd-border);
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.amd-ribbon-hero .amd-ticker-badge {
    background: var(--amd-primary);
    color: #fff;
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

.amd-ribbon-hero .amd-ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.amd-ticker-track {
    display: inline-block;
    animation: tickerScroll 20s linear infinite;
    padding-left: 20px;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

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

/* ribbon related card carousel  */
/* Carousel Wrapper */
.amd-ribbon-politics-carousel {
    background: var(--amd-news-portal-bg-secondary);
    padding: 10px;
    overflow: hidden;
    position: relative;
}

.amd-ribbon-politics-carousel img {
    height: 105px !important;
}

/* Card */
.amd-ribbon-politics-carousel .amd-politics-small-card {
    min-width: 380px;
    background: var(--amd-news-portal-overlay-bg);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 10px;
}

/* Meta (Date & Time) */
.amd-news-meta {
    font-size: 14px;
    color: var(--amd-news-portal-text-muted);
}

/* 2nd ribbon end */

/* riboon section end */
/*section 1 css*********************** */
.amd-news-portal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.amd-news-portal-hero-overlay h1,
.amd-news-portal-hero-overlay p {
    color: white;
}

.amd-news-portal-headline-lg {
    color: white;
    font-size: 2rem;
    line-height: 1.2;
}

.amd-news-portal-headline-md {
    font-size: 1.2rem;
    line-height: 1.3;
}

.amd-news-portal-headline-sm {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.amd-asidebar-sticky {
    position: sticky;
    top: 105px;
    align-self: start;
    /* kabhi kabhi zaroori hota hai sticky ke sath */
}

@media (max-width: 991px) {
    .amd-asidebar-sticky {
        position: static;
    }
}

.amd-hero-rightside-card {
    position: sticky;
    top: 102px;
    display: flex;
    flex-direction: column;
}

.amd-news-portal-sub-story {
    border-radius: 6px;
    background: var(--amd-news-portal-overlay-bg);
}

.amd-news-portal-card,
.amd-news-portal-big-card {
    border-radius: 6px;
    transition: 0.3s;
}

.amd-news-portal-card:hover,
.amd-news-portal-big-card:hover {
    transform: translateY(-5px);
}

.amd-news-portal-card:hover h5,
.amd-news-portal-big-card:hover h5 {
    color: var(--amd-news-portal-primary);
}

.amd-news-portal-sub-story small,
.amd-news-portal-card span,
.amd-news-portal-opinion-card small {
    color: var(--amd-news-portal-text-muted);
}

.amd-carousel-wrapper span,
.amd-news-portal-card span {
    color: var(--amd-news-portal-primary);
}

.amd-news-portal-sub-story img {
    width: 130px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
    /* rounded-1 ke liye approx */
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .amd-news-portal-headline-lg {
        font-size: 1.5rem;
    }

    .amd-news-portal-hero-overlay {
        padding: 1rem;
    }

    .amd-news-portal-sub-story {
        flex-direction: column;
        width: 100%;
    }

    .amd-news-portal-sub-story img {
        width: 100%;
        height: 250px;
    }

    .amd-hero-rightside-card {
        display: flex;
        flex-direction: row;
    }

    .amd-hero-rightside-card .amd-news-portal-sponsored-card {
        display: none;
    }
}

@media (max-width: 568px) {
    .amd-news-portal-headline-lg {
        font-size: 1rem;
    }

    .amd-news-portal-sub-story img {
        width: 100%;
        height: 120px;
    }
}

/* section 2 css carousel card css */
.amd-section-cards {
    position: relative;
    background: var(--amd-bg-card);
    border: 1px solid var(--amd-border);
    transition: var(--transition);
    height: 100%;
    border-radius: 6px;
}

.amd-section-cards:hover {
    border-color: var(--amd-primary);
}

.amd-img-zoom {
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 6px;
}

.amd-img-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* General Carousel Styles */
.amd-carousel-wrapper {
    position: relative;
    /* padding: 0 40px; */
}

.amd-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.amd-carousel-track::-webkit-scrollbar {
    display: none;
}

.amd-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--amd-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* section 2 end  */

/* section 3 */

.amd-politics-small-wrapper {
    display: flex;
    flex-direction: column;
}

.amd-politics-small-card {
    position: relative;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--amd-news-portal-overlay-bg);
    transition: all 0.25s ease;
}

.amd-politics-small-card img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.amd-politics-small-card .amd-news-desc {
    font-size: 15px !important;
    font-weight: 500;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 🔒 2 lines only */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amd-politics-small-card h6 {
    line-height: 1.3;
    font-size: 16px;
}

@media (max-width: 768px) {
    .amd-politics-small-wrapper {
        display: flex;

        flex-wrap: wrap;
    }

    .amd-politics-small-card .amd-news-desc {
        font-size: 14px;
    }
}

/* section 3 end */

/* section 4  */

/* -------------------------------------------------------------------------- */
/*                          Mobile Scroll Snap Logic                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .amd-mobile-carousel-wrapper {
        overflow: hidden;
        /* margin-right: -12px; */
    }

    .flex-nowrap-mobile {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 0.6rem;
        padding-bottom: 1rem;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .flex-nowrap-mobile::-webkit-scrollbar {
        display: none;
    }

    .mobile-card {
        flex: 0 0 85%;
        max-width: 40%;
        scroll-snap-align: start;
    }

    .col-lg-6 .flex-nowrap-mobile .mobile-card {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .amd-news-portal-bg-secondary .flex-nowrap-mobile .mobile-card {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

@media (max-width: 400px) {
    .mobile-card {
        flex: 0 0 85%;
        max-width: 60%;
        scroll-snap-align: start;
    }
}

/* this is only mobile caorusel shift css */

.amd-news-portal-divider {
    border-color: var(--amd-news-portal-text-muted);
}

/* section 5 */
.amd-news-portal-opinion-card {
    background-color: var(--amd-news-portal-bg);
    border-color: var(--amd-news-portal-border) !important;
}

.amd-news-portal-opinion-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}
/* section 5 end */

.amd-news-portal-headline-md a {
    display: -webkit-box;
    /* Flexbox alternative for multiline clamp */
    -webkit-line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Show ... for overflow */
    white-space: normal;
}

/* section 6  */
/* multi media section  */
/* multimedia  */
.video-wrapper {
    background: #000;
    position: relative;
}

.amd-news-portal-video-section {
    padding: 15px;
}

.amd-news-portal-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: var(--amd-news-portal-primary);
    pointer-events: none;
    /* so icon doesn’t block clicks on iframe */
    user-select: none;
}

.amd-news-portal-playlist a {
    display: -webkit-box;
    /* Flexbox alternative for multiline clamp */
    -webkit-line-clamp: 3;
    /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Show ... for overflow */
    white-space: normal;
    /* Allow line breaks */
}

/* Playlist links hover */
.amd-news-portal-playlist a:hover {
    text-decoration: underline;
    color: var(--amd-news-portal-primary) !important;
    /* Bootstrap warning yellow */
}

/* multi media section end */

/* Sidebar */
.amd-news-portal-sidebar-sticky {
    position: sticky;
    top: 102px;
}

/* tabs */
.amd-news-portal-widget {
    background: var(--amd-news-portal-bg);
    border-radius: 6px;
    border: 1px solid var(--amd-news-portal-border);
    overflow: hidden;
}

/* Tabs Header */
.amd-news-portal-tabs {
    border-bottom: none;
    background: #f8f9fa;
    padding: 6px;
    gap: 6px;
}

.amd-news-portal-tabs .nav-link {
    border: none;
    border-radius: 6px;
    font-weight: 600;
    color: #444;
    padding: 5px 11px;
    transition: all 0.25s ease;
}

.amd-news-portal-tabs .nav-link:hover {
    background: rgba(220, 53, 69, 0.08);
}

.amd-news-portal-tabs .nav-link.active {
    background: var(--amd-news-portal-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.35);
}

/* Tab Content */
.amd-news-portal-widget .tab-content {
    border: none !important;
    padding: 14px 16px;
}

/* Card container */
.amd-news-portal-widget {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* background: #fff; */
}

/* Trending Numbered List */
.amd-news-portal-list-numbered {
    counter-reset: trending;
    margin: 0;
    padding-left: 0;
}

.amd-news-portal-list-numbered li {
    background: var(--amd-news-portal-overlay-bg, #f8f9fa);
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.15);
    padding: 10px 15px 10px 45px;
    list-style: none;
    position: relative;
    margin-bottom: 14px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
}

/* Center the number circle vertically and horizontally */
.amd-news-portal-list-numbered li::before {
    counter-increment: trending;
    content: counter(trending);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--amd-news-portal-primary, #dc3545);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Links */
.amd-news-portal-widget a {
    color: var(--amd-news-portal-text-main);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.amd-news-portal-widget a:hover {
    color: var(--amd-news-portal-primary);
}

/* Popular List */
#popular li {
    padding-bottom: 10px;
}

#popular li:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
}

/* Footer */
.amd-news-portal-footer {
    background-color: #111;
    color: #fff;
    border-top: 5px solid var(--amd-news-portal-primary);
}
/* section 6 end */

/* section 8 css  */
/* WRAPPER */
.amd-province-section {
}

/* NAVIGATION LIST (Desktop: Vertical / Mobile: Horizontal Scroll) */
.amd-province-nav {
    position: sticky;
    top: 132px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Default Vertical for Desktop */
    gap: 5px;
    background: var(--amd-news-portal-overlay-bg);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.amd-province-nav-item {
    padding: 12px 20px;
    font-weight: 600;
    color: var(--amd-news-portal-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.amd-province-nav-item:hover {
    background-color: #ffdddd;
    color: var(--amd-news-portal-primary);
}

.amd-province-nav-item.active {
    background-color: var(--amd-news-portal-primary);
    color: white;
}

/* FEATURED CARD (Image Left, Content Right) */
.amd-province-feat-card {
    display: flex;
    flex-direction: row;
    background: var(--amd-news-portal-overlay-bg);
    border-radius: 6px;
    overflow: hidden;

    margin-bottom: 25px;
    height: 380px;
    /* Fixed height for consistency */
    transition: transform 0.3s ease;
}

.amd-province-feat-img {
    width: 100%;
    /* Big Image Area */
    position: relative;
    overflow: hidden;
}

.amd-province-feat-img img {
    width: 100%;
    aspect-ratio: 3/3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.amd-province-feat-content {
    width: 100%;
    /* Content Area */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--amd-news-portal-overlay-bg);
}

/* Top Story Badge */
.amd-province-badge {
    display: inline-block;
    background: #d32f2f;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 15px;
    align-self: flex-start;
}

/* SUB CARDS */
.amd-province-sub-card {
    background: var(--amd-news-portal-overlay-bg);
    border-radius: 6px;
    overflow: hidden;

    height: 100%;
    transition: 0.3s;
}

.amd-province-sub-card:hover {
    transform: translateY(-3%);
}

.amd-province-sub-card:hover h5 {
    color: var(--amd-news-portal-primary);
}

.amd-province-sub-img {
    height: 230px;
    overflow: hidden;
}

.amd-province-sub-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* RESPONSIVE MAGIC */
@media (max-width: 991px) {
    /* Shift Nav to Top & Scroll */
    .amd-province-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        margin-bottom: 20px;
        padding: 10px;
        /* Hide Scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .amd-province-nav::-webkit-scrollbar {
        display: none;
    }

    .amd-province-nav-item {
        flex: 0 0 auto;
        /* Don't shrink */
    }

    /* Stack Big Card */
    .amd-province-feat-card {
        flex-direction: column;
        height: auto;
    }

    .amd-province-feat-img {
        width: 100%;
        height: 100%;
    }

    .amd-province-feat-img img {
        aspect-ratio: 6/3;
        object-fit: cover;
    }

    .amd-province-feat-content {
        width: 100%;
        padding: 20px;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .amd-province-feat-img img {
        aspect-ratio: 6/3;
        object-fit: cover;
    }

    .amd-province-sub-card {
        display: flex;
        flex-direction: row;
    }

    .amd-province-sub-img {
        border-radius: 6px;
        height: 155px;
    }
}

/* section 8 css end */

/* section 9 css */
.amd-features-grid-section__big-card {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.amd-features-grid-section__bg {
    height: 540px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.amd-features-grid-section__overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 45px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1.8), transparent);
    color: #fff;
}

.amd-features-grid-section__overlay .text-center {
    margin-bottom: -10px;
}

.amd-features-grid-section__overlay h4 {
    color: white;
}

.amd-features-grid-section__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.amd-features-grid-section__meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.amd-features-grid-section__big-card {
    position: relative;
}

.amd-features-grid-section__big-card .carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 0.6rem !important;
    margin-left: 15%;
}

/* arrows bottom me */
.amd-features-grid-section__arrow {
    position: absolute;
    bottom: 14px;
    top: auto !important;
    /* ye top wali problem fix karega */
    z-index: 5;

    width: 36px;
    height: 36px;
    background: rgba(209, 209, 209, 0.65);

    color: #ffffff;
    font-size: 46px;
    border: none;

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

.amd-features-grid-section__arrow:hover {
    color: white;
    background: var(--amd-news-portal-primary);
}

/* left & right placement */
.carousel-control-prev.amd-features-grid-section__arrow {
    left: 14px;
}

.carousel-control-next.amd-features-grid-section__arrow {
    right: 14px;
}

.amd-features-grid-section__small-card {
    border-radius: 6px;
    overflow: hidden;
    background: var(--amd-news-portal-overlay-bg);
    transition: 0.3s;
}

.amd-features-grid-section__small-card:hover {
    transform: translateY(-3%);
}

.amd-features-grid-section__small-card:hover .amd-news-portal-headline-sm {
    color: var(--amd-news-portal-primary);
}

/* image fixed ratio */
.amd-features-grid-section__small-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* 3-line clamp text */
.amd-features-grid-section__small-card h6 {
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;

    max-height: calc(1.6em * 3);
}

@media (max-width: 768px) {
    .amd-features-grid-section__bg {
        height: 320px;
    }
}

/* section 9 css end */

/* section 10 css  */
/* LEFT list cards */
.amd-left-news-list,
.amd-right-news-list {
    background: var(--amd-news-portal-overlay-bg);
    padding: 10px;
    border-radius: 6px;
}

.amd-left-news-item,
.amd-mid-main-article {
    transition: 0.3s;
}

.amd-left-news-item:hover,
.amd-mid-main-article:hover {
    transform: translateY(-3%);
}

.amd-left-news-item:hover h6,
.amd-mid-main-article:hover h5 {
    color: var(--amd-news-portal-primary);
}

.amd-left-news-list li img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.amd-left-news-list li h6 a {
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.amd-left-news-list li h6:hover {
    color: #dc3545;
}

.amd-left-news-list li small {
    font-size: 12px;
    color: #777;
}

/* RIGHT text list */
.amd-right-news-list p {
    margin-bottom: 4px;
}

.amd-right-news-list a {
    color: #222;
    text-decoration: none;
}

.amd-right-news-list a:hover {
    color: #dc3545;
}

.amd-right-news-list small {
    font-size: 13px;
    font-weight: 500;
    color: var(--amd-news-portal-text-muted);
}

/* Main content images */
.amd-mid-main-container img {
    max-width: 100%;
    border-radius: 8px;
}

.float-img {
    float: right;
    width: 300px;
    /* image width */
    margin: 0 0 10px 15px;
    /* space on left for text */
    border-radius: 8px;
    object-fit: cover;
}

/* Clearfix for article if needed */
.amd-mid-main-article::after {
    content: "";
    display: table;
    clear: both;
}

.amd-three-column-news small {
    color: var(--amd-news-portal-text-muted) !important;
    font-weight: 500 !important;
}

.amd-mid-main-container p {
    line-height: 1.3;
    font-size: 1.1rem;
    color: var(--amd-news-portal-text-muted);
    text-align: justify;
}

@media (max-width: 568px) {
    .amd-mid-main-container img {
        width: 100%;
        height: 250px;
    }
}

/* section 10 css end */

/* section 12 css  */
/* ===== PROVINCE TABS ===== */
.amd-province-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.amd-province-tabs {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 8px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

.amd-province-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.amd-province-tabs button {
    flex: 1;
    white-space: nowrap;
    border: none;
    padding: 10px 0;
    border-radius: 6px;
    background: #f1f1f1;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.amd-province-tabs button:hover {
    background: var(--amd-news-portal-primary);
    color: #fff;
}

.amd-province-tabs button.active {
    background: var(--amd-news-portal-primary);
    color: #fff;
}

/* Arrows for tabs */
.amd-tab-arrow {
    display: none;
    border: none;
    background: #fff;
    width: 34px;
    height: 34px;
    font-size: 27px;
    border-radius: 2%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* ===== MOBILE BEHAVIOR ===== */
/* ===== MOBILE BEHAVIOR ===== */
@media (max-width: 668px) {
    .amd-tab-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .amd-province-tabs {
        justify-content: flex-start;
    }

    .amd-province-tabs button {
        flex: 0 0 auto;
        padding: 8px 16px;
    }
}

/* ===== CAROUSEL & CARDS ===== */
.amd-province-carousel-wrapper {
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
}

.amd-card-arrow {
    border: none;
    background: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 2%;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        opacity 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

#cardLeft {
    left: 0;
}

#cardRight {
    right: 0;
}

/* Show arrows on hover */
.amd-province-carousel-wrapper:hover .amd-card-arrow {
    opacity: 1;
    pointer-events: auto;
}

.amd-card-arrow:hover {
    background: var(--amd-news-portal-primary, var(--amd-news-portal-primary));
    color: white;
}

/* Cards container horizontal scroll */
.amd-province-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
}

.amd-province-cards::-webkit-scrollbar {
    display: none;
}

/* Individual cards */
.amd-province-card {
    flex: 0 0 260px;
    /* fixed width */
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding-bottom: 10px;
    transition: 0.3s;
}

.amd-province-card:hover {
    transform: translateY(-2%);
}

.amd-province-card:hover h5 {
    color: var(--amd-news-portal-primary);
}

.amd-province-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    display: block;
    margin-bottom: 6px;
}

.amd-province-card h5 {
    font-weight: 600;
    padding: 10px 12px 4px;
}

.amd-province-card h5:hover {
    color: var(--amd-news-portal-primary);
}

.amd-province-card p {
    font-size: 1rem;
    padding: 0 10px;
    color: var(--amd-news-portal-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== FEATURE IMAGE ===== */
.amd-province-feature {
    margin-top: 20px;
}

.amd-province-feature img {
    width: 100%;
    aspect-ratio: 6/3;
    border-radius: 6px;
    margin: 0 0 14px;
    object-fit: cover;
}

.amd-province-feature-content h3 {
    font-weight: 700;
}

.amd-province-feature-content p {
    color: var(--amd-news-portal-text-muted);
    font-weight: 500;
    font-size: 1.3rem;
}

/* section 12 end */

/* section 14 */
/* Sports Scoreboard */
.amd-score-strip {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.amd-score-card {
    flex: 0 0 150px;
    background: var(--amd-news-portal-bg);
    border: 1px solid var(--amd-news-portal-border);
    padding: 10px;
    text-align: center;
}

.amd-news-img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.amd-news-desc {
    font-size: 1rem;
    color: var(--amd-news-portal-text-muted);
    margin-bottom: 0;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 👈 sirf 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amd-sport-live-rightside {
    position: sticky;
    top: 102px;
}

.amd-sport-card {
    transition: 0.3s;
}

.amd-sport-card:hover {
    transform: translateY(-5px);
}

.amd-sport-card:hover h5 {
    color: var(--amd-news-portal-primary);
}

/* Sports Center section end*********** */
/* section 14 end */

/* section 11 css */
.amd-highlights-section-card,
.amd-highlights-section-list-item {
    transition: 0.3s;
}

.amd-highlights-section-card:hover,
.amd-highlights-section-list-item:hover {
    transform: translateY(-3%);
}

.amd-highlights-section-card:hover .amd-highlights-section-title,
.amd-highlights-section-list-item:hover .amd-highlights-section-title {
    color: var(--amd-news-portal-primary);
}

.amd-highlights-section-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 6px;
}

.amd-highlights-section-img-tall {
    height: 180px;
    /* Vertical aspect */
}

.amd-highlights-section-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.amd-highlights-section-meta i {
    margin-right: 4px;
}

.amd-highlights-section-meta span {
    font-size: 0.8rem;
    margin-right: 10px;
}

.amd-highlights-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--amd-news-portal-text-main);
    margin: 0;
}

.amd-highlights-section-title:hover {
    color: #d32f2f;
}

/* Sidebar Content */
.amd-highlights-section-video-card {
    position: relative;
    margin-bottom: 20px;
}

.amd-highlights-section-video-img {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    object-fit: cover;
    filter: brightness(0.7);
}

.amd-highlights-section-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 15px;
}

.amd-highlights-section-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--amd-news-portal-border);
    padding-bottom: 15px;
}

.amd-highlights-section-list-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.amd-highlights-section-btn-blue {
    background-color: #2d7ec1;
    /* Blue from design */
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 2px;
    text-align: center;
    display: block;
    transition: 0.3s;
}

.amd-highlights-section-btn-blue:hover {
    background-color: #1a5c91;
    color: white;
}

@media (max-width: 768px) {
    .amd-highlights-section-small-img {
        height: 300px !important;
    }
}

/* section 11 css end */

/* section 15 css  */
/* Culture ZigZag */
.amd-zigzag-item {
    display: flex;
    gap: 0;
    background: var(--amd-bg-card);
    border: 1px solid var(--amd-border);
    margin-bottom: 30px;
}

.amd-zigzag-img {
    width: 40%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.amd-zigzag-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.amd-zigzag-content {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.amd-zigzag-content p {
    color: var(--amd-news-portal-text-muted);
}

@media (max-width: 768px) {
    .amd-zigzag-item {
        flex-direction: column !important;
    }

    .amd-zigzag-img {
        width: 100%;
        height: 200px;
    }

    .amd-zigzag-content {
        width: 100%;
        padding: 10px;
    }
}

/* section 15 css end */

/* section 16 */
.amd-select-news-wrapper {
    background: var(--amd-news-portal-overlay-bg);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--amd-news-portal-border);
    overflow: hidden;
}

/* --- LEFT SIDEBAR (Scrollable on Mobile) --- */
.amd-select-news-sidebar {
    background-color: transparent;
    border-right: 1px solid var(--amd-news-portal-border);
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.amd-select-news-cat-btn {
    width: 100%;
    text-align: left;
    padding: 7px 13px;
    margin-bottom: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #555;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    /* Prevent text wrap */
}

.amd-select-news-cat-btn:hover {
    background-color: #fff5f5;
    color: var(--amd-news-portal-primary);
    padding-left: 25px;
}

.amd-select-news-cat-btn.active {
    background-color: var(--amd-news-portal-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
    padding-left: 21px;
    /* Reset padding for active */
}

/* --- RIGHT CONTENT AREA --- */
.amd-select-news-content {
    padding: 12px;
}

.amd-select-news-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--amd-news-portal-text-muted);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.amd-select-news-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--amd-news-portal-overlay-bg);
    margin-left: 15px;
}

/* --- SCROLLABLE TAGS (CAROUSEL EFFECT) --- */
.amd-select-news-tags-wrapper {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    margin-bottom: 25px;
    /* Hide Scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.amd-select-news-tags-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.amd-select-news-tag-pill {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    background: var(--amd-news-portal-overlay-bg);
    border: 1px solid var(--amd-news-portal-border);
    border-radius: 50px;
    color: var(--amd-news-portal-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    /* Ensure they stay in one line */
    flex: 0 0 auto;
    /* Don't shrink */
}

.amd-select-news-tag-pill:hover {
    border-color: var(--amd-news-portal-primary);
    color: var(--amd-news-portal-primary);
}

.amd-select-news-tag-pill.active {
    background-color: var(--amd-news-portal-primary);
    border-color: var(--amd-news-portal-primary);
    color: white;
}

/* --- NEWS CAROUSEL ITEMS --- */
.amd-select-news-item-card {
    background: var(--amd-news-portal-overlay-bg);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.amd-select-news-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.amd-select-news-item-card:hover h5 {
    color: var(--amd-news-portal-primary);
}

.amd-select-news-thumb {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
}

.amd-select-news-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 160px;
}

/* Custom Carousel Controls */
.amd-select-news-controls {
    display: flex;
    gap: 10px;
}

.amd-news-control-btn {
    width: 30px;
    height: 33px;
    border: 1px solid #ddd;
    background: white;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.amd-news-control-btn:hover {
    background: var(--amd-news-portal-primary);
    color: white;
    border-color: var(--amd-news-portal-primary);
}

/* Animation */
.amd-fade-in {
    animation: amdFade 0.5s ease-out;
}

@keyframes amdFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .amd-select-news-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--amd-news-portal-border);
        flex-direction: row;
        /* Horizontal on mobile */
        overflow-x: auto;
        /* Scrollable */
        padding: 15px;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .amd-select-news-sidebar::-webkit-scrollbar {
        display: none;
    }

    .amd-select-news-cat-btn {
        width: auto;
        margin-right: 10px;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .amd-select-news-cat-btn:hover {
        padding-left: 15px;
    }

    /* Disable slide effect on mobile */
    .amd-select-news-cat-btn.active {
        padding-left: 20px;
    }
}

/* section 16 end */

/*section 17 opinion section  */
/* --- Opinion Section1 with Clip-Path --- *
             /* opinion 1 card design */
/* 1. The Container Box (Bottom Layer) */
.opinion-section-wrapper {
    padding-top: 3rem;
}

.opinion-box-container {
    background-color: var(--amd-news-portal-overlay-bg);
    border: 1px solid var(--amd-news-portal-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Thick gray border like sketch */
    border-radius: 6px;
    padding: 0 15px 15px 15px;
    position: relative;
}

/* 2. The Featured Card (Top Layer) */
.opinion-featured-card {
    background-color: #3f3f3f;
    color: white;
    max-width: 765px;
    width: 100%;
    margin: 0 auto;
    margin-top: -80px;
    margin-bottom: 50px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    min-height: 339px;
    /* Needed for the shape to look good */
    position: relative;
}

/* 3. The Left Image with CLIP-PATH */
.featured-img-holder {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 46%;
    /* Covers slightly more than half */

    /* THE DIAGONAL CUT */
    /* Top-Left, Top-Right (slanted), Bottom-Right (slanted), Bottom-Left */
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);

    background-image: url("https://www.onlinekhabar.com/wp-content/uploads/2025/11/aaren-rai-aren-rai-secretory-of-harka-samapang-party-cover-1024x500.jpg");
    background-size: cover;
    background-position: 60% 30%;

    z-index: 1;
}

/* 4. The Right Text Area */
.featured-text-content {
    margin-left: 41%;
    /* Push text to the right side */
    padding: 29px 21px 13px 45px;
    /* Extra left padding to clear the slant */
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 0;
}

.featured-text-content h3 {
    color: white;
}

/* 5. Bottom Outline Cards */
.opinion-small-card {
    background: var(--amd-news-portal-overlay-bg);
    border: 1px solid var(--amd-news-portal-border);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
    /* Thick Black Border */
    border-radius: 6px;
    /* Rounded heavily like sketch */
    padding: 12px;
    height: 100%;
    transition: 0.3s;
}

.opinion-small-card:hover {
    background-color: var(--amd-news-portal-primary-light);
    color: var(--amd-news-portal-text-main);
    transform: translateY(-5px);
}

/* जब opinion-small-card hover हो तो अंदर का h5 लाल रंग का हो */
.opinion-small-card:hover h5 {
    color: var(--amd-news-portal-primary);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .amd-opinion-mobile-card {
        flex: 0 0 85%;
        max-width: 50% !important;
        scroll-snap-align: start;
    }
    .opinion-featured-card {
        margin-top: 16px;
        margin-bottom: 0;
    }
}

@media (max-width: 668px) {
    .amd-opinion-mobile-card {
        flex: 0 0 85%;
        max-width: 60% !important;
        scroll-snap-align: start;
    }
}

@media (max-width: 568px) {
    .opinion-featured-card {
        flex-direction: column;
        /* Stack vertically */
        height: auto;
        /* margin-top: -80px !important; */
        max-width: 100%;
    }

    .amd-opinion-mobile-card {
        flex: 0 0 85%;
        max-width: 100% !important;
        scroll-snap-align: start;
    }

    .featured-img-holder {
        position: relative;
        width: 100%;
        height: 250px;
        clip-path: none;
        /* Remove slant on mobile */
    }

    .featured-text-content {
        margin-left: 0;
        padding: 30px;
    }

    .opinion-box-container {
        padding: 20px;
        border-width: 2px;
    }
}

/* opinion 2 card design */
/* --- Final Opinion Design: Floating Split + Right Panel --- */

/* --- LEFT CARD: Floating & Diagonal --- */
.op-float-left {
    background-color: #666;
    color: white;
    border-radius: 15px;
    margin-top: -65px;
    margin-bottom: 0px;
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 362px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

/* The Image with the Diagonal Cut */
.op-float-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 55%;
    /* Image width */
    background-image: url("https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?q=80&w=800&auto=format&fit=crop");
    background-size: cover;
    background-position: center;

    /* THE DIAGONAL CLIP PATH */
    /* TopLeft, TopRight(slanted), BottomRight(slanted), BottomLeft */
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
    z-index: 1;
}

/* The Text Content */
.op-float-content {
    margin-left: 45%;
    /* Move text right to clear image */
    padding: 30px;
    padding-left: 50px;
    /* Extra padding for the slant */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- RIGHT CARD: Video/News Panel --- */
.op-panel-right {
    background: var(--amd-news-portal-overlay-bg);
    border: 1px solid var(--amd-news-portal-border);
    border-radius: 12px;
    height: 92%;
    min-height: 248px;
    margin-top: 22px;
    overflow: hidden;
    position: relative;
}

/* Video Iframe */
.op-video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* News List Style (Alternative) */
.op-news-list {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.op-news-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.op-news-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.op-news-item a:hover {
    color: #e67e22;
}

/* --- BOTTOM CARDS --- */
.op-bottom-card {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    background: white;
    transition: 0.3s;
}

.op-bottom-card:hover {
    background: #000;
    color: white;
    transform: translateY(-5px);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .op-float-left {
        margin-top: 16px;
        margin-bottom: 0;
    }

    .op-float-img {
        position: relative;
        width: 100%;
        height: 200px;
        clip-path: none;
        /* Remove slant on mobile */
    }

    .op-float-content {
        margin-left: 0;
        padding: 20px;
    }

    .op-panel-right {
        margin-top: 20px;
        min-height: 300px;
    }

    .opinion-main-box {
        padding: 20px;
    }
}

/* opinion section end  */
/* section 17 end */
/* home page end****************************************** */

/* article detail page *************************************** */
/* =========================================
           1. READING PROGRESS BAR
           ========================================= */
.amd-article-detail-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--amd-news-portal-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* =========================================
           2. SMART STICKY HEADER
           ========================================= */
.amd-article-detail-sticky-header {
    position: fixed;
    top: -80px;
    /* Hidden initially */
    left: 0;
    right: 0;
    height: auto;
    background: var(--amd-news-portal-overlay-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--amd-news-portal-border);
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 6px 20px;
    z-index: 1;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.amd-article-detail-sticky-header.amd-visible {
    top: 101px;
}

.amd-sticky-logo {
    font-family: var(--amd-news-portal-font-serif);
    font-weight: 900;
    color: var(--amd-news-portal-primary);
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.amd-sticky-title-container {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amd-sticky-title {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--amd-news-portal-text-main);
    /* Logic for cutting text smoothly */
    /* white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; */
    max-width: 1100px;
}

/* Mobile Share Trigger (Hidden on Desktop) */
.amd-sticky-share-trigger {
    margin-left: 15px;
    position: relative;
    display: none;
}

.amd-share-btn-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    background: var(--amd-news-portal-bg-secondary);
    color: var(--amd-news-portal-text-main);
    border: 1px solid var(--amd-news-portal-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.amd-share-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: auto;
    min-width: 148px;
    background: var(--amd-news-portal-overlay-bg);
    border: 1px solid var(--amd-news-portal-border);
    box-shadow: var(--amd-shadow);
    border-radius: 6px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.amd-share-dropdown.active {
    display: flex;
    animation: amdFadeIn 0.2s;
}

.amd-dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--amd-news-portal-bg-secondary);
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amd-dropdown-item:hover {
    background: var(--amd-news-portal-primary-light);
    color: var(--amd-news-portal-primary);
}

/* =========================================
           3. MAIN LAYOUT
           ========================================= */
.amd-article-detail-wrapper {
    margin: 0 auto;
}

/* Leaderboard Ad */
.amd-ad-leaderboard {
    width: 100%;
    height: 90px;
    background: var(--amd-news-portal-bg-secondary);
    border: 1px dashed var(--amd-news-portal-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: var(--amd-news-portal-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.amd-ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--amd-news-portal-border);
    color: #555;
    font-size: 10px;
    padding: 2px 6px;
}

/* Hero Header */
.amd-hero-section {
    margin-bottom: 30px;
}

.amd-category-tag {
    display: inline-block;
    background: var(--amd-news-portal-primary);
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 15px;
}

.amd-hero-headline {
    text-align: center;
    font-family: var(--amd-news-portal-font-serif);
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: var(--amd-news-portal-text-main);
}

.amd-hero-subheadline {
    text-align: center;
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--amd-news-portal-text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.amd-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--amd-news-portal-border);
    border-bottom: 1px solid var(--amd-news-portal-border);
    padding: 15px 0;
}

.amd-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amd-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
}

.amd-author-text strong {
    display: block;
    font-size: 1rem;
    color: var(--amd-news-portal-text-main);
}

.amd-author-text span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--amd-news-portal-text-muted);
}

/* Featured Media */
.amd-article-detail-wrapper figure {
    margin: 30px 0;
}

.amd-article-detail-wrapper figure img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.amd-article-detail-wrapper figcaption {
    background: var(--amd-news-portal-bg-secondary);
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--amd-news-portal-text-muted);
    border-left: 3px solid var(--amd-news-portal-primary);
    margin-top: 5px;
    font-style: italic;
}

/* GRID SYSTEM */
.amd-article-grid {
    display: grid;
    grid-template-columns: 70px 1fr 340px;
    /* Share | Content | Sidebar */
    gap: 40px;
}

/* Left Sticky Share (Desktop) */
.amd-left-share-col {
    position: relative;
}

.amd-sticky-share-container {
    position: sticky;
    top: 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.amd-social-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--amd-news-portal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--amd-news-portal-text-muted);
    transition: all 0.2s;
    background: var(--amd-news-portal-overlay-bg);
}

.amd-social-circle i {
    color: inherit;
    /* 👈 IMPORTANT */
}

.amd-social-circle:hover {
    background: var(--amd-news-portal-primary) !important;
    color: white !important;
    border-color: var(--amd-news-portal-primary);
    transform: translateY(-3px);
}

/* Article Body */
.amd-content-body {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #222;
}

/* Key Points Box */
.amd-content-body .amd-key-points {
    color: var(--amd-news-portal-text-muted);
    background: var(--amd-news-portal-primary-light);
    border: 1px solid var(--amd-news-portal-primary);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.amd-content-body h3 {
    margin-top: 0;
    color: var(--amd-news-portal-primary);
    font-size: 1.1rem;
}

.amd-content-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.amd-content-body li {
    margin-bottom: 8px;
    font-weight: 600;
}

.amd-content-body p {
    color: var(--amd-news-portal-text-muted);
    margin-bottom: 25px;

    text-align: justify;
}

/* Dropcap */
.amd-dropcap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    font-weight: 900;
    color: var(--amd-news-portal-primary);
    margin-right: 12px;
    font-family: var(--amd-news-portal-font-serif);
}

/* In-Article Ad */
.amd-inline-ad {
    margin: 40px 0;
    background: var(--amd-news-portal-bg-secondary);
    border: 1px solid var(--amd-news-portal-border);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Pull Quote */
.amd-content-body blockquote {
    border-top: 2px solid var(--amd-news-portal-primary);
    border-bottom: 2px solid var(--amd-news-portal-primary);
    padding: 30px 0;
    margin: 40px 0;
    text-align: center;
    font-family: var(--amd-news-portal-font-serif);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 700;
    color: var(--amd-news-portal-primary);
}

/* new quotes */

.amd-content-body a {
    color: var(--amd-news-portal-primary);
}

.amd-content-body .amd-read-also-box {
    background: var(--amd-news-portal-overlay-bg);
    border: 1px solid var(--amd-news-portal-border);
}

.amd-content-body .amd-read-also-header strong {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--amd-news-portal-primary);
    border-left: 4px solid var(--amd-news-portal-primary);
    padding-left: 8px;
}

.amd-content-body .amd-read-also-carousel img {
    height: 120px;
    object-fit: cover;
}

.amd-content-body .amd-read-also-title a {
    color: var(--amd-news-portal-text-main);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.amd-content-body a:hover {
    color: var(--amd-news-portal-primary);
}

.amd-content-body .amd-read-also-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amd-content-body .amd-read-also-tags a {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--amd-news-portal-primary-light);
    color: var(--amd-news-portal-text-muted);
    transition: all 0.3s ease;
}

.amd-content-body .amd-read-also-tags a:hover {
    background: var(--amd-news-portal-primary) !important;
    color: #fff !important;
}

/* Author Bio Box */
.amd-content-body .amd-author-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 20px 16px 16px;
    border: 1px solid var(--amd-news-portal-border);
    border-radius: 6px;
    background: var(--amd-news-portal-overlay-bg);
    align-items: center;
}

/* Fixed Read More */
.amd-content-body .amd-author-readmore {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--amd-news-portal-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.amd-content-body .amd-author-readmore i {
    transition: transform 0.3s ease;
}

.amd-content-body .amd-author-readmore:hover i {
    transform: translateX(4px);
}

/* Avatar */
.amd-content-body .amd-author-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: var(--amd-news-portal-border);
}

/* Info */
.amd-content-body .amd-article-detail-author-info h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.amd-content-body .amd-article-detail-author-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Mobile fix */
@media (max-width: 576px) {
    .amd-content-body .amd-author-card {
        flex-direction: column;
        padding-top: 40px;
        text-align: center;
    }

    .amd-content-body .amd-author-readmore {
        top: 8px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* Comments UI */
.amd-comments-wrapper {
    margin-top: 50px;
}

.amd-comment-header {
    color: var(--amd-news-portal-text-muted);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.amd-content-body textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid var(--amd-news-portal-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--amd-news-portal-text-main);
    font-weight: bold;
    background: var(--amd-news-portal-overlay-bg);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.amd-btn-primary {
    background: var(--amd-news-portal-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

.amd-btn-primary:hover {
    background: #b71c1c;
}

/* SIDEBAR */
.amd-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.amd-widget {
    background: white;
    border: 1px solid var(--amd-news-portal-border);
    border-radius: 6px;
    overflow: hidden;
}

.amd-widget-header {
    background: var(--amd-news-portal-bg-secondary);
    padding: 12px 15px;
    border-bottom: 1px solid var(--amd-news-portal-border);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--amd-news-portal-secondary);
}

/* Tabbed Widget */
.amd-tab-nav {
    display: flex;
}

.amd-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #f1f1f1;
    border-bottom: 2px solid transparent;
}

.amd-tab-item.active {
    background: white;
    color: var(--amd-news-portal-primary);
    border-bottom: 2px solid var(--amd-news-portal-primary);
}

.amd-tab-content {
    padding: 15px;
}

.amd-list-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.amd-list-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.amd-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.amd-list-title:hover {
    color: var(--amd-news-portal-primary);
}

/* Sticky Ad */
.amd-sticky-sidebar-ad {
    position: sticky;
    top: 160px;
}

/* =========================================
           RESPONSIVE LOGIC
           ========================================= */
@media (max-width: 1024px) {
    /* Sticky Header Logic for Mobile */
    .amd-sticky-share-trigger {
        display: block;
    }

    .amd-article-grid {
        grid-template-columns: 1fr 300px;
    }

    .amd-left-share-col {
        display: none;
    }

    /* Hide left sidebar */
    .amd-hero-headline {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .amd-article-grid {
        grid-template-columns: 1fr;
    }

    /* Full width */

    .amd-hero-headline {
        font-size: 1.7rem;
    }

    .amd-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Show Share Button */

    .amd-sticky-title {
        white-space: normal;
        /* Allow wrap */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        font-size: 1.2rem;
        line-height: 1.2;
    }
}

@media (max-width: 568px) {
    .amd-article-detail-sticky-header {
        padding: 6px 8px;
    }

    .amd-content-body p {
        font-size: 1.1rem;
    }

    .amd-sticky-title {
        line-height: 1.3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 1.1rem;
    }
}

@keyframes amdFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* article detail page end ******************************** */

/* Story Grid Start */
.amd-story-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 344px;
    /* Desktop: List Left, Player Right */
    gap: 40px;
    height: 530px;
}

/* --- DESKTOP: LIST STYLES --- */
.amd-story-list-container {
    overflow-y: auto;
    padding-right: 10px;
}

.amd-story-header {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--amd-news-portal-primary);
    display: inline-block;
}

.amd-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 12px 0;
}

/* Desktop Card Default */
.amd-story-card {
    background: var(--amd-news-portal-overlay-bg);
    border: 1px solid var(--amd-news-portal-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.amd-story-card:hover {
    background: var(--amd-news-portal-primary-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.amd-story-card:hover .amd-card-title {
    color: var(--amd-news-portal-primary);
}

.amd-story-card.active {
    border-color: var(--amd-news-portal-primary);
    background-color: rgba(221, 53, 69, 0.05);
}

/* Equalizer Animation (Desktop) */
.amd-playing-anim {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
    z-index: 5;
}

.amd-bar {
    width: 3px;
    background: var(--amd-news-portal-primary);
    animation: amdEq 0.5s infinite ease-in-out;
}

.amd-bar:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.amd-bar:nth-child(2) {
    height: 12px;
    animation-delay: 0.1s;
}

.amd-bar:nth-child(3) {
    height: 8px;
    animation-delay: 0.2s;
}

.amd-story-card.active .amd-playing-anim {
    display: flex;
}

.amd-card-img {
    width: 100%;
    aspect-ratio: 8/6;
    object-fit: cover;
    transition: 0.3s;
}

.amd-card-info {
    padding: 12px;
}

.amd-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--amd-news-portal-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amd-card-meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- DESKTOP: PLAYER STYLES --- */
.amd-story-player {
    background: black;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.amd-media-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.amd-media-element.visible {
    display: block;
}

.amd-zoom-anim {
    animation: amdZoom 6s ease-out forwards;
}

.amd-story-player.paused .amd-zoom-anim {
    animation-play-state: paused;
}

.amd-player-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 20%,
        transparent 60%,
        rgba(0, 0, 0, 0.9) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.amd-player-top-controls {
    position: absolute;
    top: 25px;
    right: 15px;
    z-index: 50;
    display: flex;
    gap: 10px;
}

.amd-control-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.amd-progress-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 50;
    display: flex;
    gap: 5px;
}

.amd-progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.amd-progress-fill {
    height: 100%;
    width: 0%;
    background: white;
    display: block;
}

.amd-player-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    z-index: 10;
    color: white;
    pointer-events: none;
}

.amd-player-tag {
    background: var(--amd-news-portal-primary);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.amd-player-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.amd-player-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.amd-nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 20;
    width: 30%;
    cursor: pointer;
}

.amd-nav-left {
    left: 0;
}

.amd-nav-right {
    right: 0;
}

.amd-pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 30;
    display: none;
    pointer-events: none;
}

.amd-story-player.paused .amd-pause-icon {
    display: block;
}

@keyframes amdEq {
    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 12px;
    }
}

@keyframes amdZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* =========================================
       RESPONSIVE MOBILE VIEW (REEL STYLE)
       ========================================= */
@media (max-width: 900px) {
    .amd-story-section-wrapper {
        grid-template-columns: 1fr;
        /* Single Column */
        height: auto;
        gap: 15px;
        padding: 0 10px;
    }

    /* 1. HIDE THE MAIN PLAYER COMPLETELY */
    .amd-story-player {
        display: none !important;
    }

    /* 2. MAKE LIST SCROLLABLE */
    .amd-story-list-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 15px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .amd-story-list-container::-webkit-scrollbar {
        display: none;
    }

    .amd-story-header {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    .amd-story-grid {
        display: flex;
        gap: 12px;
    }

    /* 3. CARD TRANSFORMATION -> REEL PANEL */
    .amd-story-card {
        min-width: 160px;
        /* Width of a mobile story panel */
        aspect-ratio: 2/3;
        /* Tall Aspect Ratio (Reel style) */
        flex-shrink: 0;
        border-radius: 12px;
        border: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Image covers full card */
    .amd-card-img {
        width: 100%;
        aspect-ratio: 2/3;
        object-fit: contain;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        border-radius: 12px;
    }

    /* Overlay text at bottom */
    .amd-card-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.6) 60%,
            transparent 100%
        );
        padding: 12px;
        white-space: normal;
        /* Allow text wrapping */
    }

    .amd-card-title {
        color: white;
        font-size: 0.9rem;
        margin-bottom: 4px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .amd-card-meta {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
    }

    /* Play Icon Overlay for Mobile (Decoration) */
    .amd-story-card::after {
        content: "\f04b";
        /* FontAwesome Play */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.5rem;
        z-index: 3;
        background: rgba(0, 0, 0, 0.3);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.6);
    }

    /* Hide the small desktop equalizer */
    .amd-playing-anim {
        display: none;
    }

    /* Remove active border style in mobile, just standard cards */
    .amd-story-card.active {
        border: none;
    }
}
/* Story Grid End */
