/* Global Styles */
:root {
    --primary-color: #003366; /* Deep blue */
    --secondary-color: #ff0000; /* Red */
    --accent-color: #ffc107; /* Amber accent */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --border-color: #e6e6e6;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 0;
}

/* Top Header Styles */
.top-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.top-menu ul {
    display: flex;
}

.top-menu ul li {
    margin-left: 20px;
}

.top-menu ul li a:hover {
    color: var(--accent-color);
}

/* Main Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    height: 60px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.main-menu ul {
    display: flex;
    align-items: center;
}

.main-menu ul li {
    margin-left: 30px;
}

.main-menu ul li a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-menu ul li a:hover::after {
    width: 100%;
}

.apply-btn {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.apply-btn:hover {
    background-color: #cc0000;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    width: 50%;
    padding: 80px;
    background-color: rgba(0, 51, 102, 0.8); /* Semi-transparent primary color */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.slide-content .btn {
    align-self: flex-start;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.slide-image {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section Styles */
.features {
    background-color: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Loan Products Section Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.product-features {
    margin-bottom: 25px;
}

.product-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

.product-btn {
    width: 100%;
    text-align: center;
}

/* Call To Action Styles */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Testimonials Styles */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    padding: 20px;
}

.testimonial.active {
    display: block;
    animation: fadeIn 1s ease;
}

.testimonial-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 600;
    color: var(--primary-color);
}

.client-position {
    font-size: 0.9rem;
    color: #777;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-testimonial, .next-testimonial {
    background-color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.prev-testimonial:hover, .next-testimonial:hover {
    background-color: #00254d;
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.t-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    margin-top: 20px;
    color: #bbb;
}

.footer-logo img {
    height: 50px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Floating Calculator Button Styles */
.calculator-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

#calculator-btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#calculator-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

#calculator-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 992px) {
    .slide-content {
        width: 60%;
        padding: 50px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-image {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1002; /* Increased z-index to ensure it's clickable */
        padding: 10px;
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 80px 20px 20px;
    }
    
    .main-menu.active {
        right: 0;
    }
    
    .main-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-menu ul li {
        margin: 0 0 20px 0;
    }
    
    .slide {
        flex-direction: column;
        height: auto;
        position: relative; /* Changed from absolute for mobile */
        display: none; /* Hide all slides initially */
    }
    
    .slide.active {
        display: flex; /* Show only active slide */
        opacity: 1;
    }
    
    .slide-content, .slide-image {
        width: 100%;
    }
    
    .slide-content {
        padding: 40px 20px;
        order: 2;
    }
    
    .slide-content h1 {
        font-size: 1.8rem; /* Smaller font size for mobile */
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-image {
        height: 250px; /* Shorter height for mobile */
        order: 1;
    }
    
    .hero-slider {
        height: auto;
        min-height: 450px; /* Minimum height for the slider on mobile */
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    .top-header .container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    #calculator-btn span {
        display: none;
    }
    
    #calculator-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
    }
    
    #calculator-btn i {
        margin-right: 0;
    }
}
/* Additional CSS to replace hamburger with Apply button on mobile */

@media screen and (max-width: 768px) {
    /* Hide hamburger icon */
    .menu-toggle {
        display: none !important;
    }
    
    /* Show Apply button on mobile */
    .mobile-apply-btn {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--secondary-color);
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    /* Adjust main header for mobile */
    .main-header .container {
        position: relative;
        padding: 15px;
    }
    
    /* Adjust logo size for mobile */
    .logo img {
        height: 50px;
    }
    
    /* Hide main menu on mobile (will be shown when Apply is clicked) */
    .main-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 80px 20px 20px;
    }
    
    .main-menu.active {
        right: 0;
    }
    
    .main-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-menu ul li {
        margin: 0 0 20px 0;
    }
    
    /* Hero slider adjustments for mobile */
    .hero-slider {
        height: auto;
        min-height: 500px;
    }
    
    .slide {
        flex-direction: column;
        height: auto;
        position: relative;
    }
    
    .slide-content, .slide-image {
        width: 100%;
    }
    
    .slide-content {
        padding: 40px 20px;
        text-align: center;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .slide-image {
        height: 250px;
    }
    
    /* Other mobile adjustments */
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-step {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .stats-grid {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 45%;
        margin-bottom: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input, .newsletter-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Calculator button adjustments for mobile */
    #calculator-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
    }
    
    #calculator-btn span {
        display: none;
    }
    
    #calculator-btn i {
        margin-right: 0;
    }
}