/* Accordion transition styles for Key Benefits Section */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
    max-height: 800px;
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
}

/* Overview Section – dark dark style matching Personal Loan */
.overview-section {
    position: relative;
    background: #0f172a;
    overflow: hidden;
}

/* Vertical marquee watermark – mirroring Personal Loan */
.vertical-marquee-container {
    position: absolute;
    left: 10px;
    bottom: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}

.marquee-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px #d4af37;
    opacity: 0.3;
    animation: scrollUp 15s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Decorative background shape */
.handshake-bg {
    position: absolute;
    right: -2%;
    top: 5%;
    width: 35%;
    max-width: 450px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    transform-origin: top right;
    animation: subtleNod 6s ease-in-out 3;
}

@keyframes subtleNod {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-3deg) scale(1.05);
    }
}

/* CTA Section */
.navy-gradient-section {
    position: relative;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.6) 0%, rgba(2, 6, 23, 0.95) 100%), url("../images/holding-home.e544163c50f6.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

@media (max-width: 1024px) {

    .navy-gradient-section {

        background-attachment: scroll;

    }

    .shadow-2xl {

        box-shadow: 0 4px 12px rgba(0, 0, 0, .18);

    }

    .shadow-xl {

        box-shadow: 0 3px 8px rgba(0, 0, 0, .15);

    }

    .marquee-text {
        animation: none;
    }

    .handshake-bg {
        animation: none;
    }



    html.js-reveal-ready .reveal-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition:
            opacity .45s ease,
            transform .45s ease;
        will-change: auto;
    }

}

/* Arrow button hover animation */
.arrow-btn:hover i {
    transform: translateX(8px);
    transition: transform 0.3s ease;
}

/* Custom dark background for Key Benefits section */
.black-blend-benefits-bg {
    background: linear-gradient(135deg, #0c1425 25%, #0b1b35 50%, #0a2355 70%);
    position: relative;
}

/* Hand-drawn sketches placement & animation */
.sketch-background-asset {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: lighten;
    opacity: 0.55;
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Golden shimmer on scroll */
.home-sketch-asset {
    transition: filter 1.5s cubic-bezier(0.4, 0, 0.2, 1) 3s, opacity 1s ease-in-out;
}

.is-visible .home-sketch-asset {
    filter: sepia(100%) saturate(800%) hue-rotate(15deg) brightness(1.2) drop-shadow(0 0 15px rgba(251, 191, 36, 0.7));
    opacity: 0.95;
}

/* Dynamic connector energy lines */
.energy-connector-path {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2.5;
    stroke-dasharray: 8 8;
    fill: none;
}

.gold-energy-beam {
    fill: #fbbf24;
    filter: drop-shadow(0 0 6px #f59e0b) drop-shadow(0 0 12px #fbbf24);
    opacity: 0;
}

.is-visible .gold-energy-beam {
    animation: flowEnergyAlongPath 4.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s 3;
}

@keyframes flowEnergyAlongPath {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* Gradient CTA button */
.btn-gradient-navy {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-gradient-navy:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
    transform: scale(1.04) translateY(-2px);
}

/* Scroll Reveal Animations – matching Personal Loan */
html.js-reveal-ready .reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.delay-200 {
    transition-delay: 200ms;
}



.relative-host {
    position: relative;
    z-index: 10;
}

/* Gradient CTA button */
.btn-pop1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-pop1:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
    transform: scale(1.04) translateY(-2px);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 800px;
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
}


/* ==========================================================
   MOBILE FIXES (Only Mobile - No Desktop Changes)
========================================================== */
@media (max-width: 768px) {

    /* -------------------------
       SECTION 1 (Header)
    ------------------------- */

    .page-banner {
        padding-top: 70px;
        min-height: auto;
    }

    .page-banner-content {
        padding: 30px 22px 45px;
    }

    .page-banner-title {
        font-size: 2.25rem;
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .page-banner-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 100%;
    }

    /* Feature badges */

    .page-banner-content .flex.flex-wrap {
        gap: 14px;
        margin-top: 30px;
        margin-bottom: 32px;
    }

    .page-banner-content .flex.flex-wrap span {
        font-size: .82rem;
        letter-spacing: .08em;
    }

    /* CTA Buttons */

    .page-banner-content .btn-pop,
    .page-banner-content .btn-pop1 {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /* -------------------------
       SECTION 2
    ------------------------- */

    .overview-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .vertical-marquee-container,
    .handshake-bg {
        display: none;
    }

    .overview-section h3 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .accordion-item button {
        padding: 18px;
    }

    .accordion-item button span {
        font-size: .96rem;
        line-height: 1.5;
    }

    /* -------------------------
       SECTION 3
    ------------------------- */

    .navy-gradient-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .navy-gradient-section .max-w-4xl {
        padding: 34px 24px;
        border-radius: 22px;
    }

    /* Prevent "Mortgage" from being cut */

    .navy-gradient-section h2 {
        font-size: 2.05rem;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .navy-gradient-section p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 36px;
    }

    .arrow-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        text-align: center;
    }

    .arrow-btn:hover i {
        transform: none;
        transition: none;
    }

    /* -------------------------
       SECTION 4
    ------------------------- */

    .black-blend-benefits-bg {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .sketch-background-asset {
        display: none;
    }

    .black-blend-benefits-bg h2 {
        font-size: 2rem;
    }

    /* -------------------------
       SECTION 5
    ------------------------- */

    #strategy-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    #strategy-section img {
        height: auto;
        border-radius: 24px;
    }

    #strategy-section h3 {
        font-size: 2rem;
        line-height: 1.3;
    }

    #strategy-section .flex.flex-col.sm\:flex-row {
        gap: 16px;
    }

    #strategy-section .flex.flex-col.sm\:flex-row a {
        width: 100%;
        text-align: center;
    }

    .energy-connector-path,
    .gold-energy-beam {
        display: none;
    }

    .backdrop-blur-md,
    .backdrop-blur-lg,
    .backdrop-blur-xl,
    [class*="backdrop-blur"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .btn-gradient-navy:hover,
    .btn-pop1:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    }

}

@media (prefers-reduced-motion: reduce) {

    .marquee-text,
    .handshake-bg,
    .gold-energy-beam {
        animation: none !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    .btn-gradient-navy,
    .btn-pop1,
    .arrow-btn i,
    .accordion-content,
    .accordion-chevron {
        transition: none !important;
    }
}