/* --- CSS Reset & Variables --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a2a47;
    --secondary: #d66d4b;
    --accent: #f4a261;
    --light-bg: #f9f8f6;
    --text-dark: #1e1e1e;
    --text-light: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --glow: 0 0 20px rgba(214, 109, 75, 0.4);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
    position: relative;
}


/* --- Live Background Particles --- */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--light-bg);
}


/* --- Preloader --- */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-content i {
    font-size: 4rem;
    color: var(--accent);
    animation: float 2s infinite ease-in-out;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(244, 162, 97, 0.5));
}

.loader-content p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 3px;
    font-weight: 700;
}


/* --- Live Ticker Bar --- */

.live-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    color: white;
    padding: 8px 0;
    z-index: 1001;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 25s linear infinite;
}

.ticker-content span {
    margin-right: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* --- Live Logo Animation (Flying Dove) --- */

.flying-dove {
    display: inline-block;
    animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-10deg);
    }
    50% {
        transform: translateY(-4px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(10deg);
    }
}


/* --- Navigation --- */

#navbar {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(26, 42, 71, 0.98);
    backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    top: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(244, 162, 97, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(244, 162, 97, 0.3);
}

.logo i {
    color: var(--accent);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-give {
    background: var(--secondary);
    padding: 10px 24px !important;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-give:hover {
    background: transparent;
    border-color: var(--secondary);
    box-shadow: var(--glow);
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}


/* --- Hero Sections --- */

.hero,
.page-hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.page-hero {
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 42, 71, 0.85) 0%, rgba(26, 42, 71, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1;
    font-weight: 800;
}

.page-hero h1 {
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 650px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8rem;
    z-index: 2;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}


/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--text-light);
    box-shadow: 0 10px 20px rgba(214, 109, 75, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(214, 109, 75, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

.full-width {
    width: 100%;
}


/* --- Pulse Button Animation --- */

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 109, 75, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(214, 109, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(214, 109, 75, 0);
    }
}


/* --- Page Transitions --- */

.page {
    display: none;
    opacity: 0;
    animation: fadeInPage 0.8s forwards;
}

.page.active {
    display: block;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Enhanced Animations --- */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-in-up {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-in-left.visible,
.slide-in-right.visible,
.slide-in-up.visible {
    opacity: 1;
    transform: translate(0);
}


/* --- Live Stats Bar --- */

.live-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px 5%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    color: var(--primary);
    text-align: center;
    position: relative;
    z-index: 5;
}

.stat-item span.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-item span:last-of-type {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
}


/* --- Welcome Section --- */

.welcome-section {
    background: var(--light-bg);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.subtitle {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
}

.welcome-text h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.welcome-text p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1.05rem;
}

.welcome-image {
    position: relative;
}

.welcome-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.6s ease;
    position: relative;
    z-index: 1;
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.2;
    filter: blur(20px);
}


/* --- Enhanced Gallery Section --- */

.gallery-section {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(26, 42, 71, 0.95) 0%, rgba(26, 42, 71, 0) 100%);
    padding: 30px 25px 25px;
    color: white;
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.gallery-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}


/* --- Values Section (Auto-Flipping 3D Cards) --- */

.values-section {
    position: relative;
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.values-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-header.light-text p {
    color: rgba(255, 255, 255, 0.8);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.flip-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

.flip-card.auto-flip .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.flip-card-front i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(244, 162, 97, 0.5));
}

.flip-card-front h3 {
    font-size: 1.6rem;
}

.flip-card-back {
    background: var(--secondary);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- CTA Section --- */

.cta-section {
    background: url('https://images.unsplash.com/photo-1529070538774-1843cb3265df?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 71, 0.9);
}

.cta-box {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* ================= ABOUT PAGE STYLES ================= */


/* About Hero Section */

.about-hero {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 42, 71, 0.9) 0%, rgba(26, 42, 71, 0.5) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.about-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.about-hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}


/* ================= NEW: BRIEF MISSION EXPANDING CARD ================= */

.brief-mission-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.brief-reveal-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 320px;
    margin: 0 auto;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.brief-reveal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.brief-reveal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.brief-reveal-content i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(244, 162, 97, 0.5));
}

.brief-reveal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.brief-reveal-hint {
    font-size: 0.9rem;
    opacity: 0.6;
    font-style: italic;
}

.brief-reveal-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    padding: 40px;
    text-align: left;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    display: flex;
    align-items: center;
}

