:root {
    --bg-dark: #1e1e1e;
    --red: #d32f2f;
    --light-gray: #f2f2f2;
    --border-color: #e5e5e5;
    --text-gray: #666666;
    --font-family: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
}

/* Fix for background turning grey from external files */
.bulletin-page-body {
    background-color: #fff !important;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: #111;
}

* {
    box-sizing: border-box;
}

.main-container {
    width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* HEADER AREA */
.dark-header {
    background: var(--bg-dark);
    color: #fff;
    padding: 35px 0;
    border-bottom: 4px solid #111;
}

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

.brand-area h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 5px;
}

.brand-area p {
    color: #bbb;
    max-width: 580px;
    font-weight: 500;
    font-size: 14px;
}

.stats-area {
    display: flex;
    gap: 40px;
}

.stat-box {
    text-align: center;
}

.stat-box .val {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #E9615C;
}

.stat-box .val-1 {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #F6F6F6;
}



.stat-box .lbl {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #888;
}

/* CONTENT LAYOUT (FLEX) */
.main-content-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    /* Keeps sidebar sticky to top */
    padding-top: 0px;
}

/* LEFT COLUMN (927px) */
.left-col {
    width: 927px;
}

/* Filter Bar Styles */
.pr-filter-wrapper {
    width: 100%;
    margin-bottom: 10px;
}

.pr-filter-container {
    display: flex;
    align-items: center;
    padding: 25px 0;
    gap: 15px;
}

.pr-search-box {
    position: relative;
    flex: 0 0 320px;
}

.pr-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
}

.pr-search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: #f3f4f6;
    border: none;
    border-radius: 50px;
    font-size: 14px;
}

