/* about.css - Specific styles for the About Us page */

/* Import global styles first if needed (already linked in HTML after style.css) */
/* @import url('style.css'); */

/* Main Container for About Page */
.about-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: 'Arial', sans-serif; /* Adjust font to match your site's main font */
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.about-hero {
    background: url('../img/about_hero.jpeg') no-repeat center center/cover; /* Placeholder image */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.about-hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.about-hero .btn-primary {
    display: inline-block;
    background-color: #007bff; /* Your primary button color */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.about-hero .btn-primary:hover {
    background-color: #0056b3;
}

/* General Section Styling */
.about-section {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    align-items: center;
    gap: 40px; /* Space between text and image */
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.about-section:last-of-type {
    border-bottom: none; /* No border for the last section */
}

.about-section.reverse {
    flex-direction: row-reverse; /* Image on right, text on left */
}

.about-section .section-content {
    flex: 1; /* Allows content to grow */
    min-width: 300px; /* Minimum width before wrapping */
}

.about-section .section-image {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    text-align: center; /* Center image if it doesn't fill space */
}

.about-section .section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    font-size: 2.5em;
    color: #007bff; /* Primary color for headings */
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.about-section p.lead-text {
    font-weight: bold;
    color: #555;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.about-section ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #444;
}

.about-section ul li i {
    color: #28a745; /* Green for checkmarks */
    margin-right: 10px;
    font-size: 1.2em;
}

/* Features Grid (Why Choose Us Section) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    font-size: 0.95em;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5em;
    }

    .about-hero p {
        font-size: 1em;
    }

    .about-section {
        flex-direction: column; /* Stack sections vertically */
        text-align: center; /* Center text for stacked layout */
    }

    .about-section.reverse {
        flex-direction: column; /* Also stack reversed sections */
    }

    .about-section .section-content,
    .about-section .section-image {
        min-width: unset; /* Remove min-width constraint */
        width: 100%;
    }

    .about-section h2 {
        font-size: 2em;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Single column for features */
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 60px 15px;
    }

    .about-hero h1 {
        font-size: 2em;
    }

    .about-section {
        padding: 30px 0;
    }

    .about-section h2 {
        font-size: 1.8em;
    }

    .about-section p, .about-section ul li {
        font-size: 1em;
    }
}