/* ============================================
   PROJECT: Nepali News Portal
   OPTIMIZED & DEDUPLICATED: Merged all rules, removed duplicates, and cleaned up.
   ============================================ */

/* --- Base Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Anek Gujarati', sans-serif;
    font-weight: 500;
    line-height: 1.5em;
    background: #ffffff;
}

::selection {
    background: #19315B;
    color: #fff;
    text-shadow: none;
}

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote,
body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt,
em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6,
header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu,
nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike,
strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
}

/* --- Layout & Containers --- */
.news-bucket, .news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.body-content, .header-content {
    background-color: #fff;
}

.top-sticky-head {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;
    max-width: 1200px;
}

.top_sticky, .d-show {
    display: block;
}

/* --- Header & Navigation --- */
.main-logo {
    text-align: center;
}
.main-logo img {
    width: 80%;
    height: auto;
}

.main-navigation {
    clear: both;
    width: 100%;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
    z-index: 9;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
    transition: 600ms ease-in-out;
}
.main-navigation > ul > li {
    float: left;
    flex: none;
    position: relative;
}
.main-navigation > ul > li > a {
    line-height: 33px;
    font-size: 14px;
    font-weight: 500;
    padding: 0 6px;
    color: #000;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.main-navigation > ul > li > a::before {
    width: 0%;
    height: 2px;
    content: "";
    background: #000000;
    position: absolute;
    bottom: 0;
    transition: .3s linear;
    top: 100%;
    z-index: 7;
}
.main-navigation ul ul {
    position: absolute;
    left: 0;
    top: 100%;
    padding: 10px 0;
    background: #FFF;
    z-index: 9999;
    min-width: 180px;
    display: none;
    box-shadow: 0 0px 25px 0px rgba(0, 0, 0, 0.2);
}
.main-navigation ul ul a {
    padding: 10px 20px 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-decoration: none;
}
.menu-item-has-children:hover > .sub-menu,
.main-navigation > ul > li.horizontal-menu:hover .sub-menu {
    display: block !important;
}

/* --- Side Menu (Offcanvas) --- */
.offcanvas-bar {
    background: #fff;
    padding: 0;
    width: 300px;
    position: fixed;
    top: 0;
    height: 100vh;
    z-index: 10000072;
    color: #000;
    transition: all .3s;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
}
.sidebar-logo {
    padding: 20px 30px;
    background: #ffffff08;
    margin-bottom: 10px;
}
.sidebar-logo a img {
    max-width: 100%;
    height: auto;
}
.offcanvas-bar > div > ul > li > a {
    text-decoration: none;
    transition: all .3s ease;
    font-size: 17px;
    display: block;
    line-height: 46px;
    color: #000;
    font-weight: 500;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.36);
}
.offcanvas-bar > div > ul > li.menu-item-has-children > ul {
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.05);
    display: none;
}
.offcanvas-bar > div > ul > li.menu-item-has-children > ul > li > a {
    display: block;
    padding: 7px 24px;
    font-size: 17px;
    color: #000;
}
.offcanvas-bar > div > ul > li.menu-item-has-children span {
    position: absolute;
    right: 10px;
    cursor: pointer;
    z-index: 5;
    top: 10px;
}
.menu-item-has-children {
    position: relative;
}

/* --- Sticky Side Menu (Legacy) --- */
.sticky-side-menu {
    height: 100%;
    position: fixed;
    background: #072c5a !important;
    width: 265px;
    z-index: 9999;
    display: none;
    box-shadow: -8px 0 13px #000;
    transition: all .3s ease;
    animation: rotateMenu 600ms ease-in-out;
    transform-origin: top left;
}
.smenu {
    list-style: none;
}
.smenu li a {
    padding: 11px 11px 11px 20px;
    display: block;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: solid 1px #d12229 !important;
}
.closeThes {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: -50px;
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    background: #d12229 !important;
    color: #fff !important;
}

/* --- Animations --- */
@keyframes rotateMenu {
    0% { transform: rotateY(-90deg); }
    350% { transform: rotateY(-45deg); }
    70% { transform: rotateY(20deg); }
    100% { transform: rotateY(0deg); }
}

