/* Youth Section - Base Styles */
/* Modern, mobile-first design for teenagers aged 13-18 */

/* Import image optimization styles */
@import url('youth-image-optimization.css');

/* Disable native pull-to-refresh on mobile (Chrome Android, Safari iOS) */
body {
  overscroll-behavior-y: none;
}

:root {
    /* Youth-specific color palette */
    --youth-primary: #6366f1;
    --youth-primary-dark: #4f46e5;
    --youth-secondary: #8b5cf6;
    --youth-accent: #ec4899;
    --youth-success: #10b981;
    --youth-warning: #f59e0b;
    --youth-danger: #ef4444;
    
    /* Light mode colors */
    --youth-bg: #ffffff;
    --youth-bg-secondary: #f9fafb;
    --youth-text: #111827;
    --youth-text-secondary: #6b7280;
    --youth-border: #e5e7eb;
    
    /* Spacing */
    --youth-spacing-xs: 0.5rem;
    --youth-spacing-sm: 1rem;
    --youth-spacing-md: 1.5rem;
    --youth-spacing-lg: 2rem;
    --youth-spacing-xl: 3rem;
    
    /* Typography */
    --youth-font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --youth-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Border radius - modern, friendly */
    --youth-radius-sm: 0.5rem;
    --youth-radius-md: 0.75rem;
    --youth-radius-lg: 1rem;
    --youth-radius-xl: 1.25rem;
    --youth-radius-2xl: 1.5rem;
    --youth-radius-pill: 9999px;
    
    /* Shadows - soft, layered */
    --youth-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --youth-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.06);
    --youth-shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    --youth-shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    --youth-shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.1), 0 4px 14px -2px rgba(99, 102, 241, 0.2);
    
    /* Transitions - snappy, modern */
    --youth-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --youth-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --youth-ease-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Aliases for Q&A, forms, and components that expect these names (light mode) */
    --primary-color: var(--youth-primary);
    --primary-color-dark: var(--youth-primary-dark);
    --secondary-color: var(--youth-secondary);
    --card-bg: var(--youth-bg-secondary);
    --bg-color: var(--youth-bg);
    --text-color: var(--youth-text);
    --heading-color: var(--youth-text);
    --text-muted: var(--youth-text-secondary);
    --border-color: var(--youth-border);
}

/* In-site light mode: native UI (scrollbars, inputs) follows toggle, not device preference */
html:not(.dark-mode) {
    color-scheme: light;
}

/* Base body so standalone youth pages (Q&A, submit) have correct background and text */
body {
    font-family: var(--youth-font-base);
    color: var(--youth-text);
    background-color: var(--youth-bg);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent flash of unstyled Alpine content before init */
[x-cloak] {
    display: none !important;
}

/* Base layout for standalone youth pages (Q&A, submit, etc.) when main site CSS is not loaded */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.youth-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--youth-border);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--youth-shadow-sm);
}

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

.youth-nav .nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--youth-primary);
    text-decoration: none;
    transition: var(--youth-transition);
}

.youth-nav .nav-logo:hover {
    color: var(--youth-primary-dark);
    transform: translateY(-1px);
}

.youth-nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.youth-nav .nav-links a {
    color: var(--youth-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--youth-radius-lg);
    transition: var(--youth-transition);
}

.youth-nav .nav-links a:hover,
.youth-nav .nav-links a.active {
    color: var(--youth-primary);
    background: rgba(99, 102, 241, 0.08);
}

.theme-toggle-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.theme-toggle-container .theme-toggle-btn {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-pill);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--youth-transition);
    box-shadow: var(--youth-shadow-md);
}

.theme-toggle-container .theme-toggle-btn:hover {
    background: var(--youth-primary);
    border-color: var(--youth-primary);
    color: white;
    transform: scale(1.08);
    box-shadow: var(--youth-shadow-glow);
}

.youth-footer {
    background: var(--youth-bg-secondary);
    border-top: 1px solid var(--youth-border);
    padding: 2.5rem 0;
    margin-top: 4rem;
    color: var(--youth-text-secondary);
}

.youth-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.youth-footer p {
    margin: 0;
    font-size: 0.875rem;
}

.youth-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.youth-footer .footer-links a {
    color: var(--youth-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.youth-footer .footer-links a:hover {
    color: var(--youth-primary);
}

/* Section header used on Q&A and form pages - modern, youth-friendly */
.section-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--youth-primary);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 33%;
    height: 3px;
    background: linear-gradient(90deg, var(--youth-primary), var(--youth-secondary));
    border-radius: 0 2px 2px 0;
}

.section-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--youth-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--youth-text-secondary);
    margin: 0;
    max-width: 42ch;
}

/* Youth Main Container */
.youth-main {
    font-family: var(--youth-font-base);
    color: var(--youth-text);
    background-color: var(--youth-bg);
    min-height: 60vh;
    padding: 2.5rem 0 5rem;
}

/* Homepage: hero starts immediately below header (no gap) */
.youth-main:has(> .youth-hero:first-child) {
    padding-top: 0;
}

/* Youth Hero Section - modern gradient, vibrant */
.youth-hero {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 50%, #a855f7 100%);
    background-size: 200% 200%;
    color: white;
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

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

.youth-hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--youth-spacing-md);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.youth-hero-subtitle {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    margin-bottom: var(--youth-spacing-lg);
    opacity: 0.95;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.youth-hero-welcome {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

/* Theme Toggle */
.theme-toggle-wrapper {
    position: absolute;
    top: var(--youth-spacing-md);
    right: var(--youth-spacing-md);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--youth-transition);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Hero Banners */
.youth-hero-banners {
    margin-top: var(--youth-spacing-lg);
}

.banner-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    min-height: 200px;
    position: relative;
    overflow: clip;
}

/* Stack banner slides for smooth transitions */
.banner-container .banner-slide {
    display: block;
    width: 100%;
}

.banner-slide h2 {
    font-size: 1.75rem;
    margin-bottom: var(--youth-spacing-sm);
}

.banner-slide p {
    font-size: 1.125rem;
    margin-bottom: var(--youth-spacing-md);
    opacity: 0.9;
}

.banner-controls {
    display: flex;
    justify-content: center;
    gap: var(--youth-spacing-sm);
    margin-top: var(--youth-spacing-md);
}

.banner-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px; /* Touch-friendly minimum */
    height: 44px; /* Touch-friendly minimum */
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--youth-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Quick Access Section */
.youth-quick-access {
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    background-color: var(--youth-bg-secondary);
}

.youth-quick-access .section-title {
    margin-bottom: var(--youth-spacing-xl);
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: var(--youth-spacing-lg);
    color: var(--youth-text);
}

/* Legacy quick-access (kept for any other pages) */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--youth-spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.quick-access-card {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-xl);
    padding: var(--youth-spacing-lg);
    text-align: center;
    text-decoration: none;
    color: var(--youth-text);
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
    border: 2px solid var(--youth-border);
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--youth-shadow-glow);
    border-color: var(--youth-primary);
    background: var(--youth-bg);
}

