/* @import url("https://fonts.cdnfonts.com/css/interceptor"); */
@import url("https://fonts.cdnfonts.com/css/akira-expanded");

@font-face {
    font-family: "Interceptor-bold";
    src: url("../fonts/Interceptor/Interceptor Bold.otf") format("opentype");
}

body {
    background-color: var(--silver);
    color: var(--bg-color-light);
}

section {
    margin-bottom: 8rem;
}

:root {
    --text-primary-color: rgba(205, 255, 54, 1);
    --text-color-light: rgba(34, 31, 32, 1);
    --text-color-dark: rgba(254, 254, 254, 1);
    --primary-color: rgba(34, 31, 32, 1);

    --bg-gray: rgba(141, 141, 142, 1);
    --bg-dark-blue: rgba(25, 43, 72, 1);
    --bg-dark-blue-hover: rgba(61, 89, 136, 1);
    --bg-lighter-dark-blue: rgba(24, 42, 70, 1);

    --primary-color-hover: rgba(192, 200, 29, 0.8);
    --primary-color-hover-border: rgba(192, 200, 29, 1);
    --second-card-color: rgba(38, 170, 225, 1);
    --bg-color: rgba(33, 33, 33, 1);
    --bg-color-light: rgba(238, 238, 238, 1);
    --navbar-color: rgba(33, 33, 33, 1);
    --primary-color-bg: rgba(220, 224, 133, 1);
    --product-tabs-bg: rgba(36, 33, 32, 1);
    --divider-color: rgba(255, 255, 255, 0.4);

    --silver: rgba(196, 196, 196, 1); /* used in product page as bg */
    --gray-half: rgba(155, 153, 153, 0.5);
    --gray-another: #9a9a9a;

    --swiper-navigation-color: #000;
}

/* width */
.media-scroller::-webkit-scrollbar {
    max-height: 5px;
}

/* Track */
.media-scroller::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px var(--divider-color);
    border-radius: 10px;
}

.media-scroller::-webkit-scrollbar-thumb {
    background: var(--text-primary-color);
    border-radius: 10px;
}

.media-scroller::-webkit-scrollbar-thumb:hover {
    background: #c4c4c4;
}

.bg-black-21 {
    background-color: var(--bg-color);
}

.bg-light-e {
    background-color: var(--bg-color-light);
}

.bg-gray {
    background-color: var(--bg-gray);
}

.bg-gray-2 {
    background-color: var(--gray-another);
}

.bg-dark-blue {
    background-color: var(--bg-dark-blue) !important;
}

.bg-lighter-dark-blue {
    background-color: var(--bg-lighter-dark-blue) !important;
}

.bg-gray-half {
    background-color: var(--gray-half);
}

.bg-silver {
    background-color: var(--silver);
}

.bg-medium-sapphire {
    background-color: rgba(61, 89, 136, 1);
}

.accordion-button::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" class="bi bi-chevron-up" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/></svg>') !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/></svg>');
}

/* .fh-100-section {
    display: grid;
    align-items: center;
    min-height: 100dvh;
    max-height: 100dvh;
} */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.grid-even-columns {
    display: grid;
    column-gap: 2rem;
    row-gap: 5rem;
    grid-template-columns: repeat(3, 1fr);
}

.nav-link {
    color: var(--text-color-light);
}

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

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: var(--primary-color-hover);
}

.navbar-brand img {
    height: clamp(1rem, 1rem + 5vh, 4rem);
}

@media (min-width: 992px) {
    .navbar-dropdown-width {
        min-width: 33vw;
    }
}

.animated-underline {
    text-decoration: none;
    background-image: linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-color)
    );
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 300ms ease;
}

.animated-underline:hover {
    background-size: 100% 3px;
}

.animated-fill {
    text-decoration: none;
    background-image: linear-gradient(
        90deg,
        var(--bg-dark-blue-hover),
        var(--bg-dark-blue-hover)
    );
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    transition: background-size 350ms ease;
}

.animated-fill:hover {
    background-size: 100% 100%;
}

.animated-fill:hover > h5 {
    color: var(--text-color-dark) !important;
}

.headline-content {
    position: relative;
    z-index: 1;
}

.best-seller-section {
    background-image: url("../img/background-bestseller/race-bg.jpg");
    background-position: center;
    width: 100%;
    height: 100%;
    background-size: cover;
    padding: 8rem 3rem;
    /* transform: scale(0.9); */
}

