/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

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

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

.hero-background.active {
    opacity: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    color: white;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s backwards;
    line-height: 1.6;
}

.verse {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.6s backwards;
    flex-wrap: wrap;
}

.hero-button {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    white-space: nowrap;
}

.hero-button.primary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: 2px solid var(--secondary-color);
}

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

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-button.primary:hover {
    background-color: transparent;
    color: white;
}

.hero-button.secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-down {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.scroll-down:hover {
    opacity: 1;
    color: white;
}

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stats-container::-webkit-scrollbar {
    display: none;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 150px;
    margin: 0 0.5rem;
}

.stat-item-p {
    font-size: 1.0rem;
    color: white;
    opacity: 0.9;
}


.stat-item i {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}


/* Programs Section */
.programs {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.programs h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.programs h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-content i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.program-card:hover .program-content i {
    transform: scale(1.1);
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.program-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    flex: 1;
}

.program-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.program-link:hover {
    color: var(--primary-color);
    gap: 1rem;
}
.program-link i {
    transition: transform 0.3s ease;
}
/* Testimonials Section */



/* Countries Section */
.countries {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.section-content {
    position: relative;
    z-index: 3;
    padding: 4rem 0;
}

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

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    opacity: 0.7;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 0;
    color: white;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 1px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 1rem auto 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-stats {
    text-align: center;
}

.map-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-stats .stat i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.map-stats .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.map-stats .stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.country-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.country-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.country-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    z-index: 1;
}

.country-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.country-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--secondary-color);
}

