/* About Page Styles - Enhanced specificity for contrast fixes */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #5ebe15;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #eff1fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Hero Section - Enhanced specificity and !important declarations */
body .about-hero-section,
main .about-hero-section,
.container .about-hero-section,
section.about-hero-section {
    background: #2980b9 !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #ffffff !important;
    padding: 100px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Force background on all child elements */
.about-hero-section *,
.about-hero-section .container,
.about-hero-section .about-hero-content,
.about-hero-section .about-hero-text {
    background: transparent !important;
    text-align: center;
}

/* Force text colors with maximum specificity */
.about-hero-section h1,
.about-hero-section .top-title,
body .about-hero-section h1,
main .about-hero-section h1 {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    text-align: center;
}

.about-hero-section p,
.about-hero-section .about-hero-text p,
body .about-hero-section p,
main .about-hero-section p {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    opacity: 0.95 !important;
}

/* Gradient text with solid fallback for better contrast */
.about-hero-section .text-gradient,
.about-hero-section span.text-gradient,
body .about-hero-section .text-gradient {
    color: #ffeb3b !important;
    background: #ffeb3b !important;
    background: linear-gradient(45deg, #ffeb3b, #ffc107) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
}

/* Stats section */
.about-hero-section .hero-stats,
.about-hero-section .stat-item,
.about-hero-section .stat-item h3,
.about-hero-section .stat-item span {
    color: #ffffff !important;
    background: transparent !important;
}

.about-hero-section .stat-item h3 {
    color: #ffeb3b !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.about-hero-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') !important;
    opacity: 0.3 !important;
    z-index: 1 !important;
}

.about-hero-content {
    display: flex !important;
    align-items: center !important;
    gap: 60px !important;
    position: relative !important;
    z-index: 2 !important;
}

.about-hero-text {
    flex: 1 !important;
    position: relative !important;
    z-index: 3 !important;
}

.about-hero-image {
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 3 !important;
}

.hero-stats {
    display: flex !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    justify-content: space-evenly;
}

.stat-item {
    text-align: center !important;
}

.hero-img {
    max-width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2)) !important;
}

/* Features Section */
.about-features-section {
    padding: 100px 0;
    background: var(--white);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    text-align: center;
}

.feature-image {
    flex: 1;
    text-align: center;
}

.feature-badge {
    display: flow;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-badge span {
    padding-left: 3px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.feature-highlight i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-highlight p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.security-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    justify-content: center;
}

.security-item i {
    color: var(--primary-color);
}

.feature-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1f5f8b);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .about-hero-section h1,
    .about-hero-section .top-title {
        font-size: 2.5rem !important;
    }

    .hero-stats {
        justify-content: space-around !important;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .security-features {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .about-hero-section h1,
    .about-hero-section .top-title {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-hero-section,
    .about-features-section {
        padding: 60px 0;
    }
}

/* Additional fallback styles for maximum compatibility */
.about-hero-section {
    background-color: #2980b9 !important;
}

.about-hero-section h1 {
    color: white !important;
}

.about-hero-section p {
    color: white !important;
}

.about-hero-section .text-gradient {
    color: #ffeb3b !important;
}
