
@media (min-width: 1440px) {
    .container {
        width: 1320px;
    }
}

.padding-left-50 {
    padding-left:50px;
}

.row-flex-sticky {
    display: flex;
    flex-wrap: wrap;
}
.trading-tips-sticky {
    position: sticky;
    top: 90px;
}

.blognews {
    font-size: 62.5%;
}
.nav.nav-tabs.tabs > li {
    background: transparent;
    padding: 6px 12px;
    cursor: pointer;
}
.nav.nav-tabs.tabs > li a {
    color: rgba(13, 12, 67, 0.55);
    text-transform: uppercase;
        font-weight: 200 !important;
    font: 1.2rem / 125% "Sofia Pro", sans-serif !important;
}

.nav-tabs {
    border-bottom: 2px solid rgb(228, 250, 252) !important;
}

.nav-tabs>li.active::after {
    position: absolute;
    bottom: -2px;
    left: 0px;
    content: "";
    width: 100%;
    height: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: rgb(0, 178, 200);
    overflow: hidden;
}
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
    color: rgb(0, 178, 200) !important;
    cursor: default;
    background-color: transparent !important;
    border: 0px !important;
    border-bottom-color: transparent;
}
.nav-tabs>li>a:hover {
    color: rgb(0, 178, 200) !important;
    background-color: transparent !important;
    border: 0px !important;
    border-bottom-color: transparent;
}

.btn-border {
    border: 1px solid rgb(207, 206, 217) !important;
}
.btn-tag {
    border: 1px solid rgb(207, 206, 217) !important;
    font: 12px "Sofia Pro", sans-serif !important;
    font-weight: 100 !important;
    color: rgb(13, 12, 67) !important;
    -webkit-border-radius: 9999px !important;
    -moz-border-radius: 9999px !important;
    border-radius: 9999px !important;
    padding: 4px 10px !important;
    margin-bottom: 4px !important;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
    -webkit-box-align: center;
    align-items: center;
    background-color: transparent;
}
.btn-tag.btn-primary {
    color: #FFFFFF !important;
    background-color: #00b2c8;
    border: 1px solid #00b2c8 !important;
    font: 12px "Sofia Pro", sans-serif !important;
    font-weight: 100 !important;
    padding: 4px 10px !important;
}

.blognews-articletags {
    font: 14px "Sofia Pro", sans-serif !important;
    font-weight: 100 !important;
    word-break: break-word;
}

.image-container-80 {
  width: 80px;
  height: 80px;
  overflow: hidden;
  position: relative;
}

.image-container-block {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
    border-radius: 18px;
    -webkit-border-radius: 18px !important;
    -moz-border-radius: 18px !important;
}

.image-container-block img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.image-container-80 img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
.img-rounded {
    -webkit-border-radius: 12px !important;
    -moz-border-radius: 12px !important;
    border-radius: 12px !important;
}

