/* About Page Styles */

/* Hero Section */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../images/header.png') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    color: white;
    position: relative;
    margin-bottom: 20px;
}

.divider {
    height: 4px;
    width: 80px;
    background: #7B1E22;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Content Sections */
.about-content {
    background-color: #f8f9fa;
}

.about-content .container-fluid {
    max-width: 1400px; /* Increased max-width for wider content */
}

.about-content .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.section-title {
    position: relative;
    color: #333;
    font-weight: 700;
    padding-bottom: 10px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #7B1E22;
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-image-container {
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Ensure minimum height for better visual */
    padding: 15px; /* Add padding inside the container */
    background-color: #fff; /* Ensure background is white */
}

.about-image-direct {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Changed from cover to contain to show the entire image */
    object-position: center;
    transition: transform 0.5s ease;
    position: relative; /* Changed from absolute to relative */
    margin: auto; /* Center the image */
    display: block;
}

.about-image-direct:hover {
    transform: scale(1.05);
}

/* Mission Box */
.mission-box {
    background: linear-gradient(135deg, #7B1E22 0%, #A52A2A 100%);
    color: white;
}

.mission-box .section-title {
    color: white;
}

.mission-box .section-title::after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.mission-box p {
    font-weight: 500;
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(123, 30, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #7B1E22;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mission-box {
        padding: 3rem !important;
    }
    
    .value-card {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .about-image-container {
        min-height: 350px; /* Slightly smaller on medium screens */
    }
    
    .about-image-direct {
        max-height: 320px; /* Control max height on medium screens */
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 80px 0;
    }
    
    .mission-box {
        padding: 2rem !important;
    }
    
    .about-content .card {
        padding: 1.5rem !important;
    }
    
    .about-image-container {
        min-height: 280px; /* Appropriate height for mobile screens */
    }
    
    .about-image-direct {
        max-height: 250px; /* Control max height on small screens */
    }
}
