/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d; /* Deep blue */
    --secondary-color: #d4af37; /* Gold */
    --accent-color: #2d5a27; /* Forest green */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Critical for preventing horizontal scroll */
    position: relative;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    padding-top: 70px; /* Added to prevent content from hiding under fixed header */
}

/* Global Image Fix */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    word-wrap: break-word; /* Prevents long words breaking layout */
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

.hebrew {
    font-family: 'Times New Roman', serif;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.8rem;
}

.hebrew-text {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    direction: rtl;
    color: var(--secondary-color);
}

/* ========== FIXED NAVIGATION BAR ========== */
.header {
    background: linear-gradient(135deg, #1a365d 0%, #0d243f 100%);
    color: white;
    padding: 0.8rem 0;
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid transparent;
    width: 100%;
    background-image: 
        linear-gradient(135deg, #1a365d 0%, #0d243f 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: shimmerBorder 3s infinite alternate;
}

@keyframes shimmerBorder {
    0% { border-bottom-color: #d4af37; }
    50% { border-bottom-color: #2c5282; }
    100% { border-bottom-color: #2d5a27; }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 70px; /* Ensures consistent height */
}

/* Enhanced Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1001;
    max-width: 80%; /* Prevent logo from pushing out */
}

.logo-text h1 {
    margin: 0;
    color: white;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Merriweather', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo-text h1:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.5);
}

.hebrew-logo {
    font-family: 'Times New Roman', serif;
    color: #d4af37;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    animation: hebrewGlow 2s infinite alternate;
}

@keyframes hebrewGlow {
    0% { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
    100% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.9); }
}

/* Enhanced Navigation Menu */
.nav {
    position: relative;
    z-index: 1000;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav__item {
    position: relative;
    text-align: center;
}

.nav__link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
}

.nav__link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(45, 90, 39, 0.1));
    border-radius: 8px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #ffd54f);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav__link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link:hover::after {
    width: 60%;
}

.nav__link:hover i {
    transform: rotate(10deg) scale(1.2);
}

.nav__link.active {
    color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(45, 90, 39, 0.15));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav__link.active::before {
    transform: scaleX(1);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(45, 90, 39, 0.2));
}

.nav__link.active::after {
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffd54f);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.6rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    flex-shrink: 0; /* Prevent shrinking */
}

.nav-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: scale(1.05);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, white);
    position: relative;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger::before { 
    top: -8px; 
    background: linear-gradient(90deg, #2d5a27, white);
}

.hamburger::after { 
    bottom: -8px; 
    background: linear-gradient(90deg, #1a365d, white);
}

.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
    background: #d4af37;
}

.hamburger.active::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: #d4af37;
}

/* Responsive Navigation logic */
@media (max-width: 992px) {
    .nav__list {
        gap: 0.3rem;
    }
    
    .nav__link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px; /* Matches header height */
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(26, 54, 93, 0.98), rgba(13, 36, 63, 0.98));
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-top: 2px solid #d4af37;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .nav__item {
        width: 100%;
    }
    
    .nav__link {
        padding: 1rem 1.5rem;
        justify-content: space-between;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .nav__link:hover {
        transform: translateX(10px);
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 15px;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .nav__link {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }
    
    body {
        padding-top: 65px; /* Slightly reduced for smaller screens */
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    max-width: 100%; /* Prevent button overflow */
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #e6c158);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6c158, var(--secondary-color));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no extra margin since header is fixed */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInLeft 1s ease;
    text-align: left;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease 0.6s both;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--light-color);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.5rem auto;
    border-radius: 2px;
    animation: widthGrow 2s ease infinite alternate;
}

@keyframes widthGrow {
    0% { width: 80px; }
    100% { width: 120px; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for better mobile fit */
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-top-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: white;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    animation: float 8s ease-in-out infinite;
    transform-origin: center center;
    width: 100%; /* Ensure card fits container */
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.service-header {
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
}

.service-details {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.service-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
}

/* Enhanced Compact Countdown Timers */
.service-countdown {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05), rgba(212, 175, 55, 0.05));
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    text-align: center;
    border: 1px solid rgba(26, 54, 93, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.service-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200px 0; }
    50% { background-position: 200px 0; }
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.countdown-label::before {
    content: '⏰';
    font-size: 0.9rem;
}

/* Compact Countdown Container */
.countdown-container-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0.5rem 0;
    flex-wrap: nowrap; /* Keep time on one line if possible, utilize scale for small screens */
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    position: relative;
    flex: 1;
}

.countdown-value {
    font-size: clamp(1.2rem, 3vw, 1.6rem); /* Responsive font size */
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 0.4rem 0.2rem;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.7s ease;
}

.countdown-value:hover::before {
    left: 100%;
}

.countdown-value:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.countdown-unit {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: rgba(26, 54, 93, 0.05);
    padding: 0.2rem 0;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

.countdown-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0 1px;
    animation: blinkSeparator 2s infinite;
    position: relative;
    top: -8px;
}

@keyframes blinkSeparator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Service-specific countdown colors */
.service-card:nth-child(1) .countdown-value {
    color: #3498db;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.service-card:nth-child(2) .countdown-value {
    color: #9b59b6;
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.service-card:nth-child(3) .countdown-value {
    color: #2ecc71;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

/* Next service indicator */
.next-service-indicator {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(45, 90, 39, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulseIndicator 2s infinite;
}

@keyframes pulseIndicator {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.next-service-indicator::before {
    content: '⟳';
    font-size: 0.8rem;
}

/* Live indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e74c3c;
    padding: 0.3rem 0.8rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 12px;
    animation: pulseLive 1s infinite;
    margin-top: 0.5rem;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-indicator::before {
    content: '●';
    animation: blinkLive 1s infinite;
}

@keyframes blinkLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Animation for countdown value updates */
@keyframes countdownUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--secondary-color); }
    100% { transform: scale(1); }
}

.countdown-value.updating {
    animation: countdownUpdate 0.3s ease;
}

.countdown-value.pulse {
    animation: bigPulse 0.6s ease;
}

@keyframes bigPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--secondary-color); }
    100% { transform: scale(1); }
}