@media (max-width: 32rem) {
    .best-seller-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 22rem) {
    .best-seller-section {
        padding-top: 4rem;
        padding-bottom: 0rem;
        padding-left: 0rem;
        padding-right: 0rem;
    }
}

#carousel-best-seller {
    padding: 6rem 0;
}

.product-values-container {
    background-color: #b1b0b0;
    padding: 2rem 2rem;
    border-radius: 1rem;
}

.product-values-container p {
    text-transform: uppercase;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 500px) {
    .product-values-container p {
        font-size: 11px;
        font-weight: 600;
        text-align: right;
    }
    .values-bar-container {
        height: 10px;
        background-color: #343a40;
        border-radius: 2rem;
        overflow: hidden;
    }
}

.values-bar-container {
    height: 32px;
    background-color: #343a40;
    border-radius: 2rem;
    overflow: hidden;
}

.values-bar {
    height: 100%;
    border-radius: 2rem;
    transition: width 1s ease-in-out;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='white' class='bi bi-arrow-right-circle' viewBox='0 0 16 16'> <path fill-rule='evenodd' d='M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0M4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5z'/> </svg>");
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='white' class='bi bi-arrow-left-circle' viewBox='0 0 16 16'> <path fill-rule='evenodd' d='M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z'/> </svg>");
}

.brand-section {
    background-image: url("../img/bg-cool.jpg");
    padding: 8rem 0;
}

.news-section {
    padding: 8rem 0;
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(50%);
}

.search-bg {
    background-color: rgba(0, 0, 0, 0.7);
}

.btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.text-akira {
    font-family: "Akira Expanded", sans-serif;
}

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

.text-tirename {
    font-family: "Interceptor-bold", sans-serif;
    text-transform: lowercase;
    color: var(--text-primary-color) !important;
    letter-spacing: 0.125rem;
}

.text-dark {
    color: var(--text-color-light) !important;
}

.text-dark-blue {
    color: rgba(25, 43, 72, 1) !important;
}

.text-dark-gray {
    color: #6d6e72;
}

.primary-color-bg {
    background-color: var(--primary-color-bg);
}

.headline-text {
    font-family: "Akira Expanded", sans-serif;
    font-size: 2.5rem;
    line-height: 1;
}

@media (max-width: 32rem) {
    .headline-text {
        font-family: "Akira Expanded", sans-serif;
        font-size: 1.5rem;
        line-height: 1;
    }
}

.headline-text1 {
    font-family: "Akira Expanded", sans-serif;
    font-size: 5rem;
    line-height: 1;
}

#headline-sub-img img {
    object-fit: cover;
    width: clamp(50%, 100%, 100%);
    height: clamp(50%, 100%, 100%);
}

.contain-image {
    object-fit: cover;
    width: 75%;
    height: 100%;
}

/* Product Feature Description Tabs */

.tabs-container {
    background-color: var(--product-tabs-bg);
}

.tabs-container .tabs {
    background: var(--product-tabs-bg);
    color: #fff;
    text-align: center;
}

.tabs-container .tabs .tab {
    padding: 24px 32px;
    cursor: pointer;
}

.tabs-container .tabs .tab.active {
    background: linear-gradient(90deg, #221f20 3.49%, white 242.13%);
}

.tabs-container .content-container#tire-size {
    background: transparent;
    color: #000;
}

.tabs-container .content-container .content {
    display: none;
    padding: 0px 0px 0px 20px;
}

.tabs-container .content-container .content.active {
    display: block;
}

.content {
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 1s forwards;
}

