/* assets/css/about.css */

/* --- ABOUT PAGE STYLES --- */

/* --- About Hero Section --- */
.about-hero-section {
    width: 100%;
    height: 400px;
    background-image: url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .about-hero-section {
        height: auto;
        min-height: 300px;
        background-image: url('../images/about-hero-mobile.jpg');
        background-size: 100% auto;
        background-position: center top;
        background-color: #1a3a5c;
    }
}

/* --- Tabbed Section --- */
.about-tabs-section {
    padding: 60px 0;
    background-color: var(--white);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: #f0f7f4;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #dcebe0;
}

.tab-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Who We Are */
.tab-pane-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-text h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.tab-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.tab-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Tab 2: Our Approach */
.tab-title {
    font-size: 1.8rem;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 10px;
}

.tab-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.approach-step {
    background: #f9fdfa;
    border: 1px solid #e0efe5;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.approach-step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    opacity: 0.3;
    margin-bottom: 10px;
}

.approach-step h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.approach-step p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Tab 3: Our Mission & Vision */
.mission-vision-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-block h3 {
    font-size: 1.6rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.mv-block p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.vision-tagline {
    font-weight: 600;
    color: var(--primary-navy) !important;
}

.vision-list {
    list-style: none;
    margin-top: 15px;
}

.vision-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.vision-list li i {
    color: var(--primary-green);
    margin-top: 5px;
}

/* Tab 4: Our Impact */
.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--primary-navy);
    color: var(--white);
    padding: 30px 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fffffa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.impact-footer-text {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-top: 20px;
}

/* --- WHOM WE SERVE SECTION --- */
.whom-we-serve-section {
    padding: 80px 0;
    background-color: #f8fbf9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 50px;
}

.serve-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.serve-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.serve-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.serve-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.serve-card h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.serve-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- WHY NEVER GIVE UP WORLD SECTION --- */
.why-us-section {
    padding: 80px 0;
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px;
    background: #f8fbf9;
    border-radius: 12px;
    transition: transform 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.why-card h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Tagline Banner (Learn. Grow. Empower. Thrive.) --- */
.tagline-banner-about {
    background-image: url('../images/learn-grow-bg.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 250px 0 150px;
    position: relative;
    margin-top: -60px;
    z-index: 10;
    clip-path: polygon(0 0, 0 40px, 50% 120px, 100% 40px, 100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 0 40px, 50% 120px, 100% 40px, 100% 0, 100% 100%, 0 100%);
}

.tagline-banner-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    clip-path: inherit;
    -webkit-clip-path: inherit;
}

.tagline-about-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.tagline-about-text h2 {
    font-size: 2.2rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: right;
    line-height: 1.3;
}

/* --- RESPONSIVE ADJUSTMENTS FOR ABOUT PAGE --- */
@media (max-width: 992px) {
    .approach-grid { grid-template-columns: repeat(3, 1fr); }
    .impact-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .serve-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-pane-grid { grid-template-columns: 1fr; text-align: center; }
    .mission-vision-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tabs-nav { flex-direction: column; align-items: center; }
    .tab-btn { width: 100%; max-width: 300px; }
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .serve-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    
    .tagline-banner-about {
        padding: 100px 0 60px;
        margin-top: -30px;
        clip-path: polygon(0 0, 0 20px, 50% 60px, 100% 20px, 100% 0, 100% 100%, 0 100%);
        -webkit-clip-path: polygon(0 0, 0 20px, 50% 60px, 100% 20px, 100% 0, 100% 100%, 0 100%);
    }
}

@media (max-width: 480px) {
    .approach-grid { grid-template-columns: 1fr; }
    .impact-stats-grid { grid-template-columns: 1fr; }
    .serve-grid { grid-template-columns: 1fr; }
}

/* --- About Hero Section (UPDATED for no side-cropping) --- */
.about-hero-section {
    width: 100%;
    height:auto;
    background-color: #e8f5e9; /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensures the full image is visible without cropping */
    object-position: center;
}

/* --- Mobile Specific About Hero --- */
@media (max-width: 768px) {
    .about-hero-section {
        background-color: #1a3a5c; /* Fallback color matching the mobile image top */
    }
}