/* 
 * Krunica.com - Main Stylesheet
 * Croatian Rosary Prayer Website
 */

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
    /* Primary Colors */
    --primary-blue: #07277c;
    --dark-blue: #041d55;
    --light-bg: #eff9ff;
    
    /* Text Colors */
    --text-dark: #212121;
    --text-body: #252525;
    --white: #ffffff;
    
    /* Accent Colors */
    --border-blue: #7b90bd;
    --gold: #c9a227;
    
    /* Mystery Colors - WCAG AA contrast compliant */
    --joyful: #2563eb;
    --luminous: #b45309;
    --sorrowful: #6b2c3d;
    --glorious: #92640d;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

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

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.455), 1.125rem);
    line-height: 1.6;
    color: #000;
    background-color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Prata', serif;
    font-weight: 400;
    line-height: 1.4;
}

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

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2rem);
}

/* ========================================
   Header Bar with Logo
   ======================================== */
.header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1001;
    pointer-events: none;
    background: transparent;
}

.header-bar > * {
    pointer-events: auto;
}

/* ========================================
   Hamburger Menu Button
   ======================================== */
.hamburger-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(7, 39, 124, 0.2);
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
}

.hamburger-btn:hover .hamburger-line {
    background: var(--white);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   Header Logo
   ======================================== */
.header-logo {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    text-decoration: none;
    gap: 0.6rem;
}

.header-logo:hover {
    text-decoration: none;
}

/* Logo Icon - Rosary */
.logo-icon {
    position: relative;
    width: 42px;
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1))
            drop-shadow(0 0 16px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 24px rgba(255, 255, 255, 0.7));
}

.rosary-circle {
    position: relative;
    width: 32px;
    height: 32px;
    margin: 0 auto;
}

.rosary-circle .bead {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

/* Position 8 beads in a circle */
.rosary-circle .bead:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.rosary-circle .bead:nth-child(2) { top: 4px; right: 4px; }
.rosary-circle .bead:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); }
.rosary-circle .bead:nth-child(4) { bottom: 4px; right: 4px; }
.rosary-circle .bead:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.rosary-circle .bead:nth-child(6) { bottom: 4px; left: 4px; }
.rosary-circle .bead:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); }
.rosary-circle .bead:nth-child(8) { top: 4px; left: 4px; }

/* Cross below rosary circle */
.cross {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
}

.cross-vertical {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 18px;
    background: var(--gold);
    border-radius: 1px;
}

.cross-horizontal {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 4px;
    background: var(--gold);
    border-radius: 1px;
}

/* Logo Text */
.logo-text {
    display: flex;
    align-items: baseline;
}

.logo-name {
    font-family: 'Prata', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(255, 255, 255, 0.7);
}

.logo-domain {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .header-logo {
        margin-left: 0.75rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 44px;
    }
    
    .rosary-circle {
        width: 28px;
        height: 28px;
    }
    
    .rosary-circle .bead {
        width: 5px;
        height: 5px;
    }
    
    .cross {
        width: 10px;
        height: 15px;
    }
    
    .cross-vertical {
        width: 3px;
        height: 15px;
    }
    
    .cross-horizontal {
        width: 10px;
        height: 3px;
        top: 3px;
    }
    
    .logo-name {
        font-size: 1.2rem;
    }
    
    .logo-domain {
        font-size: 0.8rem;
    }
}

/* ========================================
   Sidebar Overlay
   ======================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Sidebar Menu
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
    z-index: 1002;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.sidebar-header h3 {
    font-family: 'Prata', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-category {
    display: block;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-category:hover {
    background: rgba(7, 39, 124, 0.08);
    text-decoration: none;
    border-left-color: var(--primary-blue);
}

.sidebar-category .category-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    vertical-align: middle;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
}

.sidebar-category.joyful .category-icon {
    background: linear-gradient(135deg, #e8f4fd 0%, #b8d4f0 100%);
    color: var(--joyful);
}

.sidebar-category.luminous .category-icon {
    background: linear-gradient(135deg, #fef9e7 0%, #f9e79f 100%);
    color: #b8860b;
}

.sidebar-category.sorrowful .category-icon {
    background: linear-gradient(135deg, #f5eef0 0%, #e8d4d9 100%);
    color: var(--sorrowful);
}

.sidebar-category.glorious .category-icon {
    background: linear-gradient(135deg, #fdf8e7 0%, #f5deb3 100%);
    color: #996515;
}

.sidebar-category .category-content {
    display: inline-block;
    vertical-align: middle;
}

.sidebar-category .category-title {
    font-family: 'Prata', serif;
    font-size: 1.1rem;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.2rem;
}

.sidebar-category .category-day {
    font-size: 0.8rem;
    color: #666;
}

.sidebar-category .category-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border-blue);
    transition: transform 0.3s ease;
}

.sidebar-category:hover .category-arrow {
    transform: translateY(-50%) translateX(5px);
    color: var(--primary-blue);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-blue), transparent);
    margin: 0.5rem 1.5rem;
}

.sidebar-section-title {
    font-family: 'Prata', serif;
    font-size: 0.85rem;
    color: #666;
    padding: 1rem 1.5rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Additional chaplet category styles */
