/* 
Theme Name:		 NeXaric News Pro
Theme URI:		 https://nexaric.com/
Description:	 NeXaric News Pro is a child theme of GeneratePress, created by nexaric.com
Author:			 NeXaric
Author URI:		 https://nexaric.com/
Template:		 generatepress
Version:		 1.0.0
Text Domain:	 nexaric-news-pro
*/
/* =========================================
   Header Styling
========================================= */

/* Styling for the header, adds a shadow for depth */
header#masthead {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

/* Adjusts the menu toggle button's appearance */
button.menu-toggle {
    line-height: 0px !important;
    /* transform: rotateY(180deg); */
    padding-right: 0px !important;
    font-size: 18px !important;
}

/* Styles the menu bar icon */
.icon-pro-menu-bars {
    font-size: 29px;
}

/* Adjusts the line height for menu items */
.menu-bar-item > a {
    line-height: 30px !important;
}


/* =========================================
   Single Post Page Styling
========================================= */

body.single {

    /* Sets font properties for paragraph text within the entry content */
    .entry-content p {
        font-size: 19px;
        font-family: Noto Serif Bengali;
        font-weight: 500;
    }

    /* Adjusts margin for the featured image on single pages */
    .featured-image.page-header-image-single {
        margin: 7px 0px !important;
    }

    /* Adds border-radius and adjusts margin for full-size images */
    img.attachment-full.size-full {
        border-radius: 10px;
        margin-bottom: -4px !important;
    }

    /* Sets font family for all headings */
    h1, h2, h3, h4, h5, h6 {
        font-family: Noto Serif Bengali;
    }

    /* Styles for images within the entry content on single pages */
    .entry-content {
        img {
            width: 100%;
            border-radius: 10px;
        }
    }
}


/* =========================================
   Blockquote Styling
========================================= */

/* Styles for blockquotes, adding a shadow, border, and padding */
blockquote {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-left: solid red 6px;
    border-radius: 6px;
    padding: 10px;
    font-style: normal;
    color: black;
    font-weight: 800;
}

/* Ensures blockquote text is left-aligned */
blockquote p {
    text-align: left !important;
}


/* =========================================
   Link Styling
========================================= */

/* Styles for a specific link type, setting color and font weight */
a.LinkSuggestion__Link-sc-1gewdgc-4.cLBplk {
    color: black !important;
    font-weight: 600;
}

/* Adds "আরও পড়ুন: " (Read more) text before a specific link */
a.LinkSuggestion__Link-sc-1gewdgc-4::before {
    content: "আরও পড়ুন: ";
    color: red;
    font-weight: 800;
}


/* =========================================
   List Styling
========================================= */

/* Styles for lists (ordered and unordered) within the page container */
div#page {
    ol,
    ul {
        margin: 0px 0px 1.5em 1.5em;
        font-family: Noto Serif Bengali;
        font-size: 19px;
    }
}


/* =========================================
   Ads Header Styling
========================================= */

/* Styles for a heading related to ads */
.adblockheader {
    font-family: arial;
    margin-top: 10px;
    text-align: center;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
}


/* =========================================
   Layout Styling
========================================= */

/* Adjusts padding for a grid parent element */
.grid-parent {
    padding: 0px 10px !important;
}


/* =========================================
   Text Truncation
========================================= */

/* CSS to truncate text to 2 lines with an ellipsis */
.trim-text-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CSS to truncate text to 3 lines with an ellipsis */
.trim-text-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================
   Media Queries
========================================= */

@media screen and (min-width: 768px) {

    /* Adds border-radius to featured images */
    .featured-image {
        img {
            width: 100%;
            border-radius: 10px;
        }
    }

    /* Styles for post dates */
    .post-dates {
        font-size: 12px;
        font-family: arial;
    }
}


/* =========================================
   Header Block Styling
========================================= */

/* Styles for a specific header block */
.header-block-2 {
    z-index: 0 !important;
    position: relative !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding-top: 4px !important;
    padding-right: 10px !important;
    margin: -48px 16px 12px !important;
    background-color: #fff !important;
    margin-left: 0px !important;
    border-radius: 0px 15px 0px 0px !important;
    margin-left: -1px !important;
}


/* =========================================
   Numbered Circle Styling
========================================= */

/* Resets the counter for the body element */
body {
    counter-reset: section;
}

/* Creates a numbered circle effect using a pseudo-element */
.gb-headline-12589b36::before {
    content: counters(section, ".", decimal);
    counter-increment: section;
    counter-increment: section;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #0000000f;
    border-radius: 100%;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    font-family: arial;
    margin-right: 5px;
}

/* =========================================
   Base Menu Styling
========================================= */
.dynamic-menu {
    width: 100%;
    background: #b0190b;          /* Background color */
    position: relative;
    z-index: 1000;
}

/* Container to center items with max-width */
.dynamic-menu ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
}

/* Menu items */
.dynamic-menu ul li {
    display: inline-block;
}

/* Menu links */
.dynamic-menu ul li a {
    display: block;
    padding: 6px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    font-family: 'Noto Serif Bengali';
}

/* Hover effect */
.dynamic-menu ul li a:hover {
    background: rgba(0,0,0,0.2);
}


/* =========================================
   Sticky Menu (on scroll up)
========================================= */
.dynamic-menu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* =========================================
   Mobile Menu (scrollable)
