:root {
    --bs-primary: #396d7a;
    --bs-primary-rgb: 57, 109, 122;
    --bs-nav-link-color: rgba(255, 255, 255, .8);
    --bs-link-color-rgb: 57, 109, 122;
    --bs-navbar-active-color: #396d7a;
    --bs-emphasis-color-rgb: 17, 125, 73;
    --transition-time: .3s;
}

.list-group {
    --bs-list-group-active-bg: #396d7a;
}

html,
body {
    font-family: 'SolaimanLipi', sans-serif;
    font-optical-sizing: auto;
}

.text-main {
    color: var(--bs-primary) !important;
}

header {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
    z-index: auto !important;
}

.nav-link {
    color: rgb(44, 93, 100);
    font-weight: 400;
    border-bottom: transparent 2px solid;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav .nav-link:hover {
    color: var(--bs-primary);
    border-bottom: var(--bs-primary) 2px solid;
}

.sidebar-nav a.nav-link:hover{
    border-bottom: transparent 2px solid;
}

.category-section {
    margin-top: 50px;
    margin-bottom: 20px;
}

.category-section:first-of-type {
    margin-top: 0px;
}

/*pager*/
.pagination{
    --bs-pagination-color: #396d7a;
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: #396d7a;
    --bs-pagination-active-bg: #396d7a;
    --bs-pagination-active-color: #fff;
    --bs-pagination-border-color: #396d7a;
    --bs-pagination-focus-color: #396d7a;
    --bs-pagination-active-border-color: #396d7a;
    --bs-pagination-hover-border-color: #396d7a;
}
/*END of pager*/

/* Start of Lang Switcher */
.lang-switcher {
    background-color: #488a9b2c;
    transition: all var(--transition-time) ease-in;
}

.lang-switcher:hover {
    background-color: #488a9b5d;
    color: white !important;
}

.lang-switcher a:hover {
    border-bottom: 2px solid transparent !important;
}

/* END of Lang Switcher */

/* Start of nav */
.navbar-toggler {
    border: 1px solid transparent !important;
}

#mainNavbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    /* above content */
    background-color: #343a40;
    /* keep bg color because sticky inherits transparency */
}

.navbar-sticky-shadow {
    box-shadow: 1px 9px 18px -4px rgba(0, 0, 0, .4);
}

@media (min-width: 992px) {
    #mainNavbar {
        position: sticky;
        top: 0;
        z-index: 1030;
        /* above content */
    }
}

/* sticky nav for desktop */

/* END of nav */

/* Start of Tabs */

.nav-tabs {
    border-bottom: none;
}


.nav-tabs .nav-link {
    border: none;
    padding: 0.5rem 1.5rem;
    position: relative;
    color: #495057;
    transition: color 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--bs-primary);
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    font-weight: 500;
}

