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

:root {
    --primary-color: #1a1a1a;
    --primary-dark: #000000;
    --primary-light: #333333;
    --secondary-color: #666666;
    --accent-color: #999999;
    --accent-light: #cccccc;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #666666;
    --background-light: #ffffff;
    --background-gray: #f8f8f8;
    --background-accent: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.15);
    --border-radius: 4px;
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--background-light);
    min-height: 100vh;
    font-weight: 400;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Language transition effects */
[data-en][data-my] {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-en][data-my].language-transitioning {
    opacity: 0;
    transform: translateY(-10px);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    background-color: #333333;
    transform: none;
}

.btn-secondary {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
}

.btn-secondary:hover {
    background-color: #333333;
    transform: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Top Header with Logo */
.top-header {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1001;
}

/* Navigation Bar */
.navbar {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 1rem 0;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 80px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.lang-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.5s ease;
}

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

.lang-btn.active,
.lang-btn:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
    animation: buttonPulse 0.6s ease-out;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 8rem 0 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}



.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: bold;
}

.hero-church-name {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-verse {
    margin: 0 0 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

.bible-verse {
    font-size: 1.8rem;
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: inherit;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.verse-reference {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    margin-top: 1.5rem;
    text-align: center;
}

.hero-subtitle p {
    font-size: 1.1rem;
    color: #000000;
    margin: 0.5rem 0;
    opacity: 1;
    font-weight: 500;
    line-height: 1.4;
}

.hero-subtitle p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
}

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

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #000000;
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Parallax and Fade Effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-out {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-out.hidden {
    opacity: 0;
    transform: translateY(-30px);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Slideshow - Full Width */
.hero-slideshow {
    position: relative;
    width: 100vw;
    margin: 2rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 100vw;
}

.slide-card {
    position: absolute;
    width: 400px;
    height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.slide-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.slide-card.prev {
    transform: translateX(-450px);
    opacity: 0.8;
    z-index: 5;
}

.slide-card.next {
    transform: translateX(450px);
    opacity: 0.8;
    z-index: 5;
}

.slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease, filter 300ms ease;
    will-change: transform;
}

/* Smooth hover only on active slide */
.slide-card.active .slide-image img {
    transform: scale(1);
}

.slide-card.active:hover .slide-image img {
    transform: scale(1.06);
    filter: brightness(1.02);
}

.slide-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.slide-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.slide-content p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* Slide Overlay */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    transition: background 0.3s ease;
}

.slide-card:hover .slide-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.slide-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Slide Card Hover Effects */
/* Subtle lift on active slide only */
.slide-card.active:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/* Slideshow Navigation */
.slideshow-nav {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1.5rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.slideshow-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-dot.active {
    background: var(--text-dark);
    transform: scale(1.2);
}

.nav-dot:hover {
    background: var(--text-gray);
}

/* Slideshow Controls */
.slideshow-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20; /* Above slides for reliable tapping */
}

.slideshow-control:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.slideshow-control.prev {
    left: 1rem;
}

.slideshow-control.next {
    right: 1rem;
}

.slideshow-control i {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slideshow {
        margin: 1rem 0;
    }
    
    .slide-card {
        width: 350px;
        height: 350px;
    }
    
    .slide-card.prev {
        transform: translateX(-400px);
    }
    
    .slide-card.next {
        transform: translateX(400px);
    }
    
    .slideshow-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-slideshow {
        margin: 0.5rem 0;
    }
    
    .slide-card {
        width: 300px;
        height: 300px;
    }
    
    .slide-card.prev {
        transform: translateX(-350px);
    }
    
    .slide-card.next {
        transform: translateX(350px);
    }
    
    .slideshow-container {
        height: 350px;
    }
    
    .slideshow-control {
        width: 40px;
        height: 40px;
    }
    
    .slideshow-control.prev {
        left: 0.5rem;
    }
    
    .slideshow-control.next {
        right: 0.5rem;
    }
}



.dashboard-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.dashboard-card p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Pastor Section */
.pastor-section {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.pastor-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pastor-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.subsection-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Pastor Dashboard Section */
.pastor-dashboard-section {
    padding: 5rem 0;
    background: var(--background-gray);
    min-height: 100vh;
}

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

.pastor-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.pastor-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pastor-actions .btn {
    min-width: 140px;
}

.pastor-upload-section {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.sermon-upload-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-upload-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-accent);
    border-radius: var(--border-radius);
}

.media-upload-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

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

.upload-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-light);
}

.file-upload-area:hover {
    border-color: var(--text-dark);
    background: var(--background-gray);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.file-upload-area p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: none;
}

.file-preview.show {
    display: block;
}

.file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--border-radius);
}

