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

/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Ensure all images load with priority */
img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100%;
    height: auto;
}

/* Color Palette */
:root {
    --primary-red: #8B0000;
    --accent-gold: #DAA520;
    --warm-blue: #4A90E2;
    --soft-green: #5C8A5C;
    --warm-gray: #666;
    --light-gray: #f8f8f8;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
    /* Temporary debugging */
    min-height: 80px;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: transparent;
    position: relative;
    z-index: 100;
    /* Force immediate load */
    will-change: transform;
    transform: translateZ(0);
}

.logo-text h1 {
    font-size: 1.8rem;
    color: #8B0000;
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B0000;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8B0000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/content/background.png') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cross" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 5 L10 15 M5 10 L15 10" stroke="rgba(255,255,255,0.05)" stroke-width="1" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23cross)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.cross-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: glow 2s ease-in-out infinite alternate;
}

.cross-symbol i {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;

}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #DC143C);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-text h3 {
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.point {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.point:hover {
    transform: translateY(-5px);
}

.point i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Different colors for each mission point */
.point:nth-child(1) i {
    color: var(--primary-red);
}

.point:nth-child(2) i {
    color: var(--warm-blue);
}

.point:nth-child(3) i {
    color: var(--soft-green);
}

.point h4 {
    color: #333;
    margin-bottom: 1rem;
}

/* Point Visual Container */
.point-visual {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Point Images */
.point-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* Force GPU acceleration for better loading */
    will-change: transform;
    transform: translateZ(0);
}

.point:hover .point-image {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

/* Different border colors for each point image */
.point:nth-child(1) .point-image {
    border-color: var(--primary-red);
}

.point:nth-child(2) .point-image {
    border-color: var(--warm-blue);
}

.point:nth-child(3) .point-image {
    border-color: var(--soft-green);
    object-position: left center;
}

/* Gallery Section */
.gallery {
    background: #f8f9fa;
}

.gallery-categories {
    margin-bottom: 3rem;
    text-align: center;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tab-btn {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid var(--warm-gray);
    color: var(--warm-gray);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Different colors for each tab */
.tab-btn[data-category="renewal"] {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.tab-btn[data-category="renewal"]:hover,
.tab-btn[data-category="renewal"].active {
    background: var(--primary-red);
    color: #fff;
}

.tab-btn[data-category="events"] {
    border-color: var(--warm-blue);
    color: var(--warm-blue);
}

.tab-btn[data-category="events"]:hover,
.tab-btn[data-category="events"].active {
    background: var(--warm-blue);
    color: #fff;
}

.tab-btn[data-category="prayer"] {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.tab-btn[data-category="prayer"]:hover,
.tab-btn[data-category="prayer"].active {
    background: var(--accent-gold);
    color: #fff;
}

.tab-btn[data-category="community"] {
    border-color: var(--soft-green);
    color: var(--soft-green);
}

.tab-btn[data-category="community"]:hover,
.tab-btn[data-category="community"].active {
    background: var(--soft-green);
    color: #fff;
}

.tab-btn:hover,
.tab-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    display: none;
}

/* Show first category by default (fallback if JS fails) */
.gallery-item[data-category="renewal"] {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.gallery-item.active {
    opacity: 1;
    transform: scale(1);
    display: block !important;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(139, 0, 0, 0.9));
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.gallery-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #8B0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.gallery-card:hover .gallery-link {
    opacity: 1;
    transform: scale(1);
}

.gallery-link:hover {
    background: #8B0000;
    color: #fff;
    transform: scale(1.1);
}

.gallery-cta {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.gallery-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Renewals Section */
.renewal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

/* Different colors for each statistic */
.stat-item:nth-child(1) .stat-number {
    color: var(--primary-red);
}

.stat-item:nth-child(2) .stat-number {
    color: var(--accent-gold);
}

.stat-item:nth-child(3) .stat-number {
    color: var(--warm-blue);
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.renewal-decades {
    margin-bottom: 4rem;
}

.renewal-decades h3 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    position: relative;
}

/* Timeline Line - positioned under the heading */
.renewal-decades h3::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #8B0000, #DC143C, #DAA520, #4A90E2, #5C8A5C);
    border-radius: 2px;
}

/* Timeline Container */
.decades-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin: 2rem 0;
    overflow-x: auto;
    min-height: 200px;
}

/* Timeline Decade Cards */
.decade-card {
    display: block;
    position: relative;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.15s ease;
    text-align: center;
    border: 3px solid transparent;
    min-width: 160px;
    z-index: 2;
    flex-shrink: 0;
    margin: 0 1.5rem;
}

/* Timeline connector dots - positioned on top */
.decade-card::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8B0000;
    border: 3px solid #fff;
    z-index: 3;
}

.decade-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #8B0000;
    color: inherit;
    text-decoration: none;
}

.decade-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-family: 'Playfair Display', serif;
}

/* Color variety for clickable decade cards with timeline colors */
a.decade-card:nth-child(4) .decade-number { color: var(--primary-red); }
a.decade-card:nth-child(4)::after { background: var(--primary-red); }

a.decade-card:nth-child(5) .decade-number { color: var(--accent-gold); }
a.decade-card:nth-child(5)::after { background: var(--accent-gold); }

a.decade-card:nth-child(6) .decade-number { color: var(--warm-blue); }
a.decade-card:nth-child(6)::after { background: var(--warm-blue); }

a.decade-card:nth-child(7) .decade-number { color: var(--soft-green); }
a.decade-card:nth-child(7)::after { background: var(--soft-green); }

a.decade-card:nth-child(8) .decade-number { color: var(--primary-red); }
a.decade-card:nth-child(8)::after { background: var(--primary-red); }

a.decade-card:nth-child(9) .decade-number { color: var(--accent-gold); }
a.decade-card:nth-child(9)::after { background: var(--accent-gold); }

a.decade-card:nth-child(10) .decade-number { color: var(--warm-blue); }
a.decade-card:nth-child(10)::after { background: var(--warm-blue); }

a.decade-card:nth-child(11) .decade-number { color: var(--soft-green); }
a.decade-card:nth-child(11)::after { background: var(--soft-green); }

.decade-range {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.decade-description {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    line-height: 1.2;
}

/* No Photos Decade Cards for Timeline */
.decade-card.no-photos {
    background: #f8f8f8;
    border: 2px dashed #ccc;
    cursor: default;
    opacity: 0.6;
}

.decade-card.no-photos::after {
    background: #999;
}

.decade-card.no-photos:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.decade-card.no-photos .decade-number {
    color: #999;
}

.no-photos-note {
    font-size: 0.6rem;
    color: #999;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Hover Image Carousel for 40s Era */
.hover-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    z-index: 10;
}

.decade-card:hover .hover-carousel {
    opacity: 1;
    visibility: visible;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    z-index: 1;
}

.hover-carousel .carousel-image.active {
    opacity: 1;
    z-index: 2;
}

.hover-carousel .carousel-image.fade-out {
    opacity: 0;
    z-index: 1;
}

.hover-carousel .carousel-image.fade-in {
    opacity: 1;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    z-index: 11;
}

.carousel-text {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Playfair Display', serif;
}

/* Ensure the decade card content is above carousel when not hovered */
.decade-card .decade-number,
.decade-card .decade-range {
    position: relative;
    z-index: 12;
    transition: opacity 0.3s ease;
}

.decade-card:hover .decade-number,
.decade-card:hover .decade-range {
    opacity: 0;
}

/* Keep text visible for no-photos cards on hover */
.decade-card.no-photos:hover .decade-number,
.decade-card.no-photos:hover .decade-range {
    opacity: 1;
}

.renewal-legacy {
    text-align: center;
}

.legacy-card {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 0 auto;
    max-width: 800px;
}

.legacy-card h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.legacy-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legacy-quote {
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    padding-left: 1.5rem;
    margin-top: 2rem !important;
    color: #fff !important;
}

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

.renewal-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.renewal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B0000, #DC143C);
}

.renewal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.renewal-number {
    font-size: 3rem;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.renewal-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.renewal-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Ministry Section */
.ministry {
    background: #f8f9fa;
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ministry-item {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ministry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.ministry-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Different colors for each ministry item */
.ministry-item:nth-child(1) i {
    color: var(--accent-gold);
}

.ministry-item:nth-child(2) i {
    color: var(--warm-blue);
}

.ministry-item:nth-child(3) i {
    color: var(--primary-red);
}

.ministry-item:nth-child(4) i {
    color: var(--soft-green);
}

.ministry-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Memorial Section */
.memorial {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: #fff;
    text-align: center;
}

.memorial .section-header h2,
.memorial .section-divider {
    color: #fff;
    background: #fff;
}

.memorial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.memorial-text h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.memorial-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.memorial-prayer {
    font-style: italic;
    font-size: 1.1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #fff;
}

/* Founder Memorial Styling */
.founder-memorial {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.founder-memorial h4 {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.founder-img {
    width: 150px !important;
    height: 150px !important;
    border: 6px solid rgba(218, 165, 32, 0.8);
    object-position: center top;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.founder-tribute {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* Memorial Photos */
.memorial-photo {
    margin-bottom: 1.5rem;
}

.memorial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    /* Ensure memorial images are always visible */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* Force GPU acceleration for better loading */
    will-change: transform;
    transform: translateZ(0);
}

.memorial-img:hover {
    transform: scale(1.05);
}

.memorial-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.other-memorials {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.individual-memorial {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.individual-memorial h5 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.individual-memorial .memorial-photo {
    margin-bottom: 1rem;
}

.individual-memorial .memorial-img {
    width: 100px;
    height: 100px;
}

.scripture {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff !important;
}

/* Connect Section */
.connect {
    background: #f8f9fa;
}

.connect-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.social-media h3,
.multimedia-links h3 {
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.social-link i {
    font-size: 1.5rem;
    color: #8B0000;
}

.multimedia-links h3 {
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.media-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.media-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.media-link i {
    font-size: 1.5rem;
    color: #8B0000;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #8B0000;
}

.contact-item i {
    font-size: 2rem;
    color: #8B0000;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0;
}

.affiliates h3 {
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.affiliate-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.affiliate-links a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.affiliate-links a:hover {
    color: #8B0000;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section .motto {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.motto {
    font-style: italic;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8B0000;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #8B0000;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #DC143C;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo-image {
        width: 65px;
        height: 65px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
        padding: 0.5rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .connect-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center !important;
        justify-items: center !important;
    }

    .connect .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .connect .connect-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .social-media {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }

    .social-media h3 {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .multimedia-links {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }

    .multimedia-links h3 {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .social-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .media-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .social-link,
    .media-link {
        max-width: 280px !important;
        width: 100% !important;
        justify-content: center !important;
        margin: 0 auto !important;
        display: flex !important;
        text-align: center !important;
        align-items: center !important;
    }

    .mission-points,
    .renewals-grid,
    .ministry-grid,
    .gallery-grid,
    .renewal-stats {
        grid-template-columns: 1fr;
    }

    /* Timeline responsive design */
    .decades-grid {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        overflow-x: visible;
    }

    .decades-grid::before {
        display: none;
    }

    .decade-card {
        margin: 0.5rem 0;
        min-width: auto;
        width: 100%;
        max-width: 300px;
        align-self: center;
    }

    .decade-card::after {
        display: none;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-image {
        width: 55px;
        height: 55px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .cross-symbol {
        font-size: 3rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .point,
    .renewal-card,
    .ministry-item {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: fadeInUp 1s ease-out;
    }

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

    .point,
    .renewal-card,
    .ministry-item {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }

    .renewal-card:nth-child(1) { animation-delay: 0.1s; }
    .renewal-card:nth-child(2) { animation-delay: 0.2s; }
    .renewal-card:nth-child(3) { animation-delay: 0.3s; }
    .renewal-card:nth-child(4) { animation-delay: 0.4s; }

    .point:nth-child(1) { animation-delay: 0.1s; }
    .point:nth-child(2) { animation-delay: 0.2s; }
    .point:nth-child(3) { animation-delay: 0.3s; }

    .ministry-item:nth-child(1) { animation-delay: 0.1s; }
    .ministry-item:nth-child(2) { animation-delay: 0.2s; }
    .ministry-item:nth-child(3) { animation-delay: 0.3s; }
    .ministry-item:nth-child(4) { animation-delay: 0.4s; }
}
