/* About Us Page Styling */

/* Fix layout structure like Contact Us page */
.about-us-page {
    margin-top: 52px; /* Account for fixed header */
    /* Ensure the banner looks good with proper styling */
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    position: relative;
}

/* Add overlay to banner for better text readability */
.about-us-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better text readability */
    z-index: 1;
}

.about-us-page h1 {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
    font-size: 2.5em !important;
    font-weight: 600 !important;
}

/* Alternative banner styling if image doesn't look good */
.about-banner-gradient {
    background: linear-gradient(135deg, #043370 0%, #4385f6 50%, #e41407 100%) !important;
    background-image: none !important;
}

.about-banner-corporate {
    background: linear-gradient(135deg, #043370 0%, #2c5aa0 100%) !important;
    background-image: none !important;
}

.about-banner-professional {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%) !important;
    background-image: none !important;
}

/* Enhanced About Us content styling */
.about-section-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
}

.about-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(67, 133, 246, 0.05) 0%, rgba(228, 20, 7, 0.05) 100%);
    pointer-events: none;
}

.about-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Hero section improvements */
.about-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 133, 246, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.about-hero h3 {
    color: #043370;
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-hero h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e41407, #ff6b6b);
    border-radius: 2px;
}

/* Content sections */
.about-content-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #e41407, #4385f6);
}

.about-content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.about-content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.about-content-section p:last-child {
    margin-bottom: 0;
}

/* Statistics/Numbers Section */
.stats-section {
    background: linear-gradient(135deg, #043370 0%, #4385f6 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e41407, #4385f6);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e41407, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    box-shadow: 0 10px 20px rgba(228, 20, 7, 0.3);
}

.service-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #043370;
    margin-bottom: 15px;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #e41407 0%, #ff6b6b 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #e41407;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: #f8f9fa;
    color: #e41407;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Timeline Section */
.timeline-section {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.timeline-title {
    text-align: center;
    color: #043370;
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 50px;
    position: relative;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #e41407, #4385f6);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: #f8f9fa;
    transform: translateX(10px);
}

.timeline-year {
    background: linear-gradient(135deg, #043370, #4385f6);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-right: 30px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(4, 51, 112, 0.3);
}

.timeline-content {
    flex: 1;
}

.timeline-event {
    font-size: 1.1em;
    font-weight: 600;
    color: #043370;
    margin-bottom: 5px;
}

.timeline-description {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero {
        padding: 40px 20px;
    }
    
    .about-hero h3 {
        font-size: 2em;
    }
    
    .about-content-section {
        padding: 25px 20px;
    }
    
    .stats-section,
    .cta-section,
    .timeline-section {
        padding: 40px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.2em;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 1.8em;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .about-us-page h1 {
        font-size: 2em !important;
    }
}

@media (max-width: 480px) {
    .about-hero h3 {
        font-size: 1.6em;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .cta-title {
        font-size: 1.5em;
    }
    
    .about-us-page h1 {
        font-size: 1.6em !important;
    }
}