﻿/* =================================================
   HERO BANNER RESPONSIVE
================================================= */

@media (max-width: 1199px) {

    .banner-content {
        max-width: 640px;
    }

        .banner-content h1 {
            font-size: clamp(34px, 5vw, 54px);
        }

    .hero-subtext {
        font-size: 16px;
        max-width: 520px;
    }
}


@media (max-width: 991px) {

    .banner-slide {
        min-height: 100vh;
        padding: 140px 0 100px;
        align-items: center;
    }

    .banner-overlay {
        background: linear-gradient( 180deg, rgba(30,49,86,0.82) 0%, rgba(30,49,86,0.72) 45%, rgba(0,0,0,0.45) 100% );
    }

    .banner-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

        .banner-content h1 {
            font-size: clamp(34px, 7vw, 52px);
            line-height: 1.15;
            margin-bottom: 18px;
            letter-spacing: -1px;
        }

    .hero-subtext {
        font-size: 16px;
        line-height: 1.8;
        max-width: 100%;
        margin: 0 auto 30px;
    }

    .hero-topLine {
        font-size: 13px;
        padding: 9px 16px;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* Controls */

    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 46px;
        height: 46px;
        background-size: 38%;
    }
}


@media (max-width: 767px) {

    .banner-slide {
        min-height: 92vh;
        padding: 130px 0 90px;
        background-position: center center;
    }

    .banner-content {
        padding: 0 10px;
    }

        .banner-content h1 {
            font-size: 34px;
            line-height: 1.2;
        }

    .hero-subtext {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .hero-btn {
        width: auto;
        min-width: 180px;
        text-align: center;
    }

    /* Mobile Arrows */

    .carousel-control-prev,
    .carousel-control-next {
        width: 48px;
        top: auto;
        bottom: 25px;
        transform: none;
    }

    .carousel-control-prev {
        left: 20px;
    }

    .carousel-control-next {
        right: 20px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 42px;
        height: 42px;
        background-size: 34%;
        background-color: rgba(255,255,255,0.20);
    }
}


@media (max-width: 575px) {

    .banner-slide {
        min-height: 88vh;
        padding: 120px 0 85px;
    }

    .banner-content h1 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-subtext {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-topLine {
        font-size: 12px;
        padding: 8px 14px;
    }

    .hero-btn {
        padding: 13px 24px;
        font-size: 14px;
        border-radius: 40px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 42px;
        bottom: 20px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 38px;
        height: 38px;
    }
}
/* =================================================
   ABOUT RESPONSIVE
================================================= */

@media (max-width: 1199px) {

    .about-container {
        gap: 50px;
    }
}

@media (max-width: 995px) {

    .about-section {
        padding-top: 80px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
    }

    .about-img-stack {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-img-main,
    .about-img-secondary {
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        left: auto;
        bottom: auto;
        top: auto;
    }

        .about-img-main img,
        .about-img-secondary img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            border-radius: 22px;
        }

    .about-img-main {
        height: auto;
    }

    .about-img-secondary {
        height: auto;
        border: 4px solid #fff;
    }

    /* badges positioning */

    .about-badge-years {
        top: 15px;
        right: 15px;
    }

    .about-badge-members {
        left: 15px;
        bottom: 15px;
    }

    .about-deco-square {
        display: none;
    }
}


/* =================================================
   SERVICES RESPONSIVE
================================================= */

@media (max-width: 1199px) {

    .services-grid {
        gap: 18px;
    }

    .svc-card-inner {
        padding: 28px 24px;
    }
}

@media (max-width: 991px) {

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .svc-card--featured {
        order: -1;
    }

    .services-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
        border-radius: 24px 24px 0 0;
    }

    .cta-banner-right {
        width: 100%;
    }

    .cta-banner-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 767px) {

    .services-section {
        padding-top: 80px;
    }

    .services-header {
        margin-bottom: 48px;
    }

    .cta-icon-cluster {
        display: none;
    }

    .cta-banner-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* =================================================
   WHY SECTION RESPONSIVE
================================================= */

@media (max-width: 1199px) {

    .why-layout {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {

    .why-layout {
        grid-template-columns: 1fr;
    }

    .why-trust-block {
        max-width: 520px;
        margin: 0 auto;
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {

    .why-section {
        padding: 80px 0;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .why-grid {
        grid-template-columns: 1fr;
    }
}


/* =================================================
   RATES RESPONSIVE
================================================= */

@media (max-width: 1199px) {

    .rates-layout {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 991px) {

    .rates-layout {
        grid-template-columns: 1fr;
    }

    .emi-calculator {
        position: static;
    }
}

@media (max-width: 767px) {

    .rates-section {
        padding: 80px 0;
    }

    .rate-table thead th,
    .rate-table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }
}


/* =================================================
   TESTIMONIAL RESPONSIVE
================================================= */

@media (max-width: 767px) {

    .testimonials-section {
        padding: 80px 0;
    }

    .testi-card {
        padding: 28px 24px;
    }

    .testi-text {
        font-size: 15px;
    }

    .testi-summary {
        flex-wrap: wrap;
        gap: 24px;
        padding: 24px;
    }

    .summary-divider {
        display: none;
    }
}


/* =================================================
   NEWS & EVENT RESPONSIVE
================================================= */

@media (max-width: 991px) {

    .news-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 767px) {

    .news-section {
        padding: 80px 0;
    }

    .col-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* =================================================
   FOOTER RESPONSIVE
================================================= */

@media (max-width: 1199px) {

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
        gap: 36px;
    }
}

@media (max-width: 991px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
    }

    .footer-brand-desc {
        max-width: 520px;
    }
}

@media (max-width: 767px) {

    .footer-body {
        padding: 56px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-rbi-note {
        display: none;
    }
}
/* ===============================
      top btn
    ================================ */
@media (max-width: 767px) {

    .back-to-top {
        width: 46px;
        height: 46px;
        right: 18px;
        bottom: 18px;
        font-size: 18px;
    }
}

/* =================================================
   MOBILE NAVBAR RESPONSIVE
================================================= */

@media (max-width: 991px) {
    body {
        overscroll-behavior: none;
    }
    .logo-symbol {
        height: 60px;
        width: auto;
    }

    .site-header:has(.custom-toggler[aria-expanded="true"]) {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* ===============================
       MOBILE MENU
    ================================ */

    .mobile-menu {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #F1F2F4;
        padding-top: 100px;
        z-index: 9998;
        /* FIX FOR SCROLL ISSUE */
        overflow-y: auto;
        transition: all 0.4s ease;
        transition-delay: 0s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

        .mobile-menu.show {
            right: 0;
        }

        /* CENTER MENU */

        .mobile-menu .navbar-nav {
            flex-direction: column;
        }

        .mobile-menu .nav-item {
            margin: 8px 0;
        }

        .mobile-menu .nav-link {
            font-size: 16px;
            font-weight: 600;
            color: #000 !important;
            letter-spacing: 2px;
        }

            .mobile-menu .nav-link:hover {
                background: rgba(255,255,255,0.15);
                border-radius: 30px;
            }

    /* ===============================
       HAMBURGER TO CROSS
    ================================ */

    .custom-toggler {
        border: none;
        background: transparent;
        padding: 10px;
        z-index: 10000;
    }

        .custom-toggler span {
            display: block;
            width: 28px;
            height: 3px;
            background: #000;
            margin: 6px 0;
            transition: transform 0.3s ease, opacity 0.2s ease;
            transition-delay: 0.35s;
        }

        /* ACTIVE STATE */

        .custom-toggler[aria-expanded="true"] span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .custom-toggler[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }

        .custom-toggler[aria-expanded="true"] span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        .custom-toggler:focus {
            box-shadow: none;
        }
}