.primary-box-shadow {
    box-shadow: 0 0 20px 1px var(--primary-color-hover);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bootstrap Modified Elements */

.btn-outline-primary {
    --bs-btn-color: var(--text-color-dark) !important;
    --bs-btn-border-color: var(--text-color-dark);
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.btn-outline-custom {
    --bs-btn-color: var(--text-color-light) !important;
    --bs-btn-border-color: var(--text-color-light);
    --bs-btn-hover-bg: #212121;
    --bs-btn-hover-border-color: #212121;
    --bs-btn-active-bg: var(--text-color-light);
    --bs-btn-active-border-color: #212121;
    --bs-btn-disabled-color: #212121;
    --bs-btn-disabled-border-color: #212121;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    background-color: transparent !important;
    border-color: var(--text-primary-color) !important;
}

.btn-primary {
    --bs-btn-color: var(--text-color-dark);
    --bs-btn-bg: var(--bg-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: var(--text-color-light);
    --bs-btn-hover-bg: var(--gray-half);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.border-primary {
    border-color: var(--bg-color-light) !important;
}

.border-yellow-primary {
    border-color: var(--text-primary-color) !important;
}

.border-thicc {
    border-width: 1rem !important;
}

.input-tires {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6) !important;
}

.input-tires:hover {
    color: var(--bg-dark-blue) !important;
    background-color: rgba(255, 255, 255, 0.9);
}

.input-tires:active {
    background-color: var(--bg-dark-blue) !important;
}

.accordion {
    --bs-accordion-color: white;
    --bs-accordion-bg: var(--bg-color-light);

    --bs-accordion-border-color: var(--primary-color);
    --bs-accordion-btn-focus-border-color: var(--primary-color);
}

.accordion-item {
    border: none;
}

.accordion-button {
    color: white !important;
}

.accordion-button::after {
    color: white !important;
}

.accordion-button:not(.collapsed) {
    color: white !important;
    background-color: var(--bg-color);
}

/* News Scroll Classes */

small.news-metadata {
    font-size: 0.8rem;
}

.news-divider {
    border-top: 3px solid var(--divider-color);
    border-radius: 0px;
}

.media-scroller {
    display: grid;
    gap: 1rem;
    grid-auto-flow: column;
    grid-auto-columns: 21%;

    padding: 0 1rem 1rem;

    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.media-scroller--with-groups {
    grid-auto-columns: 80%;
}

.media-group {
    display: grid;
    gap: 1rem;
    grid-auto-flow: column;
}

.media-element {
    display: grid;
    grid-template-rows: min-content;
    gap: 1rem;
    border-radius: 3%;
    /* box-shadow: inset; */
}

.media-element img {
    max-width: 100%;
    height: 100%;
    width: auto;
    object-fit: cover;
}

#news-scroll > .media-scroller > .media-element > img {
    inline-size: 100%;
    aspect-ratio: 13 / 11;
    object-fit: cover;
    padding: 1rem;
}

#news-scroll > .media-scroller {
    grid-auto-columns: 33%;
}

@media (max-width: 32rem) {
    #news-scroll > .media-scroller {
        grid-auto-columns: 100%;
    }
}

#gallery-scroll > .media-scroller > .media-element > a > img {
    inline-size: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

#available-size-section > .tabs-container {
    min-height: 25vh;
}

/* Common transition properties */
.transition-element {
    transition: opacity 0.2s ease-in;
}

/* Fade out effect */
.fade-out {
    opacity: 0;
}

/* Fade in effect */
.fade-in {
    opacity: 1;
}

.snaps-inline {
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 1rem;
}

.snaps-inline > * {
    scroll-snap-align: start;
}

.location-list {
    background-color: var(--bg-color-light);
    opacity: 0.7;
}

.location-list:hover {
    opacity: 1;
}

.img_catalogue {
    max-height: 300px;
    object-fit: contain;
}

/* 992px */
@media (max-width: 992px) {
    section {
        text-align: center;
    }
    .grid-even-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .media-scroller {
        grid-auto-columns: 33%;
    }
}
/* 768px */
@media (max-width: 768px) {
    #card-brand-body img {
        max-width: 100%;
        height: auto;
    }
    .card-text {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* number of lines to show */
        -webkit-box-orient: vertical;

        /* For browsers that don't support -webkit-line-clamp */
        display: -moz-box;
        -moz-box-orient: vertical;
        -moz-lines: 3;
    }
    .grid-even-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-scroller {
        grid-auto-columns: 50%;
    }
}

/* 576px */
@media (max-width: 576px) {
    .grid-even-columns {
        grid-template-columns: repeat(1, 1fr);
    }
    .media-scroller {
        grid-auto-columns: 66%;
    }
}

.news-card {
    color: black;
}

.news-page {
    display: flex;
    margin: 4rem 0rem;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    color: black !important;
}

.news-header {
    display: flex;
    padding-bottom: 2rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 50%;
}

.news-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
}

.news-date {
    font-weight: 300;
}

