/* -------------------------------------------------------------
   Bibelfest i Lagan 2026 - Main Stylesheet
   Design system based on deep premium tones and gold accents.
------------------------------------------------------------- */

/* Custom Properties / Design Tokens */
:root {
    /* Color Palette */
    --color-primary: #121824;       /* Deep Midnight Blue */
    --color-primary-light: #1e2638; /* Lighter Deep Blue */
    --color-secondary: #0a0d14;     /* Very Dark Slate */
    --color-accent-gold: #FFD479;   /* Pure Gold */
    --color-accent-gold-hover: #ffe4a3;
    --color-accent-red: #ff4a5a;    /* Alert / Live Indicator */
    
    /* Neutral Colors */
    --color-text-light: #f3f4f6;    /* Off-white */
    --color-text-muted: #9ca3af;    /* Gray */
    --color-text-dark: #1f2937;     /* Dark Gray */
    --color-bg-light: #f9fafb;      /* Warm Light Gray */
    --color-bg-white: #ffffff;
    --color-border-light: #e5e7eb;
    --color-border-dark: #2d3748;

    /* Fonts */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;

    /* Transitions & Shadows */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 4px 20px rgba(255, 212, 121, 0.25);
    
    /* Layout */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --header-height: 70px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.hidden {
    display: none!important;
}

.live {
    display: none!important;
}
.no-live {
    display: block;
}

.stream-place-holder {
    display: block;
    border: 0.4vw dashed var(--color-accent-gold);
    border-radius: 25px;
    min-width: 100%;
    padding: 5vw 1vw;
    text-align: center;
    font-size: 3vw;
    color: var(--color-text-muted);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-gold-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.25;
}

/* Reusable Containers & Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.small-container {
    max-width: 760px;
}

.section {
    padding: 5rem 0;
}

.dark-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.light-bg {
    background-color: var(--color-bg-light);
}

.white-bg {
    background-color: var(--color-bg-white);
}

/* Section Header styling */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 1rem;
    margin-top: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-gold);
    border-radius: 2px;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 1rem auto 0;
}

.dark-section .section-header h2 {
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-gold-hover);
    color: var(--color-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    opacity: 0.5;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-gold {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
}

.btn-gold:hover {
    background-color: var(--color-accent-gold-hover);
}

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

.btn-block {
    display: flex;
    width: 100%;
}

/* Icons styling */
.icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.red-badge {
    background-color: rgba(255, 74, 90, 0.15);
    color: var(--color-accent-red);
    border: 1px solid rgba(255, 74, 90, 0.3);
}

.pulsing {
    position: relative;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-red);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(255, 74, 90, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 74, 90, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 74, 90, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 74, 90, 0);
    }
}

/* Sticky Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(18, 24, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

.accent-gold {
    color: var(--color-accent-gold);
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.5rem 0;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--color-text-light);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-gold);
}

.admin-link {
    background-color: rgba(255, 212, 121, 0.1);
    color: var(--color-accent-gold) !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: var(--border-radius-sm);
    border: 1px dashed rgba(255, 212, 121, 0.4);
}

.admin-link:hover {
    background-color: rgba(255, 212, 121, 0.2);
}

/* Mobile Toggle Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-light);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger open state */
.nav-toggle.open .hamburger {
    background-color: transparent;
}
.nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    background-image: 
        radial-gradient(at 50% 0%, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 1) 100%),
        radial-gradient(circle at 10% 20%, rgba(255, 212, 121, 0.05) 0%, transparent 40%);
    color: var(--color-text-light);
    text-align: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, transparent 80%, var(--color-primary) 100%),
        radial-gradient(circle at 80% 80%, rgba(255, 212, 121, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

/* Jubilee Badge with the big 500 */
.jubilee-badge {
    margin: 1rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jubilee-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    line-height: 0.95;
    color: var(--color-accent-gold);
    /* Outline effect using crisp text shadows */
    text-shadow: 
        -2px -2px 0 #121824,  
         2px -2px 0 #121824,
        -2px  2px 0 #121824,
         2px  2px 0 #121824,
         0 6px 30px rgba(255, 212, 121, 0.35);
    letter-spacing: -2px;
    position: relative;
}

.jubilee-label {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--color-accent-gold);
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 212, 121, 0.3);
    border-bottom: 1px solid rgba(255, 212, 121, 0.3);
    padding: 0.4rem 1.5rem;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-light);
    opacity: 0.95;
    line-height: 1.7;
}