/* Underline for active tab */
.nav-tabs .nav-link .active-underline {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--bs-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Animate underline for active tab */
.nav-tabs .nav-link.active .active-underline {
    transform: scaleX(1);
}



/* END of tabs */

/* bootstrap nav link override */

nav .navbar-nav .nav-link.active {
    color: var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

/* END of bootstrap nav link override */


/* main btn */

.btn-main {
    background-color: var(--bs-primary);
    color: #fff;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-main:hover {
    background-color: #2e5c66;
    color: #fff;
}

.btn-outline-main {
    background-color: transparent;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-main:hover {
    background-color: var(--bs-primary);
    outline-color: var(--bs-primary);
    color: #fff;
}

/* END of main btn */

/* Popular and Latest Tabs List */

.article-content-tabs .list-group-item.border-0 {
    border-bottom: 1px solid #dee2e6;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.article-content-tabs .list-group-item.border-0 a.text-dark {
    transition: color 0.3s ease;
}

.article-content-tabs .list-group-item.border-0:hover a.text-dark {
    color: var(--bs-primary);
}

/*  */

/* Start of Article Cards */
.article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.base-article-card,
.base-article-card img,
.base-article-card__title,
.base-article-card__summary {
    transition: var(--transition-time) linear ease-in;
}

.base-article-card__title {
    color: #252525 !important;
}

.base-article-card__summary {
    color: #000000ad !important;
}

.base-article-card:hover .base-article-card__summary {
    color: #000 !important;
}

.base-article-card:hover img {
    opacity: 0.8;
}

.base-article-card:hover .base-article-card__title {
    color: var(--bs-primary) !important;
}

/* END of Article Cards */

/* Category Section */

.category-title-home {
    position: relative;
}

.category-title-home a {
    font-size: 28px;
    color: #000 !important;
    background: #fff;
    padding: 0 10px;
    display: inline-block;
    margin-bottom: 0;
    transition: all .3s ease-in-out;
    border-left: 6px solid var(--bs-primary);
    font-weight: 600 !important;
    transition: all .3s ease;
}

.category-title-home a:hover {
    padding-left: 16px !important;
    color: var(--bs-primary) !important;
}


.base-article-card a:hover {
    color: var(--bs-primary);
}

.base-article-card:hover h6 {
    color: var(--bs-list-group-active-bg);
}

/* END of Category Section */



/* Start of Footer */

.footer a {
    color: inherit !important;
    /* makes link match the surrounding text color */
    text-decoration: none;
    /* removes underline for a cleaner look */
}

.footer a:hover {
    text-decoration: underline;
    /* subtle hover cue */
}

.footer {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer a:hover {
    color: var(--bs-primary);
    /* Bootstrap primary */
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

/* END of Footer */


/* Start of Boottrap 5 Custom additions */
.fs-7 {
    font-size: .75rem;
}

.fs-8 {
    font-size: .5rem;
}

/* END of Boottrap 5 Custom additions */


/* Start of Slider */

.mask {
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 5%,
            rgba(0, 0, 0, 1) 95%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 5%,
            rgba(0, 0, 0, 1) 95%,
            rgba(0, 0, 0, 0) 100%);
}

.swiper-container {
    width: 100%;
    padding: 10px 0;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
    align-items: stretch;
    /* Ensures slides stretch equally */
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto !important;
    /* Important fix */
}

.card-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ensure image is 16:9 but not full slide height */
.card-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

/* Text section below */
.article-info {
    flex-grow: 1;
    padding: 0.75rem;
    background: #fff;
    color: #222;
}

.article-info h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.article-info span {
    font-size: 0.8rem;
    color: #777;
}

/* END of slider */

/* Start of CTA Submit Section */

.cta-submit-section {
    background-color: #488a9b2c;
}

/* End of CTA Submit Section */


/* mobile logo smaller */
.main-logo {
    height: 55px;
    transition: .2s;
}

@media (max-width: 767px) {
    .main-logo {
        height: 40px; /* smaller on mobile */
    }
}

/* ensure center alignment */
#mainNavbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* keep container layout clean on mobile */
@media (max-width: 767px) {
    #mainNavbar .container {
        justify-content: space-between;
    }
}


    /* Sidebar Styles */
    .sidebar-nav {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100%;
        background: white;
        z-index: 1060;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .sidebar-nav.show {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1055;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Mobile Header */
    .fixed-top {
        z-index: 1050;
    }
    
    /* Literary Magazine Styling Suggestions */
    .logo img {
        transition: height 0.3s ease;
    }
    
    @media (max-width: 768px) {
        .mobile-logo img {
            height: 45px !important;
        }
    }
    
    /* Literary aesthetic - optional */
    .navbar-light.bg-light {
        background-color: #f8f9fa !important;
        border-color: #e9ecef !important;
    }
    
    .nav-link {
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .nav-link.active {
        color: #0d6efd !important;
    }
    
    #pc-logo{
        transition: opacity 0.3s ease-out;
    }
    
    @media (max-width: 768px) {
    .home-main {
        padding-top: 20px;
    }
}


    /* ads */
    
        .bengali-biggapon-section {
        text-align: center;
        padding: .8rem 0;
    }
    
    .bengali-biggapon-text {
        font-size: 14px;
        font-weight: 700;
        color: #2c3e50;
    }
    
    .advertisement-section {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .advertisement-link {
        display: inline-block;
        max-width: 100%;
        transition: transform 0.3s ease;
    }
    
    .advertisement-link:hover {
        transform: translateY(-5px);
    }
    
    .advertisement-image {
        max-width: 100%;
        max-height: 300px; /* Added max-height */
        height: auto;
        width: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Responsive styles */
    @media (max-width: 768px) {
        .bengali-biggapon-text {
            font-size: 1rem;
        }
        .advertisement-image {
            max-height: 300px; 
        }
    }
    
    @media (max-width: 576px) {
        .advertisement-image {
            max-height: 250px;
        }
    }
    /* ads */
    
    
    /* Quill Editor Styles */

.ql-editor p {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
    margin-top: 0 !important;
    margin-bottom: .5rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.ql-size-small {
    font-size: 0.75em !important;
}

.ql-size-large {
    font-size: 1.5em !important;
}

.ql-size-huge {
    font-size: 2.5em !important;
}

/* END of Quill Editor Styles */

