@import "fonts.css";

body {
    font-family: 'Hikasami', Courier, monospace;
}

.container {
    font-family: "Hikasami";
    max-width: 1500px
}

.col-md {
    padding: 5px;
}
.col-md__top-line {
    padding: 0;
}

.navbar-self {
    display: flex;
}

.navbar-brand {
    font-weight: 600;
}

.mobile__nav {
    display: none;
}

.custom-sidebar .list-group-item {
    border: none;
    font-size: 1.2rem;
    padding: 12px 16px;
    color: #333;
    background-color: transparent;
    transition: all 0.3s ease;
}


.custom-sidebar .list-group-item.active {
    color: #000000;
    font-weight: bold;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.btn-outline-success {
    border-radius: 3px;
    background: #0b2f49;
    color: #fff;
}

.btn-outline-success:hover {
    background: #104469;
}

.search-fluid {
    display: flex;
    align-items: center;
    border: 1px solid #0b2f49;
    background: #fafafa;
    border-radius: 6px;
    padding-right: 0px;
    height: 50px;
    max-width: 740px;
}

.search-img {
    display: flex;
    margin: 6px;
    width: 20px;
    height: 20px;
}

.search-control {
    background: #fafafa;
}

.form-control {
    border: none;
}

.form-control::placeholder {
    color: #dadada;
}

.search-flex {
    padding: 2px;
    width: 97%;
    align-items: center;
}

.btn-search {
    width: 128px;
    height: 45px;
}

.person-block {
    display: flex;
    gap: 30px;
}

.person-block__avatar {
    display: flex;
    gap: 12px;
}

.person-block__notification {
    display: flex;
}

.notification {
    display: flex;
    width: 40px;
    height: 40px;
    background: #fafafa;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
}

.notification img {
    display: flex;
    width: 24px;
    height: 24px;
    object-fit: contain;
    cursor: pointer;
}

.notification-dropdown .dropdown-menu {
    min-width: 250px;
    padding: 0.5rem;
    font-size: 14px;
}

.avatar__name {
    color: #082c47;
    font-size: 18px;
    font-weight: 500;
}

.login-out-text {
    color: #00000033;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    font-weight: 500;
}

/* +++++++++++ footer ++++++++++++++ */
.footer__links {
    font-size: 16px;
    font-weight: 500;
    gap: 34px;
}

.social {
    display: flex;
    gap: 10px;

}

.social-container {
    display: flex;
    align-items: flex-end;
}

.social-img {
    display: flex;
    width: 36px;
    height: 36px;
}

.social-img__x {
    display: flex;
    align-items: end;
    width: 30px;
    height: 32px;
}

/* +++++++++++ HOME ++++++++++++++ */
.home {
    padding-bottom: 50px;
}

.market-nav {
    display: flex;
    justify-content: space-between;
    padding: 8px 0px 40px 10px;
}

.btn-none {
    display: none;
}

.card {
    border: none;
}

.card-body {
    background: #fafafa;
    border-radius: 12px;
}

.card-body__darker {
    background: #ebebeb;
}

.card-body__top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0px 10px;
}

.card-body-fixed {
    flex: 1 1 50%;
}

.video-block {
    padding-bottom: 6px;
}

.video-card__top {
    border-radius: 0px;
}

.last-video-block {
    padding-top: 57px;
}

.advertisement {}

.card-title {
    color: #082c47;
    font-size: 18px;
    font-weight: 500;
    line-height: 120%;
    text-align: left;
}

.card-title a {
    color: #082c47;
    font-size: 18px;
    font-weight: 500;
    line-height: 120%;
    text-align: left;
    text-decoration: none;
}

.card-date {
    color: #00000080;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    text-align: left;
}

.card-text {
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    line-height: 21px;
    text-align: left;
}

.card-text__top {
    font-weight: 400;
    font-size: 14px;
}

.card-img-wrapper {
    flex-shrink: 0;
    height: 140px;
    position: relative;
}

