* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.nav-brand {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
    border-bottom: 2px solid white;
    transform: translateY(-2px);
}

/* CONTAINER */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h1 {
    color: #667eea;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    color: #764ba2;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.25px;
}

h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* HERO */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 1px solid #e8f0fe;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.8;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: #e8f0fe;
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.card a:hover {
    color: #764ba2;
    transform: translateX(4px);
}

/* TABS */
.prayer-tabs {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    border-bottom: 2px solid #e8f0fe;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e8f0fe;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #667eea;
    background: #f5f7fa;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* SECTIONS */
.prayer-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.prayer-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PRAYER ITEM */
.prayer-item {
    background: white;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prayer-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.prayer-item ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.prayer-item li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.prayer-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.prayer-item a:hover {
    color: #764ba2;
    border-bottom: 2px solid #764ba2;
}

/* SAINTS GRID */
.saints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.saint-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #764ba2;
    transition: all 0.3s ease;
}

.saint-card:hover {
    box-shadow: 0 8px 16px rgba(118, 75, 162, 0.12);
    transform: translateY(-4px);
}

.saint-dates {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.saint-feast {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
    border-left: 3px solid #667eea;
}

/* MYSTERIES */
.mysteries-container {
    margin-top: 2rem;
}

.mystery-type {
    margin-bottom: 3rem;
}

.mystery-type h4 {
    color: #764ba2;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
    font-weight: 600;
}

.mystery-card {
    background: white;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border-left: 5px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mystery-card:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.12);
    transform: translateX(6px);
}

.mystery-card h5 {
    color: #667eea;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.mystery-text {
    background: #f5f7fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #555;
    border-left: 3px solid #667eea;
    line-height: 1.7;
}

.mystery-virtues {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 6px;
    font-style: italic;
    color: #555;
    margin-top: 1rem;
    border-left: 3px solid #667eea;
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    font-size: 0.95rem;
}

.note {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 100%);
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    margin: 2rem 0;
    color: #555;
}

/* ACCESSIBILITY */
a:focus, button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 0.5rem;
        width: 100%;
    }

    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .container {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .hero {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    h3 {
        font-size: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .prayer-tabs {
        gap: 0.5rem;
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .prayer-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .prayer-item ul {
        margin-left: 1.5rem;
    }

    .saints-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 1.5rem;
    }
}

/* RESPONSIVE TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .saints-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RESPONSIVE EXTRA SMALL */
@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }

    .nav-menu {
        gap: 0.3rem;
        justify-content: center;
        width: 100%;
    }

    .nav-menu a {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .container {
        margin: 1rem auto;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}