.country-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.country-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--light-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.country-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.progress-bar {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: width 1s ease;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    /* General adjustments */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Map container adjustments */
    .map-container {
        height: 250px;
        margin-bottom: 2rem;
    }

    .map-stats .stat-number {
        font-size: 2.5rem;
    }

    .map-stats .stat-label {
        font-size: 1rem;
    }

    /* Country stats adjustments */
    .country-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .country-item {
        padding: 1.5rem;
    }

    .country-item h3 {
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Video background adjustments */
    .video-background {
        height: 40%;
    }

    /* Hero section adjustments */
    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        text-align: center;
    }

    /* Testimonials adjustments */
    .testimonial {
        min-width: 280px;
        flex: 0 0 calc(100% - 1rem);
    }

    .testimonial-slider {
        gap: 1.5rem;
    }

    .testimonials-header h2 {
        font-size: 2rem;
    }

    .testimonial p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .testimonial cite {
        font-size: 1rem;
    }

    /* Fellowship section adjustments */
    .fellowship .section-title {
        font-size: 2rem;
    }

    .fellowship-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fellowship-info h3 {
        font-size: 1.5rem;
    }

    .fellowship-info p {
        font-size: 1rem;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }

    .event-day {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* General adjustments */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Map container adjustments */
    .map-container {
        height: 200px;
    }

    .map-stats .stat-number {
        font-size: 2rem;
    }

    .map-stats .stat-label {
        font-size: 0.9rem;
    }

    /* Country stats adjustments */
    .country-item {
        padding: 1rem;
    }

    .country-item h3 {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Hero section adjustments */
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    /* Testimonials adjustments */
    .testimonial p {
        font-size: 0.9rem;
    }

    .testimonial cite {
        font-size: 0.9rem;
    }

    /* Fellowship section adjustments */
    .fellowship .section-title {
        font-size: 1.8rem;
    }

    .fellowship-info h3 {
        font-size: 1.3rem;
    }

    .fellowship-info p {
        font-size: 0.9rem;
    }

    .event-day {
        font-size: 1.3rem;
    }
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../images/our1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
/* Responsive adjustments for CTA Section */
@media (max-width: 768px) {
    .cta {
        padding: 3rem 1rem;
        background-attachment: fixed; 
    }

    .cta-content {
        padding: 0 1rem;
    }

    .cta h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .cta {
        padding: 2rem 1rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        gap: 0.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        min-height: 500px;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-button {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
    }

    .hero-scroll {
        bottom: 1.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero {
        padding-top: 60px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        margin-bottom: 1rem;
    }

    .hero p {
        margin-bottom: 1.5rem;
    }

    .verse {
        margin-bottom: 1.5rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: none;
    }

    .hero-button {
        width: auto;
    }
}

/* About Us Section */
.about-us {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-container h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.about-container h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card,
.vision-card {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
}

.mission-card i,
.vision-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.mission-card h3,
.vision-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mission-card p,
.vision-card p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        max-height: 400px;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-container {
        padding: 0 1rem;
    }

    .about-container h1 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .mission-card,
    .vision-card {
        padding: 2rem;
    }

    .mission-card i,
    .vision-card i {
        font-size: 2rem;
    }

    .mission-card h3,
    .vision-card h3 {
        font-size: 1.3rem;
    }
}

.about-gallery {
    margin: 4rem 0;
    padding: 0 1rem;
    position: relative;
}

.about-gallery h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.about-gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.gallery-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gallery-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    flex: 0 0 400px;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2.5rem;
    color: white;
    transform: translateY(70%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.gallery-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.gallery-details span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.gallery-details i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.gallery-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-button span {
    transition: transform 0.3s ease;
}

.gallery-button i {
    transition: transform 0.3s ease;
}

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

.gallery-button:hover span {
    transform: translateX(-5px);
}

.gallery-button:hover i {
    transform: translateX(5px);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

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

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

.gallery-item:hover .gallery-overlay p,
.gallery-item:hover .gallery-details,
.gallery-item:hover .gallery-button {
    opacity: 1;
    transform: translateY(0);
}

.gallery-progress {
    position: relative;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 200px;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--secondary-color);
    width: 33.33%;
    transition: transform 0.3s ease;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 300px;
        height: 300px;
    }

    .gallery-overlay {
        padding: 1.5rem;
    }

    .gallery-overlay h3 {
        font-size: 1.5rem;
    }

    .gallery-overlay p {
        font-size: 1rem;
    }

    .gallery-button {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 260px;
        height: 280px;
    }

    .about-gallery h2 {
        font-size: 1.8rem;
    }

    .gallery-overlay {
        padding: 1.2rem;
    }

    .gallery-overlay h3 {
        font-size: 1.3rem;
    }
}

/* Ministry Gallery Section */
.ministry-gallery {
    padding: 2rem 1rem;
    background-color: var(--light-bg);
}

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

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}


.gallery-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-load-more {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }
    
    .gallery-item.tall {
        grid-row: span 1;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Fellowship Section */
.fellowship {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.fellowship::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

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

.fellowship .section-title {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem; 
    position: relative;
    padding-bottom: 1rem;
}

.fellowship .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FFA500, #FF8C00);
    border-radius: 2px;
}

.fellowship-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    align-items: start;
}

.fellowship-info {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.fellowship-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.fellowship-info p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.fellowship-info .btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fellowship-info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.fellowship-events {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fellowship-events h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.event-card {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.event-date {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.event-details {
    padding: 1.5rem;
    flex: 1;
}

.event-details h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.event-details p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.event-meta i {
    margin-right: 0.5rem;
    color: #FFA500;
}

/* Responsive adjustments for Fellowship Section */
@media (max-width: 768px) {
    .fellowship {
        padding: 4rem 1rem;
    }

    .fellowship .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .fellowship-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fellowship-info {
        padding: 1.5rem;
    }

    .fellowship-info h3 {
        font-size: 1.5rem;
    }

    .fellowship-info p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .fellowship-info .btn-primary {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .fellowship-events h3 {
        font-size: 1.5rem;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }

    .event-day {
        font-size: 1.5rem;
    }

    .event-month {
        font-size: 1rem;
    }

    .event-details h4 {
        font-size: 1.2rem;
    }

    .event-details p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .event-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .fellowship {
        padding: 3rem 1rem;
    }

    .fellowship .section-title {
        font-size: 1.8rem;
    }

    .fellowship-info {
        padding: 1rem;
    }

    .fellowship-info h3 {
        font-size: 1.3rem;
    }

    .fellowship-info p {
        font-size: 0.9rem;
    }

    .fellowship-info .btn-primary {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }

    .fellowship-events h3 {
        font-size: 1.3rem;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .event-day {
        font-size: 1.3rem;
    }

    .event-month {
        font-size: 0.9rem;
    }

    .event-details h4 {
        font-size: 1.1rem;
    }

    .event-details p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .event-meta {
        font-size: 0.75rem;
    }
}