/* GenStyle*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.top-header{
    background-color: #003087 !important;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Style*/
header {
    background-color: #003087; 
    color: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 50px;
}

.search input {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    margin-left: 20px;
}

.offer-banner {
    background-color: #003087;
    padding: 40px 0;
}

.offer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: left;
}

.offer-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.offer-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.offer-image {
    max-height: 150px;
}

/* Tabbed Secs*/
.tabbed-sections {
    background-color: #fff;
    padding: 40px 0;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 0 5px;
}

.tab-btn.active {
    background-color: #fff;
    border-bottom: 2px solid #FFBD59;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.service-grid, .customer-service-grid, .offer-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.service-item, .offer-item, .blog-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 30px;
    color: #003087;
    margin-bottom: 10px;
}

.customer-service-grid a {
    display: block;
    padding: 15px 20px;
    text-align: center;
    background-color: #f0f0f0;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
}

.customer-service-grid a:hover {
    background-color: #e0e0e0;
}

/* Featured Offers */
.featured-offers {
    padding: 60px 0;
    background-color: #fff;
}

.offer-item img {
    max-width: 100%;
    margin-bottom: 15px;
}

.offer-item a {
    background-color: #FFBA00;
    color: #003087;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.offer-item a:hover {
    background-color: #FFBA00;
}

