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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #d4af37;
    --text-color: #2c2c2c;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-ivy: 'Playfair Display', serif;
}

body {
    font-family: var(--font-inter);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ivy);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-left .logo {
    font-family: var(--font-ivy);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
}

/* Flash Messages */
.flash-messages {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.flash-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 2rem;
    background-color: var(--bg-light);
}

.countdown-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.service-info {
    margin-bottom: 3rem;
}

.service-day {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

.service-time {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.service-location {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 500;
}

.service-address {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.25rem;
}

.countdown-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* Content Section */
.content-section {
    padding: 4rem 2rem;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.content-section h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-section p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.125rem;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-light);
}

/* Info Box */
.info-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

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

.value-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Youth Page */
.youth-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.youth-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.detail-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

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

.detail-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.detail-location {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.detail-address {
    font-size: 1rem;
    color: var(--text-light);
}

.location-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.youth-message {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
}

/* Form Styles */
.form-intro {
    margin-bottom: 3rem;
}

.notification-list {
    list-style: none;
    margin: 1.5rem 0;
}

.notification-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.125rem;
}

.notification-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.signup-form-container {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-container p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-subtitle {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Watch Online Page */
.watch-online-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.watch-online-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.watch-card {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.watch-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.watch-card p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.watch-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.watch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.watch-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.watch-info h3 {
    margin-bottom: 1rem;
}

.cta-box {
    background-color: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-box a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cta-box a:hover {
    opacity: 0.8;
}

/* Admin Page */
.admin-intro {
    margin-bottom: 2rem;
}

.current-service {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.current-service h3 {
    margin-bottom: 1rem;
}

.current-service-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.current-service-info p {
    margin: 0;
    font-size: 1.125rem;
}

.admin-note {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.admin-note p {
    margin: 0;
    color: #856404;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-left .logo {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-logo-img {
        height: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .youth-details {
        grid-template-columns: 1fr;
    }

    .signup-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 28px;
    }

    .hero-logo-img {
        height: 50px;
    }

    .footer-logo-img {
        height: 40px;
    }

    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-item {
        padding: 1.5rem 1rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }
}