.hero-tagline strong {
    color: var(--color-accent-gold);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.hero-meta span {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-meta .icon {
    color: var(--color-accent-gold);
    margin-right: 0.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Livestream & Live-status Section Layout */
.stream-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.stream-video-container {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-ratio-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-ratio-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Stream Info Live Card */
.stream-info-card {
    background: linear-gradient(145deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-info-card .card-title {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

/* Reader profile inside card */
.reader-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reader-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 212, 121, 0.1);
    border: 2px solid var(--color-accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.reader-details .label, .passage-info .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.reader-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.reader-church {
    font-size: 0.85rem;
    color: var(--color-accent-gold);
}

/* Passage Info */
.passage-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.align-right {
    text-align: right;
}

.bible-passage {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent-gold);
}

.live-duration {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* NT Progress bar inside card */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.progress-percent {
    color: var(--color-accent-gold);
    font-weight: 700;
}

.progress-track {
    height: 12px;
    background-color: var(--color-secondary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, var(--color-accent-gold) 100%);
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 212, 121, 0.5);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.gold-text {
    color: var(--color-accent-gold);
}

.stream-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.location-tag svg {
    width: 16px;
    height: 16px;
    fill: var(--color-accent-gold);
}

/* Program / Schedule Section */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.program-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
}

.program-date-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-accent-gold);
}

.program-date-header h3 {
    font-size: 1.3rem;
    color: var(--color-text-light);
}

.date-badge {
    background-color: rgba(255, 212, 121, 0.15);
    color: var(--color-accent-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 212, 121, 0.3);
}

.program-events {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.event-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
}

.event-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    bottom: -1.5rem;
    width: 2px;
    background-color: var(--color-border-light);
}

.event-time {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-sm);
    height: fit-content;
    white-space: nowrap;
}

.event-details {
    flex-grow: 1;
}

.event-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.event-desc {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.event-place {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* Event status markers */
.active-marathon .event-time {
    background-color: rgba(255, 212, 121, 0.15);
    border-color: rgba(255, 212, 121, 0.5);
    color: var(--color-primary);
}

.active-marathon .event-details::before {
    content: '🕒 PÅGÅR KONTINUERLIGT';
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.highlight-event {
    background-color: rgba(255, 212, 121, 0.05);
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--color-accent-gold);
}

.font-gudstjanst {
    border-left: 3px solid var(--color-accent-red);
    background-color: rgba(255, 74, 90, 0.02);
}

/* Extra Activities visual grid */
.activities-box {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid var(--color-border-light);
}

.activities-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: var(--transition-normal);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.activity-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.activity-card h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.activity-card p {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    opacity: 0.8;
}

/* Highlighted activity card */
.accent-card {
    background-color: rgba(255, 212, 121, 0.08);
    border-color: rgba(255, 212, 121, 0.5);
    box-shadow: 0 4px 12px rgba(255, 212, 121, 0.1);
}

.accent-card h4 {
    color: #c59b27;
}

/* Forms & Registrations */
.pattern-bg {
    background-image: 
        radial-gradient(circle at 100% 150%, rgba(255, 212, 121, 0.03) 0%, transparent 60%),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.form-container {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

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

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    font-family: var(--font-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-primary);
    color: var(--color-text-dark);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 212, 121, 0.15);
}

.form-group select option {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.form-group textarea {
    resize: vertical;
}

div.gdpr {
    font-size: 0.75rem; 
    line-height: 1.4; 
    color: var(--color-text-muted);
    margin: 1rem 0;
}

/* Custom Checkboxes Layout */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.25rem;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 2.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-light);
    user-select: none;
    line-height: 1.4;
}

/* Hide native checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkmark Box */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-accent-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
}

/* Inside Checkmark Symbol */
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--color-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-row {
    flex-direction: row;
    align-items: flex-start;
    margin-top: 1rem;
}

.text-small {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Error validation styling */
.error-msg {
    color: var(--color-accent-red);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
    font-weight: 600;
}

.has-error input, .has-error select, .has-error textarea {
    border-color: var(--color-accent-red) !important;
    box-shadow: 0 0 0 3px rgba(255, 74, 90, 0.15) !important;
}

.has-error .error-msg {
    display: block;
}

/* Form Submit Status Messages */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-message.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* OBS Admin / Styrpanel Demo Widget overlay style */
.demo-admin-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 480px;
    max-width: calc(100vw - 40px);
    background-color: #1f2937;
    border: 2px solid var(--color-accent-gold);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 1.5rem;
    color: var(--color-text-light);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.demo-admin-panel.hidden {
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-header h3 {
    font-size: 1.15rem;
    color: var(--color-accent-gold);
}

.close-admin {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-admin:hover {
    color: var(--color-text-light);
}

.admin-intro {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

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

.admin-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.admin-group input, .admin-group select {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
    padding: 0.5rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
}

.admin-group input:focus, .admin-group select:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.admin-status-light {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

/* Footer Section */
.main-footer {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-info h3 {
    font-size: 1.5rem;
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.church-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.church-list span {
    color: var(--color-text-light);
}

.footer-logo-container {
    display: flex;
    justify-content: flex-end;
}

.footer-logo {
    max-width: 280px;
    height: auto;
    opacity: 0.85;
    transition: var(--transition-normal);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 992px) {
    .stream-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-info p {
        margin-right: auto;
        margin-left: auto;
    }
    
    .church-list {
        justify-content: center;
    }
    
    .footer-logo-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    /* Toggle navigation menu on mobile */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-primary);
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-item {
        font-size: 1.2rem;
    }
    
    .nav-item.active::after {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .jubilee-number {
        font-size: 5.5rem;
        text-shadow: 
            -1.5px -1.5px 0 #121824,  
             1.5px -1.5px 0 #121824,
            -1.5px  1.5px 0 #121824,
             1.5px  1.5px 0 #121824,
             0 4px 20px rgba(255, 212, 121, 0.3);
    }
    
    .jubilee-label {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        padding: 0.3rem 1rem;
    }
    
    .hero-tagline {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .form-row.split {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .demo-admin-panel {
        bottom: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: none;
        padding: 1rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* -------------------------------------------------------------
   Public Detailed Reading Schedule Visualizer Styles
------------------------------------------------------------- */
.detailed-schedule-box {
    margin-top: 4rem;
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid var(--color-border-light);
}

.schedule-counter-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -1rem;
    margin-bottom: 1.25rem;
}

.schedule-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition-normal);
}

.schedule-counter-badge.available {
    background-color: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.schedule-counter-badge.full {
    background-color: rgba(255, 212, 121, 0.22);
    color: #854d0e;
    border: 1px solid rgba(217, 119, 6, 0.35);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.4;
    max-width: 600px;
}

.schedule-counter-badge .counter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse-dot 2s infinite;
}

.schedule-counter-badge .counter-dot.full-dot {
    background-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
    animation: none;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.schedule-counter-badge .counter-flex-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 700;
}

.schedule-counter-badge .counter-flex-link:hover {
    color: #000;
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sched-tab-btn {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-dark);
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.sched-tab-btn:hover {
    background-color: rgba(255, 212, 121, 0.1);
    border-color: var(--color-accent-gold);
    color: #b8901c;
}

.sched-tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-accent-gold);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.public-schedule-container {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-md);
    background-color: var(--color-bg-light);
    padding: 0.5rem;
}

/* Custom scrollbars for public schedule container */
.public-schedule-container::-webkit-scrollbar {
    width: 6px;
}
.public-schedule-container::-webkit-scrollbar-track {
    background: transparent;
}
.public-schedule-container::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 3px;
}
.public-schedule-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.public-schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.public-schedule-row {
    display: grid;
    grid-template-columns: 80px 1.5fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.public-schedule-row:hover {
    background-color: rgba(255, 212, 121, 0.03);
    border-left: 5px solid var(--color-accent-gold);
}

.public-schedule-time {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.public-schedule-reader {
    font-weight: 700;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.public-schedule-title {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Style for unfilled slots */
.slot-status-free {
    color: #b8901c;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.slot-status-free:hover {
    color: var(--color-primary);
}

@media (max-width: 600px) {
    .public-schedule-row {
        grid-template-columns: 60px 1fr;
        gap: 0.5rem 1rem;
        padding: 0.6rem 0.8rem;
    }
    
    .public-schedule-title {
        grid-column: 2 / -1;
        margin-top: -0.25rem;
    }
}

/* Booking Interface Layout Styles */
.booking-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.booking-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.booking-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    border-top: 2px dashed var(--color-border-light);
    padding-top: 2.5rem;
}

#detailed-schedule input[type="text"],
#detailed-schedule input[type="email"],
#detailed-schedule input[type="tel"],
#detailed-schedule textarea,
#detailed-schedule select {
    color: #1f2937 !important;
    background-color: #ffffff !important;
    border: 1px solid #9ca3af !important;
}

#detailed-schedule input::placeholder,
#detailed-schedule textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

.day-column {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
}

.day-column h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--color-accent-gold);
    padding-bottom: 0.5rem;
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.slots-container::-webkit-scrollbar {
    width: 4px;
}
.slots-container::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 2px;
}

.slot-item {
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--color-border-light);
    transition: var(--transition-fast);
}

.slot-item.status-available {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    cursor: pointer;
    border-left: 5px solid #10b981;
}

.slot-item.status-available:hover {
    border-color: var(--color-accent-gold);
    background-color: rgba(255, 212, 121, 0.05);
    transform: translateY(-1px);
}

.slot-item.status-available.selected {
    background-color: rgba(255, 212, 121, 0.15);
    border-color: var(--color-accent-gold);
    border-left: 5px solid var(--color-accent-gold);
    color: #b8901c;
}

.slot-item.status-pending {
    background-color: #fef3c7;
    color: #d97706;
    border-left: 5px solid #f59e0b;
    cursor: not-allowed;
    opacity: 0.85;
}

.slot-item.status-confirmed {
    background-color: #f3f4f6;
    color: #4b5563;
    border-left: 5px solid #9ca3af;
    cursor: not-allowed;
}

.slot-time-badge {
    font-weight: 800;
}

.slot-label {
    font-size: 0.8rem;
    font-weight: 600;
}

.selection-summary-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    align-self: start;
}

.selected-slots-list li {
    padding: 0.4rem 0.6rem;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-selected-btn {
    background: none;
    border: none;
    color: var(--color-accent-red);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

.mobile-only-tabs {
    display: none;
}

@media (max-width: 900px) {
    .booking-columns {
        grid-template-columns: 1fr;
    }
    
    .booking-sidebar {
        grid-template-columns: 1fr;
        padding-top: 1.5rem;
        gap: 1.5rem;
    }
    
    .mobile-only-tabs {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .day-column {
        display: none;
    }
    
    .day-column.active {
        display: block;
    }
    
    .day-column h4 {
        display: none; /* Hide since tab shows it */
    }
}

