/* ====== Hero Section ====== */
section.section--hero-carousel {
    padding-top: 0;
}

.hero {
    padding: 3rem 1rem;
}

.hero__subtitle {
    font-family: 'Ms Madi', cursive;
    font-size: clamp(2rem, 4vw + 1rem, 6rem);
    color: #CECECE;
    font-weight: normal;
    position: relative;
    left: -2rem;
    line-height: 65%;
    animation-delay: 0.3s;
}

.hero__title {
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: clamp(2rem, 4vw + 1rem, 6rem);
    line-height: 90%;
    color: #ffffff;
    margin-bottom: 0;
    animation-delay: 0.4s;
    animation-duration: 0.1s;
}

.hero__title span.text-highlight {
    display: inline-block;
    padding: 0rem 1rem;
    border-radius: 1.3rem;
    border: 1.5px dashed #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    /* For Safari */
    background-color: rgb(21 21 21 / 67%);
    font-size: 75%;
    font-family: var(--font-family-base);
}

.hero__image {
    display: block;
    width: 100%;
    max-height: auto;
}

.hero__image img {
    width: 100%;
    /* max-height: 35rem; */
    object-fit: cover;
    object-position: top;
}

.hero__text {
    font-size: 1.5rem;
    color: #ffffffe8;
    margin-bottom: 2rem;
    animation-delay: 0.6s;
    line-height: normal;
}

.hero__actions {
    animation-delay: 0.7s;
}

.hero__link {
    font-weight: 500;
    color: #0a2d3e;
    text-decoration: none;
    display: inline-block;
    align-self: center;
    transition: color 0.3s;
    font-size: var(--font-size-medium);
}

.hero__link:hover {
    color: #444;
}

.btn-primary.btn-dark {
    background-color: #252525;
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: unset;
}

.carousel-caption.carousel-caption-sub-page {
    align-items: flex-start;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    height: auto;
    inset: auto 0 0 0;
    background: rgb(11 11 11 / 54%);
    backdrop-filter: blur(21.5px);
    transform: unset;
}

.carousel-caption.carousel-caption-sub-page h3.hero__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.carousel-caption.carousel-caption-sub-page p.hero__text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: #ffffff;
    margin-bottom: 0;
}

/* ====== Blog Intro Section ====== */
.blog-intro__title {
    font-size: 1.8rem;
    font-weight: 700;
}

.heading .icon {
    position: absolute;
    right: -1.5rem;
    transform: translateY(-50%);
}

.blog-intro__desc {
    margin: 1.5rem 0;
    font-size: clamp(1rem, 1.5vw, 1rem);
}

.blog-intro__desc p {
    line-height: 150%;
}

.blog-intro__stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    background: #F1F7FF;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    width: max-content;
}

.blog-intro__stat {
    border-right: 1px solid #C2D2E9;
    padding-right: 1.5rem;
}

.blog-intro__stat:last-child {
    padding: 0;
    border: none;
}

.blog-intro__stats h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: calc(1.375rem + 1vw);
}

.blog-intro__stats small {
    font-size: 0.9rem;
    color: var(--color-text);
}

.blog-intro__video-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-intro__video-thumbnail {
    border-radius: 0;
    object-fit: cover;
    width: 100%;
    display: block;
}

.blog-intro__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../images/icons/icon-play-video.svg) no-repeat center center;
    background-size: cover;
    border: none;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-intro__play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.blog-intro__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-intro__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog {
    padding: 2rem 0;
}

.blog__heading {
    font-size: 2rem;
    font-weight: 700;
}

.blog__subheading {
    font-size: 1rem;
    font-weight: 600;
    color: #1b2c41;
}

.blog-card {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e6e6e6;
}

.blog-card h1 {
    font-size: clamp(1.5rem, 4vw + 1rem, 2rem);
    font-weight: 600;
    color: #0a2d3e;
    margin-bottom: 0.5rem;
}

.blog-card:last-child {
    border: none;
    padding-bottom: 0;
}

.blog-card__img {
    position: relative;
}

.blog-card__img img {
    width: 100%;
}

.blog-card__date {
    position: absolute;
    bottom: 3rem;
    left: 0;
    background: rgba(0, 0, 0, 0.39);
    backdrop-filter: blur(13.25px);
    color: #fff;
    font-size: 1rem;
    padding: 0.8rem;
}

