* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }

        :root {
            --primary: #4a2e0e;
            --secondary: #ECDFCC;
            --accent: #8B4513;
            --light: #ECDFCC;
            --dark: #4a2e0e;
            --text: #4a2e0e;
            --gold: #D4AF37;
            --marian-blue: #0056b3;
            --sacred-heart: #8B0000;
        }

        body {
            background: var(--secondary);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.6;
            overflow: hidden;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem;
        }

        header {
            text-align: center;
            margin-bottom: 2rem;
            padding: 2rem 1rem;
            background: var(--primary);
            color: var(--secondary);
            border-radius: 16px;
            box-shadow: 0 8px 25px rgba(74, 46, 14, 0.2);
            position: relative;
            overflow: hidden;
        }

        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--gold), var(--secondary), var(--gold));
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 0.5rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            font-weight: 300;
            max-width: 800px;
            margin: 0 auto;
        }

        .quick-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            margin: 2rem 0;
            padding: 1.5rem;
            background: rgba(74, 46, 14, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(74, 46, 14, 0.1);
        }

        .nav-btn {
            padding: 0.8rem 1.5rem;
            background: rgba(74, 46, 14, 0.1);
            border: 1px solid rgba(74, 46, 14, 0.2);
            border-radius: 50px;
            color: var(--primary);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .nav-btn:hover {
            background: rgba(74, 46, 14, 0.2);
            transform: translateY(-2px);
        }

        .prayers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .prayer-category {
            background: var(--secondary);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(74, 46, 14, 0.1);
            border: 1px solid rgba(74, 46, 14, 0.1);
            transition: all 0.4s ease;
        }

        .prayer-category:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(74, 46, 14, 0.15);
        }

        .category-header {
            background: var(--primary);
            color: var(--secondary);
            padding: 1.5rem;
            text-align: center;
            position: relative;
        }

        .category-header::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: var(--primary);
            rotate: 45deg;
        }

        .category-title {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .category-subtitle {
            font-size: 0.9rem;
            opacity: 0.8;
            font-style: italic;
        }

        .category-content {
            padding: 2rem 1.5rem;
        }

        .prayer-item {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(74, 46, 14, 0.1);
        }

        .prayer-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .prayer-name {
            font-size: 1.2rem;
            color: var(--primary);
            margin-bottom: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .prayer-text {
            line-height: 1.8;
            margin-bottom: 1rem;
            font-size: 1.05rem;
        }

        .prayer-text.latin {
            font-style: italic;
            color: rgba(74, 46, 14, 0.7);
            border-left: 3px solid var(--gold);
            padding-left: 1rem;
            margin-top: 0.5rem;
        }

        .indulgence-info {
            background: rgba(139, 69, 19, 0.1);
            padding: 0.8rem;
            border-radius: 8px;
            margin-top: 0.8rem;
            font-size: 0.9rem;
            border-left: 3px solid var(--accent);
        }

        .indulgence-info i {
            color: var(--accent);
            margin-right: 0.5rem;
        }

        .prayer-actions {
            display: flex;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .action-btn {
            padding: 0.6rem 1.2rem;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .action-btn.save {
            background: rgba(74, 46, 14, 0.1);
            color: var(--primary);
            border: 1px solid rgba(74, 46, 14, 0.2);
        }

        .action-btn.save:hover {
            background: rgba(74, 46, 14, 0.2);
        }

        .action-btn.print {
            background: var(--primary);
            color: var(--secondary);
        }

        .action-btn.print:hover {
            background: #3a250a;
        }

        .section-divider {
            text-align: center;
            margin: 3rem 0;
            position: relative;
        }

        .section-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(74, 46, 14, 0.2);
            z-index: 1;
        }

        .section-divider span {
            background: var(--secondary);
            padding: 0 2rem;
            position: relative;
            z-index: 2;
            font-size: 1.2rem;
            color: var(--primary);
            font-weight: 500;
        }

        .daily-prayers {
            background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(74, 46, 14, 0.05));
            border-radius: 16px;
            padding: 2.5rem;
            margin-bottom: 3rem;
            border: 1px solid rgba(139, 69, 19, 0.2);
        }

        .daily-schedule {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .prayer-time {
            background: var(--secondary);
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .prayer-time h4 {
            color: var(--primary);
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .emergency-prayers {
            background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(74, 46, 14, 0.05));
            border-radius: 16px;
            padding: 2.5rem;
            margin-bottom: 3rem;
            border: 1px solid rgba(139, 0, 0, 0.2);
        }

        .emergency-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .emergency-card {
            background: var(--secondary);
            padding: 1.5rem;
            border-radius: 12px;
            border-left: 4px solid var(--sacred-heart);
        }

        .prayer-search {
            position: relative;
            margin: 2rem 0;
        }

        .search-box {
            width: 100%;
            padding: 1.2rem 1.2rem 1.2rem 3.5rem;
            border: 1px solid rgba(74, 46, 14, 0.2);
            border-radius: 50px;
            background: var(--secondary);
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .search-box:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(74, 46, 14, 0.1);
        }

        .search-box i {
            position: absolute;
            left: 1.5rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            opacity: 0.7;
        }

        .back-to-top {
            position: fixed;
            bottom: 25px;
            right: 25px;
            background: var(--primary);
            color: var(--secondary);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            z-index: 100;
            border: none;
            display: none;
        }

        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .footer {
            text-align: center;
            margin-top: 4rem;
            padding: 2.5rem;
            background: var(--primary);
            color: var(--secondary);
            border-radius: 16px;
        }

        .footer p {
            margin: 0.5rem 0;
        }

        .copyright {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 1rem;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .container {
                padding: 0.5rem;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .prayers-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .quick-nav {
                flex-direction: column;
                align-items: stretch;
            }
            
            .daily-schedule, .emergency-grid {
                grid-template-columns: 1fr;
            }
            
            .daily-prayers, .emergency-prayers {
                padding: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 1.5rem 1rem;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .category-content {
                padding: 1.5rem 1rem;
            }
            
            .prayer-actions {
                flex-direction: column;
            }
        }

        .fade-in {
            animation: fadeIn 0.6s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .tooltip {
            position: relative;
            display: inline-block;
            cursor: help;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 300px;
            background-color: var(--primary);
            color: var(--secondary);
            text-align: center;
            border-radius: 6px;
            padding: 1rem;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -150px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        .bookmark-btn {
            position: absolute;
            right: 1rem;
            top: 1rem;
            background: none;
            border: none;
            color: var(--secondary);
            cursor: pointer;
            font-size: 1.2rem;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .bookmark-btn:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        .bookmark-btn.bookmarked {
            color: var(--gold);
            opacity: 1;
        }