.brief-reveal-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.brief-reveal-card:hover .brief-reveal-text {
    transform: translateY(0);
}

.brief-reveal-card:hover .brief-reveal-content {
    transform: translateY(-30px);
    opacity: 0;
}


/* About Split Section */

.about-split-section {
    background: var(--light-bg);
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.about-block.reverse {
    direction: rtl;
}

.about-block.reverse .about-text {
    direction: ltr;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05rem;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transition: transform 0.6s ease;
}

.about-image img:hover {
    transform: scale(1.03) rotate(1deg);
}


/* Aims Grid (Image Cards) */

.aims-section {
    background: white;
}

.aims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.aim-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.aim-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.aim-card-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.aim-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 71, 0.95);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}

.aim-card:hover .aim-card-overlay {
    opacity: 1;
}

.aim-card-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.aim-card-overlay ul {
    list-style: none;
    padding: 0;
}

.aim-card-overlay ul li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.aim-card-overlay ul li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.aim-card-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.aim-card-footer h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0;
}


/* Pillars Grid (Core Values) */

.pillars-section {
    background: var(--light-bg);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary);
}

.pillar-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.pillar-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}


/* Accordion Section */

.accordion-section {
    background: white;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    padding: 25px 30px;
    background: var(--light-bg);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.accordion-header:hover {
    background: #f0eeea;
}

.accordion-header i.fa-chevron-down {
    transition: transform 0.4s ease;
    font-size: 1rem;
}

.accordion-item.active .accordion-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-header span {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header span i {
    color: var(--secondary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: white;
}

.accordion-content p {
    padding: 0 30px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
}

.accordion-content p:last-child {
    padding-bottom: 30px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}


/* Commitment Section */

.commitment-section {
    background: var(--primary);
    color: white;
}

.commitment-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.commitment-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.commitment-text blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    border-left: 5px solid var(--accent);
    padding-left: 25px;
    margin: 30px 0;
    color: var(--accent);
}

.commitment-text p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.commitment-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}


/* ================= OTHER PAGE STYLES ================= */


/* Services Page */

.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary), var(--accent), var(--primary), var(--secondary));
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderTrace 4s linear infinite;
}

.service-item:hover::before {
    opacity: 1;
}

@keyframes borderTrace {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-time {
    background: var(--primary);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 180px;
    text-align: center;
}

.service-time .day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.service-time .time {
    font-size: 1.1rem;
    font-weight: 300;
}

.service-info {
    padding: 35px;
    flex: 1;
    background: white;
    border-radius: 0 20px 20px 0;
}

.service-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-info .location {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ================= RECENT TEACHINGS PAGE (Replaces Sermons) ================= */

.teachings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.teaching-card {
    background: white;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.teaching-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary), var(--accent), var(--primary), var(--secondary));
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderTrace 4s linear infinite;
}

.teaching-card:hover::before {
    opacity: 1;
}

.teaching-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.teaching-quote-icon {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 20px;
}

.teaching-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.teaching-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.teaching-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 0 0 15px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.teaching-reference {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: right;
}

.teaching-card .read-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
    align-self: flex-start;
}

.teaching-card .read-more:hover {
    gap: 15px;
    color: var(--primary);
}


/* Blog Page */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary), var(--accent), var(--primary), var(--secondary));
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderTrace 4s linear infinite;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.blog-card:hover .blog-img {
    transform: scale(1.08);
}

.blog-content {
    padding: 35px;
    background: white;
    border-radius: 0 0 20px 20px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 15px 0;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 15px;
    color: var(--primary);
}


/* Contact Page */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.contact-socials {
    display: flex;
    gap: 15px;
}

.contact-socials a {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.contact-socials a:hover {
    background: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.contact-form {
    background: white;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(214, 109, 75, 0.1);
}


/* Give Page */

.give-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.give-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.give-text p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.give-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.give-option {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.give-option:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary);
}

.give-option i {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-top: 5px;
}

.give-option h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.give-option p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.give-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease;
}

.give-image img:hover {
    transform: scale(1.02) rotate(1deg);
}


/* --- Footer --- */

footer {
    background: #111c30;
    color: white;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(244, 162, 97, 0.1);
}