.blog-card__content {
    padding: 1rem 0;
}

.sidebar__title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar__item {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #1b2c41;
}

.sidebar__recent img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.3rem;
}

.blog-categories ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-categories ul li.blog-categories__item a.blog-categories__link {
    display: block;
    padding: 0.5rem 1rem;
    background: #F5F5F5;
    border-radius: 0.25rem;
    color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.blog-categories ul li.blog-categories__item a.blog-categories__link:hover {
    background: #E0E0E0;
    color: var(--primary-color-dark);
}

.blog-categories ul li.blog-categories__item a.blog-categories__link.active {
    background: var(--primary-color);
    color: #ffffff;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-posts__item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 0.75rem;

    .recent-posts__img {
        width: 4rem;
        height: 4rem;
        border-radius: 0.3rem;
        overflow: hidden;
        object-fit: cover;
        object-position: center center;
        flex-shrink: 0;
    }

    .recent-posts__title {
        font-size: 0.875rem;
        margin-bottom: 0;
    }

    .recent-posts__date {
        font-size: 0.75rem;
        color: #7a7a7a;
        margin-bottom: 0;
    }
}

.recent-posts__item:hover {
    background: #F5F5F5;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* ====== Testimonial ====== */
.testimonial__container {
    margin: 0 auto;
    position: relative;
}

.testimonial__slider {
    display: flex;
    align-items: stretch;
}

.testimonial__card {
    background: #F4F4F4;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 320px;
}

.testimonial__slider .testimonial__card {
    margin: 0 0.75rem;
    /* Half of 1.5rem on each side = total 1.5rem gap */
}

.testimonial__slider .slick-list {
    margin: 0 -0.75rem;
    /* Negative half margin to balance */
}

.testimonial__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.testimonial__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0a2d3e;
    margin-bottom: 0.25rem;
}

.testimonial__date {
    font-size: 0.875rem;
    color: #7a7a7a;
    margin-bottom: 1rem;
}

.testimonial__text {
    font-size: 1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
    min-height: 4rem;
}

.testimonial__link {
    display: inline-block;
    font-size: 0.95rem;
    color: #0a2d3e;
    text-decoration: underline;
    transition: color 0.3s;
}

.testimonial__link:hover {
    color: #06304e;
}

.plan__input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 1rem;
}

.plan__input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #ffffff;
    width: 100%;
}

.plan__button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: #003049;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.plan__slider {
    width: 100%;
    margin: 1rem 0 1.5rem;
}

.plan__summary {
    background: #eef6ff;
    padding: 1.25rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan__label {
    color: #003049;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan__amount {
    font-size: 2rem;
    color: #003049;
    font-weight: 700;
    margin: 0;
}

.plan__note {
    margin-top: 0.25rem;
    color: #003049;
    font-weight: 500;
}

.plan__toggle {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.plan__radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #003049;
}

.plan__radio input[type="radio"] {
    accent-color: #003049;
}

.plan__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    margin-top: 1rem;
}

.plan__table td {
    padding: 0.75rem 0.5rem;
    border-top: 1px solid #ccc;
    text-align: left;
}

.plan__table td:last-child {
    text-align: right;
    font-weight: 600;
}

.plan__total td {
    font-weight: bold;
}

.product-details__table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f1f5f9;
    margin: 0;
}

.product-details__table th {
    background-color: #f1f5f9;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #CBD5E1;
}

.product-details__table td {
    font-size: 0.875rem;
    border: 1px solid #CBD5E1;
}

.section.section--3-easy-steps {
    background: url(../images/banners/3-step-bg.png) no-repeat center center;
    background-size: cover;
    padding: 4rem 0;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-card img {
    margin-bottom: 1.5rem;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: calc(100% + 1rem);
    transform: translateX(-50%);
    width: 50%;
    height: 8rem;
    background: url(../images/icons/icon-next-step-arrow.svg) no-repeat center center;
    background-size: contain;
}

.step-container .col-md-4:last-child .step-card::after {
    display: none;
}

.step-card .step-card__title {
    color: #ffffff;
    text-align: center;
    font-size: 1.5rem;
}

.step-card .step-card__description {
    color: #C3DBFF;
    text-align: center;
    width: 80%;
}

.mw-60 {
    max-width: 70%;
    margin: 0 auto;
}

/* Section: Expert Connect */
.expert-connect__heading {
    font-size: 2rem;
    font-weight: 600;
    color: #002f45;
}

.expert-connect__heading span {
    display: block;
    color: #002f45;
}

.expert-connect__form {
    max-width: 600px;
    margin: 0 auto;
}

.expert-connect__input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.expert-connect__button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    min-width: 160px;
}