.quick-access-card .card-icon {
    font-size: 3rem;
    margin-bottom: var(--youth-spacing-sm);
}

.quick-access-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-xs);
    color: var(--youth-text);
}

.quick-access-card p {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

/* App-icon home screen – phone-style: single icon + label below */
.youth-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem 0.75rem;
    max-width: 520px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.youth-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--youth-text);
    transition: var(--youth-transition);
    min-width: 0;
    padding: var(--youth-spacing-xs);
    min-height: 44px;
}

.youth-app-icon:hover {
    transform: scale(1.06);
}

.youth-app-icon:active {
    transform: scale(0.98);
}

.youth-app-icon__glyph {
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    background: var(--youth-bg);
    border-radius: 1rem;
    box-shadow: var(--youth-shadow-sm);
    margin-bottom: 0.375rem;
    flex-shrink: 0;
    transition: var(--youth-transition);
}

.youth-app-icon:hover .youth-app-icon__glyph {
    box-shadow: var(--youth-shadow-glow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
}

.youth-app-icon__label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: var(--youth-text);
    max-width: 4.5rem;
    overflow: clip;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Buttons - modern, touch-friendly */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--youth-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--youth-transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 48px;
    min-width: 44px;
    box-shadow: var(--youth-shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--youth-primary), var(--youth-primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--youth-primary-dark), #4338ca);
    transform: translateY(-2px);
    box-shadow: var(--youth-shadow-glow);
}

.btn-secondary {
    background: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 2px solid var(--youth-border);
}

.btn-secondary:hover {
    background: var(--youth-border);
    border-color: var(--youth-text-secondary);
    transform: translateY(-2px);
    box-shadow: var(--youth-shadow-md);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .youth-hero-title {
        font-size: 2rem;
    }
    
    .youth-hero-subtitle {
        font-size: 1rem;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .youth-app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--youth-spacing-md);
        max-width: 100%;
    }
    
    .youth-app-icon__glyph {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.875rem;
    }
    
    .youth-app-icon__label {
        font-size: 0.6875rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .youth-app-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 640px;
    }
}

@media (min-width: 1025px) {
    .youth-app-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 480px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .quick-access-card:active {
        transform: scale(0.98);
    }
    
    .youth-app-icon:active {
        transform: scale(0.94);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Accessibility - fixed so it doesn't scroll into view (stays off-screen until focused) */
.skip-link {
    position: fixed;
    top: -100px;
    left: 0.5rem;
    background: var(--youth-primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10001;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.5rem;
    outline: 2px solid var(--youth-primary);
    outline-offset: 2px;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--youth-primary);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notification styles */
.youth-notification {
    position: fixed;
    bottom: var(--youth-spacing-md);
    right: var(--youth-spacing-md);
    background: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    box-shadow: var(--youth-shadow-lg);
    max-width: 400px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

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

.youth-notification-success {
    border-left: 4px solid var(--youth-success);
}

.youth-notification-error {
    border-left: 4px solid var(--youth-danger);
}

.youth-notification-info {
    border-left: 4px solid var(--youth-primary);
}

.youth-notification-warning {
    border-left: 4px solid var(--youth-warning);
}

/* Online Status Indicator */
.online-status-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
    transition: var(--youth-transition);
    box-shadow: var(--youth-shadow-md);
}

.online-status-indicator.online {
    background-color: var(--youth-success);
    color: white;
    opacity: 0;
    pointer-events: none;
}

.online-status-indicator.offline {
    background-color: var(--youth-warning);
    color: white;
    opacity: 1;
    pointer-events: auto;
}

/* Show online indicator briefly when status changes */
.online-status-indicator.online.show {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* PWA Install Button */
#pwa-install-button {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--youth-primary);
    color: white;
    border: none;
    border-radius: var(--youth-radius-lg);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--youth-shadow-lg);
    z-index: 1000;
    transition: var(--youth-transition);
}

#pwa-install-button:hover {
    background-color: var(--youth-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
}

#pwa-install-button:active {
    transform: translateY(0);
}

/* Notification Styles */
.youth-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-lg);
    z-index: 1001;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

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

.youth-notification-success {
    background-color: var(--youth-success);
    color: white;
}

.youth-notification-error {
    background-color: var(--youth-danger);
    color: white;
}

.youth-notification-info {
    background-color: var(--youth-primary);
    color: white;
}

.youth-notification-warning {
    background-color: var(--youth-warning);
    color: white;
}

.youth-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.youth-notification .btn-link {
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-left: 0.5rem;
}

.youth-notification .btn-link:hover {
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .online-status-indicator {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    #pwa-install-button {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .youth-notification {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
        font-size: 0.875rem;
    }
}


/* ===================================
   Search Styles
   =================================== */