.card-img-wrapper img {
    object-fit: cover;
    height: 80%;
}

.card-img-wrapper__digits{
    height: 190px;
}



.card-icons {
    display: flex;
    justify-content: end;
}

.card-icons a img {
    cursor: pointer;
    z-index: 10;
    position: relative;
}


/* if want transparent active button(link) */

/* .btn-transparent {
    background-color: transparent !important;
    border: none;
    box-shadow: none;
    color: white !important;
}

.btn-transparent:focus,
.btn-transparent:active,
.btn-transparent.dropdown-toggle.show,
.btn-transparent:focus-visible {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: rgb(198, 229, 252) !important;
}

.btn-transparent:hover {
    background-color: transparent !important;
    color: white !important;
} */

.drop-down__link {
    color: #ffffff;
}

.drop-down__link:active {
    color: #ffffff;
}

.video-main-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90%;
    margin: 12px;
}

.video-label {
    cursor: pointer;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.video-play-icon {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.thematic-categories__p {
    color: #082c47;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}


.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    color: #082c47;
    background-color: #f0f9ff;
    border-color: #ffffff;
}

.btn-group>.btn-group:not(:last-child)>.btn,
.btn-group>.btn.dropdown-toggle-split:first-child,
.btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border: none;
    color: #082c47;
}

.btn-group>.btn-group:not(:first-child)>.btn,
.btn-group>.btn:nth-child(n+3),
.btn-group> :not(.btn-check)+.btn {
    border: none;
    color: #082c47;
}

.home-main-nav-desktop {
    border-radius: 100px;
}

.treading-now {
    border-radius: 12px;
    background: linear-gradient(180deg, #082c47, #ffffff00);
    gap: 8px;
}

.treading-now__drop-down {
    display: flex;
    color: #ffffff;
    padding-right: 10px;
    gap: 10px;
}

.treading-now__menu {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    margin: 15px;
    /* padding-top: 35px; */
}

.treading-now__title {
    font-weight: 500;
    font-size: 24px;
}

.treading-now__title__sub {
    color: #082c47;
    padding-top: 25px;

}

.thematic-categories__menu {
    display: flex;
}

/* +++++++++++ MARKET ++++++++++++++ */
.img-col {
    flex: 0 0 12.5%;
    /* 1/8 of the space */
}

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

.page-link {
    color: black;
    border: none;
}

.page-link:focus {
    box-shadow: none;
}

.page-link:hover,
.page-link:focus {
    color: black;
    background-color: transparent;
}

.page-item.disabled .page-link {
    background-color: transparent;
    color: black;
    padding: 0.375rem 0.5rem;
}

.text-end {
    padding: 10px;
}
.text-end a {
    text-decoration: none;
}

.text-end__bit a {
    color: #1541de80;
}

.page-navigation {
    display: flex;
    margin-right: 20%;
}

/* +++++++++++ CONTENT ++++++++++++++ */

.content-head {
    padding-top: 0;
}

.content-hero-banner {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.content-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), #ffffff);
}

h2, .h2 {
    color: #082c47;
    font-size: 36px;
    font-weight: 500;
    line-height: 120%;
    text-align: left;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-hero-image {
    margin: 20px auto 16px;
    border-radius: 16px;
    overflow: hidden;
    max-width: 820px;
    aspect-ratio: 3 / 2;
}

.content-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .content-hero-image {
        margin: 16px 0 12px;
        max-width: 100%;
        aspect-ratio: auto;
    }

    .content-hero-image img {
        height: auto;
    }
}

.content-meta {
    margin-top: 24px;
}

.content-raise-up {
    display: none;
}

.content-raise-down {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100px;
    margin-top: 20px;
}

.h5-content {
    display: block;
    width: 100%;
    margin: 0;

    font-size: 28px;
}

.post-meta-stats {
    color: #082c4780;
    gap: 20px;
}

.breadcrumb a {
    color: #0b2f4980;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #000;
    text-decoration: underline;
}

.breadcrumb-item:active {
    color: #0b2f4980 !important;
}


.toc-list {
    padding-left: 0;
}

.toc-list li {
    position: relative;
    margin-bottom: 0.5rem;
}

.toc-link {
    color: #1541de;
    text-decoration: none;
    font-size: 14px;
}


.toc-link:hover {
    text-decoration: underline;
}

.toc-item {
    margin-bottom: 0.35rem;
}

.toc-link-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: #1541de;
}