.blognews-article-title {
    font-family: "Sofia Pro", sans-serif;
    color: rgb(13, 12, 67);
    margin-top: 20px;
    margin-bottom: 0px;
    text-align: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.blognews-articletext {
    overflow: hidden;
}
.blognews-articletext, .blognews-articletext p, .blognews-articletext ul, .blognews-articletext li, .blognews-articletext span {
    font-family: "Sofia Pro", sans-serif !important;
    font-size:16px !important;
    color: rgb(13, 12, 67);
}

.blognews-mainlabel {
    display: inline-block;
    margin: -40px 0 20px 0;
    border-radius: 18px !important;
    -webkit-border-radius: 18px !important;
    -moz-border-radius: 18px !important;
    padding: 12px 16px;
    background-color: rgb(228, 250, 252);
    color: rgb(0, 178, 200);
    font: 1.3rem / 1 "Sofia Pro", sans-serif;
}

.blognews-articletext img {
    max-width:100%;
    height: auto;
}
.blognews-articletext h1 {
    font-family: "Sofia Pro", sans-serif !important;
    font-size:42px !important;
    margin-top:20px;
    margin-bottom:15px;
}
.blognews-articletext h2 {
    font-family: "Sofia Pro", sans-serif !important;
    font-size:36px !important;
    margin-top:20px;
    margin-bottom:15px;
}
.blognews-articletext h3 {
    font-family: "Sofia Pro", sans-serif !important;
    font-size:30px !important;
    margin-top:20px;
    margin-bottom:15px;
}
.blognews-articletext h4 {
    font-family: "Sofia Pro", sans-serif !important;
    font-size:26px !important;
    margin-top:20px;
    margin-bottom:15px;
}
.blognews-articletext h5 {
    font-family: "Sofia Pro", sans-serif !important;
    font-size:20px !important;
    margin-top:20px;
    margin-bottom:15px;
}

.blognews-articletext b, .blognews-articletext strong {
    font-weight: 400;
    font-family: "Sofia Pro", sans-serif !important;
}

.blognews-articletext ul li::before {
    content: "○";
    position: absolute;
    display: block;
    transform: translateX(-16px);
    color: rgb(0, 178, 200);
}

.blognews-articletext ul {
    list-style-type: none;
}
.blognews-articletext ul li {
    margin-top: 12px;
}

.blognews-article-title-side{
    font-family: "Sofia Pro", sans-serif;
    color: rgb(13, 12, 67);
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: inherit;
}
.blognews-article-subtext {
    font: 15px "Sofia Pro", sans-serif !important;
    color: rgb(122, 121, 152);
}
.link-no-underline:hover {
    text-decoration: none
}

.blognews-introtext, .blognews-introtext p {
    font: 17px "Sofia Pro", sans-serif !important;
    color: rgb(13, 12, 67);
    text-align: inherit;
    margin-top:15px;
    font-weight: 100 !important;
}
.blognews-image {
        box-shadow: rgba(0, 128, 143, 0.25) 0px 8px 12px 0px;
}

.blognews-articleimage {
    box-shadow: rgba(0, 128, 143, 0.25) 0px 8px 12px 0px;
    margin-top:-70px;
    -webkit-border-radius: 40px !important;
    -moz-border-radius: 40px !important;
    border-radius: 40px !important;
}


.article-detail-image-container-block {
    box-shadow: rgba(0, 128, 143, 0.25) 0px 8px 12px 0px;
    margin-top:-70px;
    -webkit-border-radius: 40px !important;
    -moz-border-radius: 40px !important;
    border-radius: 40px !important;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  position: relative;
}

.article-detail-image-container-block img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.blognews-bluebox {
    display: block;
    flex-wrap: wrap;
    border-radius: 22px;
    -webkit-border-radius: 22px !important;
    -moz-border-radius: 22px !important;
    background-color: rgb(0, 178, 200);
    padding:20px 0 20px 20px;
    color: #fff !important;
    overflow: hidden;
    position: relative;
}

.blognews-bluebox h3, .blognews-bluebox h4 {
    color: #fff !important;
}
.blognews-bluebox .ch-logo {
    -webkit-box-flex: 1;
    flex-grow: 1;
    width: 60%;
    padding: 0px 0px 20px 0px;
    color: rgb(255, 255, 255) !important;
}
.blognews-bluebox img {
    min-height:100%;
    max-height:100%;
    width:25%;
    float:right;
}


.article-image-container-block {
    box-shadow: rgba(0, 128, 143, 0.25) 0px 8px 12px 0px;
    -webkit-border-radius: 20px !important;
    -moz-border-radius: 20px !important;
    border-radius: 20px !important;
  width: 100%;
  overflow: hidden;
}

.article-image-container-block img {
  width: 100%;
  height: auto;
  display: block;
}
.blognews-article {
    padding: 5px;
    border-radius: 18px;
    -webkit-border-radius: 18px !important;
    -moz-border-radius: 18px !important;
    background-color: transparent;
    box-shadow: transparent 0px 0px 0px 8px;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.blognews-article:hover {
    background-color: rgb(228, 250, 252) !important;
    box-shadow: rgb(228, 250, 252) 0px 0px 0px 8px !important;
}


.blognews-sofia {
    font-family: "Sofia Pro", sans-serif !important;
}

.blognews-sofialight {
    font-family: "Sofia Pro", sans-serif !important;
    color: rgba(13, 12, 67, 0.55);
    line-height: 1.5 !important;
    font-weight: 100 !important;
}
.blognews-title {
    margin-top: 0px;
    margin-bottom: 32px;
    font-weight: normal;
    margin: 24px auto;
    font: 2.8rem / 110% "Sofia Pro", sans-serif !important;
    color: rgb(13, 12, 67);
    text-align: center;
}

.blognews-h3 {
    font: 1.5rem / 110% "Sofia Pro", sans-serif !important;
    margin-top: 44px;
    margin-bottom: 24px;
    color: rgb(13, 12, 67);
    text-align: inherit;
}

.scroll-horizontal {
    margin: 0px auto;
    padding: 8px 0;
    width: 100%;
    background-color: transparent !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-color: rgb(13, 12, 67) transparant;
    crollbar-width: thin;
    --scrollbar-color-thumb: rgb(13, 12, 67);
    --scrollbar-color-track: transparant;
    --scrollbar-width: thin;

  &::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
  }
  &::-webkit-scrollbar-track {
    /**-webkit-box-shadow: inset 0 0 6px rgba(83, 83, 83, 0.07);**/
    background-color: transparent;
  }
  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 8px;
    width: 70px;
    height:5px;
    -webkit-border-radius: 8px;
    background-color: #c1c1c1;
  }
}
.scroll-horizontal ::-webkit-scrollbar-track-piece {
    background-color: #transparant;
    -webkit-border-radius: 0;
    -webkit-border-bottom-right-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
}
.scroll-horizontal ::-webkit-scrollbar-thumb:vertical {
        background-color: rgb(13, 12, 67);;
        -webkit-border-radius: 8px;
}