.search-container {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: var(--youth-radius-lg);
  background: var(--card-bg);
  color: var(--text-color);
  transition: var(--youth-transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.search-clear-btn:hover {
  color: var(--text-color);
}

.search-status {
  min-height: 1.5rem;
}

.search-loading {
  color: var(--text-muted);
  font-style: italic;
}

.search-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Popular Searches */
.popular-searches {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.popular-searches h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-button {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Search Results */
.search-results {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results-message {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.suggestions {
  margin-top: 2rem;
}

.suggestions p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Result Groups */
.results-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-group {
  margin-bottom: 1rem;
}

.result-group-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-count {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: normal;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Result Cards */
.result-card {
  display: block;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s;
}

.result-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.result-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-color);
  flex: 1;
}

.result-title mark {
  background: var(--highlight-bg);
  color: var(--highlight-color);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
}

.result-type-badge {
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.result-excerpt mark {
  background: var(--highlight-bg);
  color: var(--highlight-color);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.result-meta span:not(:last-child)::after {
  content: '•';
  margin-left: 1rem;
  color: var(--border-color);
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-tags .tag {
  padding: 0.25rem 0.75rem;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .search-input {
    font-size: 1rem;
    padding: 0.875rem 2.5rem 0.875rem 0.875rem;
  }

  .result-card {
    padding: 1rem;
  }

  .result-title {
    font-size: 1.125rem;
  }

  .result-header {
    flex-direction: column;
    align-items: start;
  }

  .result-type-badge {
    align-self: flex-start;
  }
}


/* ========================================
   Devotionals Section Styles
   ======================================== */

/* Section Header */
.youth-section-header {
    padding: var(--youth-spacing-lg) 0;
    border-bottom: 2px solid var(--youth-border);
    margin-bottom: var(--youth-spacing-lg);
}

.youth-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.youth-page-subtitle {
    font-size: 1.125rem;
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

/* Streak Counter */
.streak-counter {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-lg);
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-md);
    margin-top: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-md);
}

.streak-icon {
    font-size: 3rem;
    line-height: 1;
}

.streak-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.streak-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.streak-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.streak-message {
    flex: 1;
    font-size: 1rem;
    opacity: 0.95;
}

/* Filters */
.devotionals-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--youth-spacing-md);
    padding: var(--youth-spacing-md) 0;
    margin-bottom: var(--youth-spacing-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-sm);
}

.filter-label {
    font-weight: 600;
    color: var(--youth-text);
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    background-color: var(--youth-bg);
    color: var(--youth-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--youth-transition);
    min-width: 200px;
}

.filter-select:hover {
    border-color: var(--youth-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--youth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-sm);
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.stat-item strong {
    color: var(--youth-primary);
    font-weight: 700;
}

.stat-separator {
    color: var(--youth-border);
}

/* Devotionals List */
.devotionals-list {
    padding-bottom: var(--youth-spacing-xl);
}

.devotionals-groups {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-xl);
}

.devotional-series-group {
    margin-bottom: var(--youth-spacing-lg);
}

.series-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
    padding-bottom: var(--youth-spacing-sm);
    border-bottom: 3px solid var(--youth-primary);
    display: inline-block;
}

.devotionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--youth-spacing-md);
}

/* Devotional Card */
.devotional-card {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-lg);
    overflow: clip;
    transition: var(--youth-transition);
    position: relative;
}

.devotional-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--youth-shadow-lg);
    border-color: var(--youth-primary);
}

.devotional-card.completed {
    border-color: var(--youth-success);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 0%, var(--youth-bg) 100%);
}

.devotional-link {
    display: block;
    padding: var(--youth-spacing-md);
    text-decoration: none;
    color: inherit;
}

.devotional-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--youth-spacing-sm);
}

.devotional-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.devotional-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--youth-primary);
}

.devotional-time {
    font-size: 0.75rem;
    color: var(--youth-text-secondary);
}

.devotional-status {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.status-badge.completed {
    background-color: var(--youth-success);
    color: white;
}

.status-badge.favorite {
    background-color: var(--youth-warning);
    color: white;
}

.devotional-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
    line-height: 1.3;
}

.devotional-scripture {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--youth-spacing-sm);
    padding: 0.5rem;
    background-color: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-sm);
}

.scripture-icon {
    font-size: 1rem;
}

.scripture-ref {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--youth-primary);
}

.devotional-excerpt {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--youth-spacing-md);
}

.devotional-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--youth-spacing-sm);
    border-top: 1px solid var(--youth-border);
}

.devotional-author {
    font-size: 0.75rem;
    color: var(--youth-text-secondary);
    font-style: italic;
}

.devotional-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text-secondary);
    border-radius: var(--youth-radius-sm);
    font-weight: 500;
}

/* Loading and Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: var(--youth-spacing-xl);
    color: var(--youth-text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--youth-border);
    border-top-color: var(--youth-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--youth-spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .youth-page-title {
        font-size: 1.75rem;
    }
    
    .streak-counter {
        flex-direction: column;
        text-align: center;
    }
    
    .streak-message {
        text-align: center;
    }
    
    .devotionals-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .devotionals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .youth-page-title {
        font-size: 1.5rem;
    }
    
    .streak-icon {
        font-size: 2rem;
    }
    
    .streak-number {
        font-size: 1.5rem;
    }
}


/* ========================================
   Devotional Reader Styles
   ======================================== */

.devotional-reader {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--youth-spacing-lg) 0;
}

.devotional-reader-header {
    margin-bottom: var(--youth-spacing-xl);
    padding-bottom: var(--youth-spacing-lg);
    border-bottom: 2px solid var(--youth-border);
}

.devotional-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-md);
}

.series-badge,
.date-badge,
.time-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.series-badge {
    background-color: var(--youth-primary);
    color: white;
}

.date-badge {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
}

.time-badge {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text-secondary);
}

.devotional-reader-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--youth-text);
    line-height: 1.2;
    margin-bottom: var(--youth-spacing-sm);
}

.devotional-author-info {
    font-size: 1rem;
    color: var(--youth-text-secondary);
    font-style: italic;
}

.devotional-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-top: var(--youth-spacing-md);
    flex-wrap: wrap;
}

.btn-favorite-active {
    background-color: var(--youth-warning);
    color: white;
    border-color: var(--youth-warning);
}

.btn-favorite-active:hover {
    background-color: #d97706;
}

/* Scripture Section */
.devotional-scripture-section {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-xl);
    border-radius: var(--youth-radius-lg);
    margin-bottom: var(--youth-spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-lg);
}

.scripture-icon-large {
    font-size: 4rem;
    line-height: 1;
    flex-shrink: 0;
}

.scripture-content {
    flex: 1;
}

.scripture-reference {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--youth-spacing-sm);
}

.scripture-text {
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    opacity: 0.95;
}

/* Main Content */
.devotional-content {
    margin-bottom: var(--youth-spacing-xl);
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--youth-text);
}