.pr-btn-group {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.pr-pill-btn {
    padding: 9px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    border: 1px solid #111;
}

.pr-btn-active-red {
    border-color: #f87171;
    color: #ef4444;
}

.pr-counter {
    margin-left: auto;
    font-size: 14px;
}

.pr-count-num {
    font-weight: 800;
    font-size: 16px;
}

/* News Card Styles */
.date-header {
    background: #f7f7f7;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.today-tag {
    color: var(--red);
    font-weight: 700;
    margin-left: 8px;
}

.bulletin-count {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

.bulletin-card {
    width: 927px;
    height: 160px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border: 1px solid var(--border-color);
    background: #fff;
    margin-bottom: -1px;
}

.video-thumb {
    width: 237px;
    height: 130px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

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

.play-button-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #222;
    margin-left: 4px;
}

.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fff;
    color: var(--red);
    font-weight: 800;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
}

.bulletin-info {
    flex: 1;
    padding: 0 25px;
}

.category {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
}

.category.konkani {
    font-weight: 700;
    font-size: 14px;
    color: #DD221B;
}

.category.english {
    font-weight: 700;
    font-size: 14px;
    color: #DD221B;
}

.title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.meta {
    color: #373737;
    font-size: 14px;
    font-weight: 500;
}

.share-btn {
    border: 1px solid #111;
    background: transparent;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.mt-20 {
    margin-top: 20px;
}

/* RIGHT COLUMN (453px) */
.right-col {
    width: 453px;
    padding-top: 25px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.calendar-box {
    width: 453px;
    height: 294px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    background: #fff;
}

.cal-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    align-items: center;
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.nav-arrows button {
    border: 1px solid var(--border-color);
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #333;
}

.nav-arrows button:hover {
    border-color: #111;
}

.cal-grid span.has-bulletin {
    cursor: pointer;
    font-weight: 600;
}

.cal-grid span.has-bulletin:hover {
    background: #f3f3f3;
}

.cal-grid span.is-today:not(.active) {
    box-shadow: inset 0 0 0 1px var(--red);
    border-radius: 3px;
}

.bulletins-loading,
.bulletins-empty,
.bulletins-empty-day {
    padding: 24px 20px;
    color: #666;
    font-size: 14px;
}

.bulletin-card .title a {
    color: inherit;
    text-decoration: none;
}

.bulletin-card .video-thumb {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.cal-grid span {
    padding: 8px 0;
    border: 0.5px solid #f9f9f9;
    font-size: 13px;
}

.day-h {
    color: #888;
    border: none !important;
    font-size: 12px !important;
    font-weight: 600;
}

.dim {
    color: #ccc;
}

.cal-grid span.active {
    background: var(--red);
    color: #fff;
    border-radius: 3px;
}

.dark-box {
    background: var(--bg-dark);
    color: #fff;
    border-radius: 5px;
    padding: 25px;
}

.widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all {
    color: var(--red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Video coverage sidebar */
.video-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.video-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.video-widget .vid-card {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

a.vid-card {
    text-decoration: none;
    color: inherit;
}

.video-widget .vid-thumb {
    position: relative;
    width: 204px;
    flex-shrink: 0;
}

.video-widget .vid-thumb img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    border-radius: 4px;
}

.video-widget .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #1a1a1a;
}

.video-widget .tag-red-sm {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.video-widget .vid-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
    line-height: 1.3;
}

a.vid-card:hover .vid-info h4 {
    color: var(--red);
}

.prog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.prog-img {
    width: 100%;
    height: 110px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.prog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prog-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

.prog-item h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.prog-item p {
    font-size: 12px;
    color: #888;
}

.load-more-btn {
    display: block;
    /* Necessary for margin auto to work */
    margin: 40px auto;
    /* 40px top/bottom, auto left/right centers it */
    padding: 12px 24px;
    background: #fff;
    color: #7F919B;
    border: 1px solid #7F919B;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.load-more-btn:hover {
    background: #7F919B;
    color: #fff;

}

/* --- Desktop Hidden Element --- */
.pr-mobile-cal-btn {
    display: none;
    /* Hidden on desktop */
}

/* --- MOBILE RESPONSIVE RULES --- */
@media (max-width: 991px) {

    /* 1. Container Fixes */
    .main-container {
        width: 100% !important;
        padding: 0 15px;
    }

    .main-content-flex {
        flex-direction: column;
        gap: 0;
    }

    /* 2. Header Stats Fix */
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .stats-area {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
    }

    /* 3. Filter Bar (Search + Cal Icon) */
    .pr-filter-container {
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 10px;
    }

    .pr-search-box {
        flex: 1;
        /* Take remaining space */
        min-width: 200px;
    }

    /* The Calendar Button beside Search */
    .pr-mobile-cal-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: #333;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
    }

    .pr-btn-group {
        width: 100%;
        margin: 0;
        overflow-x: auto;
        /* Allow buttons to slide if screen is very small */
        padding-bottom: 5px;
    }

    .pr-counter {
        width: 100%;
        text-align: right;
        font-size: 12px;
        margin-top: -5px;
    }

    /* 4. Bulletin Cards (Vertical Stack) */
    .left-col {
        width: 100% !important;
    }

    .bulletin-card {
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        padding: 15px !important;
        align-items: flex-start !important;
    }

    .video-thumb {
        width: 100% !important;
        height: 200px !important;
        /* Make it look like a standard video card */
        margin-bottom: 15px;
    }

    .bulletin-info {
        padding: 0 !important;
        margin-bottom: 15px;
    }

    .title {
        font-size: 16px !important;
        line-height: 1.3;
    }

    .share-btn {
        width: 100%;
        /* Full width button for easier tapping on mobile */
        text-align: center;
    }

    /* 5. Hide Calendar Section as requested */
    .right-col {
        width: 100% !important;
    }

    .sidebar-widget:first-child {
        display: none !important;
        /* Hides the calendar box */
    }

    .sidebar-widget.dark-box {
        display: block;
        /* Keep the program items or hide them too if you wish */
        padding: 15px;
    }
}

/* Extra small mobile fixes */
@media (max-width: 480px) {

    .stats-area .val,
    .stats-area .val-1 {
        font-size: 16px !important;
    }

    .video-thumb {
        height: 180px !important;
    }
}

@media (max-width: 991px) {

    /* Force the program grid to 1 column */
    .prog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Ensure each program item takes full width */
    .prog-item {
        width: 100% !important;
    }

    /* Make the program image larger for mobile visibility */
    .prog-img {
        height: 200px !important;
        /* Increased height for better mobile look */
        width: 100% !important;
    }

    /* Adjust text size for the single column layout */
    .prog-item h4 {
        font-size: 18px !important;
        margin-top: 10px !important;
    }

    .prog-item p {
        font-size: 14px !important;
    }
}

/* Hidden by default on Desktop */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background-color: #000000;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: none;
    /* Changed via media query */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 10px;
}

/* Visibility Logic */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to the bottom of the body so the nav doesn't hide content */
    body {
        padding-bottom: 75px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-family: "Neue Haas Grotesk Display Pro", sans-serif;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    /* Default icon color */
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 700;
    /* Bold as per image */
    text-align: center;
}

/* Active State Styles */
.nav-item.active {
    color: #E11B22;
    /* Prudent Red */
}

.nav-item.active .nav-icon {
    fill: #E11B22;
    /* Active Icon Color */
}

/* Optional: Slight feedback when clicking */
.nav-item:active {
    transform: scale(0.92);
}