/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
.main-header {
    background-color: rgba(39, 39, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 45px;
    width: auto;
    margin-right: 0;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-links a:hover {
    color: #CDAD4F;
}

.nav-links a.active {
    color: white;
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.donate-btn {
    background-color: rgba(205, 173, 79, 0.9);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(205, 173, 79, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.donate-btn:hover {
    background-color: #b89a3f;
    box-shadow: 0 4px 8px rgba(205, 173, 79, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 30px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    padding: 2rem 2rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.hero .container {
    width: 100%;
    position: relative;
    z-index: 3;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mission-statement {
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Mission Section */
.mission {
    padding: 4rem 2rem;
    text-align: center;
    background-color: white;
}

.mission-text {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: bold;
}

/* Quick Links Section */
.quick-links {
    padding: 2rem 2rem;
    background-image: url('../images/gold-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.link-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.link-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.link-card p {
    margin-bottom: 0.5rem;
}

.link-card .btn {
    margin-top: auto;
    margin-bottom: 0;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    padding: 0;
    width: 100%;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #7C7C7C;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    vertical-align: middle;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: #5a5a5a;
}

/* GCI-style transparent buttons with golden borders for donate page */
.donate-content .btn {
    background-color: transparent;
    color: #CDAD4F;
    border: 2px solid #CDAD4F;
    font-weight: 600;
    transition: all 0.3s ease;
}

.donate-content .btn:hover {
    background-color: #CDAD4F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(205, 173, 79, 0.3);
}

/* Location Section */
.location {
    padding: 4rem 2rem;
    text-align: center;
    background-color: white;
}

.address, .service-time {
    color: #666;
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Page Header */
.page-header {
    background-image: url('../images/grey-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: black;
    padding: 80px 0 1rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-top: 0;
}

.sermons-content .page-header {
    background-image: url('../images/grey-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: black;
    padding: 80px 0 1rem 0;
    min-height: 100px;
    margin-top: 0;
}

/* About Page Styles */
.about-content {
    padding: 2rem 2rem;
    background-image: url('../images/grey-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Specific override for about.html page */
.about-content.about-page {
    background-image: url('../images/gold-bkgr.png');
}

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

.about-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Contact Page Styles */
.contact-content {
    padding: 4rem 2rem;
    background-image: url('../images/gold-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Responsive Design */
@media screen and (max-width: 428px) {
    .hamburger {
        display: block !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
        background-color: white;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        background-color: #7C7C7C;
        color: white;
        padding: 1rem 2rem;
        border-radius: 4px;
        width: 250px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 1.2rem;
        display: block;
    }

    .nav-links a.donate-btn {
        background-color: transparent;
        color: #CDAD4F;
        border: 2px solid #CDAD4F;
    }
    
    /* Ensure donate page buttons maintain GCI style in mobile */
    .donate-content .btn {
        background-color: transparent;
        color: #CDAD4F;
        border: 2px solid #CDAD4F;
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .donate-content .btn:hover {
        background-color: #CDAD4F;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(205, 173, 79, 0.3);
    }
}

/* iPad and tablets */
@media screen and (min-width: 429px) and (max-width: 768px) {
    .hamburger {
        display: block !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        background-color: #7C7C7C;
        color: white;
        padding: 1rem 2rem;
        border-radius: 4px;
        width: 250px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 1.2rem;
        display: block;
    }

    .nav-links a.donate-btn {
        background-color: transparent;
        color: #CDAD4F;
        border: 2px solid #CDAD4F;
    }
    
    /* Ensure donate page buttons maintain GCI style in tablet */
    .donate-content .btn {
        background-color: transparent;
        color: #CDAD4F;
        border: 2px solid #CDAD4F;
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .donate-content .btn:hover {
        background-color: #CDAD4F;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(205, 173, 79, 0.3);
    }
}

/* Common mobile styles for both iPhone and iPad */
@media screen and (max-width: 768px) {
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .link-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Sermons Page Styles */
.sermons-content {
    padding: 4rem 2rem;
    background-image: url('../images/gold-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.videos-content {
    padding: 4rem 2rem;
    background-image: url('../images/gold-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.more-videos-content {
    padding: 4rem 2rem;
    background-image: url('../images/gold-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-content {
    padding: 4rem 2rem;
    background-image: url('../images/grey-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

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

.sermon-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sermon-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.video-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sermon-card h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.video-card h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.sermon-speaker {
    color: #666;
    margin-bottom: 1.5rem;
}

.video-speaker {
    color: #666;
    margin-bottom: 1.5rem;
}

.sermon-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sermon-actions .btn {
    flex: 1;
    text-align: center;
    min-width: 100px;
}

/* Video button styling to match original links */
.video-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #CDAD4F;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-btn:hover {
    background-color: #b89a3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Donate Page Styles */
.donate-content {
    padding: 4rem 2rem;
    background-image: url('../images/gold-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.donate-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.donate-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    order: 1;
}

.donate-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.donate-info ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.donate-info li {
    margin-bottom: 0.5rem;
    color: #555;
}

.donate-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    order: 2;
}

.donate-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

/* Welcome Message Styles */
.welcome-message {
    padding: 2rem 2rem 2rem;
    background-image: url('../images/gold-bkgr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
}

.message-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.message-box {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.message-box .signature {
    margin-top: 1.5rem;
    font-style: italic;
    color: #2c3e50;
    font-size: 1.2rem;
}

.kids-camp-flyer {
    margin-top: 2rem;
    text-align: center;
}

.camp-flyer-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Photo Gallery */
.photo-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.photo-gallery h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.gallery-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

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

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

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

.gallery-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}



/* Fellowship Gallery */
.fellowship-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

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

.fellowship-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.fellowship-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

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

.fellowship-caption h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.fellowship-caption p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Community Events Gallery */
.community-events-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

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

.community-events-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.community-events-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.community-events-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.community-events-caption h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.community-events-caption p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Sunday Service Gallery */
.sunday-service-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

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

.sunday-service-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.sunday-service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.sunday-service-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.sunday-service-caption h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.sunday-service-caption p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Bible Study Gallery */
.bible-study-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

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

.bible-study-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.bible-study-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.bible-study-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.bible-study-caption h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.bible-study-caption p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Kids Gallery */
.kids-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

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

.kids-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.kids-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

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

.kids-caption h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.kids-caption p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Prayer Gallery */
.prayer-gallery {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

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

.prayer-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.prayer-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

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

.prayer-caption h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.prayer-caption p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Map Section */
.map-section {
    padding: 1rem 2rem 4rem;
    background-color: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
}

/* iPhone 13 and similar devices */
@media only screen and (max-width: 390px) {
    .main-nav {
        padding: 1rem;
    }

    .hamburger {
        display: block !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
        background-color: #2c3e50;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .hamburger span {
        background-color: white;
        width: 24px;
        height: 2px;
        margin: 4px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        background-color: #7C7C7C;
        color: white;
        padding: 1rem 2rem;
        border-radius: 4px;
        width: 200px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 1.2rem;
    }

    .nav-links a.donate-btn {
        background-color: #CDAD4F;
        color: black;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .logo img {
        height: 30px;
    }
}

/* Other mobile devices */
@media only screen and (min-width: 391px) and (max-width: 768px) {
    .hamburger {
        display: block !important;
        position: relative;
        z-index: 1001;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        background-color: #7C7C7C;
        color: white;
        padding: 1rem 2rem;
        border-radius: 4px;
        width: 200px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 1.2rem;
    }

    .nav-links a.donate-btn {
        background-color: transparent;
        color: #CDAD4F;
        border: 2px solid #CDAD4F;
    }
    
    /* Ensure donate page buttons maintain GCI style in tablet */
    .donate-content .btn {
        background-color: transparent;
        color: #CDAD4F;
        border: 2px solid #CDAD4F;
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .donate-content .btn:hover {
        background-color: #CDAD4F;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(205, 173, 79, 0.3);
    }
}

/* Common mobile styles for both iPhone and iPad */
@media only screen and (max-width: 768px) {
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .link-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .message-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .photo-gallery h2 {
        font-size: 2rem;
    }
    
    .fellowship-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .community-events-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .sunday-service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .bible-study-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .kids-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .prayer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

.nav-links a.donate-btn {
    background-color: #CDAD4F;
    color: black;
    padding: 0.5rem 1rem;
}

/* GCI.org-style navigation buttons for mobile hamburger menu */
@media screen and (max-width: 768px) {
    .nav-links a {
        background: transparent !important;
        color: #CDAD4F !important;
        border: 2px solid #CDAD4F !important;
        font-weight: 600 !important;
        box-shadow: none !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-links a:hover,
    .nav-links a:focus {
        background: #CDAD4F !important;
        color: #fff !important;
        box-shadow: 0 4px 8px rgba(205, 173, 79, 0.3) !important;
        transform: translateY(-2px);
    }
    
    /* Keep the donate button consistent with other nav buttons */
    .nav-links a.donate-btn {
        background: transparent !important;
        color: #CDAD4F !important;
        border: 2px solid #CDAD4F !important;
    }
    
    .nav-links a.donate-btn:hover,
    .nav-links a.donate-btn:focus {
        background: #CDAD4F !important;
        color: #fff !important;
    }
}

/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Responsive modal */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .close {
        right: 15px;
        top: 5px;
        font-size: 24px;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .video-container {
        margin-top: 10px;
    }
    
    /* Prevent body scroll on mobile when modal is open */
    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* iOS-specific fixes for gallery links */
@media screen and (max-width: 768px) {
    .gallery-link {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    .gallery-item {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }
    
    .gallery-image {
        pointer-events: none;
    }
    
    .gallery-overlay {
        pointer-events: none;
    }
}

/* M Ann Photo Container and Watch Button Styles */
.mAnn-photo-container {
    margin-top: 2rem;
    text-align: left;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mAnn-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.mAnn-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
}

.mAnn-photo:hover {
    transform: scale(1.02);
}

.mAnn-caption {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
    padding: 0 0.5rem;
    text-align: left;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #CDAD4F;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.watch-btn {
    background-color: #CDAD4F;
    color: #333;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-btn:hover {
    background-color: #B89A3F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.watch-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Video Modal Specific Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.video-modal-content {
    background-color: #000;
    margin: 2% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 20px;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Responsive styles for video modal */
@media screen and (max-width: 768px) {
    .video-modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 15px;
    }
    
    .video-close {
        right: 15px;
        top: 5px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
    
    .mAnn-photo-container {
        margin-top: 1.5rem;
        padding: 0.75rem;
    }
    
    .watch-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 