.content-text p {
    margin-bottom: var(--youth-spacing-md);
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Reflection Section */
.devotional-reflection {
    background-color: var(--youth-bg-secondary);
    padding: var(--youth-spacing-lg);
    border-radius: var(--youth-radius-lg);
    border-left: 4px solid var(--youth-primary);
    margin-bottom: var(--youth-spacing-xl);
}

.reflection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.reflection-intro {
    font-size: 1rem;
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

.reflection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reflection-item {
    font-size: 1rem;
    color: var(--youth-text);
    padding: var(--youth-spacing-sm) 0;
    padding-left: var(--youth-spacing-lg);
    position: relative;
    line-height: 1.6;
}

.reflection-item::before {
    content: '💭';
    position: absolute;
    left: 0;
    top: var(--youth-spacing-sm);
}

.reflection-item:not(:last-child) {
    border-bottom: 1px solid var(--youth-border);
}

/* Tags Section */
.devotional-tags-section {
    margin-bottom: var(--youth-spacing-xl);
}

.tags-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--youth-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--youth-spacing-sm);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
}

.tag-large {
    padding: 0.5rem 1rem;
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--youth-border);
    transition: var(--youth-transition);
}

.tag-large:hover {
    border-color: var(--youth-primary);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Navigation */
.devotional-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--youth-spacing-md);
    padding-top: var(--youth-spacing-lg);
    border-top: 2px solid var(--youth-border);
    flex-wrap: wrap;
}

/* Responsive Design for Reader */
@media (max-width: 768px) {
    .devotional-reader-title {
        font-size: 2rem;
    }
    
    .devotional-scripture-section {
        flex-direction: column;
        text-align: center;
    }
    
    .scripture-icon-large {
        font-size: 3rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .devotional-navigation {
        flex-direction: column;
    }
    
    .devotional-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .devotional-reader-title {
        font-size: 1.75rem;
    }
    
    .devotional-meta-info {
        flex-direction: column;
    }
    
    .devotional-actions {
        flex-direction: column;
    }
    
    .devotional-actions .btn {
        width: 100%;
    }
}


/* ========================================
   Online Status Indicator
   ======================================== */

.online-status-indicator {
    position: fixed;
    top: 80px;
    right: var(--youth-spacing-md);
    padding: 0.5rem 1rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
}

.online-status-indicator.online {
    background-color: var(--youth-success);
    color: white;
    opacity: 0;
    pointer-events: none;
}

.online-status-indicator.offline {
    background-color: var(--youth-danger);
    color: white;
    opacity: 1;
}

/* Show online indicator briefly when coming back online */
.online-status-indicator.online.show-briefly {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

@media (max-width: 768px) {
    .online-status-indicator {
        top: 60px;
        right: var(--youth-spacing-sm);
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}


/* ===================================
   Questions & Answers Section Styles
   =================================== */

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-lg);
    background: var(--card-bg);
    color: var(--text-color);
    transition: var(--youth-transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.search-clear-btn:hover {
    color: var(--text-color);
}

/* Filter Container */
.filter-container {
    max-width: 600px;
    margin: 1rem auto 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-container label {
    font-weight: 600;
    color: var(--text-color);
}

.category-select {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-lg);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--youth-transition);
}

.category-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Submit CTA - modern gradient block */
.submit-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--youth-radius-xl);
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--youth-shadow-md);
}

.submit-cta p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.submit-cta .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.submit-cta .btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

/* Questions Grid (for popular questions) */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.question-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-xl);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--youth-transition);
    display: block;
    box-shadow: var(--youth-shadow-sm);
}

.question-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.1);
}

.question-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    line-height: 1.4;
}

/* Questions List (for search results and all questions) */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.question-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-xl);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--youth-transition);
    display: block;
    box-shadow: var(--youth-shadow-sm);
}

.question-item:hover {
    border-color: var(--primary-color);
    transform: translateX(6px);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 4px 14px -2px rgba(0, 0, 0, 0.08);
}

.question-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
    line-height: 1.4;
}

.question-preview {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Question Meta */
.question-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--youth-primary-dark));
    color: white;
    border-radius: var(--youth-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--youth-shadow-sm);
}

.helpful-count {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Search Highlighting */
mark {
    background-color: #ffd700;
    color: #000;
    padding: 0 0.2em;
    border-radius: 2px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.no-results a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Section Headers */
.popular-questions h2,
.search-results h2,
.all-questions h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .questions-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-container label {
        text-align: left;
    }

    .submit-cta {
        padding: 1.5rem;
    }

    .submit-cta p {
        font-size: 1.125rem;
    }
}


/* ===================================
   Question Submission Form Styles
   =================================== */

/* Info Box - friendly callout */
.info-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--youth-radius-xl);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--youth-shadow-sm);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Crisis Alert */
.crisis-alert {
    background: #fff3cd;
    border: 3px solid #ff6b6b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    color: #000;
}

.crisis-alert h3 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.crisis-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.crisis-resource {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ff6b6b;
}

.crisis-resource strong {
    display: block;
    color: #d32f2f;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.crisis-resource p {
    margin: 0.5rem 0;
    color: #000;
}

.crisis-resource a {
    color: #d32f2f;
    font-weight: bold;
    text-decoration: underline;
}

.crisis-note {
    margin-top: 1rem;
    font-weight: 600;
    color: #d32f2f;
}

/* Submission Form */
.submission-form {
    max-width: 700px;
    margin: 2rem auto;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-lg);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--youth-transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.field-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}

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