.scroll-horizontal::-moz-scrollbar-button:decrement,
.scroll-horizontal::-moz-scrollbar-button:increment,
.scroll-horizontal::-webkit-scrollbar-button:decrement,
.scroll-horizontal::-webkit-scrollbar-button:increment {
      width: 0px;

}

@media (min-width: 768px) {
    .blognews-title {
        margin-top: 0px;
        font: 3.6rem / 110% "Sofia Pro", sans-serif !important;
    }
}

@media (min-width: 992px) {
    .blognews-title {
        font: 3.6rem / 110% "Sofia Pro", sans-serif !important;
    }
}

@media (min-width: 1200px) {
    .blognews-title {
        font: 3.9rem / 110% "Sofia Pro", sans-serif !important;
    }
}

@media (min-width: 1536px) {
    .blognews-h3 {
        font: 1.9rem / 110% "Sofia Pro", sans-serif !important;
    }
    .blognews-title {
        font: 3.9rem / 110% "Sofia Pro", sans-serif !important;
    }
}


.titlefont-30 {
    font-size: 30px !important;
}
.titlefont-32 {
    font-size: 32px !important;
}
.titlefont-35 {
    font-size: 35px !important;
}
.titlefont-25 {
    font-size: 25px !important;
}
.titlefont-40 {
    font-size: 40px !important;
}
.titlefont-45 {
    font-size: 45px !important;
}
.titlefont-28 {
    font-size: 28px !important;
}
.titlefont-20 {
    font-size: 20px !important;
}
.titlefont-18 {
    font-size: 18px !important;
}
.titlefont-15 {
    font-size: 15px !important;
}
.lineheight-2 {
    line-height: 1 !important;
}
.p-t-10 {padding-top: 10px;}
.m-t-40 {margin-top: 40px;}
.m-t-50 {margin-top: 50px;}
.m-b-40 {margin-bottom: 40px;}
.m-b-60 {margin-bottom: 60px;}
.text-left {text-align:left !important;}
.m-b-0 {margin-bottom: 0px !important;}
.m-t-0 {margin-top: 0px !important;}

.btn-white {color: rgb(0, 178, 200);}

.width-70-perc {width: 70%;}

.m-t-min-30 {
    margin-top:-30px;
}

.input-group.m-b-40 {
    display: flex !important;
    align-items: center;
    position: relative;
}
.input-group.m-b-40 #subscribe_newsletter_email {
    flex: 1;
    border-radius: 50px !important;
    padding-right: 55px !important;
    border: 1px solid rgb(207, 206, 217);
    box-shadow: none !important;
    height: 48px;
    font: 15px "Sofia Pro", sans-serif !important;
}
.input-group.m-b-40 #subscribe_newsletter_email:focus {
    border-color: rgb(0, 178, 200);
    box-shadow: none !important;
}
.input-group.m-b-40 .input-group-btn {
    position: absolute !important;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: auto !important;
    display: block !important;
}
.input-group.m-b-40 .input-group-btn .btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}
.input-group.m-b-40 .input-group-btn .btn svg {
    width: 16px;
    height: 16px;
}

/* Tag search input — inline with tag buttons */
.tag-search-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-right: 10px;
}
.tag-search-wrapper .tag-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(122, 121, 152);
    font-size: 12px;
    pointer-events: none;
}
.tag-search-wrapper #tagSearchInput {
    border-radius: 9999px;
    border: 1px solid rgb(0, 178, 200);
    padding: 4px 10px 4px 28px;
    font: 12px "Sofia Pro", sans-serif;
    font-weight: 100;
    color: rgb(13, 12, 67);
    box-shadow: none;
    height: auto;
    width: 140px;
    background: transparent;
    transition: width 0.2s ease, border-color 0.15s ease-in-out;
}
.tag-search-wrapper #tagSearchInput:focus {
    border-color: rgb(0, 178, 200);
    box-shadow: none;
    outline: none;
    width: 200px;
}

/* Share buttons */
.blognews-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==================== */
/* Mobile & Tablet      */
/* ==================== */