.footer-glow {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand h3 i {
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    font-size: 0.95rem;
    max-width: 400px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.socials a:hover {
    background: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    transition: var(--transition);
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    justify-content: flex-start;
}

.footer-contact p i {
    color: var(--accent);
}

.footer-bottom {
    background: #0a1220;
    padding: 25px 0;
    text-align: left;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    padding-left: 5%;
}


/* --- Responsive Design --- */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .welcome-grid,
    .about-block,
    .commitment-box {
        gap: 40px;
    }
    .give-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-block {
        grid-template-columns: 1fr;
    }
    .about-block.reverse {
        direction: ltr;
    }
    .commitment-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .commitment-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .live-ticker {
        font-size: 0.75rem;
        padding: 5px 0;
    }
    #navbar {
        top: 28px;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.3);
        gap: 30px;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .section {
        padding: 80px 0;
    }
    .welcome-grid {
        grid-template-columns: 1fr;
    }
    .welcome-image {
        order: -1;
    }
    .welcome-text h2 {
        font-size: 2.2rem;
    }
    .live-stats-bar {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-item span.stat-number {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
        padding-left: 5%;
    }
    .footer-brand h3 {
        justify-content: flex-start;
    }
    .socials {
        justify-content: flex-start;
    }
    .footer-contact p {
        justify-content: flex-start;
    }
    .footer-links a {
        padding-left: 0;
    }
    .footer-links a:hover {
        padding-left: 5px;
    }
    .footer-bottom {
        text-align: left;
        padding-left: 5%;
    }
    .content-block {
        padding: 30px;
    }
    .content-block h2 {
        font-size: 1.8rem;
    }
    blockquote {
        font-size: 1.2rem;
        padding-left: 20px;
    }
    .service-item {
        flex-direction: column;
    }
    .service-time {
        min-width: 100%;
        padding: 20px;
    }
    .service-info {
        border-radius: 0 0 20px 20px;
    }
    .contact-form,
    .give-form {
        padding: 30px;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    /* ===== ABOUT PAGE MOBILE FIXES ===== */
    /* 1. Fix Brief Mission Card */
    .brief-reveal-card {
        height: auto;
        min-height: 400px;
    }
    .brief-reveal-content {
        position: relative;
        padding: 30px 25px 20px;
        height: auto;
    }
    .brief-reveal-content h2 {
        font-size: 1.8rem;
    }
    .brief-reveal-content i {
        font-size: 2.5rem;
    }
    .brief-reveal-text {
        position: relative;
        transform: translateY(0);
        height: auto;
        padding: 0 25px 30px;
        background: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
    }
    .brief-reveal-text p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .brief-reveal-card:hover .brief-reveal-text {
        transform: translateY(0);
    }
    /* 2. Fix Aim Cards */
    .aim-card {
        height: auto;
        min-height: 350px;
    }
    .aim-card-overlay {
        opacity: 1;
        background: rgba(26, 42, 71, 0.85);
        padding: 20px;
    }
    .aim-card-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .aim-card-overlay ul li {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    .aim-card-footer {
        display: none;
    }
    /* 3. Fix Pillar Cards */
    .pillar-card {
        padding: 30px 20px;
    }
    .pillar-card p {
        font-size: 0.85rem;
    }
    /* 4. Fix Values Section Flip Cards */
    .flip-card {
        height: 280px;
    }
    .flip-card-back p {
        font-size: 0.85rem;
    }
    /* 5. Fix Gallery Section (Mobile) */
    .gallery-item {
        height: auto;
    }
    .gallery-item img {
        height: 250px;
    }
    .gallery-info {
        position: relative;
        transform: translateY(0);
        opacity: 1;
        background: var(--primary);
        padding: 20px;
    }
    .gallery-info h3 {
        font-size: 1.2rem;
    }
    .gallery-info p {
        font-size: 0.85rem;
    }
    /* 6. Fix Recent Teachings (Mobile) */
    .teaching-card {
        padding: 30px 25px;
    }
    .teaching-card h3 {
        font-size: 1.3rem;
    }
    .teaching-card blockquote {
        font-size: 1rem;
        padding-left: 15px;
    }
    .teaching-quote-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .stat-item span.stat-number {
        font-size: 2rem;
    }
    .ministries-grid,
    .blog-grid,
    .sermons-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    /* Extra small phone fixes */
    .brief-reveal-card {
        min-height: 450px;
    }
    .brief-reveal-text p {
        font-size: 0.85rem;
    }
    .aim-card-overlay ul li {
        font-size: 0.75rem;
    }
}