/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #004a99;
    color: white;
    padding: 0px 20px;
    
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px 15px;
    
}

.logo {
    flex: 0 0 auto; /* Don't grow, don't shrink, auto basis */
    text-align: left;
}

.banner {
    flex: 1; /* Let the banner grow and fill available space */
    text-align: center;
}

.contact-details {
    flex: 0 0 auto; /* Don't grow, don't shrink, auto basis */
    text-align: right;
}
.logo, .banner {
    flex: 1;
    text-align: left;
}

.contact-details {
    flex: 1;
    text-align: right;
}

/* Adjust logo size */
.logo img {
    max-width: 90px;
    height: 90px;
}

/* Adjust banner size */
.banner img {
    max-width: 900px;
    height: 90px;
}

/* Adjust contact details image size */
.contact-details img {
    max-width: 150px;
    height: 90px;
    margin-left: 0; /* Remove the fixed margin */
    
}
.contact-images {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.contact-icon {
    width: 150px;
    height: 150px;
    margin: 0 10px;
    object-fit: contain;
}

/* Improve responsive behavior */
@media (max-width: 768px) {
	header {
    padding: 0px 0px;
    
}
    .header-top {
        justify-content: space-between; /* Keep items spaced at ends */
    }
    
    .logo, .contact-details {
        flex: 0 0 auto; /* Keep these at their natural size */
    }
    
    .banner {
        display: none; /* Hide banner on small screens as in your original CSS */
    }
    
    .logo img, .contact-details img {
        max-width: 90px;
        height: auto;
    }

}

/* Extra small devices */
@media (max-width: 480px) {
    .logo img, .contact-details img {
        max-width: 70px;
        height: auto;
    }

    .contact-icon {
        width: 100px;
        height: 100px;
    }
}



/* ======================================Menubar Styles============================================================ */
nav {
    background-color: #333;
    padding: 10px 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    position: relative;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #555;
}

/* Submenu Styles */
nav ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
}

nav ul li .submenu li {
    margin: 0;
}

nav ul li .submenu li a {
    padding: 10px 15px;
    color: white;
    text-align: left;
}

nav ul li .submenu li a:hover {
    background-color: #555;
}

/* Show submenu on hover */
nav ul li:hover .submenu {
    display: block;
}

/* Hamburger Icon Styles */
.menu-icon {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    /* Add dropdown arrow to parent menu items with submenus */
nav ul li.has-submenu > a::after {
    content: "▼"; /* Unicode down arrow */
    margin-left: 5px;
    font-size: 0.8em;
    }
    
    
/* Responsive Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: flex; /* Show hamburger icon on mobile */
    }

    nav ul {
        display: none; /* Hide menu items by default on mobile */
        flex-direction: column;
        width: 100%;
    }


    nav ul li {
        margin: 5px 0;
    }

    nav ul li .submenu {
        position: static; /* Stack submenu items vertically on mobile */
        display: none; /* Hide submenu by default */
        background-color: #555;
    }

    nav ul li:hover .submenu {
        display: block; /* Show submenu on hover */
    }

    /* Show menu items when menu is open */
    nav ul.active {
        display: flex;
    }
      /* Hamburger icon animation */
    .menu-icon.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    

}

/* Fixed Menubar on Scroll */
nav.fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Ensure the slider has a fixed height */
.slider {
    position: relative;
    width: 100%;
    max-width: 1450px; 
    margin: 10px auto;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 10px;
    height: 550px; /* Fixed height for the slider */
    display: flex;
    align-items: center; /* Align images properly */
}

/* Ensure slides take full height */
.slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
    height: 100%; /* Ensure the slides container takes the full height */
}

/* Ensure images take full height */
.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}


/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px; /* Larger buttons for better visibility */
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px; /* Larger font size */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
}

.prev {
    left: 20px; /* Adjusted position */
}

.next {
    right: 20px; /* Adjusted position */
}





/* BANK Products & Services Section */
.products-services {
    padding: 30px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.services-slider-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 50px;
}

.services-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 20px 0;
}

.service-box {
    flex: 0 0 250px;
    margin: 0 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.service-box h3 {
    color: #333;
    margin-bottom: 10px;
}

.service-box p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #0052a3;
}

.service-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.service-prev {
    left: 5px;
}

.service-next {
    right: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .services-slider {
        display: flex;
        flex-wrap: nowrap; /* Keeps slider effect */
        overflow-x: auto; /* Enables horizontal scrolling */
        scroll-snap-type: x mandatory;
        gap: 10px;
    }

    .service-box {
        flex: 0 0 80%; /* Each box takes 80% of the screen */
        scroll-snap-align: center;
        margin: 10px auto;
        text-align: center;
    }

    .service-box img {
        height: auto; /* Maintain aspect ratio */
        max-width: 100%;
        border-radius: 10px; /* Adds a modern look */
    }

    .products-services {
        text-align: center;
        padding: 10px;
    }

    .service-nav {
        display: none; /* Hide navigation arrows on small screens */
    }
}

/* End=============================================================================== */


.products-services2 {
    padding: 0px;
    background-color: #f9f9f9;
    text-align: center;
}


/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px; /* Space between columns */
}

/* Column Styles */
.important-links, .feedback-feed, .contact-info {
    flex: 1;
    min-width: 250px; /* Minimum width for each column */
    margin: 10px 0;
}

.important-links {
    text-align: left;
}

.feedback-feed {
    text-align: center;
}


.contact-info {
    text-align: right;
}

/* Important Links Styles */
.important-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-links ul li {
    margin: 10px 0;
}

.important-links ul li a {
    color: white;
    text-decoration: none;
}

.important-links ul li a:hover {
    text-decoration: underline;
}

/* Feedback Form Styles */
.feedback-feed form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feedback-feed textarea {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
}

