/* ===== YOUTH MINISTRY STYLES ===== */
:root {
    --primary-dark: #2c3e50;
    --primary-light: #34495e;
    --accent-red: #e74c3c;
    --accent-orange: #f39c12;
    --accent-blue: #3498db;
    --accent-green: #27ae60;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --text-gray: #5a6c7d;
    --bg-light: #f8f9fa;
    --bg-lighter: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Hero Section - FIXED BACKGROUND */
.youth-hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('{% static "image/hero.jpg" %}');
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgb(255, 255, 255);
    padding: 0 20px;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

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

.youth-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #E8A248;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-white);
    transition: var(--transition);
    background-color: var(--accent-red);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #c0392b, var(--accent-red));
}

.secondary-btn:hover {
    background: white;
    color: var(--primary-dark);
}

/* ===== SOCIAL MEDIA BUTTONS - ADDED STYLES ===== */
.youth-social-links {
    margin-top: 40px;
    text-align: center;
}

.social-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 180px;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* TikTok Button - Black and Teal */
.tiktok-btn {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 242, 234, 0.3));
    color: white;
    border-color: rgba(0, 242, 234, 0.5);
}

.tiktok-btn:hover {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 242, 234, 0.4));
    border-color: #00f2ea;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

/* YouTube Button - Black and Red */
.youtube-btn {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(255, 0, 0, 0.3));
    color: white;
    border-color: rgba(255, 0, 0, 0.5);
}

.youtube-btn:hover {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(255, 0, 0, 0.4));
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.social-btn i {
    font-size: 1.3rem;
}

.social-btn span {
    font-size: 0.9rem;
}

/* Pulse Animation for Social Buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 242, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 242, 234, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 242, 234, 0.4);
    }
}

@keyframes pulse-youtube {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    }
}

.tiktok-btn {
    animation: pulse 3s infinite;
}

.youtube-btn {
    animation: pulse-youtube 3s infinite 1.5s;
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    font-size: 1.5rem;
}

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

/* About Section */
.about-youth {
    padding: 80px 0;
    background: white;
}

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

.about-youth h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 50px;
    font-size: 2.2rem;
    font-weight: 700;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.about-text i {
    margin-right: 15px;
    color: var(--accent-red);
    font-size: 1.2rem;
    width: 25px;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Programs Section */
.programs {
    padding: 80px 0;
    background: var(--bg-light);
}

.programs h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.program-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.program-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

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

.program-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}



/* ===== YOUTH EVENTS SECTION - INDEPENDENT TOGGLE ===== */
.youth-events {
    padding: 80px 0;
    background: white;
    position: relative;
}

.youth-events h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

.event-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: visible; /* Changed from hidden to visible */
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Expanded state - card elevates and expands */
.event-card.expanded {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 100; /* Higher z-index to appear above other cards */
    position: relative;
}

.event-date {
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.month {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.day {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}

.event-details {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.event-details h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.event-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.event-details i {
    margin-right: 10px;
    color: var(--accent-red);
    width: 16px;
}

.event-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 3;
}

.event-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.event-button .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.event-card.expanded .event-button .fa-chevron-down {
    transform: rotate(180deg);
}

.event-card.expanded .event-button {
    background: var(--accent-red);
}

/* Expanded Details - Independent overlay style */
.event-expanded-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 0;
    overflow: hidden;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.95);
    z-index: 101; /* Above the card but below overlay */
    pointer-events: none;
}

.event-card.expanded .event-expanded-details {
    max-height: 800px; /* Adjust based on content */
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    top: -20px; /* Slightly above the card */
    left: -20px;
    right: -20px;
    z-index: 1000; /* Very high to ensure it's on top */
}

.event-description {
    padding: 35px 30px 30px;
    border-top: 3px solid var(--accent-red);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.event-card.expanded .event-description {
    opacity: 1;
    transform: translateY(0);
}

.event-description h4 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
}

.event-description p {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1rem;
}

.event-extra-info {
    background: rgba(231, 76, 60, 0.08);
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    border-left: 4px solid var(--accent-red);
}

