﻿/* Banner Container */
:root {
    --main-blue: #386BBA;
    --dark-text: #000000;
    --light-grey-text: #6c757d;
    --light-blue-bg: #EEF5FF;
}
/*===============================================*/
.banner-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
}

.banner-image {
    position: relative;
    width: 100%;
    height: 100%;
}

    .banner-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* Overlay Container */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 3% 10%;
    /* background: linear-gradient( 90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100% );*/
}

/* Text Color Classes */
/*.primary-text {
    color: #ffffff;*/ /* White */
/*}*/

/*.secondary-text {
    color: #2596be;*/ /* Gold/Yellow */
/*}*/

.primary-bg {
    background-color: #ffffff; /* White */
}

.secondary-bg {
    background-color: #ffd700; /* Gold/Yellow */
}

/* Overlay Text Elements */
.overlay-text {
    margin-bottom: 1.5rem;
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);*/
}

    .overlay-text h1 {
        font-weight: 700;
        font-size: clamp(2.5rem, 5vw, 6rem);
        line-height: 1.1;
        margin-bottom: 0.5rem;
        letter-spacing: -0.5px;
    }

    .overlay-text h2 {
        font-weight: 600;
        font-size: clamp(1.5rem, 3vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 0.5rem;
        color: #0f1922;
    }

    .overlay-text .promo-text {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: clamp(1.25rem, 2.5vw, 2rem);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 1rem 0;
    }

    .overlay-text .info-text {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        opacity: 0.9;
    }

    .overlay-text .text-part-one {
        color: #0f1922;
    }

    .overlay-text .text-part-two {
        color: #cc0c17;
    }
/* Badge */
.overlay-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000000 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

/* CTA Button */
.overlay-cta {
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.725rem;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .cta-button.primary-bg {
        color: #fff;
        background-color: #cb000e;
    }

        .cta-button.primary-bg:hover {
            background-color: #cb000e;
            color: #ffffff;
            border-color: #ffffff;
            opacity: .6;
        }

    .cta-button.secondary-bg {
        color: #000000;
        background-color: #ffd700;
        border-color: #ffd700;
    }

        .cta-button.secondary-bg:hover {
            background-color: transparent;
            color: #ffd700;
        }

/* Animation Effects */
.overlay-text h1 {
    animation: slideInFromLeft 1s ease-out;
}

.overlay-text h2 {
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.overlay-text .promo-text {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.overlay-badge {
    animation: bounceIn 1s ease-out 0.9s both;
}

.cta-button {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.overlay-text .info-text {
    animation: fadeIn 1s ease-out 1.5s both;
}

/* Keyframe Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-container {
        height: 60vh;
        min-height: 400px;
    }

    .banner-overlay {
        padding: 0 5%;
        align-items: center;
        text-align: center;
        /*background: linear-gradient( to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100% );*/
    }

    .overlay-text {
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 50vh;
        min-height: 300px;
    }

    .overlay-badge {
        padding: 0.5rem 1rem;
    }
}


.feature-container {
    text-align: center;
    padding: 4rem 2rem;
}

    .feature-container h2 {
        text-align: center;
        font-weight: 700;
        font-size: clamp(2.5rem, 3vw, 4.5rem);
        line-height: 1.5;
        margin-bottom: 2.5rem;
        font-size: 5.4rem;
        color: #000000;
    }

    .feature-container .text-part-one {
        color: #0f1922;
    }

    .feature-container .text-part-two {
        color: #386BBA;
    }

.feature-images-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-image-card {
    flex: 1;
    max-width: 500px;
    /* border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;*/
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .feature-container h2 {
        font-size: 3.4rem;
    }

    .joined-images-container {
        flex-direction: column;
        max-width: 500px;
    }

    .image-wrapper:first-child {
        margin-right: 0;
        margin-bottom: -1px;
    }

    .image-wrapper:last-child {
        margin-left: 0;
        margin-top: -1px;
    }

        /*.image-wrapper:first-child .joined-image {
        border-radius: 20px 20px 0 0;
    }
*/
        .image-wrapper:last-child .joined-image {
            border-radius: 0 0 20px 20px;
        }

    .joined-image {
        height: 300px;
    }

    .small-top-image {
        width: 60px;
        height: 60px;
        top: -20px;
    }

    .top-text {
        top: 1.5rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .feature-container {
    }
}

.joined-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Individual image wrapper */
.image-wrapper {
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

    /* Remove gap between images */
    .image-wrapper:first-child {
        margin-right: -1px; /* Negative margin to join them */
    }

    .image-wrapper:last-child {
        margin-left: -1px; /* Negative margin to join them */
    }

.joined-image {
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Left image - rounded on left side only */
.image-wrapper:first-child .joined-image {
    /*   border-radius: 20px 0 0 20px;
            border-right: none;*/
}

/* Right image - rounded on right side only */
.image-wrapper:last-child .joined-image {
    /* border-radius: 0 20px 20px 0;
        border-left: none; */
}

.feature-container {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}


.text-part-one {
    color: #2c3e50;
}

.text-part-two {
    color: #e74c3c;
}

/* Joined Images Container */
.joined-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Individual image wrapper */
.image-wrapper {
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

    /* Remove gap between images */
    .image-wrapper:first-child {
        margin-right: -1px;
    }

    .image-wrapper:last-child {
        margin-left: -1px;
    }

.joined-image {
    /*   width: 100%; */
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

/* ==========================================================================
   FEATURES SECTION - ESIM / COMING SOON
   ========================================================================== */

/* Small Top Image */
.small-top-image {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    /*  width: 80px;
        height: 80px;
        background: white; */
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 3;
    border: 3px solid #ffffff;
}

    .small-top-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 50%;
    }
/* Text Layers */
.text-layer {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 600;
    color: #cb000e;
    padding: 1rem 1rem;
    font-size: 2.5rem;
}


/*##############*/
.country-container {
    background: url('/themes/JapanEsim/images/3rd-section-bg.png');
    min-height: 200px;
    padding: 4rem;
}

    .country-container .card {
        background: #fff;
        border-radius: 10px;
        border: 0px;
        padding: 2rem;
    }

    .country-container .left-background {
        background: url('/themes/JapanEsim/images/Network-bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 150px; /* Match card height */
    }

    .country-container .card img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        padding: 1rem;
    }

    .country-container .text-black-bold {
        color: #0f1922;
        font-weight: 800;
        font-size: clamp(1.5rem, 2vw, 2.8rem);
    }

    .country-container .text-gray {
        color: #363D3D;
        font-weight: 600;
        font-size: clamp(1.5rem, 1.5vw, 2.8rem);
    }

    .country-container .text-content {
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
    }


/*Section 4*/
.plans-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 10px;
}


/* Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-header p {
        font-size: 1.25rem;
        color: #64748b;
        max-width: 600px;
        margin: 0 auto;
    }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: #F9F8F9;
    padding: 20px 15px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #0000001A;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

    .feature-card h3 {
        font-weight: 700;
        font-size: 25px;
        line-height: 33px;
        letter-spacing: .25px;
        color: #2B2D41;
    }

    .feature-card p {
        margin-top: 20px;
        font-weight: 500;
        font-size: 18px;
        line-height: 27px;
        letter-spacing: .25px;
        color: #787878;
    }
    .feature-card:hover {
        border: 1px solid #CB000E40;
        background: #FCFBFF;
    }

    .feature-card.selected {
        border: 1px solid #CB000E40;
        background: #FCFBFF;
    }

        /* Hover effect for selected card */
        .feature-card.selected:hover {
            border: 1px solid #CB000E40;
        }

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

/* SVG Swap Container */
.svg-swap {
    position: relative;
    display: inline-block;
    width: 75px;
    height: 75px;
    margin-bottom: 20px;
}

.svg-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .svg-left .svg-swap {
        flex-shrink: 0;
        margin-right: 16px;
    }
/* Both SVG versions positioned absolutely */
.svg-default,
.svg-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Default SVG visible */
.svg-default {
    opacity: 1;
    visibility: visible;
}

/* Hover SVG hidden by default */
.svg-hover {
    opacity: 0;
    visibility: hidden;
}

/* Hover State - Swap SVGs */
.svg-swap:hover .svg-default {
    opacity: 0;
    visibility: hidden;
}

.svg-swap:hover .svg-hover {
    opacity: 1;
    visibility: visible;
}
/* ==========================================================================
   FEATURES SECTION - ACTIVATION    
   ========================================================================== */

/* Header Section */
.activation .header {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.activation h2 span {
    color: #386BBA;
}

.activation h2 {
    font-size: 5.4rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 60px;
}


/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Card Styles */
.sim-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #CB000E40;
}


    .sim-card.physical {
        background: #FFF4F7;
    }

/* Card Header */
.card-header {
    margin-bottom: 30px;
    background: #fff;
    border: none;
    min-height: 90px;
}

.sim-card.physical .card-header {
    background: none;
}

.card-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: #0D1820;
    margin-bottom: 8px;
    text-align: center;
}

.card-badge {
    display: inline-block;
    background: #e6fffa;
    color: #234e52;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.esim .card-badge {
    background: #f0fff4;
    color: #22543d;
}

.physical .card-badge {
    background: #fffaf0;
    color: #744210;
}

/* Features List */
.activation .features-list {
    list-style: none;
    margin-bottom: 30px;
}

.activation .feature-item {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 2rem;
    color: #697585;
    position: relative;
}

    .activation .feature-item::before {
        content: '';
        width: 20px;
        height: 20px;
        border: 2px solid #e2e8f0;
        border-radius: 4px;
        margin-right: 12px;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .activation .feature-item.checked::before {
        background: linear-gradient(135deg, #CB000E 0%, #CB000E 100%);
        border-color: #CB000E;
        /* Fixed SVG with red circle */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23CB000E'/%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
    }

.esim .feature-item.checked::before {
    border-color: #CB000E;
}

.physical .feature-item.checked::before {
    border-color: #CB000E;
}

.feature-text {
    flex: 1;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 30px 0;
}

/* CTA Button */
.activation .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .activation .cta-button:hover {
        transform: translateY(-2px);
        /*box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);*/
    }

.activation .esim .cta-button {
    background: #fff;
    color: #CB000E;
    border: 2px solid #CB000E;
}

    .activation .esim .cta-button:hover {
        background: #CB000E;
        color: #fff;
    }

.activation .physical .cta-button {
    background: #CB000E;
    color: #fff;
    opacity: .5 !important;
}

.activation .cta-button .disabled {
    opacity: .5;
}

.activation .physical .cta-button:hover {
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
}


/* Responsive Design */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sim-card {
        padding: 30px 25px;
    }

    .activation h2 {
        font-size: 3.4rem;
        font-weight: 700;
        color: #000000;
        text-align: center;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .sim-card {
        padding: 25px 20px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* How it works */
/* --- Section Styling --- */
.how-it-works-section {
    background: linear-gradient(180deg, var(--light-blue-bg) 0%, #ffffff 100%);
    background: url('/themes/JapanEsim/images/section-how/how-it-works-bg.png');
    padding: 40px 0;
    text-align: center;
}

    .how-it-works-section .section-title, .how-to-install .section-title, .why-should-i-choose .section-title {
        font-size: 5.4rem;
        font-weight: 700;
        color: var(--dark-text);
        margin-bottom: 140px;
    }

.section-title span {
    font-weight: 700;
    color: var(--main-blue);
}


.steps-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
}


    .steps-flow::before {
        content: '';
        position: absolute;
        top: 55px;
        left: 10%;
        right: 10%;
        height: 2px;
        /* Dotted line style */
        background-image: url('/themes/JapanEsim/images/section-how/dot-line.png');
        background-repeat: repeat-x;
        background-size: auto 100%;
        background-position: left center;
        /*  background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
        */
        z-index: 1;
    }

.step-card {
    flex: 1;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}


.step-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}


.step-number {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-weight: 700;
    color: rgba(65, 119, 195, 0.1);
    z-index: 0;
}

.icon-graphic {
    width: 60px;
    height: 60px;
    background-color: var(--main-blue);
    border-radius: 12px; /* Slight rounding */
    box-shadow: 0 8px 15px rgba(65, 119, 195, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #ffffff;
    z-index: 10;
}


/* --- Text Content Styling --- */
.step-title {
    font-size: 2.7rem;
    font-weight: 600;
    color: #353535;
    margin-top: 0;
    margin-bottom: 10px;
}

.step-description {
    font-size: 2rem;
    color: #697585;
    padding: 0 5px;
}

@media (max-width: 768px) {

    .how-it-works-section .section-title, .how-to-install .section-title, .why-should-i-choose .section-title {
        font-size: 3.4rem;
    }

    .how-it-works-section .step-title {
        font-size: 2rem;
    }

    .step-description {
        font-size: 1.5rem;
    }
}
/* HOW TO INATALL*/

.how-to-install .section-title {
    margin-bottom: 0 !important;
}

.how-to-install {
    text-align: center;
    padding: 40px;
}

.esim-install-section {
    padding: 50px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #D1DCF833;
    margin: 40px auto;
    max-width: 1400px;
}

.esim-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.esim-title {
    font-size: 36px;
    font-weight: 500;
    color: #386BBA;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 40px;
    padding: 0 20px; /* Aligns with the left edge of the phone visuals */
    align-self: flex-start;
}

    .esim-title .highlight-red {
        font-weight: 700;
        color: #CB000E;
    }


.esim-flow-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
}


.large-phone {
    text-align: center;
}

.phone-img-lg {
    max-width: 100%;
    height: auto;
    /*    transform: rotateZ(-5deg);*/
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.2));
}


.sequential-steps-wrapper {
    flex: 0 0 60%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.step-item {
    position: relative;
    text-align: center;
    padding: 0 10px;
}

.phone-img-sm {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


/* --- Callout Box Styling --- */

.callout {
    position: absolute;
    width: 150px;
    text-align: left;
    z-index: 10;
}

.callout-title {
    font-size: 16px;
    font-weight: 600;
    color: #CB000E;
    margin: 0 0 5px 0;
}

.callout-desc {
    font-size: 13px;
    color: #697585;
    margin: 0;
}

.callout-right {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

/* Positioning for Callout on the LEFT of the image */
.callout-left {
    right: calc(100% + 20px);
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}


.callout::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    top: 30px;
}

.callout-right::before {
    left: -35px;
}


.callout-left::before {
    right: -35px;
}

/* Media Query for smaller screens (to stack steps vertically) */
@media (max-width: 992px) {
    .esim-flow-steps {
        flex-direction: column;
        align-items: center;
    }

    .large-phone {
        margin-bottom: 40px;
    }

    .sequential-steps-wrapper {
        flex-wrap: wrap;
        justify-content: space-around;
        padding-top: 20px;
    }

    /* Reset callout positioning for mobile */
    .callout {
        position: static;
        width: 100%;
        text-align: center !important;
        margin-top: 15px;
        transform: none;
    }

        .callout::before {
            display: none;
        }

    .step-item {
        margin-bottom: 40px;
    }
}

.why-should-i-choose {
    margin-bottom: 30px !important;
}

    .why-should-i-choose .section-title {
        margin-bottom: 80px !important;
    }

    .why-should-i-choose h3 {
        font-size: 3.2rem;
        font-weight: 700;
    }

    .why-should-i-choose .lead {
        color: #697585;
        font-size: 1.8rem;
    }

    .why-should-i-choose .list-group-item {
        border: none;
    }

    .why-should-i-choose .list-group-item-heading {
        font-size: 1.8rem;
        font-weight: 700;
        color: #0D1820;
    }

    .why-should-i-choose .list-group-item-text {
        color: #777777;
        font-size: 1.5rem;
    }

    .why-should-i-choose .btn-outline-primary {
        background: transparent;
        color: #CB000E;
        border: 1px solid #CB000E;
        border-radius: 10px;
        text-transform: none;
        font-size: 2rem;
    }

.experience-text::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background: white;
    margin-top: 10px;
}

/* ==========================================================================
   SECTION 9    
   ========================================================================== */
section.faq {
    background: url('/themes/JapanEsim/images/section-9/faq-bg.png');
}

.faq-panel {
    border: none;
    border-radius: 0;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

    .faq-panel .panel-heading {
        padding: 0;
        border-radius: 0;
        background-color: white;
    }

    .faq-panel .panel-title {
        margin-bottom: 0;
    }

        .faq-panel .panel-title a {
            display: block;
            padding: 15px;
            font-size: 1.5em;
            color: #0D1820;
            text-decoration: none;
            border-bottom: 0;
            font-weight: 600;
        }

            .faq-panel .panel-title a.collapsed {
                background-color: white;
            }

.faq-badge {
    background-color: #dc3545;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 0.8em;
    margin-top: 5px;
}

.faq-panel .panel-body {
    border-top: none;
    color: #767676;
    font-size: 1.2em;
    padding: 10px 20px;
    background: #fff;
    border: none;
    text-align: justify
}


.image-section-wrapper-2 {
    position: relative;
    display: inline-block;
    width: 100%;
   /* border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);*/
}

.find-button-overlay {
    position: absolute;
    bottom: 40px;
}

.find-btn {
    background-color: #386BBA;
    border: none;
    padding: 15px 30px;
    line-height: 1.2;
    text-align: center;
    border-radius: 0 10px 10px 0;
}

    .find-btn:hover, .find-btn:active, .find-btn:hover {
        background-color: #386BBA !important;
        opacity: .9;
    }

    .find-btn:focus, .find-btn:not(:disabled):not(.disabled):active:focus {
        background-color: #386BBA;
        opacity: .9;
    }

/* ==========================================================================
   SECTION 10    
   ========================================================================== */

.section-explore-japan {
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #D1DCF833;
    margin: 0 auto;
    max-width: 1400px;
}

.banner-japan-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 250px;
}

.banner-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}


.section-explore-japan .banner-title {
    color: #000000;
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
}

    .section-explore-japan .banner-title .connected-text {
        color: #386BBA;
    }


.section-explore-japan .banner-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 12px 25px;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.banner-btn:hover,
.banner-btn:focus {
    background-color: #c82333;
    border-color: #c82333;
    color: white;
}

@media (max-width: 767px) {
    .section-explore-japan .banner-title {
        font-size: 2.5em;
        text-align: left;
        padding-top:40px;
    }

    .banner-content-overlay .container .row {
        text-align: center;
    }

    .banner-btn {
        font-size: 1em;
        padding: 10px 20px;
    }

    .banner-content-overlay {
        padding: 20px 0;
    }


    .user-icon {
        font-size: 24px;
        color: #333;
        display: inline-block;
    }


    .navbar-toggle-custom .icon-bar {
        background-color: #333; /* Color of the menu lines */
    }
}

.mobile-view {
    display: none;
}

.desktop-view {
    display: block;
}

@media (max-width: 767px) {
    .mobile-view {
        display: block;
    }

    .desktop-view {
        display: none;
    }

    .banner-overlay h1 {
        font-size: 3em;
        line-height: 1.1;
        letter-spacing: 1px;
    }

    .banner-overlay h2 {
        font-size: 1.2em;
    }

    .secondary-text {
        margin-top: 20px;
        font-size: 1.6em;
        color: #0B0B0B;
    }
    /* Ensure the CTA button is full width on mobile */
    .overlay-cta .cta-button {
        font-size: 1.3em;
        border: none;
        padding: 12px 20px;
        margin-top: 15px;
    }

    .feature-container {
        background: none;
    }

    .small-top-image {
        width: unset;
        height: 165px;
        top: 40px;
        border: none;
        box-shadow: none;
    }

        .small-top-image img {
            width: unset;
            height: unset;
        }

    .text-layer .bottom-text {
        margin-top: 20px;
    }

    .country-container {
        padding: 2rem;
        min-height: unset;
    }

        .country-container .card {
            padding: .2rem;
        }

            .country-container .card img {
                width: unset;
                height: 95px;
                padding: .2rem;
            }

        .country-container .left-background {
            min-height: 100px;
        }


    .features-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
        padding-left: 10px;
        padding-right: 10px;
        gap: 20px;
        scroll-snap-type: x mandatory;
    }

        .features-grid::-webkit-scrollbar {
            display: none;
        }

    .feature-card {
        flex: 0 0 85vw;
        scroll-snap-align: start;
    }

    .features-grid::after {
        content: '';
        display: block;
        flex: 0 0 15vw;
    }

    .how-it-works-section .section-title, .how-to-install .section-title {
        margin-bottom: 30px;
    }

    .how-it-works-section .carousel-step-card {
        flex: 0 0 calc(60% - 20px);
        text-align: center;
        padding: 20px;
        margin: 0 10px;
        border-radius: 8px;
        background-color: inherit;
        box-shadow: none;
    }


    .how-it-works-section .carousel-step-title {
        font-weight: 600;
        color: #353535;
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 2.7rem;
    }

    .how-it-works-section .carousel-step-description {
        font-size: 2rem;
        color: #697585;
        padding: 0 5px;
    }

    .how-it-works-section .carousel-dot.active {
        background: #CB000E;
        transform: scale(1.2);
    }


    /* --- Carousel and Track Setup --- */
    .esim-install-section {
        padding: 1px 0;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        background-color: #fff;
        margin: 0;
    }

    .esim-container {
        padding: 0;
    }

    .esim-install-section .esim-title {
        font-size: 1.6em;
        text-align: left;
    }

    .esim-install-section-wrapper {
        padding-top: 20px;
        background: #D1DCF833;
        border-radius: 20px;
        border: 1px solid #CB000E40;
    }

    .esim-install-section .step-carousel-wrapper {
        max-width: 500px;
        margin: 5px auto;
        position: relative;
        overflow: hidden;
    }

    .esim-install-section .sequential-steps-wrapper {
        overflow: hidden;
    }

    .esim-install-section .steps-carousel-track, .esim-install-section .steps-carousel-track-iphone {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }

    .esim-install-section .step-item.step-slide, .esim-install-section .step-item.step-slide-iphone {
        min-width: 40%;
        box-sizing: border-box;
    }

    .esim-install-section .carousel-indicators-steps, .esim-install-section .carousel-indicators-steps-iphone {
        text-align: center;
        padding: 20px 0 0;
        display: flex;
        justify-content: center;
        gap: 8px; /* Space between dots */
    }

    .esim-install-section .step-item {
        margin-bottom: 0;
    }

    .esim-install-section .indicator-dot-step, .esim-install-section .indicator-dot-step-iphone {
        width: 20px;
        height: 10px;
        border-radius: 5px;
        background-color: #ccc; /* Inactive dot color (Light Gray) */
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .esim-install-section .indicator-dot-step.active, .esim-install-section .indicator-dot-step-iphone.active {
            background-color: #386BBA85;
            width: 40px;
        }

    .phone-img-sm {
        max-width: unset;
    }

    .why-should-i-choose {
        background: #fff;
    }

        .why-should-i-choose .section-title {
            margin: 30px;
            margin-bottom: 30px !important;
            font-size: 3rem;
        }

        .why-should-i-choose h3 {
            padding-top: 30px;
            font-size: 1.8rem;
            font-weight: 700;
            color: #0D1820;
        }

        .why-should-i-choose .btn-outline-primary {
            padding: 8px 40px;
        }

    section.faq {
        background: none !important;
    }

    .faq {
        padding-top: 17px;
        padding-bottom: 20px;
    }

        .faq h2 {
            margin: 0 auto 25px;
        }

    .faq-panel .panel-title a {
        font-size: 1em;
    }

    .faq-panel {
        padding-top: 10px;
    }
        .faq-panel .panel-body {
            font-size: 1rem;
        }
    .banner-japan-wrapper {
        padding:30px;
        border-radius:15px;
           }

    .section-explore-japan {
        box-shadow: none;
        background-color: #fff;
    }

    .banner-japan-wrapper {
        position: relative;
        overflow: hidden;
        min-height: 200px;
    }

    .banner-content-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        color: #000; 
        padding: 0 50px;
        box-sizing: border-box; 
        display: flex;
        align-items: center; /* Vertically centers the content */
        text-align: left;
    }

    .banner-title {
        font-size: 3em;
        font-weight: 800; 
        line-height: 1.2;
        margin: 0; 
        color: #212529; 
    }

    .connected-text {
        color: #007bff;
    }

    .banner-btn {
        background-color: #dc3545;
        border-color: #dc3545;
        margin-top: 20px;
        font-size: 1.2em;
        padding: 10px 25px;
        border-radius: 5px;
        display: inline-block;
    }

    @media (max-width: 768px) {
        .banner-japan-wrapper {
            min-height: auto;
        }

        .banner-content-overlay {
            align-items: flex-start;
            padding: 30px 20px; 
        }

            .banner-content-overlay .container {
                width: 100%;
            }

        .banner-title {
            font-size: 2em; 
            margin-top: 0; 
        }
    }
}
