/* static/css/about.css */

/* Hero Section */
.about-hero {
    width: 100vw;
    height: 600px;
    background: url("/static/img/hero-background.jpg") no-repeat center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 50px; /* Clears fixed header */
}

.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    padding: 50px;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

.about-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* General Section Styling */
.about-section {
    width: 100vw;
    max-width: 100%;
    padding: 80px 20px;
    background: #f9fafb;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-container, .section-wide-container, .cta-wide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section h2 {
    font-size: 38px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.red-icon {
    color: #e50914;
    font-size: 24px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

/* History Section */
.history-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.history-section p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Vision & Mission Cards */
.vision-mission {
    padding: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 40px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 40px;
    color: #e50914;
    margin-bottom: 30px; /* Increased spacing between icon and text */
    display: block;
}

.card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    text-align: center;
}

.card p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    text-align: center;
}

/* Strategy Section */
.strategy-section {
    background: #f9fafb;
    padding: 80px 0;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.strategy-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.strategy-card:hover {
    transform: translateY(-5px);
}

.strategy-icon {
    font-size: 28px;
    color: #e50914;
    margin-right: 30px; /* Increased spacing between icon and text */
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.strategy-card p {
    font-size: 16px;
    color: #4b5563;
    margin: 0;
    flex: 1;
    text-align: left;
}

/* CTA Section */
.cta-section {
    width: 100vw;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e3a8a, #2c5282);
    color: #fff;
    text-align: center;
    margin-top: 80px;
}

.cta-wide-container {
    max-width: 900px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 25px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 35px;
    font-size: 18px;
    font-weight: 700;
    background: #e50914;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: #bf0812;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-hero {
        height: 500px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .strategy-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 450px;
        margin-top: 60px; /* Adjusted for smaller screens */
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    .about-hero h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-section {
        padding: 60px 15px;
    }

    .card-grid, .strategy-grid {
        grid-template-columns: 1fr;
    }

    .strategy-card {
        flex-direction: column;
        text-align: center;
    }

    .strategy-icon {
        margin-right: 0;
        margin-bottom: 20px; /* Increased spacing on mobile */
    }

    .cta-section {
        padding: 60px 15px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-section p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        height: 400px;
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .about-section h2 {
        font-size: 28px;
    }

    .about-section p, .strategy-card p, .card p {
        font-size: 15px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}