/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 0px;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
}

        .social-links-grid {
            display: flex;
            /* Creates a grid with 1 column */
            grid-template-rows: 1fr; 
            /* This creates the 4 rows as each item takes one grid cell */
            gap: 15px; /* Space between the rows */
            width: 100%;
            max-width: 320px;
            padding: 20px;
        }

        /* General style for all social links */
        .social-link {
            display: flex;
            align-items: center;
            padding: 8px 8px;
            border-radius: 50%;
            text-decoration: none;
            color: white;
            font-size: 16px;
            font-weight: 500;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            
            /* Smooth transition for the hover effect */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        /* The stylish hover effect */
        .social-link:hover {
            transform: scale(1.05); /* Slightly enlarge the button */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add a more pronounced shadow */
        }
        
        /* Icon styling */
        .social-link .fab, .social-link .fas {
            font-size: 24px;
            width: 30px; /* Gives the icon a fixed width for alignment */
            text-align: center;
        }

        /* === Brand Specific Colors === */
        .facebook {
            background-color: #1877F2;
        }

        .youtube {
            background-color: #FF0000;
        }

        .telegram {
            background-color: #26A5E4;
        }

        .linkedin {
            background-color: #0A66C2;
        }
/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 110px;
    width: 120px;

}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

nav ul li a.active {
    color: var(--accent-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    height: 600px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 2.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: white;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Latest Posts Section */
.latest-posts {
    padding: 60px 0;
    background-color: var(--light-color);
    text-align: center;
}

.latest-posts h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-10px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: var(--text-light);
    list-style: none;
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-section-2 {
    margin-bottom: 30px;
}

.footer-section-2 h3 {
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-section-2 p, .footer-section-2 li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-section-2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.wraper-footer-content{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.footer-logo img {
    height: 300px;
    width: auto;
    border-radius: 30px;
    margin-right: 40px;
}
.footer-about-content h2 {
    color:white;
    margin-bottom: 15px;

}
.footer-about {
    max-width: 400px;
    margin-left: 40px;
    margin-right: 20px;
}
.copyright {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}
.to-make-them-responsive-for-mobile{
    display: grid;
}
@media (max-width: 548px) {
.wraper-footer-content{
    display: grid;
}
.to-make-them-responsive-for-mobile{
    display: flex;
}
.container{
    padding: 0;
}
}
@media (max-width: 248px) {
.container{
    padding: 0;
    margin: 0;
}
}
/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
.container{
    padding: 0;
}
    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    .logo img{
        height: 80px;
        width: 90px;
    }
}
/* index-footer-coontent */


/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-actions {
    margin-top: 30px;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

.table tr:hover {
    background-color: #f9f9f9;
}


/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), url('/images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.values-list {
    margin: 20px 0;
    padding-left: 20px;
}

.values-list li {
    margin-bottom: 10px;
}

.team-section {
    margin-top: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always 2 cards per row */
  gap: 30px;
  max-width: 1000px;                   /* Limit total width */
  margin: 30px auto 0 auto;            /* Top margin and horizontal center */
  width: 100%;                         /* Responsive within max-width */
}


.team-member {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.team-member img {
    width: 440px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Services Page */
.services-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#service-card{
    padding: 30px;
}
.service-card.highlighted {
    border: 2px solid var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card ul {
    margin-top: 15px;
    padding-left: 20px;
}

.service-card ul li {
    margin-bottom: 8px;
}

.benefits-section {
    background: var(--light-color);
    padding: 60px 0;
    margin-top: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Loan Form Page */
.loan-form-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .loan-form-section .container {
        grid-template-columns: 1fr;
    }
}

.loan-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

.loan-info h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.loan-info ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.loan-info ul li {
    margin-bottom: 8px;
}

.contact-box {
    background: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-box h3 {
    margin-bottom: 15px;
}

.contact-box p {
    margin-bottom: 10px;
}

.contact-box i {
    margin-right: 10px;
}

/* Contact Page */
.contact-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-section .container {
        grid-template-columns: 1fr;
  }
       .language-changer{
    margin: 0 auto;
}
}

.contact-method {
    display: flex;
    margin-bottom: 30px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-method h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.map-section {
    padding: 60px 0;
    background: var(--light-color);
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Page */
.faq-categories {
    text-align: center;
    margin-bottom: 40px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    border: 0px;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--light-color);
}

.faq-question h3 {
    color: var(--primary-color);
    margin-right: 15px;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
    margin-bottom: 15px;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 20px;
}

.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

/* Vlog Page */
.vlog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    padding: 15px 20px 0;
    color: var(--primary-color);
}

.video-card p {
    padding: 0 20px;
    color: var(--text-light);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.video-meta i {
    margin-right: 5px;
}

.vlog-subscribe {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.vlog-subscribe .btn i {
    margin-right: 10px;
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta i {
    margin-right: 5px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* Single Post Page */
.post-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: var(--light-color);
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 8px;
}

.post-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-text p {
    margin-bottom: 20px;
}

.post-text h2, .post-text h3, .post-text h4 {
    color: var(--primary-color);
    margin: 30px 0 20px;
}

.post-video {
    margin: 40px 0;
}

.post-video h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.post-navigation {
    margin-top: 40px;
    text-align: center;
}

.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
}

.loading i, .error i {
    margin-right: 10px;
}

.error i {
    color: var(--accent-color);
}
/* --- PLATFORM SECTION (SPLIT LAYOUT) --- */
.platform-section {
    padding: 60px 0;
    background-color: var(--light-color); /* Matches your latest-posts bg */
}

/* This is our main grid container for this section */
.platform-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.platform-content .rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.platform-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.platform-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.platform-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.platform-chart {
    height: 400px;
    background: url('/images/loan2.webp') no-repeat center center/cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

/* --- PORTFOLIO SECTION --- */
.portfolio {
    padding: 60px 0;
    background-color: white;
}

.portfolio h2, .portfolio > .container > p {
    text-align: center;
}

.portfolio h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.portfolio > .container > p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.portfolio-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.portfolio-steps img{
    width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}
/* Style the cards inside the portfolio section specifically */
.portfolio .card {
    background-color: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Softer shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.portfolio .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio .card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.portfolio .card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.portfolio .card p {
    color: var(--text-light);
    flex-grow: 1; /* Makes sure paragraph takes available space */
}

.portfolio .card .btn {
    margin-top: 20px; /* Spacing above the button */
}
/* Tablet screens: ≤ 754px */
@media (max-width: 754px) {
    .portfolio .card {
        padding: 25px 15px;
    }

    .portfolio .card i {
        font-size: 2.2rem;
    }

    .portfolio .card h3 {
        font-size: 1.2rem;
    }

    .portfolio .card p {
        font-size: 0.95rem;
    }
}

/* Mobile screens: ≤ 548px */
@media (max-width: 548px) {
    .portfolio .card {
        padding: 20px 10px;
    }

    .portfolio .card i {
        font-size: 2rem;
    }

    .portfolio .card h3 {
        font-size: 1rem;
    }

    .portfolio .card p {
        font-size: 0.9rem;
    }
    .portfolio-steps img{
    width: auto;
    max-width: 100px;
    max-height: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 0px;
}
}

/* Very small screens: ≤ 252px */
@media (max-width: 252px) {
    .portfolio .card {
        padding: 15px 5px;
    }

    .portfolio .card i {
        font-size: 1.5rem;
    }

    .portfolio .card h3 {
        font-size: 0.9rem;
    }

    .portfolio .card p {
        font-size: 0.8rem;
    }

    .portfolio .card .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
        .portfolio-steps img{
    width: auto;
    max-width: 60px;
    max-height: 60px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0px;
}
}
/* --- NEW FEATURES SECTION (SPLIT LAYOUT) --- */
.new-features {
    padding: 0 40px;
    background-color: white;
}

/* This is our main grid container for this section */
.new-features .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Give a bit more space to text */
    align-items: center;
    gap: 40px;
}

.features-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.features-content > p {
    color: var(--text-light);
    margin-bottom: 40px;
}

/* This is the nested grid for the feature items */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
}
.features-grid img{
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--secondary-color);
    background-color: var(--light-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}



/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    /* Stack the split layouts on smaller screens */
    .platform-section .container,
    .new-features .container {
        grid-template-columns: 1fr;
    }
    .new-features .features-image {
        order: -1; /* Move image to top on mobile */
        margin-bottom: 30px;
    }
    .platform-chart {
        height: 300px;
    }
}
@media (max-width: 576px) {
    /* For very small screens, make the feature grid one column */
    .features-grid {
        grid-template-columns: 1fr;
    }
       .language-changer{
    margin: 0 auto;
}
}
.container-2{
    display: block;
}
.language-changer{
    width: auto;
    height: 30px;
    border-radius: 20px;
    color: rgb(0, 0, 0);
    border: 2px solid var(--accent-color);
    margin-right: -50px;
    margin-left: 30px;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
    max-width: 250px;
}
.language-changer:hover{
    background-color: var(--secondary-color);
    color: white;
    border: 0px;
}



/*======================================================*/
/*=========   RESPONSIVE STYLES (ADD-ON)   =========*/
/*======================================================*/
/* 
  These rules will apply on smaller screens to adjust your layout.
  Add this entire block to the end of your style.css file.
*/

/* --- For Tablets and Smaller Laptops (max-width: 992px) --- */
@media (max-width: 992px) {
    /* Adjust typography for slightly smaller screens */
    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    /* Stack the two-column layouts like 'Platform' and 'New Features' */
    .platform-section .container,
    .new-features .container,
    .loan-form-section .container,
    .contact-section .container {
        grid-template-columns: 1fr;
    }

    .new-features .features-image {
        order: -1; /* Move image to top on mobile */
        margin-bottom: 30px;
    }

    .platform-chart {
        height: 300px;
    }

    /* Stack the two-column team grid */
    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* --- For Mobile Phones (max-width: 768px) --- */
@media (max-width: 768px) {
    /* === GENERAL FIXES === */
    section {
        padding: 40px 0; /* Reduce section spacing */
    }

    .container {
        /* This is an IMPORTANT fix. It prevents text from touching screen edges. */
        padding: 0 15px !important;
    }

    h2, .page-header h2 {
        font-size: 2rem;
    }

    /* === HEADER & NAVIGATION FIX === */
    header .container {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .logo img {
        height: 80px; /* Make logo smaller */
        width: auto;
    }
    
    /* Show hamburger menu */
    .mobile-menu {
        display: block;
        margin-right: 15px; /* Give it some space */
    }

    /* Adjust nav to open below the new, shorter header */
    nav {
        display: none;
        position: absolute;
        top: 90px; /* Correct height of the header (80px logo + 10px padding) */
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; align-items: center; }
    nav ul li { margin: 10px 0; }

    /* === HERO SECTION FIX === */
    .hero {
        padding: 60px 15px;
        height: auto; /* Allow height to adjust */
        min-height: 400px;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }

    /* === TEAM SECTION IMAGE FIX === */
    .team-member img {
        width: 100%; /* Make image responsive */
        max-width: 350px; /* Prevent it from becoming too large */
        height: auto;
    }
    
    /* === FOOTER LAYOUT FIX === */
    .wraper-footer-content {
        flex-direction: column; /* Stack footer content vertically */
        text-align: center;
    }
    .footer-logo {
        order: -1; /* Move logo to the top of the footer */
        margin: 0 0 30px 0; /* Center and add bottom margin */
    }
    .footer-logo img {
        height: 200px;
    }
    .footer-about {
        margin: 0 0 30px 0;
    }
    .to-make-them-responsive-for-mobile {
        display: flex; /* Overrides the problematic 'grid' style */
        flex-direction: column; /* Stacks the quick links and contact info */
        align-items: center;
        gap: 30px;
    }
}


/* --- For very small screens (max-width: 576px) --- */
@media (max-width: 576px) {
    /* Stack the nested features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .new-features {
    padding: 0 10px;
}
}