/* Error Messages */
.error-messages {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.error-message {
    color: #c62828;
    margin: 0.5rem 0;
    font-weight: 600;
}

.error-message:first-child {
    margin-top: 0;
}

.error-message:last-child {
    margin-bottom: 0;
}

/* Success Message */
.success-message {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.success-message h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: #1b5e20;
    margin: 0.75rem 0;
}

.success-message .btn {
    margin-top: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* Privacy Note */
.privacy-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .crisis-resources {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .info-box,
    .crisis-alert {
        padding: 1.25rem;
    }
}


/* ===================================
   Question Detail Page Styles
   =================================== */

/* Loading and Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.error-state h2 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Question Detail */
.question-detail {
    max-width: 800px;
    margin: 0 auto;
}

/* Question Content - modern card */
.question-content {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--youth-shadow-sm);
}

.question-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.question-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.question-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.question-header h1 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Answer Section */
.answer-section {
    margin-top: 2rem;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.answer-header h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 0;
}

.answer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.answer-author {
    font-weight: 600;
    color: var(--primary-color);
}

.answer-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.answer-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.answer-content p {
    margin-bottom: 1rem;
}

.answer-content strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* Scripture References */
.scripture-references {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.scripture-references h3 {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.scripture-card {
    background: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.scripture-card strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.scripture-card p {
    color: var(--text-color);
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* Helpful Section */
.helpful-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.helpful-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.btn-helpful {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-helpful:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-helpful:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-helpful.marked {
    background: #4caf50;
}

.helpful-count {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Related Questions */
.related-questions {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.related-questions h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: block;
    padding: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.related-item h3 {
    font-size: 1rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.related-item .category-badge {
    font-size: 0.75rem;
}

/* Question CTA */
.question-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.question-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.question-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.question-cta .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.question-cta .btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .question-content {
        padding: 1.5rem;
    }

    .question-header h1 {
        font-size: 1.5rem;
    }

    .answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .answer-meta {
        align-items: flex-start;
    }

    .related-questions,
    .question-cta {
        padding: 1.5rem;
    }
}


/* ========================================
   Events Calendar Styles
   ======================================== */

/* Events Controls */
.events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-lg);
    gap: var(--youth-spacing-md);
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--youth-bg-secondary);
    padding: 0.25rem;
    border-radius: var(--youth-radius-md);
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--youth-radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--youth-transition);
    color: var(--youth-text-secondary);
}

.view-toggle-btn.active {
    background: white;
    color: var(--youth-primary);
    box-shadow: var(--youth-shadow-sm);
}

.view-toggle-btn:hover {
    color: var(--youth-primary);
}

.events-filters {
    display: flex;
    gap: var(--youth-spacing-sm);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    background: white;
    color: var(--youth-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--youth-transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--youth-primary);
    outline: none;
}

/* Calendar View */
.events-calendar-view {
    margin-bottom: var(--youth-spacing-xl);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--youth-spacing-md);
}

.calendar-event-card {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-md);
    cursor: pointer;
    transition: var(--youth-transition);
    border-left: 4px solid var(--youth-primary);
}

.calendar-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--youth-shadow-lg);
}

/* Event Type Colors */
.event-type-worship_night {
    border-left-color: #8b5cf6;
}

.event-type-retreat {
    border-left-color: #ec4899;
}

.event-type-service_project {
    border-left-color: #10b981;
}

.event-type-social {
    border-left-color: #f59e0b;
}

.event-type-missions {
    border-left-color: #ef4444;
}

.event-type-class {
    border-left-color: #3b82f6;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    padding: 0.5rem;
    margin-bottom: var(--youth-spacing-sm);
    width: fit-content;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--youth-primary);
    letter-spacing: 0.05em;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    line-height: 1;
}

.event-card-content {
    margin-top: var(--youth-spacing-sm);
}

.event-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-card-type {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    margin-bottom: 0.25rem;
}

.event-card-time,
.event-card-location {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    margin-bottom: 0.25rem;
}

.event-card-capacity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.event-full-badge {
    background: var(--youth-danger);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: var(--youth-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* List View */
.events-list-view {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-md);
}

.event-list-item {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-md);
    display: flex;
    gap: var(--youth-spacing-md);
    border-left: 4px solid var(--youth-primary);
    transition: var(--youth-transition);
}

.event-list-item:hover {
    box-shadow: var(--youth-shadow-lg);
}

.event-list-date {
    flex-shrink: 0;
}

.event-list-content {
    flex: 1;
}

.event-list-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: var(--youth-spacing-sm);
    margin-bottom: 0.5rem;
}

.event-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--youth-text);
    line-height: 1.3;
}

.event-type-badge {
    background: var(--youth-bg-secondary);
    color: var(--youth-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--youth-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.event-list-description {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-sm);
    line-height: 1.6;
}

.event-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-sm);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.event-list-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-top: var(--youth-spacing-sm);
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: var(--youth-spacing-xl);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-lg);
}

.no-events-message p {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .events-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .view-toggle-btn {
        flex: 1;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .event-list-item {
        flex-direction: column;
    }
    
    .event-list-header {
        flex-direction: column;
        align-items: start;
    }
}


/* ========================================
   Event Detail Page Styles
   ======================================== */

.event-detail {
    max-width: 900px;
    margin: 0 auto;
}

.event-detail-header {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-xl);
    border-radius: var(--youth-radius-xl);
    margin-bottom: var(--youth-spacing-lg);
    display: flex;
    gap: var(--youth-spacing-md);
    align-items: start;
}

.event-detail-date {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.event-detail-date .event-month {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.event-detail-date .event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-detail-title-section {
    flex: 1;
}

.event-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1.2;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--youth-spacing-md);
    margin-bottom: var(--youth-spacing-lg);
}

.event-meta-card {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-sm);
}

.meta-icon {
    font-size: 1.5rem;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--youth-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.meta-value {
    font-size: 1rem;
    color: var(--youth-text);
    font-weight: 500;
}

.rsvp-status-banner {
    background: var(--youth-success);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-lg);
}

.event-full-banner {
    background: var(--youth-warning);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-lg);
}

.event-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-xl);
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.event-section {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-sm);
}

.event-section .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
}

.event-description {
    color: var(--youth-text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.event-schedule {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-sm);
}

.schedule-item {
    display: flex;
    gap: var(--youth-spacing-md);
    padding: var(--youth-spacing-sm);
    border-left: 3px solid var(--youth-primary);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-sm);
}

.schedule-time {
    min-width: 120px;
    font-weight: 600;
    color: var(--youth-primary);
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}

.schedule-activity {
    color: var(--youth-text);
    flex: 1;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--youth-text-secondary);
}

.event-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--youth-success);
    font-weight: 600;
}