.countdown-value.celebrate {
    animation: celebrate 1s ease;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(5deg); }
    50% { transform: scale(1.3) rotate(-5deg); color: #2ecc71; }
    75% { transform: scale(1.3) rotate(5deg); }
}

/* Progress bar for time remaining */
.time-progress {
    height: 3px;
    background: rgba(26, 54, 93, 0.1);
    border-radius: 3px;
    margin-top: 0.8rem;
    overflow: hidden;
    position: relative;
}

.time-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    width: 0%;
    transition: width 1s linear;
    position: relative;
}

.time-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s infinite linear;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Scripture Section */
.scripture-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.scripture-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border: 2px solid var(--secondary-color);
}

.scripture-card::before {
    content: '❝';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 8rem;
    color: var(--secondary-color);
    opacity: 0.1;
    font-family: serif;
    pointer-events: none;
}

.scripture-header {
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.scripture-reference h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.scripture-version {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.scripture-content {
    text-align: center;
}

.scripture-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary-color);
    font-style: italic;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
    position: relative;
    line-height: 1.6;
    border-left: 5px solid var(--accent-color);
    width: 100%;
}

.scripture-text::before {
    content: '"';
    font-size: 5rem;
    color: var(--secondary-color);
    position: absolute;
    top: -20px;
    left: 10px;
    opacity: 0.3;
    font-family: serif;
}

.scripture-text::after {
    content: '"';
    font-size: 5rem;
    color: var(--secondary-color);
    position: absolute;
    bottom: -40px;
    right: 10px;
    opacity: 0.3;
    font-family: serif;
}

.scripture-insight {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--secondary-color);
    text-align: left;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scripture-insight h4 {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    flex-wrap: wrap;
}

.scripture-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.designer{
	color: white;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #ffd54f, var(--secondary-color));
    animation: slide 3s linear infinite;
}

@keyframes slide {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    justify-items: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-col h3,
.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-col ul li:hover {
    transform: translateY(-3px);
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    border-color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Services Teaser */
.services-teaser {
    padding: 6rem 0;
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    position: relative;
}

.teaser-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

.services-mini {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.service-mini-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 220px;
    flex: 1 1 250px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-mini-card:hover::before {
    opacity: 0.1;
}

.service-mini-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.service-mini-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.service-mini-card:hover i {
    transform: scale(1.2) rotate(360deg);
    color: var(--primary-color);
}

.service-mini-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-mini-card:hover h3 {
    color: var(--secondary-color);
}

.service-mini-card p {
    color: #666;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.teaser-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Page Hero for other pages */
.page-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.8)), url('../images/banner.jpg') center/cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: slideDown 1s ease;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideUp 1s ease 0.3s both;
    padding: 0 10px;
}

/* Leadership Section Styles */
.leadership-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.leader-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.leader-card:hover::before {
    transform: scaleX(1);
}

.leader-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.leader-img {
    margin-bottom: 1.5rem;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.leader-card:hover .leader-img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--secondary-color);
}

.leader-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.leader-card:hover h3 {
    color: var(--secondary-color);
}

.leader-position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    display: inline-block;
    transition: var(--transition);
}

.leader-card:hover .leader-position {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.leader-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    width: 100%;
    text-align: left;
    border-left: 3px solid var(--accent-color);
}

.leader-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leader-details i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.leader-course, .leader-year {
    color: var(--dark-color);
}

.leader-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-style: italic;
}

/* Responsive Design Overrides */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        text-align: center;
    }
    
    .scripture-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero, .features, .services-section, .scripture-section, .leadership-section, .services-teaser {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid,
    .services-grid,
    .leadership-grid {
        grid-template-columns: 1fr; 
        max-width: 100%;
    }
    
    .scripture-card {
        padding: 1.5rem;
    }

    .scripture-text {
        font-size: 1.2rem;
        padding: 1.5rem 1rem;
    }
    
    .countdown-value {
        font-size: 1.2rem;
        min-width: 30px;
    }
    
    .countdown-separator {
        font-size: 1rem;
        top: -6px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .countdown-container-compact {
        gap: 2px;
    }
    
    .countdown-value {
        padding: 0.2rem;
        font-size: 1rem;
    }

    .footer-col {
        text-align: center;
    }
    
    .footer-col h3::after, 
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}