========================================= */
@media (max-width: 768px) {
    .dynamic-menu ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .dynamic-menu ul::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .dynamic-menu ul li {
        flex: 0 0 auto;
    }

    .dynamic-menu ul li a {
        padding: 6px 7px;
    }

    .dynamic-menu {
        padding-left: 10px;
    }
}


/* =========================================
   Single Post Page Adjustments
========================================= */
body.single {
    .entry-content p {
        text-align: justify;
    }
}


/* =========================================
   Sidebar Layout (Desktop)
========================================= */
@media (min-width: 769px) {
    .both-sidebars .site-content {
        display: flex;
    }
    #left-sidebar,
    #primary,
    #right-sidebar {
        left: unset;
    }
    #left-sidebar {
        order: -1;
    }
    .inside-left-sidebar,
    .inside-right-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 60px;
    }
}


/* =========================================
   Breadcrumb Styling
========================================= */
p#breadcrumbs {
    font-family: 'Noto Serif Bengali';
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 17px;
    margin-top: 5px;
    color: grey;
}

span.breadcrumb_last {
    display: none !important;
}

#breadcrumbs {
    span a {
        color: #565656;
    }
}


/* =========================================
   Logo & Navigation (Responsive)
========================================= */
@media (max-width: 768px) {
    .navigation-branding img,
    .site-logo.mobile-header-logo {
        height: 58px;
    }
}

@media (max-width: 768px) {
    .main-navigation .site-logo.navigation-logo img,
    .mobile-header-navigation .site-logo.mobile-header-logo img,
    .navigation-search input[type="search"] {
        height: 65px;
    }
}


/* =========================================
   Post Date Styling
========================================= */
.post-dates {
    font-size: 13px;
}


/* =========================================
   Related Posts (Mobile: up to 600px)
========================================= */
@media (max-width: 600px) {
    .related-widget {
        background: #f1f1f1;
        margin: -15px;
        padding: 15px;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }

    .related-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .related-item {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 10px !important;
    }

    .related-item:last-child {
        border-bottom: 0px !important;
        padding-bottom: 0px !important;
    }

    .related-thumb {
        width: 30%;
    }

    .related-content {
        width: 70%;
    }

    .related-content p {
        text-align: left !important;
        margin-bottom: 0px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .related-thumb img {
        height: 70px;
        border-radius: 5px !important;
    }

    .related-widget h3 {
        margin-bottom: 11px;
        font-weight: 800;
    }
}


/* =========================================
   Related Posts (Desktop: wider than 600px)
========================================= */
@media (min-width: 601px) {
    .related-list {
        display: flex;
        flex-wrap: wrap;
        gap: 13px;
    }

    .related-item {
        display: flex;
        width: 49%;
        gap: 10px;
    }

    .related-thumb {
        width: 30%;
    }

    .related-thumb img {
        height: 70px;
        border-radius: 5px !important;
    }

    .related-content {
        width: 70%;
    }

    .related-content p {
        text-align: left !important;
        margin-bottom: 0px !important;
        font-size: 17px !important;
        font-weight: 600 !important;
    }

    .related-widget h3 {
        margin-bottom: 11px;
        font-weight: 800;
    }

    .related-widget {
        background: #f3f3f3;
        padding: 15px;
        border-radius: 10px !important;
        border: 1px solid #e0e0e0;
    }
}


/* =========================================
   Top Notification Badge
========================================= */
.notification {
    color: white;
    padding: 5px;                 /* Simplified padding */
    position: relative;
    display: inline-block;
    margin-top: 2px;
    margin-right: 7px;
    text-decoration: none;        /* Removes underline from link */
}

.notification .badge {
    position: absolute;
    top: 9px;
    right: 0px;
    font-family: arial;
    font-size: 12px;
    padding: 1px 7px;
    border-radius: 50%;
    background-color: #d10015;
    color: white;
    transform: translate(25%, -25%);
}

span.gp-icon.icon-search {
    font-size: 20px;
}


/* =========================================
   Slideout Menu
========================================= */
nav#generate-slideout-menu {
    .inside-navigation.grid-container,
    .nav-above-header .main-navigation .inside-navigation.grid-container {
        padding: 0px 10px 0px 10px;
    }
}

ul.slideout-menu {
    li {
        border-bottom: 1px solid #00000021;
    }
}


/* =========================================
   Post Navigation (Prev/Next)
========================================= */
.nav-previous {
    background: #b016171a;
    padding: 9px;
    border-left: 6px solid red;
    margin-top: 10px;
    border-radius: 5px;
}
.nav-previous a {
    font-size: 18px;
    font-family: 'Noto Serif Bengali';
    font-weight: 600;
}

.nav-next {
    background: #0000001a;
    padding: 9px;
    border-left: 6px solid black;
    margin-top: 10px;
    border-radius: 5px;
}
.nav-next a {
    font-size: 18px;
    font-family: 'Noto Serif Bengali';
    font-weight: 600;
}


/* =========================================
   Container (Mobile: up to 768px)
========================================= */
@media only screen and (max-width: 768px) {
    .gb-container.gb-container-62447cd0 {
        margin: 0 -15px;
        padding: 2px 15px 28px 15px; /* shorthand for top/right/bottom/left */
        border-radius: 0;
    }
}


/* =========================================
   Heading Line Styling
========================================= */
.gb-heading-line {
    flex-grow: 1;
    border-bottom-width: 1px;
    margin-bottom: 0px;
    border-color: #bdbdc0;
    border-bottom-style: solid;
}