.news-img {
    border-radius: 1.5rem;
    width: 100%;
}

.news-content {
    display: flex;
    padding-left: 6rem;
    padding-right: 6rem;
    flex-direction: column;
    gap: 1rem;
}

.news-related {
    display: flex;
    padding-left: 6rem;
    padding-right: 6rem;
    flex-direction: column;
}
.news-related-h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-related-card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.news-related-card {
    display: flex;
    flex-direction: column;
}

.news-related-card h5 {
    font-weight: 700;
    text-transform: uppercase;
}

.news-related-card p {
    color: #221f20;
}

.section-head-with-bg {
    position: relative;
    height: 30vh;
}

.section-head-with-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.section-head-with-bg h1 {
    position: absolute;
    text-transform: uppercase;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    margin: 0;
    color: white;
    padding: 2rem 0rem;
    text-align: center;
}

.masonry-container {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;

    -webkit-column-gap: 15px;
    -moz-column-gap: 15px;
    column-gap: 15px;
}

@media (max-width: 32rem) {
    .masonry-container {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
}

.masonry-item {
    display: inline-block;
    width: 100%;
}

.masonry-item img {
    display: block;
    width: 100%;
}

.masonry-item {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.values-bar-container {
    background-color: #edf1f4;
    /* border-radius: 5px; 
    height: 20px; */
}

.tire-size {
    font-family: "Akira Expanded", sans-serif;
    font-size: 1.5rem;
    padding: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.tire-size:hover {
    transform: scale(1.1);
}

.swiper {
    height: 100%;
    width: 100%;
}

#best-seller-swiper > .swiper-wrapper > .swiper-slide {
    padding: 0 6rem;
}

#map-frame {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto; /* Center the container */
    overflow: hidden; /* Hide overflow */
}

#map-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

#map-image {
    width: 100%;
    height: auto;
}

.pinpoint {
    position: absolute;
    cursor: pointer;
    width: 0.7rem;
    height: 0.7rem;
    background-color: rgb(156, 242, 91);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 500px) {
    .pinpoint {
        position: absolute;
        cursor: pointer;
        width: 0.5rem;
        height: 0.5rem;
        background-color: rgb(156, 242, 91);
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
}

.card-body-map {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid rgb(162, 148, 148);
    padding: 0.5rem;
    border-radius: 10%;
    box-shadow: 0 0 0.5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    white-space: nowrap;
    transform: translateY(-100%);
    left: 50%;
    transform: translate(-50%, -100%);
}

.pinpoint p {
    font-size: 10px;
    color: #000;
    margin-bottom: 0;
}

.pinpoint p:first-child {
    font-weight: 500;
    font-size: 13px;
}

.pinpoint:hover .card-body-map {
    display: block;
}

/* Add specific positions for each pinpoint */
.pinpoint-sumatra {
    top: 42.5%; /* Adjust as needed */
    left: 15.5%; /* Adjust as needed */
}

.pinpoint-jakarta {
    top: 60%; /* Adjust as needed */
    left: 27.5%; /* Adjust as needed */
}

.pinpoint-jabar {
    top: 61.3%; /* Adjust as needed */
    left: 30%; /* Adjust as needed */
}

.pinpoint-jateng {
    top: 61.3%; /* Adjust as needed */
    left: 33%; /* Adjust as needed */
}

.pinpoint-jatim {
    top: 62.3%; /* Adjust as needed */
    left: 37%; /* Adjust as needed */
}

.pinpoint-bali {
    top: 64%; /* Adjust as needed */
    left: 44.2%; /* Adjust as needed */
}

.tire-desc {
    font-size: 1.2rem;
}


.detail-tire{
    font-size: 1.5rem;
    font-weight: 500;
}
.detail-desc{
    font-size: 1.1rem;
}

@media (max-width: 972px){
    .tire-size{
    font-family: "Akira Expanded", sans-serif;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
    
    }
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.card-title {
    color: white;
    text-align: center;
}

@media (max-width: 754px) {
    .image-container {
        padding-top: 100%; /* 1:1 Aspect Ratio for mobile */
    }
    .tire-desc{
        font-size: 0.9rem;
    }
    .detail-tire{
        font-size: 1rem;
        font-weight: 500;
    }
    .detail-desc{
        font-size: 0.8rem;
    }
}
