
/* Professional About Page CSS */
:root {
    /* Align with the site's formal Navy/Green/Cream theme */
    --primary-color: #0d4d4d;
    --primary-dark: #001f3f;
    --dark-text: #0F172A;
    --body-text: #475569;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.about-page {
    font-family: var(--font-body);
    background-color: #faf8f5;
}

body.about-page .text-primary {
    color: var(--primary-color) !important;
}

body.about-page .btn-primary {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f) !important;
    border-color: #0d4d4d !important;
}

body.about-page .btn-primary:hover {
    background: linear-gradient(135deg, #1a5f5f, #2d7f7f) !important;
    border-color: #1a5f5f !important;
}

/* Parallax Hero - Cinematic */
.about-hero {
    height: 70vh;
    min-height: 500px;
    background-image: var(--about-hero-image, url('../../img/carousel-1.jpg'));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    /* Mobile browsers often struggle with fixed backgrounds */
    .about-hero {
        background-attachment: scroll;
        height: 60vh;
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .about-hero {
        height: auto;
        min-height: 380px;
        padding: 72px 0 56px;
    }

    body.about-page .about-hero .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Fix: heading going off-screen on mobile */
    body.about-page .about-hero h1,
    body.about-page .about-hero h1.display-3,
    body.about-page .about-hero h1.display-4 {
        font-size: clamp(1.75rem, 6.2vw, 2.2rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.5px;
        max-width: 22ch;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.9));
}

.about-hero h1 {
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

/* Mission & Vision Cards - Hover Effects */
.mission-section {
    position: relative;
    margin-top: -5rem;
    z-index: 10;
    padding-bottom: 4rem;
}

@media (max-width: 576px) {
    .mission-section {
        margin-top: -2.25rem;
        padding-bottom: 2.5rem;
    }
}

.mission-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.4s ease;
    border-top: 5px solid transparent;
}

@media (max-width: 576px) {
    .mission-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.2);
    border-top-color: var(--primary-color);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(13, 77, 77, 0.12);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

@media (max-width: 576px) {
    .icon-box {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}

.mission-card:hover .icon-box {
    transform: rotateY(180deg);
}

.mission-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.mission-card p {
    color: var(--body-text);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Stats Section - Animated Numbers would require JS, we style the container here */
.bg-light.py-5 {
    background: white !important;
    position: relative;
}

.bg-light.py-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #E2E8F0, transparent);
}

/* Story Section */
.story-section img {
    border-radius: 24px;
    filter: brightness(1.05); /* Enhance image slightly */
}

/* Leadership Cards - Team Profile Style */
.group-hover-effect {
    background: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
    transition: all 0.3s ease;
}

.group-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.group-hover-effect i.fa-user-tie,
.group-hover-effect i.fa-user-circle, 
.group-hover-effect i.fa-user-md {
    transition: color 0.3s ease, transform 0.3s ease;
}

.group-hover-effect:hover i {
    color: var(--primary-color) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

.group-hover-effect h4 {
    color: var(--dark-text);
}

/* Call to Action */
section.bg-primary {
    background: linear-gradient(135deg, #001f3f 0%, #0d4d4d 100%) !important;
}

section.bg-primary .btn-light {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.story-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.story-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--body-text);
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #334155;
}

.story-image {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* Stats Counter */
.stats-banner {
    background: #0F172A;
    padding: 5rem 0;
    color: white;
}

.stat-item-lg {
    text-align: center;
}

.stat-number-lg {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #93c5fd, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* About story images (bigger, professional) */
.about-story-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-height: 520px;
}

.about-story-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .about-story-image { min-height: 340px; }
    .about-story-image img { height: 340px; }
}

@media (max-width: 576px) {
    .about-story-image { min-height: 280px; }
    .about-story-image img { height: 280px; }
}

.stat-label-lg {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mission Cards */
.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-icon {
    width: 4rem;
    height: 4rem;
    background: #FFF1F2;
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    .mission-cards {
        grid-template-columns: 1fr;
    }
    .hero-text-box h1 {
        font-size: 2.5rem;
    }
}