/* Section: FAQ Tabs */
.section-faq {
    background: #F5F8FC;
}

.faq-tab__btn {
    border: 1px solid #ccc;
    border-radius: 10px 10px 0 0;
    padding: 0.5rem 1.5rem;
    background-color: #fff;
    color: #002f45;
    font-weight: 500;
    margin: 0 0.25rem;
}

.faq-tab__btn.active {
    background-color: #002f45;
    color: #fff;
    border-color: #002f45;
}

.accordion-button {
    font-weight: 500;
    color: #002f45;
}

.faq-tab__terms {
    padding: 1rem;
    font-size: 1rem;
    color: #333;
}

.nav-tabs-faq {
    border: 1px solid #C0DBFF !important;
    width: fit-content;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 1rem;
    margin: 0 auto;
}

.nav-tabs.nav-tabs-faq .nav-link.active {
    border-bottom: none;
    color: #ffffff;
    background: #003049;
    opacity: 1;
    margin: 0;
}

.nav-tabs.nav-tabs-faq .nav-link {
    padding: 0.5rem 1.5rem !important;
    min-width: 8rem;
    border-radius: 0.5rem;
    text-align: center;
    justify-content: center;
}

.accordion-custom {
    background: transparent;
    border: none;
    border-radius: 0;
}

.accordion-custom .accordion-item {
    border: none;
    background: transparent;
    border-bottom: 1px solid #CAD7E8;
}

.accordion-custom .accordion-item:last-child {
    border-bottom: none;
}

.accordion-custom .accordion-button {
    background: transparent;
    font-size: 1.25rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-custom .accordion-body {
    padding-top: 0;
}

.card.card-verification {
    background: #0D1C30;
    border-radius: 2rem;
    border: none;
    overflow: hidden;
}

.card.card-verification .form-control {
    background: #ffffff;
    border: none;
    border-radius: 0.5rem;
    height: 3rem;
}

.verification-card__img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.verification-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    position: absolute;
}

.verification-card__img h1 {
    position: absolute;
    z-index: 1;
    filter: invert(1) brightness(2);
    left: 1.5rem;
    top: 1rem;
}

/* Responsive adjustments */

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

    .hero__text {
        display: block !important;
    }

    .mw-60 {
        max-width: 100%;
        margin: 0 auto;
    }

    .step-card::after {
        width: 40%;
    }

}

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

    .mw-60 {
        max-width: 100%;
        margin: 0 auto;
    }

    .step-card::after {
        width: 40%;
    }

}

@media (max-width: 576px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery__item {
        aspect-ratio: 1/1;
        /* 🧠 Make all images square and same size in mobile */
    }

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

    .blog-intro__stat {
        padding-right: 1rem;
    }

    .section-jb-experience {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255 255 255 / 70%) 16.5%, rgb(255 255 255 / 87%) 25%, #ffffffd4 100%), url(../images/gallery/about-us-image-bg.png) no-repeat, #012840;
        background-size: cover;
        margin-block: 2rem !important;
    }

    .heading .icon {
        display: none;
    }

    .section-vision {
        padding-block: 2rem !important;
    }

    .mw-60 {
        max-width: 100%;
        margin: 0 auto;
    }

    .step-card::after {
        display: none;
    }

    .expert-connect__heading {
        font-size: 1.5rem;
    }

    .expert-connect__form {
        flex-direction: column;
        gap: 1rem;
    }

    .expert-connect__button {
        width: 100%;
    }

    .faq-tab__btn {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }

    .accordion-custom .accordion-button {
        font-size: 1rem;
    }

    .carousel-caption {
        display: none;
    }

    .verification-card__img {
        min-height: 25rem;
    }

    .card.card-verification {
        border-radius: 1.5rem;
        border: none;
        padding: 0 !important;
    }
}