@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import 'variables.css';

body {
    font-family: var(--font-body);
    color: var(--foreground);
    background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: var(--font-display);
}

/* Custom Text Colors */
.text-bank-gold {
    color: var(--bank-gold);
}

.text-bank-navy {
    color: var(--bank-navy);
}

.text-bank-cream {
    color: var(--bank-cream);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

/* Custom Background Colors */
.bg-bank-navy {
    background-color: var(--bank-dark-orange);
}

.bg-bank-navy-dark {
    background-color: var(--bank-navy-dark);
}

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

.bg-bank-dark-orange {
    background-color: #d97706;
    /* Approximate from screenshot */
    color: white;
}

.text-bank-dark-orange {
    color: #d97706;
}

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

/* Buttons */
.btn-bank-gold {
    background-color: var(--bank-gold);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-bank-gold:hover {
    background-color: var(--bank-gold-light);
    color: white;
}

.btn-bank-orange {
    background-color: var(--bank-dark-orange);
    color: white;
    border: none;
}

.btn-bank-orange:hover {
    background-color: #b45f06;
    color: white;
}

.btn-outline-light-custom {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-light-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-contact-hero {
    background-color: #ffffff;
    color: var(--bank-dark-orange);
    border: 1px solid #ffffff;
    font-weight: 600;
}

.btn-contact-hero:hover {
    background-color: var(--bank-cream);
    color: var(--bank-navy-dark);
    border-color: var(--bank-cream);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marquee Animation */
.marquee-container {
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* TopBar specific */
.top-bar {
    font-size: 0.875rem;
    /* text-sm */
}

/* Navbar specific */
.navbar-brand img {
    height: 40px;
    /* h-10 */
}

.nav-link {
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.3s;
}

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

.dropdown-item:hover {
    background-color: var(--bank-cream);
    color: var(--bank-navy);
}

/* EMI Calculator Loan Cards */
.loan-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: white;
    color: #000;
    /* Set default title color to black */
}

.loan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.loan-card.active {
    background-color: var(--bank-gold);
    color: white;
    /* Set title color to white when active */
    border-color: var(--bank-gold);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.loan-card h5 {
    font-weight: 700;
}

.loan-card.active .text-muted {
    color: white !important;
    /* Set subtitle color to white when active */
}

/* Explore Section Tabs */
.explore-tab {
    background-color: white;
    border: 1px solid transparent;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
    flex-direction: column;
    /* Stack icon and text */
    justify-content: center;
    text-align: center;
    height: 100%;
    min-width: 140px;
}

/* Home Hero Section */
.home-hero {
    background: url('../images/hero-home-hd.png') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.hero-title-box {
    background: #ffffff; /* Fully opaque for desktop */
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 60%;
}

.mobile-hero-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    .home-hero {
        background: url('../images/mobile-slider.png') center/cover no-repeat;
        min-height: 650px; /* Slight increase for better spacing */
        display: flex !important;
        flex-direction: column !important;
    }

    .home-hero > .container {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important; /* Moved closer to the bottom */
    }

    .home-hero .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .mobile-hero-content {
        background: rgba(255, 255, 255, 0.95); /* Slightly more opaque */
    }
}

.explore-tab i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--bank-gold);
    /* Default icon color */
}

.explore-tab:hover {
    background-color: var(--bank-cream);
    color: var(--bank-dark-orange);
}

.nav-pills .nav-link.active.explore-tab {
    background-color: white;
    color: var(--bank-dark-orange);
    border-top: 4px solid var(--bank-gold);
    /* Top accent */
    border-radius: 0.5rem 0.5rem 0 0;
    /* Rounded top only */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

/* Explore Cards */
.explore-card-img {
    height: 300px;
    object-fit: cover;
    width: 100%;
    border-radius: 0.5rem 0.5rem 0 0;
    /* Match card radius */
}

.btn-outline-bank-gold {
    border: 1px solid var(--bank-gold);
    color: var(--bank-gold);
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Footer Specifics */
.footer-links a {
    color: #000 !important;
    /* text-muted */
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #d97706 !important;
}

.footer-heading {
    color: #d97706;
    /* Bank dark orange */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Footer Info Bar */
.footer-info-bar {
    background-color: #0f1724;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-info-item {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    gap: 0.75rem;
    transition: all 0.25s ease;
}

.footer-info-item:hover {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.4);
    transform: translateY(-1px);
}

.footer-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.footer-info-img {
    height: 42px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid rgba(217, 119, 6, 0.3);
    background: #fff;
    padding: 2px;
    margin-left: 6px;
}

.footer-info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #d97706;
    font-weight: 700;
    line-height: 1.2;
}

.footer-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    color: #fff;
}

.footer-info-value a {
    color: #fff;
    text-decoration: none;
}

.footer-info-value a:hover {
    color: #f59e0b;
}

@media (max-width: 767.98px) {
    .footer-info-item {
        width: 100%;
        max-width: 340px;
        justify-content: flex-start;
    }
}

.sub-footer {
    background-color: #d97706;
    color: white;
}

.sub-footer a {
    color: white;
    text-decoration: none;
}

.sub-footer a:hover {
    text-decoration: underline;
}

.developer-credit {
    background-color: white;
    color: #000;
    font-size: 0.9rem;
    padding: 1rem 0;
}

.btn-outline-bank-gold:hover {
    background-color: var(--bank-gold);
    color: white;
}

/* Page Hero / Breadcrumb */
.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
}

.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default placeholder, can be overridden inline or specific class */
    background-image: url('../images/bank_branch.png');
    min-height: 600px;
    /* Increased height */
    display: flex;
    align-items: center;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Opaque black tint */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-group {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    /* Stretch so both match width of widest element */
}

.page-title-box {
    background-color: white;
    padding: 1.5rem 4rem 1.5rem 6rem;
    /* Left padding larger to push text out, but box touches edge */
    /* To touch the left edge, we might need negative margin if inside a container, 
       or just place the group at the left edge of a fluid container. */
    display: block;
    margin-bottom: 0.5rem;
    padding-left: 5vw;
    /* Responsive left padding */
    padding-right: 3rem;
}

.page-title-text {
    color: #d97706;
    /* Bank Orange */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 3.5rem;
    /* Larger text */
    margin: 0;
    line-height: 1;
}

.page-tagline {
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    text-align: right;
}

/* Custom Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--bank-cream);
    color: var(--bank-navy);
    box-shadow: none;
}

.accordion-button {
    background-color: white;
    color: var(--bank-navy);
    font-weight: 600;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(234, 179, 8, 0.25);
}

/* Remove default arrow */
.accordion-button::after {
    display: none;
}

/* Custom Plus Icon using Bootstrap Icons class usually, but here specific CSS */
.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    color: var(--bank-dark-orange);
}

.accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(45deg);
}