/* My Money Matters */
.money-matters {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.blog-item img {
    max-width: 100%;
    margin-bottom: 15px;
}

.blog-item a {
    background-color: #003087;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.blog-item a:hover {
    background-color: #002266;
}

/* Branch Locator */
.branch-locator {
    padding: 60px 0;
    background-color: #fff;
}

.locator-input {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.locator-input input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    width: 300px;
}

/* Buttons */
.btn-primary {
    background-color: #006AC3;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #FFBA00;
    color: #000;
}

/* Footer */
footer {
    background-color: #003087;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #FFBA00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .offer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .offer-image {
        max-height: 100px;
        margin-top: 20px;
    }

    .service-grid, .customer-service-grid, .offer-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .locator-input {
        flex-direction: column;
        align-items: center;
    }

    .locator-input input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Products & Services Section */
.products-section {
    background-color: #f8f9fa;
}

.service-item {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item .card-img-top {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-item {
        margin-bottom: 20px;
    }
}

/* Style for all h1 tags */
h1 {
    font-weight: bold;
    color: #003087 !important ;
}

/* Style for navigation menu items */
.navbar-nav .nav-item .nav-link {
    font-weight: bold;
    color: #003087 !important;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #FFBA00 !important; /* Optional: Changes color on hover */
}

/* Apply rounded corners to all images */
img {
    border-radius: 10px; /* Adjust the value for more or less rounding */
    overflow: hidden; /* Ensures images inside containers respect the border-radius */
}

/* Core Banking Topics Section */
.banking-topics {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.banking-topics h2 {
    font-size: 2rem;
    color: #003087;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Grid layout: 3 columns per row */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center;
}

/* Individual topic card */
.topic-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.topic-item:hover {
    transform: translateY(-5px);
}

/* Icon styles */
.topic-item i {
    color: #003087;
    margin-bottom: 15px;
}

/* Heading styles */
.topic-item h3 {
    font-size: 1.3rem;
    color: #003087;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Extended paragraph text */
.topic-item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

/* Branch Locator Section */
.branch-locator {
    position: relative;
    height: 450px; /* Adjust height as needed */
    overflow: hidden;
}

/* Google Map Fullscreen Background */
.map-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Overlay Content Styling */
.locator-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 48, 135, 0.85); /* Dark blue semi-transparent */
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    color: #fff;
    z-index: 2;
    width: 80%;
    max-width: 500px;
}

/* Title Styling */
.locator-overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Input & Button Container */
.locator-input {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Input Field */
.locator-input input {
    width: 70%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

/* Search Button */
.locator-input button {
    padding: 12px 20px;
    background: #ffba00; /* Yellow primary color */
    color: #003087;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.locator-input button:hover {
    background: #ffd23f;
}

/* Footer Styling */
footer {
    font-family: Arial, sans-serif;
}

/* Top Footer - Blue Section */
.footer-top {
    background: #003087;
    padding: 40px 0;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

/* CDIC Logo */
.cdic-logo {
    margin-top: 10px;
    width: 120px;
    display: block;
}

/* Bottom Footer - Dark Section */
.footer-bottom {
    background: #e0a800;
    color: white;
    padding: 15px 0;
    font-size: 0.9rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Social Media Icons */
.footer-social {
    margin: 10px 0;
}

.footer-social a {
    color: white;
    margin: 0 8px;
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: #FFBA00;
}

/* Back to Top Button */
.footer-top-btn {
    margin-top: 10px;
}

.footer-top-btn a {
    color: white;
    text-decoration: none;
}

.footer-top-btn a i {
    margin-left: 5px;
}


/* 
=================================================================================
For accounts page 
===============================================================================
*/

.account-intro {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
}

.account-intro h1 {
    color: #003087;
    font-weight: bold;
}

.account-types {
    padding: 50px 20px;
    background-color: #ffffff;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.account-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.account-card:hover {
    transform: translateY(-5px);
}

.account-card i {
    color: #003087;
    margin-bottom: 15px;
}

.account-card h2 {
    color: #003087;
    font-weight: bold;
    margin-bottom: 15px;
}

.account-card p {
    color: #333333;
    line-height: 1.6;
}

.account-card .btn {
    margin-top: 15px;
}

.account-cta {
    background-color: #003087;
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
}

.account-cta h2 {
    font-weight: bold;
}

.account-cta .btn {
    background-color: #FFBA00;
    color: #003087;
    padding: 10px 20px;
    font-size: 18px;
}

/* Hero Banner Section */
.accounts-hero {
    position: relative;
    background: url('../images/accountsbanner.jpeg') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: bold;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 15px;
}

.hero-content .btn {
    background-color: #FFBA00;
    color: #003087;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
}

/* Floating Icons */
.hero-floating-icons {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-floating-icons i {
    color: #FFBA00;
    opacity: 0.8;
    animation: float 3s infinite ease-in-out alternate;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}


/* Loanspage */

.hero-loans {
    background: #003087 url('../images/loans.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-text p {
    font-size: 1.2rem;
    margin: 15px 0;
    color: #002266;
    
}

.btn-primary {
    background-color: #FFBA00;
    color: #003087;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #e0a800;
}

.loan-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.loan-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.loan-image img {
    max-width: 100%;
    border-radius: 8px;
}

.loan-text {
    max-width: 50%;
}

.loan-text h3 {
    color: #FFBA00;
    font-size: 1.2rem;
}

.loan-text h2 {
    color: #003087;
    font-size: 2rem;
    font-weight: bold;
}

.loan-text p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Reverse layout for alternate sections */
.loan-reverse {
    flex-direction: row-reverse;
}

.loan-benefits {
    background-color: #003087;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.loan-benefits h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-item i {
    color: #FFBA00;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 1rem;
    max-width: 80%;
}

.loan-cta {
    background: linear-gradient(to right, #003087, #002570);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.loan-cta h2 {
    font-size: 2rem;
    font-weight: bold;
}

.loan-cta p {
    font-size: 1.1rem;
    margin: 20px 0;
}

.loan-cta .btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
}

/* Investments Page ================================*/

i{
    color: #003087;
}

h2, h1, h3{
    color: #003087;
}


/* Hero Section */
.hero-investments {
    background: url('../images/investment-hero.webp') no-repeat center center/cover;
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 20px 0;
}

.btn-primary {
    background-color: #003087;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Investment Grid */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.investment-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.investment-item h3 {
    margin-top: 10px;
}

/* Featured Investment Plans */
.investment-plan .row {
   
    align-items: center;
    gap: 0px;
    margin: 50px 0;
}

.investment-plan img {
    width: 100%;
    border-radius: 10px;
}

/* Benefits Section */
.investment-benefits {
    background: #f8f9fa;
    padding: 50px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

/* CTA Section */
.investment-cta {
    text-align: center;
    padding: 50px 0;
    background: #003087;
    color: white;
}

.btn-warning {
    background-color: #FFBA00;
    color: #003087;
}

/* FAQ Section */
.investment-faq {
    padding: 50px 0;
    background: #f8f9fa;
}

.investment-faq h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: #003087;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion-button {
    background: #003087;
    color: white;
    font-weight: bold;
}

.accordion-button:not(.collapsed) {
    background: #FFBA00;
    color: #003087;
}

.accordion-body {
    font-size: 1rem;
    color: #333;
}

/* ======================= Credit cards page ========== */

.hero-credit-cards {
    background: url('../images/credit-card-hero.jpg') center/cover no-repeat;
    padding: 100px 0;
    height: 400px;
}

.card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card i {
    margin-bottom: 15px;
}

.how-to-apply i {
    display: block;
    margin-bottom: 10px;
}

.accordion-button {
    font-weight: bold;
}

.accordion-button:focus {
    box-shadow: none;
}


/* ========================= Advice page ====================== */

/* Hero Section */
.hero-advice {
    background: url('../images/advice-hero.jpg') center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    height: 500PX;
}

.hero-advice h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFBA00;
}

.hero-advice p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Financial Tips Grid */
.financial-tips {
    padding: 60px 0;
    background: #f9f9f9;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.tip-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tip-item i {
    color: #003087;
    margin-bottom: 10px;
}

/* Featured Articles */
.featured-articles {
    padding: 60px 0;
    background: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-item img {
    width: 100%;
    border-radius: 8px;
}

/* Consultation CTA */
.consultation {
    background: #003087;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.consultation h2 {
    color: #FFBA00;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
    background: #f9f9f9;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: #003087;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.faq-answer {
    display: block;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #FFBA00;
}

/* FAQ Toggle */
.faq-question.active + .faq-answer {
    display: block;
}

/* ================= Contact us Page ========================= */

/* Hero Section */
.hero-contact {
    background: url('../images/Contact-Us-Hero.jpg') center/cover no-repeat;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hero-contact h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFBA00;
}

.hero-contact p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Contact Information */
.contact-info {
    padding: 60px 0;
    background: #f9f9f9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.info-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-item i {
    color: #003087;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    padding: 60px 0;
    background: #fff;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button.btn-primary {
    background: #003087;
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

button.btn-primary:hover {
    background: #FFBA00;
    color: #003087;
}

/* Google Map Section */
.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
    background: #f9f9f9;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: #003087;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.faq-answer {
    display: block;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #FFBA00;
}

/* FAQ Toggle */
.faq-question.active + .faq-answer {
    display: block;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 1rem;
}


/* =========== 
Privacy and Security
*/

/* Hero Section */
.privacy-hero {
    background: url('../images/privacy.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 60px 0;
}

/* General Styling */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

h1, h2 {
    color: #003087;
}

h3 {
    color: #FFBA00;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.grid-3 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.security-item {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #003087;
    color: white;
    text-align: center;
    padding: 20px 0;
}


/* ==========
Legal page
============== */

/* Hero Section */
.legal-hero {
    background: url('../images/legal.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 60px 0;
    height: 400px;
}

/* General Styling */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

h1, h2 {
    color: #003087;
}

h3 {
    color: #FFBA00;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.faq-item {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #003087;
    color: white;
    text-align: center;
    padding: 20px 0;
}