.sidebar-category.mercy .category-icon {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: #e91e63;
}

.sidebar-category.spirit .category-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #4caf50;
}

.sidebar-category.joseph .category-icon {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ff9800;
}

.sidebar-category.sorrows .category-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #9c27b0;
}

.sidebar-category.heart .category-icon {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #f44336;
}

.sidebar-category.info .category-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.sidebar-footer {
    padding: 1.5rem;
    padding-bottom: 6rem;
    text-align: center;
    border-top: 1px solid var(--border-blue);
    margin-top: 1rem;
}

.sidebar-footer a {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-decoration: none;
}

.sidebar-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 1.1rem 2rem;
    border-radius: 2.5rem;
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.609), 1.21rem);
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--dark-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
}

.btn-container {
    max-width: 200px;
    width: 100%;
    margin-top: 0.21rem;
}

.btn-container .btn {
    width: 100%;
    text-align: center;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 60rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2% 0 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    text-align: center;
    min-height: 35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    color: var(--primary-blue);
    font-size: clamp(2.071rem, 2.071rem + ((1vw - 0.2rem) * 2.98), 3.71rem);
    margin-bottom: 1rem;
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 0.8);
}

.hero h2 {
    color: var(--primary-blue);
    font-size: clamp(2.84rem, 2.84rem + ((1vw - 0.2rem) * 4.855), 5.51rem);
    margin-bottom: 1.01rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--text-body);
    font-size: clamp(1.1rem, 1rem + ((1vw - 0.2rem) * 0.5), 1.3rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.8);
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    background-color: var(--light-bg);
    padding: 5.01rem 1rem 4.01rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    max-width: 13rem;
    padding: 0 1rem;
    text-align: center;
    border-right: 2px solid var(--border-blue);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h6 {
    color: var(--primary-blue);
    font-size: clamp(1.517rem, 1.517rem + ((1vw - 0.2rem) * 1.842), 2.53rem);
    font-weight: 700;
    margin-bottom: 0.51rem;
    line-height: 1.3;
}

.stat-item p {
    color: var(--text-dark);
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.064), 0.91rem);
    line-height: 1.5;
    margin-bottom: 1.77rem;
}

/* ========================================
   Chaplet Cards (Button Style)
   ======================================== */
.chaplet-card {
    display: block;
    flex: 1 1 280px;
    min-width: 220px;
    max-width: 320px;
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 40px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
    text-decoration: none !important;
}

.chaplet-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(7, 39, 124, 0.2);
    background: var(--primary-blue);
    text-decoration: none !important;
}

.chaplet-card:hover h5,
.chaplet-card:hover p {
    color: var(--white) !important;
}

.chaplet-card h5 {
    font-family: 'Prata', serif;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.chaplet-card p {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0;
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Krunica Card Link - klikabilna kartica za sve-krunice */
.krunica-card-link {
    display: block;
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 320px;
    text-align: center;
    padding: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none !important;
    overflow: hidden;
}

.krunica-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(7, 39, 124, 0.2);
    text-decoration: none !important;
}

.krunica-card-link h5 {
    font-family: 'Prata', serif;
    font-size: 1.1rem;
    margin: 0;
    padding: 1rem 1rem 0.75rem;
    line-height: 1.3;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a4a8a 100%);
    color: white !important;
    border-radius: 16px 16px 0 0;
}

.krunica-card-link:hover h5 {
    background: linear-gradient(135deg, #1a4a8a 0%, var(--primary-blue) 100%);
}

.krunica-card-link p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
    padding: 0.5rem 1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.krunica-card-link p:first-of-type {
    padding-top: 1rem;
}

.krunica-card-link p:last-child {
    padding-bottom: 1.25rem;
    color: #777;
    font-size: 0.85rem;
}

.krunica-card-link p strong {
    color: #333;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 5.51rem 1rem 3rem;
}

.features h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: clamp(1.556rem, 1.556rem + ((1vw - 0.2rem) * 1.916), 2.61rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.01rem;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    text-align: center;
    padding-bottom: 2rem;
}

.feature-card img {
    width: 290px;
    height: 290px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feature-card h5 {
    color: var(--primary-blue);
    font-size: clamp(1.044rem, 1.044rem + ((1vw - 0.2rem) * 1.029), 1.61rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.feature-card h5 a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.feature-card h5 a:hover {
    color: var(--accent-gold);
}

.feature-card p {
    color: var(--text-body);
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.064), 0.91rem);
    line-height: 1.5;
    max-width: 80%;
    margin: 0 auto;
}

/* ========================================
   Why Section
   ======================================== */
.why-section {
    background-color: var(--light-bg);
    padding: 5.01rem 1rem 5.5rem;
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem 0;
    align-items: center;
}

.why-image {
    flex: 0 0 45%;
    text-align: center;
}

.why-image img {
    max-width: 446px;
    width: 100%;
    border-radius: 8px;
}

.why-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.51rem;
}

.why-content h3 {
    color: var(--primary-blue);
    font-size: clamp(1.556rem, 1.556rem + ((1vw - 0.2rem) * 1.916), 2.61rem);
    margin-bottom: 1.01rem;
    line-height: 1.3;
}

.why-content p {
    color: #03081e;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.609), 1.21rem);
    line-height: 1.6;
    max-width: 80%;
}

.why-content .btn-container {
    margin-top: 2.51rem;
}

/* ========================================
   Bible Section
   ======================================== */
.bible-section {
    padding: 7.01rem 1rem;
}

.bible-section h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: clamp(1.605rem, 1.605rem + ((1vw - 0.2rem) * 2.009), 2.71rem);
    margin-bottom: 3.01rem;
    line-height: 1.3;
}

