/* ===========================
   GENERAL STYLES & VARIABLES
   =========================== */

:root {
    --primary-color: #1a3a52;
    --secondary-color: #c41e3a;
    --accent-color: #ffd700;
    --light-bg: #f5f7fa;
    --dark-bg: #0f1419;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   NAVIGATION BAR
   =========================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1f2d 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    height: 45px;
    width: auto;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.church-name {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #a01729);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: slideInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   WELCOME SECTION
   =========================== */

.welcome-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, white 100%);
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.welcome-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===========================
   VISION & MISSION
   =========================== */

.vision-mission {
    padding: 80px 0;
    background: white;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.vision-card,
.mission-card {
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vision-card {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fc 100%);
    border-left: 5px solid var(--primary-color);
}

.mission-card {
    background: linear-gradient(135deg, #fef3e2 0%, #fff9f0 100%);
    border-left: 5px solid var(--secondary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vision-card h3,
.mission-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.mission-card ul {
    list-style: none;
    text-align: left;
}

.mission-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.mission-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===========================
   SECTION TITLES
   =========================== */

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===========================
   WHAT WE DO SECTION
   =========================== */

.what-we-do {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, white 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.service-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   BELIEFS SECTION
   =========================== */

.beliefs-section {
    padding: 80px 0;
    background: white;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.belief-item {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), #0d1f2d);
    border-radius: 10px;
    color: white;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.belief-item:hover {
    transform: translateY(-5px);
}

.belief-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.belief-item h4 {
    font-size: 1.1rem;
}

/* ===========================
   PAGE HEADER
   =========================== */

.page-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-top: 70px;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 82, 0.7);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
}

.header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-org-section {
    padding: 60px 0;
    background: white;
}

.org-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.org-intro h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.org-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.detail-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.detail-content h3:first-child {
    margin-top: 0;
}

.detail-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.rounded-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* ===========================
   PASTOR PROFILE SECTION
   =========================== */

.pastor-profile {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, white 100%);
}

.pastor-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.pastor-image-section {
    text-align: center;
}

.pastor-main-img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.pastor-credentials {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.pastor-credentials h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.credentials {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.roles {
    color: var(--text-light);
    font-size: 0.95rem;
}

.pastor-intro p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ===========================
   MINISTRY AREAS
   =========================== */

.ministry-areas {
    margin: 4rem 0;
}

.ministry-areas h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ministry-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.ministry-item:hover {
    transform: translateY(-5px);
}

.ministry-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ministry-item h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.ministry-item p {
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   TIMELINE
   =========================== */

.pastor-journey {
    margin: 4rem 0;
    background: white;
    padding: 3rem;
    border-radius: 10px;
}

.pastor-journey h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.journey-timeline {
    display: grid;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
    top: 5px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 35px;
    width: 2px;
    height: 80px;
    background: var(--secondary-color);
}

.timeline-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   CHARACTERISTICS
   =========================== */

.pastor-characteristics {
    margin: 4rem 0;
}

.pastor-characteristics h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.char-card {
    background: linear-gradient(135deg, white 0%, #f9f9f9 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.char-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.char-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.char-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================
   GALLERY
   =========================== */

.pastor-gallery {
    margin: 4rem 0;
}

.pastor-gallery h3 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ===========================
   ARTICLES SECTION
   =========================== */

.articles-intro {
    padding: 40px 0;
    background: white;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.articles-controls {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.articles-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, white 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color), #0d1f2d);
    color: white;
    padding: 2rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-category {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    margin-top: auto;
}

.article-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===========================
   BOOKS SECTION
   =========================== */

.books-section {
    padding: 80px 0;
    background: white;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-card {
    background: linear-gradient(135deg, white 0%, #f9f9f9 100%);
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.book-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.book-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.book-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.book-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.book-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.book-link {
    padding: 8px 16px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.book-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    padding: 60px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-container h2,
.contact-info-container h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-status {
    text-align: center;
    font-weight: 600;
    min-height: 20px;
}

.form-status.success {
    color: var(--success-color);
}

.form-status.error {
    color: var(--secondary-color);
}

.contact-info-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9f9f9 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: var(--secondary-color);
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary-color), #0d1f2d);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.contact-info-box h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info-box ul {
    list-style: none;
}

.contact-info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.contact-info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===========================
   COMMUNITY SECTION
   =========================== */

.community-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, white 100%);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.community-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.community-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.community-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   FAQ SECTION
   =========================== */

.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9f9f9 100%);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   GALLERY SECTION
   =========================== */

.gallery-section {
    padding: 80px 0;
    background: white;
}

.lightbox-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 82, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===========================
   LIGHTBOX MODAL
   =========================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    z-index: 2001;
    padding: 20px;
    transition: color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ===========================
   FULL GALLERY PAGE
   =========================== */

.gallery-intro {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, white 100%);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.full-gallery-section {
    padding: 4rem 0;
    background: white;
}

.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.6s ease-in;
}

.gallery-item-full {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-item-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-full:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-full:hover .gallery-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem;
    font-size: 1rem;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE GALLERY
   =========================== */

@media (max-width: 1024px) {
    .lightbox-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 180px;
    }

    .full-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .lightbox-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 150px;
    }

    .full-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .lightbox-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery-item {
        height: 120px;
    }

    .full-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery-intro {
        padding: 2rem 0;
    }

    .intro-text {
        font-size: 1rem;
    }

    .full-gallery-section {
        padding: 2rem 0;
    }
}

/* ===========================
   PASTOR GALLERY GRID UPDATE
   =========================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1f2d 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .church-name {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .vision-mission-grid,
    .org-details,
    .pastor-main,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .beliefs-grid,
    .ministry-grid,
    .char-grid,
    .articles-grid,
    .books-grid,
    .community-grid,
    .faq-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .pastor-credentials {
        margin-top: 1.5rem;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-marker {
        width: 15px;
        height: 15px;
        left: -7px;
    }

    .timeline-item:not(:last-child)::before {
        left: -2px;
        height: 60px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .pastor-main-img {
        max-width: 100%;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-content p {
        font-size: 1rem;
    }
}