/* Finder Section */
.finder-section {
    background-color: #f8f9fa;
    /* Light gray */
}

.finder-content {
    padding: 3rem;
}

/* EMI Calculator */
.emi-calculator-card {
    background-color: var(--bank-cream);
    padding: 2rem;
    border-radius: 1rem;
}

.form-range {
    height: 1.5rem;
    padding: 0;
    width: 100%;
    /* Custom styling for webkit thumb to match orange theme */
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--bank-dark-orange);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -0.5rem;
    /* Center visually if needed, though Bootstrap usually handles alignment */
    /* Bootstrap default track height is 0.5rem usually. */
}

.form-range::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--bank-dark-orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.form-range::-ms-thumb {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--bank-dark-orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* EMI Result Box */
.emi-result-box {
    background-color: var(--bank-dark-orange);
    /* Teal/Green color from screenshot */
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.emi-result-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.emi-result-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.emi-disclaimer {
    color: #d97706;
    /* Orange text for disclaimer */
    font-size: 0.75rem;
    margin-top: 1rem;
}

.input-group-text-custom {
    background-color: white;
    border: none;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.form-control-custom {
    border: none;
    font-weight: 600;
    text-align: right;
    color: var(--bank-navy);
}

.form-control-custom:focus {
    box-shadow: none;
}
/* Fluid Responsive Navbar Styling (Prevents wrapping on 1000px-1400px screens) */
@media (min-width: 992px) {
    .navbar-nav {
        gap: 0 !important;
    }
    .navbar-nav .nav-link {
        white-space: nowrap !important;
        font-size: clamp(0.75rem, 1vw + 0.1rem, 1rem) !important;
        padding-left: clamp(0.2rem, 0.5vw, 0.5rem) !important;
        padding-right: clamp(0.2rem, 0.5vw, 0.5rem) !important;
    }
}

/* Hide Scrollbar for Explore Services Tabs */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.scroll-arrow {
    transition: all 0.2s ease-in-out;
}
.scroll-arrow:hover {
    transform: scale(1.1) translateY(-50%) !important;
}

/* Custom Main Navigation Styles (Tier 3) */
.custom-main-nav {
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.custom-main-nav .navbar-nav {
    gap: 0;
}

.custom-main-nav .navbar-nav .nav-item {
    position: relative;
}

/* Elegant Center-Out Underline Animation Base */
.custom-main-nav .navbar-nav .nav-link {
    position: relative;
    padding: 0.8rem 1rem !important;
    font-weight: 500;
    color: var(--bank-navy) !important;
    transition: color 0.3s ease;
}

/* Polished Dropdown Styling - Mobile Override */
.custom-main-nav .dropdown-menu {
    border: none;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.02);
    background-color: #f8f9fa;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.custom-main-nav .dropdown-item {
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    color: var(--bank-navy);
    transition: all 0.2s ease;
    white-space: normal !important; /* Force text wrap */
    line-height: 1.4;
}


.custom-main-nav .dropdown-item:hover {
    background-color: rgba(217, 119, 6, 0.05);
    color: var(--bank-dark-orange);
    padding-left: 1.8rem;
}

@media (min-width: 992px) {
    .custom-main-nav .navbar-nav {
        gap: 0;
    }

    .custom-main-nav .navbar-nav .nav-link {
        padding: 1.2rem 0.5rem !important;
    }

    .custom-main-nav .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--bank-dark-orange);
        transform: scaleX(0);
        transition: transform 0.3s ease-in-out;
        transform-origin: center;
        border-radius: 2px;
    }

    .custom-main-nav .navbar-nav .nav-item:hover .nav-link::before,
    .custom-main-nav .navbar-nav .nav-item .nav-link.active::before {
        transform: scaleX(1);
    }
    
    .custom-main-nav .navbar-nav .nav-item:hover .nav-link {
        color: var(--bank-dark-orange) !important;
    }

    .custom-main-nav .dropdown-menu {
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        border-radius: 0.5rem;
        padding: 0.5rem 0;
        background-color: white;
        min-width: 500px !important;
        max-width: 600px !important;
        width: 500px !important;
    }
}

/* Widescreen Desktop Container Expansion Fixes */
@media (min-width: 1500px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1440px !important;
    }
}
@media (min-width: 1700px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        /* Ensures 5% margin on both sides for 1700px+ up to 2560px */
        max-width: 90% !important;
    }
}
@media (min-width: 2560px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        /* For 27-inch 1440p (2560x1440) and 4K Widescreens, use 92% to avoid overly stretched text */
        max-width: 92% !important;
    }
}

/* Ensure responsive tables do not squish text excessively on mobile screens, forcing them to scroll */
@media (max-width: 768px) {
    .table-responsive > .table {
        white-space: nowrap;
    }
}
