/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #444;
    line-height: 1.7;
    font-size: 18px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #2a5db0;
    transition: color 0.3s;
}

a:hover {
    color: #1a4785;
}

/* Header Styles - Unified */
header {
    position: relative;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #2a5db0;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-desktop a {
    color: #555;
    margin-left: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 20px;
    transition: background 0.3s;
    font-size: 18px;
}

.nav-desktop a:hover {
    background: rgba(42, 93, 176, 0.1);
}

.nav-desktop .join-btn {
    background: #2a5db0;
    color: white;
    margin-left: 25px;
    padding: 12px 25px;
    font-size: 18px;
}

.nav-desktop .join-btn:hover {
    background: #1a4785;
}

.hamburger {
    display: none;
    font-size: 28px;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-mobile a {
    padding: 15px;
    color: #444;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 18px;
}

.nav-mobile a:last-child {
    border-bottom: none;
}

/* Homepage Specific Header - Fixed background image */
.homepage-header {
    height: 600px;
    background: url('bg.png') no-repeat center center/cover;
    color: white;
    display: flex;
    flex-direction: column;
}

.homepage-header .header-top {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin: 0 -20px;
}

.homepage-header .nav-desktop a {
    color: white;
}

.homepage-header .nav-desktop a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.homepage-header .hamburger {
    color: white;
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.header-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.header-content h2 {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.4;
}

.cta-button {
    background: #2a5db0;
    color: white;
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.cta-button:hover {
    background: #1a4785;
    transform: translateY(-3px);
}

/* Content Sections */
.section {
    padding: 70px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #444;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #2a5db0;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 20px;
}

/* Why Choose Us - Redesigned */
.why-choose-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.why-choose-content {
    flex: 1;
    min-width: 300px;
}

.why-choose-content h3 {
    font-size: 30px;
    color: #2a5db0;
    margin-bottom: 25px;
}

.why-choose-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
    font-size: 19px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    font-size: 19px;
}

.benefits-list i {
    color: #2a5db0;
    margin-right: 12px;
    margin-top: 5px;
    font-size: 22px;
}

.why-choose-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    max-height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.why-choose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Our Approach to Matching - Redesigned */
.approach-section {
    background: linear-gradient(to right, #e6eeff, #d4e3ff);
}

.approach-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.approach-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    max-height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 5px solid white;
}

.approach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.approach-content {
    flex: 1;
    min-width: 300px;
}

.approach-content h3 {
    font-size: 30px;
    color: #2a5db0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.approach-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: #2a5db0;
}

.approach-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
    font-size: 19px;
}

.approach-features {
    list-style: none;
    margin-top: 30px;
}

.approach-features li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.9);
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid #2a5db0;
    font-size: 19px;
}

.approach-features i {
    color: #2a5db0;
    margin-right: 12px;
    margin-top: 5px;
    font-size: 22px;
}

/* Features Section - Fixed Alignment */
.features-section {
    background: #f0f5ff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
    gap: 25px; /* Slightly reduced gap */
}

.feature-item {
    background: white;
    border-radius: 12px;
    padding: 25px 20px; /* Reduced padding */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px; /* Set minimum height for consistency */
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px; /* Slightly smaller icon */
    height: 70px;
    background: #e6eeff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px; /* Reduced margin */
    color: #2a5db0;
    font-size: 28px; /* Slightly smaller icon */
}

.feature-item h3 {
    color: #2a5db0;
    margin-bottom: 15px;
    font-size: 22px; /* Slightly smaller heading */
}

.feature-item p {
    color: #555;
    font-size: 17px; /* Slightly smaller text */
    line-height: 1.6;
    margin-bottom: 0;
}

/* Success Stories */
.stories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.story {
    background: white;
    border-radius: 12px;
    padding: 35px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #e0e0e0;
}

.story:before {
    content: '"';
    font-size: 90px;
    color: #2a5db0;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 25px;
    line-height: 1;
}

.story-content {
    margin-bottom: 25px;
    font-style: italic;
    color: #555;
    font-size: 18px;
    line-height: 1.7;
}

.story-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d4e3ff;
    margin-right: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a5db0;
    font-size: 24px;
}

.author-info h4 {
    color: #2a5db0;
    margin-bottom: 5px;
    font-size: 20px;
}

.author-info p {
    color: #777;
    font-size: 16px;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(to right, #e6eeff, #d4e3ff);
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2a5db0;
    font-size: 20px;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 25px 25px;
}

/* Blog List Header */
.blog-list-header {
    background: linear-gradient(135deg, #2a5db0, #3f77d8);
    color: white;
    padding: 120px 20px 90px;
    text-align: center;
}

.blog-list-header h1 {
    font-size: 40px;
    margin-bottom: 25px;
}

/* Blog Container */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    padding: 70px 20px;
    justify-content: center;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 1px solid #e0e0e0;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-img {
    height: 260px;
    background-color: #d4e3ff;
    background-position: center;
    background-size: cover;
}

.blog-card-content {
    padding: 30px;
}

.blog-card-content h2 {
    color: #2a5db0;
    margin-bottom: 18px;
    font-size: 24px;
}

.blog-card-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 18px;
}

.blog-card-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #777;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.read-more {
    display: inline-block;
    background: #2a5db0;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 18px;
}

.read-more:hover {
    background: #1a4785;
}

/* Blog Detail Header */
.blog-detail-header {
    background: linear-gradient(135deg, #e6eeff, #d4e3ff);
    color: #444;
    padding: 120px 20px 70px;
    text-align: center;
}

.blog-detail-header h1 {
    font-size: 40px;
    margin-bottom: 25px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
}

/* Blog Content */
.blog-content {
    max-width: 850px;
    margin: 70px auto;
    padding: 0 20px;
}

.blog-content p {
    margin-bottom: 25px;
    font-size: 20px;
    line-height: 1.8;
    color: #444;
}

.blog-content h2 {
    color: #2a5db0;
    margin: 45px 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e6eeff;
    font-size: 32px;
}

.blog-content img {
    width: 100%;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.blog-image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: -25px;
    margin-bottom: 35px;
    font-size: 17px;
}

.blog-content blockquote {
    border-left: 5px solid #2a5db0;
    padding-left: 25px;
    margin: 35px 0;
    font-style: italic;
    color: #555;
    background: #f0f5ff;
    padding: 25px;
    border-radius: 0 12px 12px 0;
    font-size: 20px;
    line-height: 1.7;
}

.blog-content ul {
    margin: 25px 0;
    padding-left: 35px;
    font-size: 19px;
}

.blog-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Article Image */
.article-image {
    width: 100%;
    margin: 45px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.article-image .caption {
    margin-top: 12px;
    font-style: italic;
    color: #666;
    font-size: 18px;
}

/* Footer */
footer {
    background: #2a5db0;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.copyright {
    padding-top: 25px;
    color: #e6eeff;
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
    
    .feature-item {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .header-content h1 {
        font-size: 36px;
    }
    
    .header-content h2 {
        font-size: 20px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-mobile.active {
        display: flex;
    }
    
    .why-choose-container, .approach-container {
        flex-direction: column;
    }
    
    .why-choose-image, .approach-image {
        max-width: 100%;
        max-height: 250px;
    }
    
    .story {
        max-width: 100%;
    }
    
    .blog-list-header h1, .blog-detail-header h1 {
        font-size: 32px;
    }
    
    .blog-card {
        max-width: 100%;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .section-title p {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 20px;
    }
    
    .feature-item {
        min-height: auto;
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .feature-item h3 {
        font-size: 20px;
    }
    
    .feature-item p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 30px;
    }
    
    .header-content h2 {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .why-choose-image, .approach-image {
        max-height: 200px;
    }
    
    .blog-list-header h1, .blog-detail-header h1 {
        font-size: 26px;
    }
    
    .blog-content {
        padding: 0 15px;
    }
    
    .blog-content p {
        font-size: 17px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-desktop a {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    .nav-desktop .join-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}