:root {
    /* --bs-primary: #117D49; */
    --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;

    --transition-time: .3s;
    /* #117D49 */
    /* #0056A3 old*/
}

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

html,
body {
    /* font-family: "Noto Sans Bengali", sans-serif; */
    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);
    /* color: rgba(0, 0, 0, .9); */
    font-weight: 400;
}

.nav-link:hover {
    /* color: rgba(255, 255, 255, 1); */
    color: #117D49;

}

.category-section {
    margin-top: 40px;
}

/* 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;
}

/* END of Lang Switcher */

/* Start of nav */

#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;
    /* remove default bottom border */
}


.nav-tabs .nav-link {
    border: none;
    padding: 0.5rem 1.5rem;
    /* horizontal padding added */
    position: relative;
    /* for underline */
    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 */

/* Popular and Latest Tabs List */

.article-content-tabs .list-group-item.border-0 {
    border-bottom: 1px solid #dee2e6;
    /* 1px bottom border */
    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);
    /* Bootstrap primary color on hover */
}

/*  */

/* 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::before {
    content: "";
    background: hsla(85, 16%, 76%, .376);
    width: 100%;
    height: 3px;
    position: absolute;
    top: 15px;
    left: 0;
    z-index: -3;
} */

.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;
}

.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 */