.event-leaders {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.leader-badge {
    background: var(--youth-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.event-info-box {
    background: var(--youth-bg-secondary);
    border-left: 4px solid var(--youth-primary);
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-sm);
}

.event-info-box p {
    margin: 0;
    color: var(--youth-text-secondary);
    line-height: 1.6;
}

.event-deadline-box {
    background: var(--youth-warning);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    text-align: center;
    font-weight: 500;
}

.event-address {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--youth-spacing-md);
}

.modal-content {
    background: white;
    border-radius: var(--youth-radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--youth-shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--youth-spacing-lg);
    border-bottom: 1px solid var(--youth-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--youth-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--youth-text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--youth-transition);
}

.modal-close:hover {
    background: var(--youth-bg-secondary);
    color: var(--youth-text);
}

.modal-body {
    padding: var(--youth-spacing-lg);
}

.form-group {
    margin-bottom: var(--youth-spacing-md);
}

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

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    font-size: 1rem;
    transition: var(--youth-transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--youth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    cursor: pointer;
}

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

.checkbox-label span {
    flex: 1;
    color: var(--youth-text-secondary);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    justify-content: flex-end;
    margin-top: var(--youth-spacing-lg);
}

.loading-state,
.error-state {
    text-align: center;
    padding: var(--youth-spacing-xl);
}

.error-state h2 {
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
}

.error-state p {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-lg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .event-detail-header {
        flex-direction: column;
    }
    
    .event-detail-date {
        align-self: flex-start;
    }
    
    .event-detail-title {
        font-size: 1.5rem;
    }
    
    .event-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        width: 100%;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .schedule-time {
        min-width: auto;
    }
    
    .modal-content {
        margin: var(--youth-spacing-sm);
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* ========================================
   Alpine.js x-transition utilities
   (Tailwind replacement - for rotating banners, modals, etc.)
   ======================================== */
.transition {
    transition-property: color, background-color, border-color, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.duration-300 { transition-duration: 300ms; }
.duration-200 { transition-duration: 200ms; }
.opacity-0 { opacity: 0 !important; }
.opacity-100 { opacity: 1 !important; }
.transform { transform: translateZ(0); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0); }


/* ========================================
   Small Groups Styles
   ======================================== */

/* Small Groups Controls */
.small-groups-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: var(--primary-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Small Groups Grid */
.small-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .small-groups-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Group Card */
.small-group-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.small-group-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.small-group-card.group-full {
  opacity: 0.7;
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.group-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.group-type-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Group Status Bar */
.group-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.group-capacity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.capacity-icon {
  font-size: 1.1rem;
}

.group-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-open {
  background: #10b981;
  color: white;
}

.status-full {
  background: #ef4444;
  color: white;
}

/* Group Description */
.group-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Group Info Section */
.group-info-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
}

.group-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Current Study */
.group-current-study {
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.group-current-study strong {
  color: var(--primary-color);
}

/* Expectations List */
.group-expectations {
  font-size: 0.9rem;
}

.group-expectations strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.expectations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expectations-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.5;
}

.expectations-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Leader Contact */
.group-leader-contact {
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  font-size: 0.9rem;
}

.group-leader-contact strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Group Card Actions */
.group-card-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* Start Group Section */
.start-group-section {
  margin-top: 3rem;
}

.highlight-card {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.start-group-requirements {
  margin: 1.5rem 0;
}

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

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.requirements-list li {
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.requirements-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.start-group-cta {
  margin-top: 2rem;
  text-align: center;
}

.cta-subtext {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cta-subtext a {
  color: var(--primary-color);
  text-decoration: none;
}

.cta-subtext a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: clip;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Group Info Banner (signup page) */
.group-info-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.group-info-content {
  max-width: 800px;
}

.group-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.group-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.group-info-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Sections */
.form-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

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

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-help-text {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.required-checkbox {
  font-weight: 600;
}

/* Consent Box */
.consent-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
}

.consent-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column-reverse;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Success Message Overlay */
.success-message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.success-message-box {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.success-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .success-actions {
    flex-direction: column;
  }
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-results-message p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}


/* Testimonies Section */
.youth-testimonies {
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    background-color: var(--youth-bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-lg);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--youth-text);
    margin: 0;
}

.view-all-link {
    color: var(--youth-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--youth-transition);
}

.view-all-link:hover {
    color: var(--youth-primary-dark);
    text-decoration: underline;
}

.testimonies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
}

@media (min-width: 768px) {
    .testimonies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimony-card {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-xl);
    padding: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
    position: relative;
}

.testimony-card:hover {
    box-shadow: var(--youth-shadow-glow);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.testimony-header {
    margin-bottom: var(--youth-spacing-sm);
}

.testimony-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    border-radius: var(--youth-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--youth-shadow-sm);
}

.testimony-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
    line-height: 1.3;
}

.testimony-excerpt {
    color: var(--youth-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--youth-spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: clip;
}

.testimony-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--youth-spacing-sm);
    border-top: 1px solid var(--youth-border);
    margin-bottom: var(--youth-spacing-sm);
}

.testimony-author {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    font-style: italic;
}

.testimony-encourage-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-lg);
    color: var(--youth-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--youth-transition);
    transition: var(--youth-transition);
}

.testimony-encourage-btn:hover:not(:disabled) {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--youth-accent);
    color: var(--youth-accent);
}

.testimony-encourage-btn:disabled,
.testimony-encourage-btn.encouraged {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--youth-accent);
    color: var(--youth-accent);
}

.testimony-link {
    color: var(--youth-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--youth-transition);
}

.testimony-link:hover {
    color: var(--youth-primary-dark);
    text-decoration: underline;
}

/* Notification Styles */
.youth-notification {
    position: fixed;
    top: var(--youth-spacing-md);
    right: var(--youth-spacing-md);
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

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

.youth-notification-success {
    background: var(--youth-success);
    color: white;
}

.youth-notification-error {
    background: var(--youth-danger);
    color: white;
}

.youth-notification-info {
    background: var(--youth-primary);
    color: white;
}

.youth-notification-warning {
    background: var(--youth-warning);
    color: white;
}

.notification-content {
    font-weight: 600;
}

/* ============================================
   Leaders' Corner Styles
   ============================================ */

/* Password Protection Screen */
.leaders-password-screen {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--youth-spacing-lg);
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
}

.password-form-wrapper {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-xl);
    padding: var(--youth-spacing-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--youth-shadow-lg);
}

.password-form-header {
    text-align: center;
    margin-bottom: var(--youth-spacing-lg);
}

.password-icon {
    font-size: 3rem;
    margin-bottom: var(--youth-spacing-sm);
}

.password-form-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.password-form-header p {
    color: var(--youth-text-secondary);
    font-size: 1rem;
}

.password-form {
    margin-bottom: var(--youth-spacing-lg);
}

.password-form .form-group {
    margin-bottom: var(--youth-spacing-md);
}