.feedback-feed button {
    padding: 10px 20px;
    background-color: #004a99;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedback-feed button:hover {
    background-color: #003366;
}

/* Contact Info Styles */
.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info ul li {
    margin: 10px 0;
}

/* Footer Text Styles */
.footer-text {
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid #555;
    padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

 
    .important-links, .feedback-feed, .contact-info {
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }


    .logo, .banner, .contact-details {
        margin-bottom: 10px;
    }

    .logo img {
        max-width: 100px;
    }

  .banner {
        display: none; /* This will completely hide the banner */
    }



    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    .slider {
        max-width: 100%;
    }

   
    .service-box {
        width: 100%;
        margin: 10px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .important-links {
        text-align: center;
    }
}
/* Footer Images */
.contact-info-content {
    display: flex;
    flex-direction: column;
    align-items: right;
}


/* ============================================================================================================= */
/* Form Section Styles */
/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 15px; /* Space between columns */
}

/* Three-column layout for larger screens */
@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns */
    }
}

/* Form Group Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Submit Button */
.form-group button {
    grid-column: span 2; /* Span across two columns */
    padding: 10px 20px;
    background-color: #004a99;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #003366;
}

/* Adjust button for three-column layout */
@media (min-width: 500px) {
    .form-group button {
        grid-column: span 3; /* Span across three columns */
    }
}

/* File Upload and Capture Styles */
.form-group input[type="file"] {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 10px;
}

.form-group button {
    padding: 10px 20px;
    background-color: #004a99;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.form-group button:hover {
    background-color: #003366;
}

/* Preview Sections */
#photoPreview,
#signaturePreview {
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

#photoPreview {
    width: 51mm; /* 51 mm width */
    height: 51mm; /* 51 mm height */
}

#signaturePreview {
    width: 78mm; /* 51 mm width */
    height: 51mm; /* 78 mm height */
}

#photoPreview img,
#signaturePreview img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
}

#videoPreview video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

#documentPreview a {
    display: block;
    margin-top: 10px;
    color: #004a99;
    text-decoration: none;
}

#documentPreview a:hover {
    text-decoration: underline;
}


/* Live Video Feed Container */
#liveVideoPreview {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    margin-top: 10px;
}

#liveVideoPreview video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Recorded Video Preview Container */
#videoPreview {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    margin-top: 10px;
}

#videoPreview video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}




/* ============================================================================================================= */

/* FD Calculator Section */
.Calculation {
    text-align: center;
}

.Calculation .Calculation-container {
    display: flex;
    justify-content: space-around; /* Distributes items evenly */
    flex-wrap: wrap; /* Wraps items if needed */
    flex-direction: row; /* Ensures items are in a row */
    gap: 10px; /* Adds spacing between items */
}

.fd-calculator, .rd-calculator, .emi-calculator {
    flex: 1; /* Allows equal width distribution */
    min-width: 300px; /* Prevents items from shrinking too much */
    max-width: 450px; /* Keeps a readable width */
}

  
.fd-calculator {
    margin-top: 40px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calculator-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.fd-calculator h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 20px;
    text-align: center;
}

.result h3 {
    margin: 0;
    font-size: 1.5em;
}

.tenure-inputs {
    display: flex;
    gap: 10px;
}

.tenure-inputs input {
    width: 33%;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
}

.tenure-inputs {
    display: flex;
    gap: 10px;
}

.tenure-inputs select {
    width: 33%;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}

.tenure-inputs select:hover {
    border-color: #007bff;
}
.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.result h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.result p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #555;
}

.result p strong {
    color: #000;
}

/* RD Calculator Section */
.rd-calculator {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.rd-calculator h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #333;
}

.rd-calculator .calculator-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Loan Calculator Section */
.emi-calculator {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.emi-calculator h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #333;
}

.emi-calculator .calculator-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.emi-calculator .result p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #555;
}

.emi-calculator .result p strong {
    color: #000;
}

/* Youtube Video Section start======================================== */

        /* YouTube Video Slider Styles */
        .video-slider-section {
            padding: 40px 20px;
            background-color: #f9f9f9;
        }
        
        .video-slider {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .video-slider .slick-slide {
            margin: 0 15px;
        }
        
        .video-container {
            position: relative;
            overflow: hidden;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .video-slider .slick-prev, 
        .video-slider .slick-next {
            width: 40px;
            height: 40px;
            background-color: #00529B;
            border-radius: 50%;
            z-index: 1;
        }
        
        .video-slider .slick-prev:before, 
        .video-slider .slick-next:before {
            font-size: 24px;
            opacity: 1;
        }
        
        .video-slider .slick-prev {
            left: -50px;
        }
        
        .video-slider .slick-next {
            right: -50px;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 30px;
            color: #00529B;
            font-size: 28px;
        }
        
        .video-title {
            text-align: center;
            margin-top: 15px;
            font-weight: 600;
            color: #333;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .video-slider .slick-prev {
                left: -30px;
            }
            
            .video-slider .slick-next {
                right: -30px;
            }
        }
        
        @media (max-width: 576px) {
            .video-slider .slick-prev,
            .video-slider .slick-next {
                width: 30px;
                height: 30px;
            }
            
            .video-slider .slick-prev {
                left: -20px;
            }
            
            .video-slider .slick-next {
                right: -20px;
            }
        }
/* Youtube Video Section End======================================== */


 /* ========================================Product & services Hover start================================================== */
  
  .service-box:hover {
    cursor: pointer;
  }
  
  .service-box img {
    transition: all 0.3s ease;
  }
  
  .service-box:hover img {
    transform: scale(1.1);
  }
  
  .service-box:hover .read-more {
    background-color: #0056b3;
    color: white;
  }
  /* ========================================Product & services Hover end================================================== */
  