/* --- Social & Icons --- */
.social-fix ul {
    display: flex;
    position: relative;
    float: right;
    list-style: none;
}
.social-fix ul li {
    padding: 0 5px;
}
.social-media ul li a i {
    display: inline-block;
    color: #fff;
    padding: 5px;
    text-align: center;
    height: 25px;
    font-size: 13px;
    width: 26px;
    transition: 0.3s;
}
.social-media ul li a i.fa-facebook-f { background-color: #385898; }
.social-media ul li a i.fa-google { background-color: #EA4335; }
.social-media ul li a i.fa-twitter { background-color: #1DA1F2; }
.social-media ul li a i.fa-youtube { background-color: #f00; }

.logo-side-icon {
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: end;
}
.logo-side-icon a {
    display: flex;
    align-items: center;
    font-size: 26px;
    color: black;
    margin: 1px;
}
.logo-side-icon a:nth-child(2) span {
    position: absolute;
    font-size: 15px;
    width: 25px;
    height: 25px;
    top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: red;
    color: #fff;
}

/* --- Search & Dropdown --- */
.search-bucket {
    position: relative;
    color: #FA0300;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}
.search-icon {
    color: #ff0000 !important;
    background: transparent;
    border: none;
}
.bucket-btn button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
}
.search-dropdown {
    background-color: #d8dee5;
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    z-index: 999;
    display: none;
    animation: rotateMenu 800ms ease-in-out;
    transform-origin: top center;
}
.input-box {
    line-height: 40px;
    background-color: #fff;
    width: 280px;
    font-size: 15px;
    border: none;
    padding: 0 14px;
}
.btn-submit {
    background: #d12229;
    line-height: 38px;
    padding: 0 25px;
    color: #fff !important;
    border: none;
}

/* --- News & Posts Grid --- */
.news-post {
    margin-bottom: 5px;
    border-bottom: 1px solid #dddddd;
    background-color: #fff;
    padding: 5px;
    transition: 300ms ease-in-out;
}
.news-post h2 {
    margin: 5px 0;
    font-size: 17px;
    font-weight: 900;
}
.news-post h2 a {
    font-weight: 600;
    color: #000;
    font-size: 18px;
    text-decoration: none;
}
.news-post:hover {
    background: white;
}
.news-post:hover h2, .news-post:hover span, .news-post:hover i, .news-post:hover .news-title a, .news-post:hover p {
    color: #FA0300;
}
.thumb {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}
.thumb img, .news-post img {
    width: 100%;
}
.thumb a {
    position: relative;
    overflow: hidden;
    display: block;
}

/* --- Overlay News (Hero) --- */
.overlay-news > a {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: block;
    width: 100%;
}
.overlay-news > a::before, .ms-gradient::before {
    content: '';
    height: 100%;
    width: 100%;
    background-image: linear-gradient(to top, #000, rgba(0,0,0,0.58), transparent, transparent);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
}
.overlay-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay-news-content {
    position: absolute;
    padding: 25px;
    left: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    color: #fff;
}
.overlay-news-content h3, .overlay-contents .v-title a, .overlay-news .title a {
    color: #fff;
}
.title {
    line-height: 1.5;
    font-size: 18px;
    font-weight: 600;
}

/* --- Section Headers --- */
.sec-news-title {
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    border-bottom: 3px solid #d12229;
    font-weight: 600;
}
.sec-news-title a {
    display: inline-block;
    background: #d12229;
    color: #FFF;
    padding: 8px 30px;
}
.news-cat {
    background: transparent;
    font-weight: 700;
    color: #222;
    display: block;
    line-height: 34px;
    position: relative;
    margin: 10px 15px;
}
.news-cat::before {
    display: block;
    content: "";
    width: 100%;
    height: 1px;
    background: #cfcfcf;
    position: absolute;
    top: 55%;
    right: 0;
    z-index: 1;
}
.news-cat .cat-name {
    color: #000;
    font-size: 18px;
    font-weight: 600;
    padding: 0px 15px;
    background: #fff;
    position: relative;
    z-index: 2;
    top: 4px;
    display: inline-block;
}
.news-cat a.all {
    display: inline-block;
    background: #fff;
    font-size: 14px;
    color: #DC0000;
    padding: 7px 30px 7px 20px;
    position: absolute;
    z-index: 2;
    right: 0;
    top: 3px;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid #D7D7D7;
    transition: .3s linear;
}

/* --- Misc / Widgets --- */
.trend-ul {
    display: flex;
    width: 100%;
    background-image: url('/frontend/images/flashnews.gif');
    height: 36px;
}
.trend-ul li.trend-title {
    color: #fff;
    background: #d12229;
    line-height: 3em;
    float: left;
    margin-right: 8px;
}
.trend-tag li {
    display: inline-block;
    padding: 0px 15px;
}
.trend-tag li a {
    text-decoration: none;
    color: #19315B;
    font-weight: 500;
}
.ads-bucket:before, .ads-box:before {
    content: 'Advertisement';
    font-size: 12px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    color: rgba(0,0,0,0.58);
    display: flex;
    place-content: center;
    background-color: #fbfbfb;
    border-top: solid 1px rgba(0,0,0,0.14);
    border-bottom: solid 1px rgba(0,0,0,0.14);
}
.ads-box img, .ads-bucket img {
    width: 100%;
    height: auto;
}

/* --- Entry Content (Single Post) --- */
.pk-detail-img {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
}
h1.entry-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 600;
}
.entry-content {
    font-size: 20px;
    line-height: 1.8;
    word-break: break-word;
}
.entry-content p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 30px !important;
    text-align: justify;
    font-weight: 400;
}
.entry-content li {
    list-style: circle;
    margin-left: 30px;
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 20px !important;
}
.entry-content a {
    color: blue;
}
blockquote {
    font-family: anek gujarati;
    font-style: italic;
    color: #222;
    background: #fafafa;
    border-left: 4px solid #e63946;
    margin: 20px auto;
    padding: 15px 20px 15px 25px;
    max-width: 90%;
    line-height: 1.7;
    position: relative;
    border-radius: 6px;
}
blockquote::before {
    content: "“";
    font-size: 40px;
    color: #e63946;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.7;
}

/* --- Tables --- */
table, .table td, .table th, .table-bordered td, .table-bordered th {
    width: 100%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin: 15px 0;
    font-weight: 500;
    font-size: 16px;
}
th, td {
    padding: .75rem;
    border: 1px solid #dee2e6;
}

.pagination {
    display: flex !important;
    padding-left: 0;
    list-style: none; 
    justify-content: center; ટે */
    align-items: center;
    gap: 5px; */
}

*/
.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pagination .page-item.active .page-link {
    background-color: #d32f2f !important; 
    border-color: #d32f2f !important;
    color: #fff !important;
}

/* ડિસેબલ બટન (જેમ કે પહેલું < ) માટે */
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #ddd;
}
    

/* --- Footer --- */
.footer-middle {
    background-color: #fdfdfd;
    border-top: #ccc solid 1px;
    padding: 35px 5px 10px 0;
}
.footer-contact-us p {
    line-height: 1.8;
    font-size: 14px;
    color: rgba(0,0,0,0.62);
}
.footer-title {
    margin: 0;
    color: #c0161b;
    font-size: 20px;
    padding-bottom: 17px;
}
.social-logo {
    display: inline-block;
    color: #c4161c;
    text-align: center;
    margin-right: 14px;
}
#copyright {
    background-color: #fff !important;
    color: rgba(8, 8, 8, 0.8);
    font-size: .9em;
    line-height: 45px !important;
}
.f-row {
    border-top: 1px solid rgba(209, 209, 209, 0.6);
    width: 100%;
    padding: 10px 0;
    display: flex;
}
.footer-logo {
    display: flex;
    align-items: center;
    margin-left: 24px;
}
.footer-logo img {
    width: 150px;
}

/* --- Sticky Ads & Popups --- */
.contentsticky-ad-left {
    position: fixed;
    left: 2px;
    bottom: 100px;
    z-index: 9991;
}
.contentsticky-ad-right {
    position: fixed;
    right: 2px;
    top: 100px;
    z-index: 9991;
}
.sticky-close {
    cursor: pointer;
    color: #fff;
    background: #c4161c;
    height: 30px;
    width: 30px;
    line-height: 30px;
    border-radius: 100%;
    text-align: center;
    display: inline-block;
}
.bannerSticky, .bannerSticky-desktop-view {
    background: #fff;
    position: fixed;
    bottom: 0;
    text-align: center;
    width: 100%;
    z-index: 700;
    box-shadow: 0 5px 14px rgba(0,0,0,0.29);
}
.closebtn {
    position: absolute;
    cursor: pointer;
    top: -18px;
    color: #fff;
    background: #c4161c;
    height: 30px;
    width: 30px;
    right: 18px;
    line-height: 30px;
    border-radius: 100%;
}

/* --- Utility Classes --- */
.clearfix:before, .clearfix:after {
    content: "";
    display: table;
}
.post-date {
    font-size: 15px;
    font-weight: 500;
}
.mb-30 { margin-bottom: 30px; }
.float-left { float: left; margin-right: 15px; }

/* --- Responsive & Media Queries --- */

/* Tablet & Mobile (max-width: 1199px) */
@media only screen and (max-width: 1199px) {
    .main-navigation > ul > li { display: none; }
    .toggle-menu { display: block; }
    .trending-wrap { display: none !important; }
    .video-col { margin-top: 20px; }
    .mt__4 { margin-top: 20px; }
    .mpad-zero { padding: 0; }
    .right-column { padding-top: 20px; }
    .overflow-scroll { height: 500px; overflow-y: scroll; }
    .pk-scroll-title { font-size: 15px !important; }
    .pk-scroll-img { width: 30px !important; height: 30px !important; }
    .news-row .share-btn-mobv, .share-btn-mobv-one { display: none !important; opacity: 0; visibility: hidden; }
    .big-news h2 { font-size: 24px !important; }
    .main-navigation ul { height: auto !important; display: flex; width: 100%; overflow: scroll; }
    .main-navigation > ul > li { float: none; border: 0; }
    .main-navigation ul ul { width: 100%; position: static; box-shadow: none; }
    .toggle-menu { position: relative; height: 50px; cursor: pointer; display: block; }
    .toggle-menu span { position: absolute; top: 50%; height: 4px; width: 25px; background: #FFF; left: 15px; margin-top: -2px; border-radius: 5px; }
    .toggle-menu span::before { content: ""; position: absolute; bottom: -10px; height: 4px; width: 35px; background: #FFF; left: 0; border-radius: 5px; }
    .toggle-menu span::after { content: ""; position: absolute; top: -10px; height: 4px; width: 35px; background: #FFF; left: 0; border-radius: 5px; }
}

/* Max Width 991px */
@media only screen and (max-width: 991px) {
    .sec-cats li a { font-size: 11px; }
}

/* Max Width 767px (Mobile) */
@media only screen and (max-width: 767px) {
    .ws-overflow { max-width: 100%; flex: 0 0 100%; overflow: auto; flex-wrap: nowrap; }
    .col-mob { flex: 0 0 100%; max-width: 100%; }
    .only-pc { display: none !important; }
    .m-flow { display: none; }
    .fm-right { text-align: right; }
    .link-wrap span { display: flex; place-content: center; font-size: 12px !important; }
    .pk-detail-img { height: auto; }
    .prev, .next { top: -185px; }
    .f-col { width: 100% !important; padding: 0; }
    .f-col-one { width: 100% !important; display: flex; justify-content: center; text-align: center; }
    .footer-logo { justify-content: center; margin-left: 0; }
    .follow-wrap { text-align: center; }
    .follow-wrap ul { place-content: center; }
}

/* Min Width 768px */
@media (min-width: 768px) {
    .header-sticky {
        top: 0;
        background: #fff;
        width: 100%;
        max-width: 100%;
        padding-top: 50px;
        border-top: 1px solid rgba(0,0,0,0.1);
        position: fixed;
        transition: .3s linear;
        z-index: 3;
        box-shadow: 0 5px 12px rgba(0,0,0,0.06);
        display: none;
    }
    .overlay-news > a { height: 100%; }
    .right-column .title { flex: 5; font-size: 20px; }
    .politics-block.img-vertical, .dealer-block.img-vertical { height: 400px; }
}

/* Min Width 960px */
@media (min-width: 960px) {
    .left-column .overlay-news { height: 500px; }
    .overlay-news-content { padding-bottom: 35px; }
    h1.entry-title { font-size: 28px; line-height: 1.34; }
}

/* Min Width 1024px */
@media (min-width: 1024px) {
    h1.entry-title { font-size: 28px; line-height: 1.22; letter-spacing: -1px; }
    .right-column .overlay-news .title { font-size: 14px; }
    .overlay-news-content h3 { font-size: 35px; }
}

/* Min Width 1281px */
@media (min-width: 1281px) {
    .f-right { float: right; }
    .only-phone { display: none; }
    .follow-wrap { display: flex; place-content: center; }
}

/* Max Width 480px */
@media only screen and (max-width: 480px) {
    .news-row-formobile { display: block !important; }
    h1.entry-title { font-size: 24px !important; }
    .style-01 { font-size: 15px !important; }
    .subpar-content li { width: 100% !important; }
    .logo-wrap img { width: 100%; padding: 8px 0; }
    .f-right-wrap ul li a { font-size: 12px !important; }
}