.password-form .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-xs);
    color: var(--youth-text);
}

.password-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    font-size: 1rem;
    transition: var(--youth-transition);
}

.password-form .form-input:focus {
    outline: none;
    border-color: var(--youth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-form .error-message {
    background: #fee2e2;
    color: var(--youth-danger);
    padding: var(--youth-spacing-sm);
    border-radius: var(--youth-radius-md);
    margin-bottom: var(--youth-spacing-md);
    font-size: 0.875rem;
}

.password-form .btn-full-width {
    width: 100%;
}

.password-help {
    text-align: center;
    padding-top: var(--youth-spacing-lg);
    border-top: 1px solid var(--youth-border);
}

.password-help p {
    margin-bottom: var(--youth-spacing-xs);
    color: var(--youth-text-secondary);
    font-size: 0.875rem;
}

.password-help a {
    color: var(--youth-primary);
    text-decoration: none;
    font-weight: 600;
}

.password-help a:hover {
    text-decoration: underline;
}

/* Leaders Hero */
.leaders-hero {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-xl) 0;
}

.leaders-hero .youth-hero-title {
    color: white;
}

.leaders-hero .youth-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Leaders Overview */
.leaders-overview {
    padding: var(--youth-spacing-xl) 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--youth-spacing-xl);
    color: var(--youth-text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Volunteer Schedule */
.leaders-schedule {
    padding: var(--youth-spacing-xl) 0;
    background: var(--youth-bg-secondary);
}

.schedule-wrapper {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-md);
}

.schedule-header {
    margin-bottom: var(--youth-spacing-lg);
    text-align: center;
}

.schedule-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.schedule-header p {
    color: var(--youth-text-secondary);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-md);
}

.schedule-item {
    display: flex;
    gap: var(--youth-spacing-md);
    padding: var(--youth-spacing-md);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    border-left: 4px solid var(--youth-primary);
    transition: var(--youth-transition);
}

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

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: var(--youth-spacing-sm);
    background: var(--youth-primary);
    color: white;
    border-radius: var(--youth-radius-md);
}

.schedule-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.schedule-month {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.schedule-details {
    flex: 1;
}

.schedule-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.schedule-details p {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    margin-bottom: 0.25rem;
}

.schedule-role {
    font-weight: 600;
    color: var(--youth-primary);
}

.schedule-actions {
    display: flex;
    align-items: center;
}

.schedule-footer {
    margin-top: var(--youth-spacing-lg);
    padding-top: var(--youth-spacing-lg);
    border-top: 1px solid var(--youth-border);
    text-align: center;
}

.schedule-footer p {
    margin-bottom: var(--youth-spacing-md);
    color: var(--youth-text-secondary);
}

/* Content Moderation */
.leaders-moderation {
    padding: var(--youth-spacing-xl) 0;
}

.moderation-wrapper {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-md);
}

.moderation-header {
    margin-bottom: var(--youth-spacing-lg);
    text-align: center;
}

.moderation-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.moderation-header p {
    color: var(--youth-text-secondary);
}

.moderation-tabs {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-lg);
    border-bottom: 2px solid var(--youth-border);
    overflow-x: auto;
}

.tab-button {
    padding: var(--youth-spacing-sm) var(--youth-spacing-md);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--youth-text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--youth-transition);
    white-space: nowrap;
}

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

.tab-button.tab-active {
    color: var(--youth-primary);
    border-bottom-color: var(--youth-primary);
}

.moderation-content {
    min-height: 300px;
}

.moderation-list {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-md);
}

.no-items {
    text-align: center;
    padding: var(--youth-spacing-xl);
    color: var(--youth-text-secondary);
    font-style: italic;
}

.moderation-item {
    padding: var(--youth-spacing-md);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    border-left: 4px solid var(--youth-primary);
}

.moderation-item.flagged {
    border-left-color: var(--youth-danger);
    background: #fef2f2;
}

.moderation-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-sm);
}

.moderation-date {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.flag-badge {
    background: var(--youth-danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--youth-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.moderation-item-content {
    margin-bottom: var(--youth-spacing-md);
}

.moderation-item-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.moderation-item-content p {
    color: var(--youth-text);
    line-height: 1.6;
}

.moderation-item-meta {
    display: flex;
    gap: var(--youth-spacing-md);
    margin-bottom: var(--youth-spacing-md);
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.moderation-item-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    flex-wrap: wrap;
}

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

.btn-success {
    background: var(--youth-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--youth-danger);
    color: white;
}

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

.btn-warning {
    background: var(--youth-warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
    }
    
    .schedule-date {
        align-self: flex-start;
    }
    
    .schedule-actions {
        justify-content: flex-start;
    }
    
    .moderation-tabs {
        flex-wrap: wrap;
    }
    
    .moderation-item-actions {
        flex-direction: column;
    }
    
    .moderation-item-actions .btn {
        width: 100%;
    }
}


/* ========================================
   LEADERS' RESOURCES SECTION STYLES
   ======================================== */

/* Leaders Resources Section */
.leaders-resources-section {
    padding: var(--youth-spacing-xl) 0;
    background: var(--youth-bg);
}

.leaders-resources-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
    text-align: center;
}

.leaders-resources-section .section-intro {
    text-align: center;
    color: var(--youth-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--youth-spacing-xl);
    font-size: 1.1rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--youth-spacing-lg);
    padding: 0 var(--youth-spacing-md);
}

.resource-card {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-md);
}

.resource-icon {
    font-size: 2rem;
}