.file-preview video {
    max-width: 300px;
    max-height: 200px;
    border-radius: var(--border-radius);
}

.file-preview audio {
    width: 100%;
    max-width: 300px;
}

.file-preview .file-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.sermon-settings {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-accent);
    border-radius: var(--border-radius);
}

.sermon-settings h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Pastor News Section */
.pastor-news-section {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.news-form {
    max-width: 100%;
}

.published-news {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.sermons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.sermon-item {
    background: var(--background-accent);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sermon-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.sermon-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.sermon-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.sermon-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sermon-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.published {
    background: #d4edda;
    color: #155724;
}

.status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

.status-badge.private {
    background: #f8d7da;
    color: #721c24;
}

/* News List Styles */
.news-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-item {
    background: var(--background-accent);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.news-item.featured {
    border-left-color: #ff6b35;
    background: linear-gradient(135deg, var(--background-accent) 0%, #fff5f2 100%);
}

.news-item.urgent {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, var(--background-accent) 0%, #fff5f5 100%);
}

.news-item.important {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, var(--background-accent) 0%, #fffbf0 100%);
}

.news-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.news-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.news-content {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.news-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.priority-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-badge.normal {
    background: var(--background-gray);
    color: var(--text-gray);
}

.priority-badge.important {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.urgent {
    background: #f8d7da;
    color: #721c24;
}

.category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--primary-color);
    color: white;
}

.expiry-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.expiry-badge.normal {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.expiry-badge.warning {
    background-color: #fff3e0;
    color: #f57c00;
}

.expiry-badge.urgent {
    background-color: #ffebee;
    color: #d32f2f;
}

.expiry-badge.permanent {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.btn-danger {
    background-color: #d32f2f;
    color: #ffffff;
    border: none;
}

.btn-danger:hover {
    background-color: #b71c1c;
    transform: none;
}

/* Login Modal Styles */
.login-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.login-form {
    margin-bottom: 2rem;
}

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

.login-form input[type="password"] {
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.login-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.login-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.login-info strong {
    color: var(--primary-color);
}

.message-popup {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.scroll-arrow:hover {
    color: #cccccc;
    transform: translateX(-50%) scale(1.1);
}

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

/* Sections */
.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Service Times */
.services {
    padding: 5rem 0;
    background: var(--background-gray);
}

/* Location Section */
.location-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.location-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    min-width: 1.5rem;
}

.location-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.location-item p {
    color: var(--text-gray);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.location-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.location-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-image {
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

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

.service-card {
    background: var(--background-light);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent-color);
}

.service-card:hover {
    transform: none;
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--text-gray);
}

.service-info {
    margin-top: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    opacity: 0.9;
}

/* Hero Photo Gallery */
.hero-photo-gallery {
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.photo-slider {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-card {
    width: 250px;
    background: white;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    overflow: hidden;
    margin: 10px;
}

.photo-card:hover {
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
}

.photo-placeholder {
    height: 150px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ddd;
}

.photo-placeholder i {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 10px;
}

.photo-placeholder p {
    font-size: 0.9rem;
    color: #000000;
    font-weight: bold;
}

.photo-caption {
    padding: 15px;
    background: white;
}

.photo-caption h3 {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 8px;
    font-weight: bold;
}

.photo-caption p {
    font-size: 0.85rem;
    color: #000000;
    line-height: 1.4;
}

.slider-controls {
    display: none;
}

/* About Pastor Section */
.about-pastor {
    padding: 5rem 0;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.pastor-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.pastor-image {
    text-align: center;
}

.pastor-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow);
}

.pastor-info {
    padding-top: 1rem;
}

.pastor-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.pastor-bio-container {
    position: relative;
    margin-bottom: 2rem;
}

.pastor-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

.pastor-description.collapsed {
    max-height: 4.2em; /* Approximately 2 lines of text */
    position: relative;
}

.pastor-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(transparent, var(--background-light));
    pointer-events: none;
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.see-more-btn:hover {
    color: var(--primary-color);
}

.see-more-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.pastor-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pastor-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pastor-detail i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Welcome Section */
.welcome {
    padding: 4rem 0;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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



/* Donation Section */
.donation {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.donation-content {
    max-width: 600px;
    margin: 0 auto;
}

.donation-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Calendar Section */
.calendar-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.page-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 600;
}

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

.calendar-container {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--accent-color);
}

/* Sermons Section */
.sermons-section {
    padding: 4rem 0;
}

.sermons-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select,
.sort-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--background-light);
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.sermon-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.sermon-card:hover {
    transform: none;
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.sermon-image {
    width: 100%;
    height: 200px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.sermon-content {
    padding: 1.5rem;
}

.sermon-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.sermon-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sermon-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sermon-formats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.format-badge {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: none;
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.blog-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

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

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

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

.modal-content {
    background-color: var(--background-light);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.sermon-modal {
    max-width: 800px;
}

.success-modal {
    text-align: center;
    max-width: 500px;
}

.success-content i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

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

/* Make footer contact links clickable styled like developer credit */
.footer-section a {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-section a:hover {
    color: #CCCCCC;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: #CCCCCC;
}

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

.developer-credit {
    margin-top: 0.75rem;
}

.developer-credit a {
    color: #FFFFFF;
    text-decoration: underline;
}

.developer-credit a:hover {
    color: #CCCCCC;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
        border-radius: 0 0 16px 16px;
        overflow: hidden;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .nav-list.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    .nav-list li::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }
    
    .nav-list li:hover::before {
        transform: translateX(100%);
    }
    
    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered animation for menu items */
    .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-list.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-list.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-list.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-list.active li:nth-child(6) { transition-delay: 0.35s; }
    
    /* Enhanced slideDown animation */
    @keyframes slideDown {
        from {
            transform: translateY(-30px);
            opacity: 0;
            filter: blur(10px);
        }
        to {
            transform: translateY(0);
            opacity: 1;
            filter: blur(0);
        }
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list .nav-link {
        padding: 1.5rem 2rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1.3rem;
        font-weight: 700;
        color: #000000;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
        position: relative;
        z-index: 1;
    }
    
    .nav-list .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.25);
        transform: translateX(8px);
        color: #000000;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    
    .nav-list .nav-link:active {
        background-color: rgba(255, 255, 255, 0.35);
        transform: translateX(12px);
        color: #000000;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
    }
    
    /* Add icons to mobile menu items */
    .nav-list .nav-link::before {
        content: '';
        display: inline-block;
        width: 24px;
        height: 24px;
        margin-right: 18px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 1;
        filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
    }
    
    .nav-list .nav-link[href="index.html"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
    }
    
    .nav-list .nav-link[href="calendar.html"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z'/%3E%3C/svg%3E");
    }
    
    .nav-list .nav-link[href="sermons.html"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    }
    
    .nav-list .nav-link[href="blog.html"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z'/%3E%3C/svg%3E");
    }
    
    .nav-list .nav-link[href="contact.html"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    }
    
    .nav-list .edit-link::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
    }
    
    /* Special styling for Edit link to indicate admin function */
    .nav-list .edit-link {
        background: linear-gradient(135deg, #ff6b6b, #ee5a24);
        color: white !important;
        border-radius: 20px;
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        transition: all 0.3s ease;
    }
    
    .nav-list .edit-link:hover {
        background: linear-gradient(135deg, #ee5a24, #ff6b6b);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
    }
    
    .nav-list .edit-link.active {
        background: linear-gradient(135deg, #ee5a24, #ff6b6b);
        box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    }
    

    
    /* Mobile menu animations */
    @keyframes slideDown {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .nav-list.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
        z-index: 1001;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 10px;
    }
    
    .language-toggle {
        margin-left: 0;
        margin-right: 1rem;
        transition: all 0.3s ease;
    }
    
    .language-toggle .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Image Modal */
.image-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(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
    transform: scale(1);
}

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

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}



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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Make slideshow images clickable */
.slide-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slide-image img:hover {
    transform: scale(1.02);
}

/* Make other large images clickable */
img[width][height] {
    cursor: pointer;
    transition: transform 0.3s ease;
}

img[width][height]:hover {
    transform: scale(1.02);
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .mobile-menu-backdrop.active {
        display: block;
        opacity: 1;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sermons-controls,
    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .sermons-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .pastor-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .pastor-photo {
        width: 200px;
        height: 200px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .news-meta {
        grid-template-columns: 1fr;
    }
    

    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-actions {
        justify-content: center;
    }
    
    /* Mobile slideshow improvements */
    .slideshow-nav {
        gap: 0.4rem;
        padding: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
    }
    
    .slideshow-control {
        width: 40px;
        height: 40px;
    }
    
    .slideshow-control.prev {
        left: 0.5rem;
    }
    
    .slideshow-control.next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-verse {
        margin: 0 1rem 1.5rem 1rem;
    }
    
    .bible-verse {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .verse-reference {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .sermon-card,
    .blog-card {
        margin: 0 10px;
    }
}

/* Language-specific styles */
[lang="my"] {
    font-family: 'Myanmar Text', 'Pyidaungsu', 'Noto Sans Myanmar', sans-serif;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.lang-btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FF0000;
        --text-dark: #000000;
        --text-light: #FFFFFF;
        --border-color: #000000;
    }
}











/* Edit Dashboard Form Styles */
.event-form,
.news-form,
.settings-form {
    max-width: 600px;
    margin: 0 auto;
}

.event-form h3,
.news-form h3,
.settings-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.event-item,
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background: var(--background-light);
}

.event-info,
.news-info {
    flex: 1;
}

.event-info h4,
.news-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.event-info p,
.news-info p {
    margin: 0.25rem 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.event-actions,
.news-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Upload Success Modal Styles */
.success-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.success-content {
    text-align: center;
    padding: 2rem;
}

.success-content h2 {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.sermon-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: left;
}

.sermon-details p {
    margin: 0.5rem 0;
}

.upload-info {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: left;
    border-left: 4px solid #0066CC;
}

.upload-info h3 {
    color: #0066CC;
    margin-bottom: 0.5rem;
}

.upload-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.upload-info li {
    margin: 0.5rem 0;
}

.upload-info a {
    color: #0066CC;
    text-decoration: underline;
}

.file-info {
    background: #fff3cd;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: left;
    border-left: 4px solid #ffc107;
}

.file-info h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.file-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.file-info li {
    margin: 0.5rem 0;
}

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

.action-buttons .btn {
    min-width: 120px;
}

/* Responsive adjustments for success modal */
@media (max-width: 768px) {
    .success-modal {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .success-content {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Center single category slide */
.slideshow-container:has(.slide-card:only-child) {
    justify-content: center;
    align-items: center;
}

.slideshow-container:has(.slide-card:only-child) .slide-card {
    position: relative;
    transform: none;
    opacity: 1;
}

/* ========================================
   LOGIN SECTION STYLES
   ======================================== */

.login-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    margin: 2rem 0;
}

.login-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.login-info {
    margin-top: 2rem;
}

.login-info p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-actions {
    margin-top: 3rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.login-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Auth buttons in navigation */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Login modal styles */
.login-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: var(--background-gray);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--background-accent);
}

.login-form {
    margin-top: 1.5rem;
}

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

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.login-form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.login-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.login-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-gray);
    border-radius: var(--border-radius);
    text-align: left;
}

.login-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.login-info strong {
    color: var(--text-dark);
}

/* Responsive design for login section */
@media (max-width: 768px) {
    .login-section {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .login-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .auth-buttons {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .login-form .form-actions {
        flex-direction: column;
    }
    
    .login-form .form-actions .btn {
        width: 100%;
    }
}
