/* ===== Base Styles - Copied from indexstyle.css ===== */
:root {
    --primary-color: #1a3a6e;
    --secondary-color: #e67e22;
    --accent-color: #2c81ba;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

body.menu-open { /* Added for consistency if main.js uses it */
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles - Copied from indexstyle.css */
.header-container {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* Ensure it aligns to the left */
    z-index: 1000;
    /* height: 80px; Default desktop height, can be overridden in media query */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem; /* Default padding */
    height: 100%; /* Fill parent container height */
    max-width: 1200px; /* Align with general content width */
    margin: 0 auto; /* Center header content */
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
}

.title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem; /* Adjusted padding */
    cursor: pointer;
    z-index: 1005; /* Ensure it's on top */
    color: var(--primary-color);
}

.menu-icon {
    display: inline-block;
    width: 24px;
    height: 22px; /* Adjusted for bar spacing */
    position: relative;
}

.menu-icon .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 1px;
}

/* Hamburger to "X" animation, matching indexstyle.css usage */
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Fallback if JS toggles .active on button (optional but good for consistency if other JS does this) */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-nav {
    /* Desktop: structure is ul > li > a */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0; /* Reset default */
    padding: 0; /* Reset default */
}

.main-nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    color: var(--primary-color); /* Ensure color is set */
}

.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* Responsive Styles - Copied from indexstyle.css mobile section */
@media (max-width: 768px) {
    .header-container {
        height: 70px; /* Mobile header height from indexstyle.css */
    }
    header {
        padding: 0 1rem; /* Mobile header padding */
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }
    
    .main-nav {
        position: fixed;
        top: 70px; /* Position below the mobile header */
        left: -100%; /* Hidden off-screen */
        width: 100%; /* Full width for mobile panel */
        height: calc(100vh - 70px); /* Full height minus header */
        background-color: var(--white);
        /* display: flex; Removed, already handled by default or flex-direction below if needed */
        flex-direction: column; /* Explicitly stack items in the panel */
        align-items: center; /* Center items if not full width */
        justify-content: flex-start; /* Align items to top */
        transition: left 0.3s ease-in-out; /* Match transition */
        padding: 2rem; /* Padding inside the panel */
        overflow-y: auto; /* Scrollable if content exceeds height */
        z-index: 999; 
    }
    
    .main-nav.active,
    .main-nav[aria-expanded="true"] { /* When menu is open */
        left: 0; /* Slide in from left */
    }
    
    .main-nav ul {
        flex-direction: column; /* Stack links vertically */
        width: 100%;
        gap: 1.5rem; 
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eeeeee; 
    }
    .main-nav ul li:last-child a {
        border-bottom: none; 
    }
    .main-nav a.active { /* Mobile active link specific style */
        color: var(--secondary-color);
        background-color: rgba(230, 126, 34, 0.05); /* Subtle background if desired */
    }
    .main-nav a::after { /* Hide desktop underline on mobile */
        display: none;
    }
}

@media (max-width: 375px) { /* Very narrow screens - from indexstyle.css */
    .header-container {
        height: 60px; /* Even smaller header */
    }
    .main-nav {
        top: 60px; /* Adjust menu position for smaller header */
        height: calc(100vh - 60px);
    }

    .logo-title .title {
        font-size: 0.9rem; /* Smaller title font */
        /* display: none; */ /* Option: hide title completely */
    }
    .logo {
        width: 35px; /* Smaller logo */
        height: 35px;
    }
    header {
        padding-left: 0.75rem; /* Tighter padding */
        padding-right: 0.75rem;
    }
    .mobile-menu-toggle {
        padding: 0.75rem; /* Adjust toggle padding */
    }
}
/* --- End of Standard Header & Navigation CSS from indexstyle.css --- */


/* ===== Styles specific to About Us Page Content ===== */
.container { /* Page specific container styling if different from global */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0; /* Vertical padding for content sections */
}

.section { /* General section padding */
    padding: 3rem 0;
}
@media (min-width: 769px) {
    .section {
        padding: 4rem 0;
    }
}

/* Hero Section for About Page */
.hero {
    position: relative;
    margin-top: 80px; /* Default for desktop, will be overridden for mobile if header height changes */
    height: 50vh; 
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center; 
    background: linear-gradient(rgba(26, 58, 110, 0.7), rgba(26, 58, 110, 0.6)), url('../images/chapel-community.jpg') center center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

/* Adjust margin-top for mobile to match indexstyle.css header behavior */
@media (max-width: 768px) {
    .hero {
        margin-top: 70px; /* Matches mobile header height from indexstyle.css */
    }
}
@media (max-width: 375px) {
    .hero {
        margin-top: 60px; /* Matches smaller mobile header height from indexstyle.css */
    }
}


.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-cta:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}


.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
}

.about-section {
    padding-top: 2rem;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 769px) {
    .about-content {
        grid-template-columns: 1fr 1.2fr;
    }
    .about-image {
        order: -1;
    }
}


.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.about-image img {
    display: block;
    transition: transform 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

.mission-vision-section {
    background-color: var(--white);
    padding: 3rem 1rem;
    margin: 3rem 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
@media (min-width: 769px) {
    .mission-vision-section {
        padding: 4rem 2rem;
    }
}


.mission-vision-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.mission-card,
.vision-card,
.values-card {
    background-color: var(--light-color);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
}

.mission-card:hover,
.vision-card:hover,
.values-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.mission-vision-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.mission-vision-container p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}


.values-card ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-top: 1rem;
}

.values-card li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.values-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 0.9em;
}

.leadership-section {
    /* Uses global .section padding and .section-header */
}
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.leader-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.leader-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.leader-card h3 {
    margin: 1.25rem 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.bio {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.departments-section {
    /* Uses global .section padding and .section-header */
}
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 1rem;
}

.department-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.department-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.dept-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.department-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.department-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.department-card p {
    padding: 0 1rem 1rem;
    color: var(--text-light);
    min-height: 50px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.learn-more {
    display: inline-block;
    margin: 0.5rem 1rem 1.5rem 1rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.learn-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin: 4rem 0;
    border-radius: var(--border-radius);
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.cta-button.secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 2rem 0; /* Added more top padding */
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; /* Increased gap */
    margin-bottom: 2rem; /* Increased bottom margin */
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h3::after { /* Underline for footer headings */
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 0.5rem;
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: var(--light-color); /* Ensure all text is light */
    line-height: 1.6;
}

.footer-section.about p {
    margin-bottom: 1rem;
}

.footer-section.links ul {
    list-style: none;
    padding-left: 0;
}

.footer-section.links li {
    margin-bottom: 0.6rem;
}

.footer-section.links a {
    text-decoration: none; /* Explicitly remove underline */
    display: inline-block;
    transition: var(--transition);
}

.footer-section.links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px); /* Slight move on hover */
}

.footer-section.contact p {
    display: flex;
    align-items: center; /* Align icon and text */
    gap: 0.5rem; /* Space between icon and text */
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background */
    text-decoration: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circular links */
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--white); /* Ensure icon color contrasts with new background */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem; /* Adjusted padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border */
    font-size: 0.85rem;
    color: var(--text-light);
}