.resource-category {
    background: var(--youth-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.resource-description {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
    flex-grow: 1;
}

.resource-meta {
    display: flex;
    gap: var(--youth-spacing-md);
    margin-bottom: var(--youth-spacing-md);
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resource-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
}

/* Training Materials */
.training-categories {
    padding: 0 var(--youth-spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.training-category {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.training-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
    padding-bottom: var(--youth-spacing-sm);
    border-bottom: 2px solid var(--youth-primary);
}

.training-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--youth-spacing-md);
    border-bottom: 1px solid var(--youth-border);
    gap: var(--youth-spacing-md);
}

.training-item:last-child {
    border-bottom: none;
}

.training-item-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: 0.25rem;
}

.training-item-content p {
    color: var(--youth-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Safeguarding Section */
.safeguarding-section {
    background: var(--youth-bg-secondary);
}

.safeguarding-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: var(--youth-spacing-lg);
    border-radius: var(--youth-radius);
    margin: 0 var(--youth-spacing-md) var(--youth-spacing-xl);
    display: flex;
    gap: var(--youth-spacing-md);
    align-items: flex-start;
}

.alert-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.alert-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alert-content p {
    margin: 0;
    opacity: 0.95;
}

.safeguarding-policies {
    padding: 0 var(--youth-spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.policy-card {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-md);
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
}

.policy-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin: 0;
}

.policy-badge {
    background: var(--youth-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.policy-description {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

.policy-highlights {
    background: var(--youth-bg-secondary);
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius);
    margin-bottom: var(--youth-spacing-md);
}

.policy-highlights h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.policy-highlights ul {
    margin: 0;
    padding-left: var(--youth-spacing-lg);
}

.policy-highlights li {
    color: var(--youth-text-secondary);
    margin-bottom: 0.5rem;
}

.policy-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    flex-wrap: wrap;
}

/* Staff Contact Section */
.contact-section {
    background: var(--youth-bg);
}

.staff-contacts {
    padding: 0 var(--youth-spacing-md);
    max-width: 1200px;
    margin: 0 auto var(--youth-spacing-xl);
}

.staff-card {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: var(--youth-spacing-lg);
    align-items: flex-start;
}

.staff-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.staff-initials {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.staff-info {
    flex-grow: 1;
}

.staff-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: 0.25rem;
}

.staff-role {
    color: var(--youth-primary);
    font-weight: 600;
    margin-bottom: var(--youth-spacing-md);
}

.staff-contact-details {
    margin-bottom: var(--youth-spacing-sm);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-detail.emergency {
    color: #ff6b6b;
    font-weight: 600;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-detail a {
    color: var(--youth-text);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--youth-primary);
    text-decoration: underline;
}

.staff-availability {
    color: var(--youth-text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Emergency Contacts */
.emergency-contacts {
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius);
    margin: 0 var(--youth-spacing-md);
}

.emergency-contacts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-lg);
    text-align: center;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--youth-spacing-lg);
}

.emergency-card {
    background: var(--youth-card-bg);
    padding: var(--youth-spacing-lg);
    border-radius: var(--youth-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emergency-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.emergency-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: var(--youth-spacing-md) 0;
}

.emergency-number a {
    color: #ff6b6b;
    text-decoration: none;
}

.emergency-number a:hover {
    text-decoration: underline;
}

.emergency-card p {
    color: var(--youth-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .training-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .staff-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .staff-contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .policy-actions {
        flex-direction: column;
    }
    
    .policy-actions .btn {
        width: 100%;
    }
    
    .resource-actions {
        flex-direction: column;
    }
    
    .resource-actions .btn {
        width: 100%;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   Profile Page Styles
   ======================================== */

/* Youth Card */
.youth-card {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
}

.youth-card:hover {
    box-shadow: var(--youth-shadow-lg);
}

/* Badge Card */
.badge-card {
    transition: var(--youth-transition);
}

.badge-card:hover {
    transform: scale(1.05);
}

/* Font Size Preferences */
body.font-small {
    font-size: 14px;
}

body.font-small .youth-page-title {
    font-size: 1.75rem;
}

body.font-small .section-title {
    font-size: 1.75rem;
}

body.font-medium {
    font-size: 16px;
}

body.font-large {
    font-size: 18px;
}

body.font-large .youth-page-title {
    font-size: 2.25rem;
}

body.font-large .section-title {
    font-size: 2.25rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    overflow: clip;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    transition: width 0.5s ease;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--youth-border);
    transition: var(--youth-transition);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--youth-transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--youth-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Responsive Profile Page */
@media (max-width: 768px) {
    .youth-card {
        padding: 1rem;
    }
    
    .badge-card {
        padding: 0.75rem;
    }
}

/* ========================================
   Section context tuning (prayer, media, serve, search, testimonies)
   Ensures Tailwind-styled pages use youth tokens and feel consistent
   ======================================== */

/* Prayer: calm, reflective – main content uses youth spacing and text colors */
.youth-main .max-w-4xl,
.youth-main .max-w-5xl,
.youth-main .max-w-7xl {
    color: var(--youth-text);
}

.youth-main .text-gray-900 { color: var(--youth-text) !important; }
.youth-main .text-gray-600 { color: var(--youth-text-secondary) !important; }
.youth-main .text-gray-400 { color: var(--youth-text-secondary) !important; }
.youth-main .text-purple-600 { color: var(--youth-primary) !important; }
.youth-main .hover\:text-purple-600:hover { color: var(--youth-primary-dark) !important; }

.dark-mode .youth-main .text-white { color: var(--youth-text) !important; }
.dark-mode .youth-main .text-gray-300 { color: var(--youth-text-secondary) !important; }
.dark-mode .youth-main .dark\:text-white { color: var(--youth-text) !important; }
.dark-mode .youth-main .dark\:text-gray-300 { color: var(--youth-text-secondary) !important; }
.dark-mode .youth-main .dark\:text-gray-400 { color: var(--youth-text-secondary) !important; }
.dark-mode .youth-main .dark\:text-purple-400 { color: var(--youth-primary) !important; }

/* Media / Prayer / Serve / Testimonies: nav bar uses youth tokens in dark mode */
.dark-mode nav.bg-white {
    background: var(--youth-bg) !important;
    border-color: var(--youth-border);
}

.dark-mode .youth-main .bg-white {
    background: var(--youth-bg-secondary) !important;
}

.dark-mode .youth-main .dark\:bg-gray-800 {
    background: var(--youth-bg-secondary) !important;
}

/* Serve: strong CTA buttons */
.youth-main a.bg-purple-600,
.youth-main .bg-purple-600 {
    background: linear-gradient(135deg, var(--youth-primary), var(--youth-primary-dark)) !important;
    color: white !important;
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-sm);
}

.youth-main a.bg-purple-600:hover,
.youth-main .bg-purple-600:hover {
    box-shadow: var(--youth-shadow-glow);
}

/* Search: container and header use youth background in dark mode */
.dark-mode .youth-container {
    background-color: var(--youth-bg);
}

.dark-mode .youth-header {
    background: var(--youth-bg-secondary);
    border-color: var(--youth-border);
}