/* Small screens (phones) */
@media (max-width: 767px) {
    .blognews {
        font-size: 100%;
    }
    .blognews-title {
        font: 2rem / 120% "Sofia Pro", sans-serif !important;
        margin: 16px auto;
    }
    h1.blognews-article-title.titlefont-45 {
        font-size: 24px !important;
    }
    .titlefont-40 {
        font-size: 24px !important;
    }
    .titlefont-35 {
        font-size: 22px !important;
    }
    .titlefont-32,
    .titlefont-30 {
        font-size: 20px !important;
    }
    .titlefont-28 {
        font-size: 18px !important;
    }
    .blognews-articletext h1 {
        font-size: 24px !important;
    }
    .blognews-articletext h2 {
        font-size: 22px !important;
    }
    .blognews-articletext h3 {
        font-size: 20px !important;
    }
    .blognews-articletext h4 {
        font-size: 18px !important;
    }

    /* Article detail image — full width, no crop on mobile */
    .article-detail-image-container-block {
        margin-top: 0;
        border-radius: 20px !important;
        -webkit-border-radius: 20px !important;
        -moz-border-radius: 20px !important;
        aspect-ratio: unset;
        box-shadow: rgba(0, 128, 143, 0.15) 0px 4px 8px 0px;
        overflow: hidden;
    }
    .article-detail-image-container-block img {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        display: block;
        min-width: 0;
        min-height: 0;
    }

    /* Smaller body text on mobile */
    .blognews-articletext, .blognews-articletext p, .blognews-articletext ul, .blognews-articletext li, .blognews-articletext span {
        font-size: 14px !important;
    }
    .blognews-introtext, .blognews-introtext p {
        font-size: 14px !important;
    }
    .blognews-articletags {
        font-size: 12px !important;
    }
    .blognews-article-subtext {
        font-size: 13px !important;
    }

    /* Kill excessive whitespace on article pages */
    .m-t-min-30 {
        margin-top: 0px !important;
    }
    .m-b-15 .col-md-5 p,
    .m-b-15 .col-md-7 p {
        padding: 0 !important;
        margin: 8px 0 !important;
    }
    .m-b-15 {
        margin-bottom: 0 !important;
    }

    /* Share buttons — horizontal row on mobile, compact */
    .blognews-share-buttons {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    .blognews-share-buttons .btn {
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    .blognews-share-col {
        width: 100%;
    }

    /* Sidebar column stacks below on mobile — add spacing */
    .col-md-3 {
        margin-top: 30px;
    }

    /* Bluebox CTA */
    .blognews-bluebox {
        padding: 15px;
    }
    .blognews-bluebox img {
        width: 20%;
    }
    .width-70-perc {
        width: 90%;
    }

    /* Reduce margins */
    .m-b-60 {
        margin-bottom: 30px;
    }
    .m-t-50 {
        margin-top: 25px;
    }
    .m-t-35 {
        margin-top: 20px;
    }

    /* Hide search on mobile — let tags fill full width */
    .tag-search-wrapper {
        display: none;
    }

    /* Filter bar — tighter padding */
    .scroll-horizontal {
        padding: 6px 0 !important;
    }

    /* "Filter by topic" heading — less margin */
    .row.m-t-35 {
        margin-top: 12px !important;
    }

    /* Prev/Next arrow buttons — smaller */
    #prevMainItemsButton,
    #nextMainItemsButton {
        padding: 5px 9px !important;
        font-size: 12px !important;
    }
    #prevMainItemsButton.btn-lg,
    #nextMainItemsButton.btn-lg {
        padding: 5px 9px !important;
        font-size: 12px !important;
    }
    .text-right.m-t-15 {
        margin-top: 6px !important;
    }

    /* Related articles grid — 2 columns on mobile, flex to prevent stagger */
    .row > .col-md-3 {
        width: 50%;
        float: none;
    }
    .row:has(> .col-md-3 .blognews-article) {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* Pagination — compact on mobile */
    [id^="pagination_"] {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }
    [id^="pagination_"] .btn {
        padding: 4px 10px !important;
        font-size: 13px !important;
        min-width: 0;
        margin-right: 4px !important;
    }
    [id^="pagination_"] span {
        margin: 0 4px !important;
        font-size: 14px !important;
    }

    /* Sidebar (newsletter + CTA) full width on mobile */
    .row.m-b-60 > .col-md-3 {
        width: 100%;
        float: none;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .blognews {
        font-size: 100%;
    }
    h1.blognews-article-title.titlefont-45 {
        font-size: 32px !important;
    }
    .article-detail-image-container-block {
        margin-top: -50px;
        border-radius: 24px !important;
        -webkit-border-radius: 24px !important;
        -moz-border-radius: 24px !important;
    }

    /* Kill whitespace on article pages */
    .m-t-min-30 {
        margin-top: 0px !important;
    }
    .m-b-15 .col-md-5 p,
    .m-b-15 .col-md-7 p {
        padding: 0 !important;
        margin: 8px 0 !important;
    }
    .m-b-15 {
        margin-bottom: 0 !important;
    }

    /* Share buttons — horizontal on tablet */
    .blognews-share-buttons {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    .blognews-share-col {
        width: 100%;
    }

    /* Bluebox icon fix for tablet */
    .blognews-bluebox img {
        width: 20%;
    }
}