* {
            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;
        }

        body {
            background: var(--secondary);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.6;
        }

        .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: 1rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            font-weight: 300;
            max-width: 800px;
            margin: 0 auto;
        }

        .controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
            background: rgba(74, 46, 14, 0.05);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid rgba(74, 46, 14, 0.1);
        }

        .search-box {
            position: relative;
            flex: 1;
            min-width: 300px;
        }

        .search-box input {
            width: 100%;
            padding: 1rem 1rem 1rem 3rem;
            border: 1px solid rgba(74, 46, 14, 0.2);
            border-radius: 50px;
            background: var(--secondary);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .search-box input: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.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            opacity: 0.7;
        }

        .filter-controls {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: rgba(74, 46, 14, 0.1);
            border: 1px solid rgba(74, 46, 14, 0.2);
            color: var(--primary);
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-btn:hover {
            background: rgba(74, 46, 14, 0.2);
            transform: translateY(-2px);
        }

        .filter-btn.active {
            background: var(--primary);
            color: var(--secondary);
            box-shadow: 0 4px 8px rgba(74, 46, 14, 0.2);
        }

        .saints-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .saint-card {
            background: var(--secondary);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(74, 46, 14, 0.1);
            transition: all 0.4s ease;
            border: 1px solid rgba(74, 46, 14, 0.1);
            position: relative;
        }

        .saint-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(74, 46, 14, 0.15);
        }

        .saint-header {
            background: var(--primary);
            color: var(--secondary);
            padding: 1.5rem;
            text-align: center;
            position: relative;
        }

        .saint-header::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: var(--primary);
            rotate: 45deg;
        }

        .saint-name {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .saint-dates {
            font-size: 0.9rem;
            opacity: 0.8;
            font-style: italic;
        }

        .saint-content {
            padding: 2rem 1.5rem;
        }

        .saint-info {
            margin-bottom: 1.5rem;
        }

        .info-item {
            display: flex;
            margin-bottom: 0.8rem;
            align-items: flex-start;
        }

        .info-label {
            font-weight: 600;
            min-width: 120px;
            color: var(--primary);
        }

        .info-value {
            flex: 1;
            opacity: 0.9;
        }

        .saint-description {
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            color: var(--text);
            opacity: 0.9;
        }

        .saint-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .btn {
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
            justify-content: center;
        }

        .btn-primary {
            background: var(--primary);
            color: var(--secondary);
        }

        .btn-primary:hover {
            background: #3a250a;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74, 46, 14, 0.3);
        }

        .btn-secondary {
            background: rgba(74, 46, 14, 0.1);
            color: var(--primary);
            border: 1px solid rgba(74, 46, 14, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(74, 46, 14, 0.2);
            transform: translateY(-2px);
        }

        .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;
        }

        .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);
        }

        .centuries-nav {
            display: flex;
            overflow-x: auto;
            gap: 1rem;
            padding: 1rem 0;
            margin-bottom: 2rem;
            scrollbar-width: none;
        }

        .centuries-nav::-webkit-scrollbar {
            display: none;
        }

        .century-btn {
            background: rgba(74, 46, 14, 0.08);
            border: 1px solid rgba(74, 46, 14, 0.15);
            color: var(--primary);
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            white-space: nowrap;
        }

        .century-btn:hover {
            background: rgba(74, 46, 14, 0.15);
        }

        .century-btn.active {
            background: var(--primary);
            color: var(--secondary);
            box-shadow: 0 4px 8px rgba(74, 46, 14, 0.2);
        }

        /* Biography Modal */
        .biography-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 1rem;
        }

        .biography-modal.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background: var(--secondary);
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            position: relative;
            animation: slideUp 0.4s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            background: var(--primary);
            color: var(--secondary);
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 16px 16px 0 0;
        }

        .modal-title {
            font-size: 1.8rem;
            font-weight: 500;
        }

        .close-modal {
            background: none;
            border: none;
            color: var(--secondary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-modal:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .modal-body {
            padding: 2rem;
        }

        .biography-text {
            line-height: 1.8;
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }

        .biography-text p {
            margin-bottom: 1.5rem;
        }

        .modal-footer {
            padding: 1.5rem 2rem;
            background: rgba(74, 46, 14, 0.05);
            border-radius: 0 0 16px 16px;
            border-top: 1px solid rgba(74, 46, 14, 0.1);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .container {
                padding: 0.5rem;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-box {
                min-width: 100%;
            }
            
            .saints-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .saint-actions {
                flex-direction: column;
            }
            
            .modal-content {
                max-height: 95vh;
            }
            
            .modal-header {
                padding: 1rem;
            }
            
            .modal-body {
                padding: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 1.5rem 1rem;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .saint-content {
                padding: 1.5rem 1rem;
            }
            
            .info-item {
                flex-direction: column;
                gap: 0.3rem;
            }
            
            .info-label {
                min-width: auto;
            }
            
            .modal-title {
                font-size: 1.4rem;
            }
        }

        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: rgba(74, 46, 14, 0.6);
            grid-column: 1 / -1;
        }

        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            opacity: 0.5;
        }

        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 3rem;
            grid-column: 1 / -1;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(74, 46, 14, 0.1);
            border-left: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .fade-in {
            animation: fadeIn 0.6s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }