/* Enhanced About Us Section with Modern Design */

.section-accent.parallax-bg {
    position: relative;
    display: block;
    background-color: #f0f4ff;
    overflow: visible;
    margin: 0;
    padding: 0;
    width: 100%;
    background-image: linear-gradient(135deg, #f0f4ff, #ffffff);
}

.about-overlay {
    display: none;
}

/* Container styling */
.about-container {
    position: relative;
    padding: 60px 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Content layout */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
}

/* Text area styling */
.about-text-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

/* Heading styles */
.about-heading {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(13, 110, 253, 0.15);
    padding-bottom: 10px;
}

.about-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.1);
}

.about-heading h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #051441;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.about-heading h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
}

/* Text styling */
.about-description .lead-text {
    font-size: 20px;
    font-weight: 500;
    color: #051441;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}

.about-description p {
    margin-bottom: 25px;
    color: #3a3a42;
    line-height: 1.8;
}

/* Stats section */
.about-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
    border-top: 1px solid rgba(13, 110, 253, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    background-color: rgba(13, 110, 253, 0.03);
    border-radius: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 14px;
    color: #505056;
    font-weight: 500;
}

/* Features grid */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 15px 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(13, 110, 253, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-bottom-color: #0d6efd;
}

.feature-icon {
    font-size: 24px;
    color: #0d6efd;
    margin-bottom: 10px;
    display: block;
    background-color: rgba(13, 110, 253, 0.08);
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.feature-item span {
    font-size: 14px;
    color: #3a3a42;
    font-weight: 600;
}

/* Button styling */
.about-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #0d6efd;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #0d6efd;
    margin-top: 15px;
}

.about-btn:hover {
    background: transparent;
    color: #0d6efd;
}

/* Image grid styling */
.about-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.about-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 15px;
    position: relative;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 200px;
    border: 3px solid white;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(13, 110, 253, 0.2);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.image-item:hover img {
    transform: scale(1.08);
}

.main-image {
    grid-column: span 2;
    height: 300px;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

.image-overlay span {
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding-left: 5px;
    border-left: 3px solid #0d6efd;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for about section */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text-wrapper, 
    .about-image-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-text-wrapper {
        margin-bottom: 40px;
    }
    
    .about-heading h2 {
        font-size: 36px;
    }
    
    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-accent.parallax-bg {
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .about-container {
        padding: 40px 15px;
    }
    
    .about-heading h2 {
        font-size: 28px;
    }
    
    .lead-text {
        font-size: 18px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    .image-item {
        height: 150px;
    }
    
    .main-image {
        height: 200px;
    }
    
    .about-image-wrapper {
        padding: 0;
    }
}

/* Fix spacing at the bottom of the page */
.content-section#footer-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove extra whitespace under footer */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1;
}

#footer-section {
    margin-top: 0 !important;
}