.toc-toggle-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid #1541de;
    border-bottom: 2px solid #1541de;
    transform: rotate(45deg);
    margin-right: 4px;
    transition: transform 0.15s ease;
}

.toc-item.is-open > .toc-link-parent .toc-toggle-icon {
    transform: rotate(135deg);
}

.toc-sublist {
    display: none;
    margin-top: 0.25rem;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
}

.toc-item.is-open > .toc-sublist {
    display: block;
}

.info-list {
    margin-left: -16px;
}

.info-list li::before {
    /* content: '•'; */
}

.content-sub-title {
    padding: 26px 0;
}

/* Article body */
.article-body {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.7;
    color: #082c47;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-body blockquote {
    border-left: 4px solid #1541de33;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #0b2f4980;
}

.article-heading {
    scroll-margin-top: 110px;
}

.article-heading-h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 32px;
}

.article-heading-h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 24px;
}

.article-heading-h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 20px;
}

.table-of-contents {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f5f7fb;
    border-radius: 12px;
}

.table-of-contents h5 {
    margin-bottom: 0.75rem;
    font-size: 18px;
    font-weight: 500;
}

.content-layout {
    align-items: flex-start;
    gap: 16px;
}

.toc-inline {
    margin-top: 12px;
}

.toc-sidebar {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    font-size: 14px;
}

@media (min-width: 992px) {
    .content-meta {
        display: flex;
        align-items: flex-start;
        gap: 32px;
    }

    .content-meta-main {
        flex: 0 0 45%;
    }

    .content-meta-toc {
        flex: 1 1 auto;
        margin-top: 0;
    }
}

.comment {
    border-radius: 50%;
    background: #0b2f49;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-article__title {
    font-weight: 500;
    font-size: 1.2rem;
}

.content-article__body {
    padding: 17px 0;
}

.comment__reaction {
    width: 24px;
    height: 24px;
    margin: 4px;
    justify-content: center;
    align-items: center;
}

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

.comment__mirror img {
    transform: scaleX(-1);
}

.content-article__answer a {
    text-decoration: none;
    color: #1541de80;
}

.content-article__reaction {
    gap: 6px;
}

.comments-buttons {
    gap: 9px;
}

.comment-button-box {
    padding: 20px 30px 20px 0px;
}

.comment-button {
    bottom: 10px;
    right: 10px;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    background: #0b2f49;
    border: none;
    color: #fff;
}

.comment-box {
    border-radius: 10px;
    background: #f1f1f1;
    /* Light gray background */
    padding: 12px;
    position: relative;
}

.comment-textarea {
    resize: none;
    background: #f1f1f1;
    border: none;
    outline: none;
    padding: 5px;
    padding-right: 80px;
    font-size: 14px;
    width: 100%;
    box-shadow: none;
}

.send-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    background: #0b2f49;
    border: none;
    color: #fff;
}

.send-button:hover {
    background: #182d8b;
}

.comment-button:hover {
    background: #182d8b;
}

.comment:hover {
    background: #182d8b;
}

.post {
    padding-bottom: 15px;
}


/* ++++++++++++ media +++++++++++ */
@media (max-width: 1340px) {
    .card-img-wrapper {
        flex: 0 1 auto;
        /* max-width: 300px; */
    }

    .card-body__top {
        flex: 1 1 300px;
        min-width: 222px;
    }
}