.bible-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.94rem;
}

.bible-card {
    flex: 1;
    min-width: 280px;
    max-width: 20rem;
    text-align: center;
}

.bible-card h6 {
    color: var(--text-dark);
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.682), 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 2rem;
}

.bible-card h6 strong {
    font-weight: 700;
}

.bible-card h6 em {
    font-style: italic;
}

.bible-card p {
    color: #161616;
    font-size: 0.85rem;
    line-height: 1.5;
    text-transform: uppercase;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    position: relative;
    min-height: 836px;
    padding: 5rem 1rem 12.51rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: clamp(1.556rem, 1.556rem + ((1vw - 0.2rem) * 1.916), 2.61rem);
    margin-bottom: 1.11rem;
    line-height: 1.2;
}

.contact-content {
    max-width: 500px;
    text-align: center;
}

.contact-content p {
    color: #03081e;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.427), 1.11rem);
    line-height: 1.6;
    margin-bottom: 2.21rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    padding: 3rem 1rem 1.5rem;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-blue);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-blue);
}

.footer-section h4 {
    font-family: 'Prata', serif;
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: var(--text-body);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

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

.footer-logo {
    font-family: 'Prata', serif;
    font-size: 1.1rem;
}

.footer-logo a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-logo a:hover {
    text-decoration: underline;
}

.footer-copy p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.footer-contact a {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* ========================================
   Page Links
   ======================================== */
.page-links {
    padding: 1rem;
    background-color: var(--light-bg);
}

.page-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
}

.page-links a {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* ========================================
   Mystery Pages - Shared Styles
   ======================================== */
.mystery-page {
    padding-top: 100px;
}

.mystery-hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

.mystery-hero h1 {
    color: var(--primary-blue);
    font-size: clamp(2rem, 2rem + ((1vw - 0.2rem) * 2.5), 3.5rem);
    margin-bottom: 1rem;
}

.mystery-hero .subtitle {
    color: var(--text-body);
    font-size: 1.1rem;
}

.mystery-content {
    padding: 3rem 1rem;
}

.mystery-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.mystery-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}

.mystery-item h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.mystery-item .reference {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.mystery-item p {
    color: var(--text-body);
    line-height: 1.7;
}

/* Dark mystery items - for sections with dark backgrounds */
.mystery-item-dark p,
.mystery-item-dark strong,
.mystery-item-dark li,
.mystery-item-dark em {
    color: white !important;
}

.mystery-item-dark p strong,
.mystery-item-dark li strong {
    color: white !important;
}

/* Mystery-specific colors */
.mystery-page.joyful .mystery-item {
    border-left-color: var(--joyful);
}

.mystery-page.luminous .mystery-item {
    border-left-color: var(--luminous);
}

.mystery-page.sorrowful .mystery-item {
    border-left-color: var(--sorrowful);
}

.mystery-page.glorious .mystery-item {
    border-left-color: var(--glorious);
}

.mystery-page.mercy .mystery-item {
    border-left-color: #e91e63;
}

.mystery-page.spirit .mystery-item {
    border-left-color: #4caf50;
}

.mystery-page.joseph .mystery-item {
    border-left-color: #ff9800;
}

.mystery-page.sorrows .mystery-item {
    border-left-color: #9c27b0;
}

.mystery-page.heart .mystery-item {
    border-left-color: #f44336;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 900px) {
    .stat-item {
        border-right: none;
        border-bottom: 2px solid var(--border-blue);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

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

    .why-grid {
        flex-direction: column;
    }

    .why-image {
        flex: 0 0 100%;
    }

    .why-content p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 30rem;
    }

    .features-grid,
    .bible-grid {
        gap: 0.75rem;
    }

    .chaplet-card,
    .krunica-card-link {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}