html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Mukta', sans-serif;
    background-color: #f2f2f2;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #ededed 100%);
    padding: 24px 0;
}

.site-header .logo {
    display: inline-block;
}

.site-header .logo img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Date/Time Widget for light header */
.datetime-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 16px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.datetime-pill .divider {
    color: #e5e7eb;
}

.datetime-pill i {
    color: #8c1829 !important;
}

/* Video Portal Badge Large */
.video-portal-btn-large {
    background: linear-gradient(135deg, #ad1d33, #8c1829);
    color: #fff !important;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 12px 32px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(140, 24, 41, .4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.video-portal-btn-large:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(140, 24, 41, .6);
    background: linear-gradient(135deg, #8c1829, #6a121f);
}

.video-portal-btn-large i {
    font-size: 1.5rem;
}

/* Main category navbar */
.main-nav {
    background: linear-gradient(135deg, #4b5563 0%, #3e475a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

.main-nav .navbar-nav {
    align-items: center;
}

.main-nav .navbar-collapse {
    justify-content: center;
}

.main-nav .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 10px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color .2s;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-item.active .nav-link {
    color: #8c1829 !important;
}

/* Nav Right Icons */
.nav-right-icons {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-right-icons a {
    color: #fff;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.nav-right-icons a:hover {
    color: #8c1829;
}

/* Inline Nav Search Bar */
form.nav-inline-search {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 40px;
    height: 38px;
    width: 100%;
    max-width: 320px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: 15px;
}

form.nav-inline-search:focus-within {
    border-color: #8c1829;
    box-shadow: 0 4px 12px rgba(140, 24, 41, 0.25);
}

input.nav-inline-search-input {
    flex-grow: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
}

input.nav-inline-search-input::placeholder {
    color: #aaa;
}

button.nav-inline-search-button {
    height: 100%;
    width: 48px;
    padding: 0;
    border: none;
    background: linear-gradient(90deg, #f57c00 0%, #8c1829 100%);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.nav-inline-search-button:hover {
    filter: brightness(1.1);
}

/* Breaking news ticker */
.ticker-bar {
    background: transparent;
    border-bottom: none;
    font-size: .88rem;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: #8c1829;
    color: #fff;
    font-weight: 700;
    padding: 6px 16px;
    white-space: nowrap;
    letter-spacing: .5px;
    font-size: .82rem;
    flex-shrink: 0;
    clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%);
    padding-right: 24px;
}

.ticker-track {
    display: flex;
    animation: ticker 32s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 6px 15px;
    color: #222;
}

.ticker-item a {
    color: #222;
    text-decoration: none;
}

.ticker-item a:hover {
    color: #8c1829;
}

.ticker-dot {
    color: #8c1829;
    font-size: 1rem;
    padding: 0 6px;
}

@keyframes ticker {
    0% {
        transform: translateX(0)
    }

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

/* Footer Social Icons */
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.footer-social-icon:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* General */
.news-title {
    color: #111;
    text-decoration: none;
    font-weight: 700;
    transition: color .2s;
}

.news-title:hover {
    color: #8c1829;
    text-decoration: none;
}

.hover-red:hover {
    color: #8c1829 !important;
    text-decoration: none;
}

/* Live Stream Indicator Animations */
@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes header-dot-pulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

.header-live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: header-dot-pulse 1.5s infinite;
}

@keyframes upcoming-dot-pulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

.header-upcoming-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: upcoming-dot-pulse 1.8s infinite;
}

/* ══ RESPONSIVE IMPROVEMENTS ══ */
@media (max-width: 991px) {

    /* Collapsed main nav card style */
    .main-nav .navbar-collapse {
        background: #3e475a;
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .main-nav .navbar-nav {
        align-items: stretch !important;
        width: 100%;
    }

    .main-nav .navbar-nav .nav-item {
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .main-nav .navbar-nav .nav-link {
        padding: 10px 16px !important;
        font-size: 0.95rem;
    }

    .nav-right-icons {
        margin-left: 0;
        margin-top: 15px;
        margin-bottom: 5px;
        justify-content: center;
        width: 100%;
        gap: 20px;
        flex-wrap: wrap;
    }

    form.nav-inline-search {
        margin-right: 0;
        max-width: 100%;
        width: 100%;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 0;
    }

    .site-header>.container {
        flex-direction: column !important;
        gap: 12px;
        text-align: center;
    }

    .site-header .logo {
        margin-right: 0 !important;
    }

    .site-header .logo img {
        height: 55px;
        /* compact logo for smaller viewports */
    }

    .site-header .d-flex.flex-column {
        align-items: center !important;
        width: 100%;
        gap: 8px !important;
        margin: 0 !important;
    }

    .video-portal-btn-large {
        font-size: 0.95rem !important;
        padding: 6px 16px !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 10px rgba(140, 24, 41, .3) !important;
    }

    .video-portal-btn-large i {
        font-size: 1.4rem !important;
    }

    .datetime-pill {
        padding: 4px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 576px) {
    .ticker-label {
        padding: 4px 10px;
        padding-right: 18px;
        font-size: 0.75rem;
    }

    .ticker-item {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* Header Bulletin News Simple List */
.bulletin-container-simple {
    flex: 1;
    max-width: 520px;
    margin: 0 35px;
    padding: 0;
    display: flex;
    align-items: center;
    height: 72px;
    overflow: hidden;
    position: relative;
}

.bulletin-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bulletin-list li {
    position: relative;
    padding-left: 24px;
    font-size: 1.40rem;
    /* <-- ADJUST FONT SIZE HERE (e.g., 1.5rem or 1.6rem for larger) */
    line-height: 1.35;
    height: 33px;
    display: flex;
    align-items: center;
    text-align: left;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.bulletin-list li:hover {
    transform: translateX(8px);
}

.bulletin-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #8c1829;
    border-radius: 50%;
    transition: all 0.25s ease;
    animation: bulletin-glow 2.5s infinite;
}

.bulletin-list li:hover::before {
    background-color: #f57c00;
    box-shadow: 0 0 0 5px rgba(245, 124, 0, 0);
    animation: none;
}

@keyframes bulletin-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(140, 24, 41, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(140, 24, 41, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(140, 24, 41, 0);
    }
}

.bulletin-link-simple {
    color: #374151;
    /* Charcoal text color */
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
    width: 100%;
}

.bulletin-link-simple:hover {
    color: #8c1829;
    text-decoration: none;
}

@keyframes live-blink {
    0% { opacity: 1; }
    50% { opacity: 0.15; }
    100% { opacity: 1; }
}

.live-blink {
    animation: live-blink 1.2s infinite;
}

/* Responsive hiding of bulletin */
@media (max-width: 1200px) {
    .bulletin-container-simple {
        margin: 0 15px;
        max-width: 380px;
        padding: 6px 12px;
    }

    .bulletin-list li {
        font-size: 1rem;
        padding-left: 18px;
    }

    .bulletin-list li::before {
        width: 6px;
        height: 6px;
        left: 2px;
    }
}

@media (max-width: 991px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .bulletin-container-simple {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 0 0 !important;
        padding: 8px 12px !important;
        background: rgba(140, 24, 41, 0.04);
        border-radius: 8px;
        border-left: 4px solid #8c1829;
        display: flex !important;
        height: 58px !important;
        overflow: hidden !important;
    }

    .bulletin-list li {
        font-size: 1.05rem !important;
        padding-left: 20px !important;
        height: 26px !important;
    }

    .bulletin-list li::before {
        width: 6px !important;
        height: 6px !important;
        left: 4px !important;
    }
}

/* Floating Scroll Button Styles */
/* Container sits fixed bottom-right */
#scroll-fab {
    position: fixed;
    bottom: 30px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Tooltip label */
.scroll-fab-tooltip {
    background: #1a1a2e;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
    font-family: 'Mukta', sans-serif;
}

#scroll-fab:hover .scroll-fab-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* The button itself */
.scroll-fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8c1829, #8c1829);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(140, 24, 41, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform .25s, box-shadow .25s;
    outline: none;
}

.scroll-fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 32px rgba(230, 57, 70, .6);
}

.scroll-fab-btn:active {
    transform: scale(.96);
}

/* Arrow icon */
.scroll-fab-btn .fab-icon {
    color: #fff;
    font-size: 1.05rem;
    transition: transform .3s ease;
    line-height: 1;
}

/* SVG progress ring */
.scroll-fab-btn svg.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    border-radius: 50%;
}

.scroll-fab-btn .ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, .18);
    stroke-width: 3;
}

.scroll-fab-btn .ring-fill {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset .12s linear;
}

/* Slide-in animation */
@keyframes fabIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.85);
    }

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

#scroll-fab {
    animation: fabIn .4s ease both;
}