@media (max-width: 1300px) {
    .search-fluid {
        max-width: 480px;
    }

    .person-block {
        gap: 10px;
    }

    .thematic-categories__menu {
        justify-content: space-between;
        margin-right: 10px;
        gap: 10px;
    }

    .home-main-nav-desktop {
        margin-right: 7%;
    }
}

@media (max-width: 1050px) {
    .search-fluid {
        display: none;
    }

    .thematic-categories__menu {
        justify-content: space-between;
        margin-right: 10px;
    }

    .home-main-nav-desktop {
        margin-right: 12%;
    }
}

@media (max-width: 900px) {
    .market-nav {
        padding: 8px 0px 40px 10px;
        flex-direction: column;
    }

    .thematic-categories__p {
        padding-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .page-navigation {
        margin-right: 0px;
    }
}

@media (max-width: 700px) {
    .thematic-categories__menu {
        flex-direction: column;
        gap: 15px;
    }

    .card-top {
        height: 100%;
    }

    .person-block {
        display: none !important;
    }

    .logo {
        margin-right: -10px !important;
    }

    /* +++++++++ burger ++++++++++ */
    .header__nav {
        display: none !important;
    }

    .mobile__nav {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
        z-index: 1000;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        transition: 0.3s ease;
    }

    .burger__stick {
        width: 27px;
        height: 3px;
        background: #222;
        transition: 0.3s ease;
        border-radius: 2px;
    }

    /* Burger animation */
    .burger.active .burger__stick:nth-child(1) {
        transform: rotate(45deg) translateY(13px);
    }

    .burger.active .burger__stick:nth-child(2) {
        opacity: 0;
    }

    .burger.active .burger__stick:nth-child(3) {
        transform: rotate(-45deg) translateY(-13px);
    }

    /* Mobile menu overlay */
    .mobile__menu {
        display: none;
        position: absolute;
        top: 60px;
        /* Below nav */
        left: -250px;
        right: 0;
        background: #fafafa;
        padding: 20px 30px;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 300px;
        list-style: none;
    }

    .mobile__menu.show {
        display: flex;
        box-shadow: 2px 2px 18px #8e8c8c;
        border-radius: 12px;
    }

    /* Menu item size */
    .mobile__menu li a {
        font-size: 18px;
        padding: 12px 0;
        display: block;
        width: 100%;
        color: #000;
        text-decoration: none;
    }

    .avatar-info__mobile {
    }
    .mobile__menu__avatar li {

    }
    .mobile__menu__avatar-text {
        font-size: 18px;
    }

    /* Button style */
    .mobile__toggle {
        background: transparent;
        border: none;
        padding: 10px;
        z-index: 1000;
    }

    /* +++++++++ card ++++++++++ */
    .card-fixed.d-flex {
        flex-direction: column !important;
        justify-content: center !important;
        height: 23rem;
        padding: 4px !important;
    }

    .card-img-wrapper {
        width: 100%;
        height: 200px;
        /* Or any responsive height */
    }

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

    .card-body-fixed {
        padding: 1rem;
    }

    .card-body__top {
        display: flex;
        flex-direction: column;
        flex: 1 1 300px;
        /* max-width: 300px; */
    }
}

@media (max-width: 640px) {
    .card {
        padding: 1px 1px;
    }

    .footer__links {
        gap: 16px;
    }

    h2 {
        font-size: 28px;
    }

    .home {
        padding-bottom: 16px;
    }
}

@media (max-width: 420px) {
    .treading-now__menu {
        flex-direction: column;
    }

    /* .home-main-nav {
        flex-direction: column !important;
        display: flex !important;
        gap: 10px;
        width: 100%;
    }

    .home-main-nav label.btn {
        width: 100%;
        text-align: center;
    } */
}

@media (max-width: 380px) {
    .footer__links {
        gap: 6px;
        font-size: 14px;

    }
}
/* Search Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
}
