@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;
}

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

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

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

/* 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;
    /* or transparent */
    border: 1px solid transparent;
    /* default border */
    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;
}

.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: #6c757d;
    /* text-muted */
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--bank-navy);
}

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

.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 */
.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;
}