.event-extra-info p {
    margin: 10px 0;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.event-extra-info strong {
    color: var(--accent-red);
}

.event-registration {
    margin-top: 25px;
    text-align: center;
}

.registration-btn {
    display: inline-block;
    background: var(--accent-green);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.registration-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Close button for expanded view */
.event-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 102;
    opacity: 0;
    transition: all 0.3s ease;
}

.event-card.expanded .event-close-btn {
    opacity: 1;
}

.event-close-btn:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

/* Overlay background when card is expanded */
.event-card.expanded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Full Calendar Link */
.full-calendar-link {
    display: block;
    text-align: center;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 40px;
    transition: var(--transition);
    position: relative;
    z-index: 10; /* Above overlay */
}

.full-calendar-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* No Events State */
.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-gray);
    border: 2px dashed var(--accent-red);
}

.no-events::before {
    content: "🗓️";
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.6;
}

/* ===== RESPONSIVE DESIGN FOR EVENTS ===== */
@media (max-width: 1024px) {
    .event-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .event-card.expanded .event-expanded-details {
        left: -15px;
        right: -15px;
    }
}

@media (max-width: 768px) {
    .event-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .event-card {
        margin: 0;
    }
    
    .event-details {
        padding: 20px;
    }
    
    .event-card.expanded .event-expanded-details {
        left: -10px;
        right: -10px;
        top: -15px;
    }
    
    .event-description {
        padding: 25px 20px 20px;
    }
    
    .event-details h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .youth-events h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .event-date {
        padding: 15px;
    }
    
    .month {
        font-size: 1rem;
    }
    
    .day {
        font-size: 1.8rem;
    }
    
    .event-details {
        padding: 15px;
    }
    
    .event-button {
        width: 100%;
        justify-content: center;
    }
    
    .event-description {
        padding: 20px 15px 15px;
    }
    
    .event-extra-info {
        padding: 15px;
    }
    
    .event-card.expanded .event-expanded-details {
        left: -5px;
        right: -5px;
        top: -10px;
    }
}

/* Ensure equal height for all cards */
.event-container {
    align-items: stretch;
}

.event-card {
    height: auto;
    min-height: 350px;
}

/* Hover effects */
.event-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Prevent body scrolling when modal is open */
body.no-scroll {
    overflow: hidden;
}






/* Leaders Section */
.youth-leaders {
    padding: 80px 0;
    background: var(--bg-light);
}

.youth-leaders h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.leader-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.leader-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent-red);
}

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

.leader-card p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.bio {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Gallery Section */
.youth-gallery {
    padding: 80px 0;
    background: white;
}

.youth-gallery h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Resources Section */
.parent-resources {
    padding: 80px 0;
    background: var(--bg-light);
}

.parent-resources h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

.resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.resource-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.resource-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.resource-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent-red);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.resource-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* CTA Section */
.youth-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    text-align: center;
}

.youth-cta h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

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

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

/* Values Section */
.values-section {
    padding: 80px 0;
    background: white;
}

.values-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

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

.value-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 700;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-red);
}

blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
}

/* Empty States */
.no-programs,
.no-events,
.no-leaders,
.no-gallery {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-gray);
    grid-column: 1 / -1;
}

/* ===== GALLERY STYLES ===== */
.youth-gallery {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.youth-gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a365d;
    font-size: 2.2rem;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.no-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.no-gallery p {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 20px;
        padding: 0 20px;
    }
    
    .gallery-item img {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .youth-hero {
        height: 60vh;
        min-height: 400px;
        margin-top: 60px;
    }
    
    .youth-hero h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* GALLERY MOBILE STYLES - Single column full width */
    .youth-gallery {
        padding: 40px 15px;
    }
    
    .youth-gallery h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0;
    }
    
    .gallery-item {
        border-radius: 8px;
        margin: 0;
        width: 100%;
    }
    
    .gallery-item img {
        height: 250px;
        width: 100%;
    }
    
    /* Show caption on mobile without hover */
    .gallery-caption {
        position: relative;
        transform: translateY(0);
        background: #f8f9fa;
        color: #333;
        padding: 15px;
        text-align: center;
    }
    
    .gallery-caption p {
        font-size: 0.85rem;
        color: #555;
    }
}

@media (max-width: 480px) {
    .youth-hero h1 {
        font-size: 1.8rem;
    }
    
    .program-cards,
    .leaders-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .social-btn {
        min-width: 160px;
        padding: 12px 20px;
    }
    
    .social-btn span {
        font-size: 0.8rem;
    }
    
    .social-btn i {
        font-size: 1.1rem;
    }
    
    /* Mobile gallery adjustments */
    .youth-gallery h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .gallery-grid {
        gap: 15px;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .gallery-caption {
        padding: 12px;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
    
    .no-gallery {
        padding: 40px 15px;
    }
    
    .no-gallery p {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .gallery-item img {
        height: 200px;
    }
    
    .youth-gallery h2 {
        font-size: 1.4rem;
    }
}


















/* ===== CATHEDRAL CONNECTION SECTION ===== */
.cathedral-connection {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 45%, var(--bg-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cathedral-connection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cathedral-gold), #ffffff, var(--cathedral-gold));
}

.cathedral-connection h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
    position: relative;
}

.cathedral-connection h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--cathedral-gold);
}

.connection-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.connection-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.connection-text p {
    margin-bottom: 25px;
    opacity: 0.95;
    font-size: 1.15rem;
}

.connection-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.connection-text li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
}

.connection-text li::before {
    content: '🏛️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.connection-image {
    position: relative;
}

.connection-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 3px solid var(--cathedral-gold);
}

.connection-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.connection-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--cathedral-gold);
    border-radius: calc(var(--border-radius) + 5px);
    opacity: 0.3;
    transition: var(--transition);
}

.connection-image:hover::before {
    opacity: 0.6;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
}

/* Cathedral Pattern Overlay */
.cathedral-connection::after {
    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" opacity="0.03"><path fill="white" d="M50 10L60 40H40L50 10Z M30 50L60 40L50 70L30 50Z M70 50L40 40L50 70L70 50Z"/></svg>');
    background-size: 200px;
    opacity: 0.1;
    pointer-events: none;
}

/* ===== ENHANCED VALUES SECTION FOR CATHEDRAL ===== */
.values-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cathedral-gold), var(--accent-red), var(--accent-blue));
}

.values-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
}

.values-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cathedral-gold);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--cathedral-gold);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    font-size: 3rem;
    color: var(--cathedral-gold);
    margin-bottom: 25px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    color: var(--accent-red);
}

.value-card h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== INSTAGRAM SOCIAL BUTTON ===== */
.instagram-btn {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    animation: pulse-instagram 3s infinite 2.25s;
    position: relative;
    overflow: hidden;
}

.instagram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.instagram-btn:hover::before {
    left: 100%;
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.6);
    transform: translateY(-3px);
}

@keyframes pulse-instagram {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(228, 64, 95, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(228, 64, 95, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(228, 64, 95, 0.4);
    }
}
/* ===== ENHANCED TESTIMONIALS FOR CATHEDRAL ===== */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.4rem;
    font-weight: 700;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border-left: 4px solid var(--cathedral-gold);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--cathedral-gold);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--cathedral-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
}

/* Cathedral Gold Color Variable */
:root {
    --cathedral-gold: #d4af37;
}

/* Animation for Cathedral Elements */
@keyframes cathedralGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

.connection-image:hover img,
.testimonial-img:hover {
    animation: cathedralGlow 2s ease-in-out infinite;
}

/* ===== RESPONSIVE DESIGN FOR CATHEDRAL SECTIONS ===== */
@media (max-width: 768px) {
    .connection-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .connection-text li {
        text-align: left;
    }
    
    .cathedral-connection h2,
    .values-section h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .connection-text p {
        font-size: 1.1rem;
    }
    
    .connection-image {
        order: -1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cathedral-connection::after {
        background-size: 150px;
    }
}

@media (max-width: 480px) {
    .cathedral-connection h2,
    .values-section h2,
    .testimonials h2 {
        font-size: 1.8rem;
    }
    
    .connection-text li {
        padding-left: 25px;
        font-size: 0.95rem;
    }
    
    .connection-text li::before {
        font-size: 1rem;
    }
    
    .connection-image img {
        border-width: 2px;
    }
    
    .value-card,
    .testimonial {
        padding: 25px 20px;
    }
}