:root {
    --accent: #FF4D00; /* Fire/Revival Orange */
    --glass: rgba(239, 223, 223, 0.968);
    --border: rgba(255, 255, 255, 0.978);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: white;
    overflow-x: hidden;
}

/* Background Carousel Logic */
.carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: imageCycle 18s infinite;
}

.slide-1 { background-image: url('https://media.istockphoto.com/id/113494458/photo/fire-isolated-over-black-background.jpg?s=612x612&w=0&k=20&c=u6STGsSpJAyBN8kDeqnVUla4-0SnLpdaTsehFsey2p0='); animation-delay: 0s; }
.slide-2 { background-image: url('https://st3.depositphotos.com/7254704/15803/i/450/depositphotos_158038430-stock-photo-burning-candle-open-bible-and.jpg'); animation-delay: 6s; }
.slide-3 { background-image: url('66666664.jpg'); animation-delay: 12s; }

@keyframes imageCycle {
    0%, 33.33% { opacity: 1; transform: scale(1); }
    33.34%, 100% { opacity: 0; transform: scale(1.1); }
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(159, 146, 146, 0.4), #000);
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 5%;
    align-items: center;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 1.4rem;
}

.logo span { color: var(--accent); }

.cta-pill {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Bento Grid Hero */
.hero-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
}

.hero-card {
    grid-column: span 3;
    padding: 80px 60px;
}

.hero-card h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    line-height: 0.9;
    margin: 20px 0;
}

.hero-card h1 span { color: var(--accent); }

.tag {
    background: rgba(255, 77, 0, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.stats-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.stat h3 { font-size: 3rem; color: var(--accent); }

.feature-card {
    grid-column: span 2;
    background: var(--accent);
    color: white;
}

.arrow-link {
    font-size: 2rem;
    text-decoration: none;
    color: white;
    display: block;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-bento { grid-template-columns: 1fr; }
    .hero-card, .stats-card, .feature-card { grid-column: span 1; }
    .hero-card h1 { font-size: 3rem; }
}



:root {
    --accent: #FF5F00; /* Neon Fire */
    --bg: #050505;
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

body.gateway {
    background-color: var(--bg);
    color: white;
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

/* Atmospheric Background */
.vortex-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 95, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 100vh;
    z-index: 2;
    position: relative;
}

/* Side Branding - The Bold Look */
.side-branding {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.8rem;
    letter-spacing: 10px;
    color: var(--accent);
}

.main-title {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: 5vw;
    line-height: 0.9;
}

.outline {
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    color: transparent;
}

/* The Portal - Frameless & Sharp */
.entry-portal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.portal-content {
    width: 100%;
    max-width: 400px;
}

.portal-header h3 {
    font-family: var(--font-heading);
    letter-spacing: -1px;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portal-header p {
    color: #555;
    margin-bottom: 50px;
}

/* Custom Minimal Inputs */
.field {
    position: relative;
    margin-bottom: 40px;
}

.field input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 0;
    color: white;
    font-size: 1.2rem;
    outline: none;
}

.field label {
    position: absolute;
    left: 0;
    top: 10px;
    color: #444;
    pointer-events: none;
    transition: 0.4s;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.field input:focus ~ label,
.field input:valid ~ label {
    top: -20px;
    color: var(--accent);
    font-size: 0.6rem;
}

.line {
    height: 1px;
    width: 100%;
    background: #222;
    position: relative;
}

.field input:focus ~ .line::after {
    width: 100%;
}

.line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The "Glow" Button */
.glow-btn {
    width: 100%;
    background: white;
    color: black;
    border: none;
    padding: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.glow-btn:hover {
    background: var(--accent);
    color: white;
}

.btn-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: 0.8s;
}

.glow-btn:hover .btn-flare {
    transform: translate(-50%, -50%) scale(1);
}


:root {
    --primary: #FF7B54; /* Warm Ember */
    --soft-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-fancy: 'Cormorant Garamond', serif;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

body.sanctuary-theme {
    background: #fdfbfb;
    font-family: var(--font-main);
    color: #2D3436;
    margin: 0;
    overflow: hidden;
}

/* The Aurora Background - This is the "Grace" */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, #FFEFBA 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, #FF7B54 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, #ffffff 0%, #f3f3f3 100%);
    z-index: -1;
    filter: blur(80px);
    animation: flow 15s infinite alternate;
}

@keyframes flow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.sanctuary-wrapper {
    display: flex;
    height: 100vh;
    padding: 30px;
    gap: 30px;
}

/* Floating Navigation */
.floating-nav {
    width: 80px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.nav-brand {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 60px;
}
.nav-brand span { color: var(--primary); }

.nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-item {
    color: #A0AEC0;
    font-size: 1.4rem;
    transition: 0.3s;
}

.nav-item.active, .nav-item:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.nav-id {
    font-weight: 800;
    font-size: 0.7rem;
    background: var(--primary);
    color: white;
    padding: 8px;
    border-radius: 50%;
}

/* Main Area */
.sanctuary-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sanctuary-header h1 {
    font-family: var(--font-fancy);
    font-style: italic;
    font-size: 3.5rem;
    margin: 0;
}

.sanctuary-header h1 span {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2.5rem;
    letter-spacing: -2px;
}

/* Mosaic Grid */
.mosaic-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
    height: 100%;
}

.glass-inner {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 40px;
    height: 100%;
    transition: 0.4s;
}

.glass-inner:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

.modules-panel { grid-row: span 1; }

.m-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    background: white;
    padding: 20px;
    border-radius: 25px;
}

.m-icon {
    width: 50px;
    height: 50px;
    background: #FFF5F2;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.2rem;
}

.m-progress {
    width: 150px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-top: 8px;
}

.bar {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin-top: 30px; }
.event-node {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 2px solid #eee;
    position: relative;
}
.event-node.active { border-left-color: var(--primary); }
.event-node .time { font-weight: 800; font-size: 0.8rem; color: var(--primary); }

/* Admin Circles */
.admin-circles { display: flex; gap: 10px; margin: 20px 0; }
.a-circle {
    width: 50px;
    height: 50px;
    background-image: var(--bg);
    background-size: cover;
    border-radius: 50%;
    border: 3px solid white;
}
.a-circle.plus {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}



/* Schedule/Timeline Core */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 10px;
    overflow-y: auto;
    height: calc(100vh - 250px);
}

/* Custom Scrollbar */
.timeline-container::-webkit-scrollbar { width: 4px; }
.timeline-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.timeline-card {
    display: flex;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 20px 30px;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-card:hover {
    transform: scale(1.02) translateX(10px);
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.date-side {
    min-width: 100px;
    text-align: center;
    border-right: 2px solid rgba(0,0,0,0.05);
    margin-right: 30px;
    padding-right: 20px;
}

.date-side .day { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; }
.date-side .month { font-size: 0.75rem; color: #888; font-weight: 700; text-transform: uppercase; }

.content-side { display: flex; justify-content: space-between; align-items: center; flex: 1; }
.event-info h3 { font-size: 1.1rem; font-weight: 800; color: #333; }
.event-info p { font-size: 0.85rem; color: #777; margin-top: 4px; }

/* Buttons & Tags */
.enter-btn {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.enter-btn:hover { background: #333; transform: translateY(-2px); }
.enter-btn.secondary { background: #333; }

.timeline-card.review { border-left: 6px solid #FFD700; }
.timeline-card.rest { border: 1px dashed #ccc; background: rgba(0,0,0,0.02); }

.status-tag {
    background: #f0f0f0;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #888;
}

.week-indicator {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    align-self: flex-start;
}

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 768px) {
    /* 1. Stack the layout */
    .sanctuary-wrapper {
        flex-direction: column;
        padding: 15px;
        height: auto;
        overflow-x: hidden;
    }

    /* 2. Move Nav to Bottom (Mobile App Style) */
    .floating-nav {
        width: 90%;
        height: 60px;
        flex-direction: row;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 20px;
        justify-content: space-around;
        z-index: 1000;
        border-radius: 20px;
    }

    .nav-brand, .nav-id { display: none; } /* Hide for space */
    .nav-links { flex-direction: row; gap: 0; width: 100%; justify-content: space-around; }

    /* 3. Adjust Main Content Area */
    .sanctuary-main {
        padding-bottom: 100px; /* Space for the bottom nav */
    }

    .sanctuary-header h1 {
        font-size: 2.2rem;
    }

    .sanctuary-header h1 span {
        font-size: 1.8rem;
    }

    /* 4. Schedule Card Adjustments */
    .timeline-card {
        flex-direction: column; /* Stack date above text */
        align-items: flex-start;
        padding: 20px;
    }

    .date-side {
        border-right: none;
        border-bottom: 2px solid rgba(0,0,0,0.05);
        margin-right: 0;
        margin-bottom: 15px;
        padding-right: 0;
        padding-bottom: 10px;
        width: 100%;
        text-align: left;
        flex-direction: row;
        gap: 10px;
    }

    .date-side .day { font-size: 1.5rem; }

    .content-side {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .enter-btn {
        width: 100%;
        justify-content: center;
    }
}



/* ROOT VARIABLES */
:root {
    --primary: #FF7B54;
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-fancy: 'Cormorant Garamond', serif;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* GLOBAL THEME */
body.sanctuary-theme {
    background: #fdfbfb;
    margin: 0;
    font-family: var(--font-main);
    color: #2D3436;
    height: 100vh;
    overflow: hidden;
}

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, #FFEFBA 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, #FF7B54 0%, transparent 50%);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

.sanctuary-wrapper {
    display: flex;
    height: 100vh;
    padding: 30px;
    gap: 30px;
    box-sizing: border-box;
}

.sanctuary-main {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* NAVIGATION */
.floating-nav {
    width: 80px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-item { color: #A0AEC0; font-size: 1.4rem; transition: 0.3s; }
.nav-item.active { color: var(--primary); }

/* ADMIN GRID - SIDE BY SIDE */
.admin-grid-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px 25px;
    border-radius: 40px;
    text-align: center;
    transition: 0.4s ease;
}

.mini-card:hover {
    transform: translateY(-10px);
    background: white;
}

/* PROFILE IMAGE CIRCLE */
.profile-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 800;
}

.mini-card h3 { margin: 15px 0 10px; font-size: 1.2rem; }

.mini-bio {
    font-family: var(--font-fancy);
    font-style: italic;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 25px;
}

.mini-social a {
    color: #888;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: 0.3s;
}

.mini-social a:hover { color: var(--primary); }

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .admin-grid-simple { grid-template-columns: 1fr; }
    .sanctuary-wrapper { flex-direction: column; overflow-y: auto; }
    .floating-nav { width: 100%; height: 60px; flex-direction: row; position: fixed; bottom: 0; left: 0; border-radius: 0; }
    .nav-links { flex-direction: row; width: 100%; justify-content: space-around; }
}





/* --- UNIVERSAL RESET --- */
:root {
    --primary: #FF7B54;
    --text-dark: #2D3436;
    --glass: rgba(255, 255, 255, 0.5);
}

* { box-sizing: border-box; }

body.sanctuary-theme {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fdfbfb;
    height: 100vh;
    overflow: hidden; /* Only the main area should scroll */
}

/* Background Effect */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 0% 0%, #FFEFBA 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, #FF7B54 0%, transparent 40%);
    z-index: -1; filter: blur(60px); opacity: 0.4;
}

/* --- LAYOUT --- */
.sanctuary-wrapper {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.floating-nav {
    width: 80px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    border: 1px solid rgba(255,255,255,0.3);
}

.sanctuary-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* --- HEADER --- */
.back-link { text-decoration: none; color: var(--primary); font-weight: 800; font-size: 0.8rem; margin-bottom: 20px; display: block; }
.badge { background: #333; color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; }
.title-block h1 { font-family: 'Cormorant Garamond', serif; font-size: 3rem; margin: 10px 0; }
.title-block h1 span { color: var(--primary); font-family: 'Plus Jakarta Sans'; font-weight: 800; }

/* --- THE VIDEO PLAYER FIX (THIS IS THE IMPORTANT PART) --- */
.video-section {
    width: 100%;
    max-width: 1100px; /* This controls how wide the video gets on PC */
    margin: 20px 0 40px 0;
}

.video-aspect-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Forces 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* Forces it to fill width */
    height: 100% !important; /* Forces it to fill height */
    border: 0;
}

/* --- CONTENT --- */
.info-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    max-width: 1100px;
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 768px) {
    .sanctuary-wrapper { flex-direction: column; }
    .floating-nav { width: 100%; height: 60px; flex-direction: row; justify-content: space-around; padding: 0; }
    .title-block h1 { font-size: 2rem; }
}


/* --- SPIRITUAL EXERCISE BOX --- */
.exercise-box {
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(255, 123, 84, 0.1), rgba(255, 255, 255, 0.4));
    border-radius: 30px;
    padding: 30px;
    border-left: 5px solid var(--primary);
    max-width: 1100px;
    backdrop-filter: blur(10px);
}

.exercise-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.exercise-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.exercise-header h4 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 800;
}

.exercise-box p {
    margin: 0;
    font-family: var(--font-fancy);
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
}



/* --- INSIGHT GRID --- */
.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    max-width: 1100px;
}

.insight-item {
    background: var(--glass);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.insight-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.insight-item h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 800;
}

.insight-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* Mobile Fix for Grid */
@media (max-width: 600px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }
}


/* --- MULTI-VIDEO STYLES --- */
.video-container-multi {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 50px; /* Space between the two video blocks */
}

.video-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #444;
    letter-spacing: 1px;
}

.video-label i {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.7rem;
}

.subtitle {
    color: #666;
    margin-top: -10px;
    font-weight: 500;
}



/* --- ACADEMY SUBMISSION STYLES --- */

:root {
    --primary: #FF7B54;
    --glass: rgba(255, 255, 255, 0.45);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* Layout for Form */
.submission-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group label {
    display: block;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.custom-input, .custom-select, .reflection-box {
    width: 100%;
    padding: 16px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.custom-input:focus, .reflection-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 123, 84, 0.1);
}

.reflection-box {
    min-height: 300px;
    line-height: 1.6;
    resize: vertical;
}

/* Button Styling */
.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 123, 84, 0.25);
    transition: 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 123, 84, 0.4);
}

/* Responsive Fix */
@media (max-width: 768px) {
    .input-row { grid-template-columns: 1fr; }
    .submit-btn { width: 100%; }
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}



/* --- RULES & ABOUT PAGE STYLES --- */

.about-intro p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.notice-box {
    background: rgba(255, 123, 84, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.notice-box i { font-size: 1.5rem; color: var(--primary); }
.notice-box p { margin: 0; font-size: 0.9rem; font-weight: 600; }

/* Regulations Numbered List */
.regulations-list { list-style: none; padding: 0; }
.regulations-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    font-weight: 500;
}

.regulations-list li span {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    background: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Disqualifying Behaviors List */
.warning-card { border-top: 5px solid #e74c3c !important; }
.warning-sub { font-size: 0.85rem; color: #888; margin-bottom: 15px; }

.disqualify-list { padding-left: 20px; }
.disqualify-list li {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.disqualify-list li::marker { color: #e74c3c; content: "✕  "; }




/* --- RESPONSIVE GATEWAY FIXES --- */

/* Base Layout */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #000;
    overflow: hidden;
}

/* Side Branding (Desktop Default) */
.side-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

/* Entry Portal (Desktop Default) */
.entry-portal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* --- MOBILE BREAKPOINT (Tablets and Phones) --- */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column; /* Stacks vertically */
        overflow-y: auto;
    }

    .side-branding {
        flex: none;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        align-items: center;
        text-align: center;
    }

    /* Fix the vertical text so it's readable on mobile */
    .vertical-text {
        writing-mode: horizontal-tb; /* Flips from vertical to horizontal */
        transform: none;
        margin-bottom: 20px;
        font-size: 0.8rem;
        letter-spacing: 5px;
    }

    .main-title {
        font-size: 2.5rem; /* Shrink title slightly */
        line-height: 1;
    }

    .entry-portal {
        padding: 40px 20px;
        width: 100%;
    }

    .portal-content {
        width: 100%;
        max-width: 400px; /* Keeps the login box neat */
    }

    .glow-btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 20px;
    }
}

/* Handle Very Small Screens (iPhone SE, etc) */
@media (max-width: 400px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .portal-header h3 {
        font-size: 1.5rem;
    }
}


/* --- SANCTUARY PORTAL MOBILE OPTIMIZATION --- */

@media (max-width: 900px) {
    /* 1. Reset Wrapper Padding */
    .sanctuary-wrapper {
        padding: 15px;
        flex-direction: column;
    }

    /* 2. Reposition Floating Nav to Bottom Bar */
    .floating-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        flex-direction: row; /* Icons sit side-by-side */
        justify-content: space-around;
        padding: 0 20px;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 5, 2, 0.95); /* Deep dark background */
        backdrop-filter: blur(15px);
        z-index: 1000;
        top: auto;
    }

    .nav-brand, .nav-id {
        display: none; /* Hide brand/ID to save space on bottom bar */
    }

    .nav-links {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* 3. Adjust Header Size */
    .sanctuary-main {
        padding-bottom: 100px; /* Space for the bottom nav */
    }

    .sanctuary-header h1 {
        font-size: 2.2rem;
    }

    /* 4. Mosaic Grid: Vertical Stacking */
    .mosaic-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mosaic-item {
        width: 100%; /* Tiles take full width */
        min-height: auto;
    }

    /* 5. Modules Section */
    .module-strip {
        flex-direction: column;
        gap: 15px;
    }

    .m-box {
        width: 100% !important;
    }
}


/* --- MOBILE APP-STYLE NAVIGATION --- */
@media (max-width: 768px) {
    .floating-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        top: auto !important; /* Disables the top-anchoring */
        width: 100% !important;
        height: 75px !important; /* Fixed height for thumb-tapping */
        flex-direction: row !important; /* Horizontal layout */
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.08);
        border-right: none !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }

    .nav-item {
        display: flex;
        flex-direction: column; /* Icon on top of text */
        align-items: center;
        gap: 4px;
        color: #666;
        text-decoration: none;
        flex: 1;
    }

    .nav-item i {
        font-size: 1.2rem !important;
    }

    .nav-item span {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .nav-item.active {
        color: var(--primary) !important;
    }

    /* Prevent content from being hidden behind the new nav bar */
    .sanctuary-main {
        padding-bottom: 90px !important; 
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Hide the decorative side-labels that cause cropping */
    .nav-brand, .nav-id {
        display: none !important;
    }
}


:root {
    --primary: #FF7B54;
    --bg: #0a0a0a;
    --surface: #161616;
    --text: #ffffff;
    --text-dim: #888888;
    --accent-bg: rgba(255, 123, 84, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }

body.portal-body {
    background-color: var(--bg);
    color: var(--text);
    padding-bottom: 60px;
}

/* Header */
.sanctuary-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 6%; background: rgba(0,0,0,0.8); backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-brand { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.nav-brand span { color: var(--primary); }
.back-link { color: var(--text-dim); text-decoration: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Layout */
.portal-container { width: 92%; max-width: 500px; margin: 30px auto; }

.portal-intro { text-align: center; margin-bottom: 35px; }
.badge { background: var(--accent-bg); color: var(--primary); padding: 6px 14px; border-radius: 30px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.portal-intro h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; margin: 12px 0; }
.portal-intro h1 span { font-family: inherit; font-style: italic; color: var(--primary); }
.portal-intro p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; }

/* List Styles */
.quiz-stack { display: flex; flex-direction: column; gap: 12px; }

.quiz-row {
    background: var(--surface);
    padding: 18px;
    border-radius: 22px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: 0.25s ease;
    border: 1px solid rgba(255,255,255,0.03);
}
.quiz-row:active { transform: scale(0.97); background: #1f1f1f; }

.quiz-info { display: flex; align-items: center; gap: 16px; }
.icon-box { 
    width: 48px; height: 48px; background: rgba(255,255,255,0.03); 
    border-radius: 14px; display: flex; align-items: center; 
    justify-content: center; color: var(--primary); font-size: 1.2rem; 
}
.quiz-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.quiz-info p { font-size: 0.7rem; color: var(--text-dim); font-weight: 600; }
.lock-icon { color: #333; font-size: 0.85rem; }

/* Gatekeeper Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92); display: flex; align-items: center; 
    justify-content: center; z-index: 1000; backdrop-filter: blur(5px);
}
.modal.hidden { display: none; }

.modal-card {
    background: #121212; width: 88%; max-width: 340px; padding: 40px 24px; 
    border-radius: 32px; text-align: center; border: 1px solid rgba(255,255,255,0.08);
}
.modal-header i { font-size: 2.2rem; color: var(--primary); margin-bottom: 12px; }
.modal-header h2 { font-size: 1.3rem; font-weight: 800; }
.modal-body p { color: var(--text-dim); font-size: 0.8rem; margin: 10px 0 25px; }

#passkey-input {
    width: 100%; background: #000; border: 1px solid #222; padding: 18px; 
    border-radius: 16px; color: white; text-align: center; font-size: 1.6rem; 
    letter-spacing: 8px; margin-bottom: 15px; font-weight: 800;
}
#passkey-input:focus { outline: none; border-color: var(--primary); }

.unlock-btn {
    width: 100%; background: var(--primary); color: white; border: none; 
    padding: 18px; border-radius: 16px; font-weight: 800; cursor: pointer;
    font-size: 0.9rem; transition: 0.3s;
}
.cancel-link { background: none; border: none; color: #555; margin-top: 18px; cursor: pointer; font-size: 0.8rem; font-weight: 700; }
.error-msg { color: #ff4d4d; font-size: 0.75rem; margin-bottom: 12px; font-weight: 700; }

@media (max-width: 400px) {
    .portal-intro h1 { font-size: 2.2rem; }
    .quiz-info h3 { font-size: 0.85rem; }
}

/* --- UNIVERSAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #FF7B54;
    --bg: #0a0a0a;
    --surface: #161616;
    --text: #ffffff;
    --text-dim: #888888;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER --- */
.sanctuary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-brand { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.nav-brand span { color: var(--primary); }
.back-link { color: var(--text-dim); text-decoration: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

/* --- PORTAL LAYOUT --- */
.portal-container {
    width: 92%;
    max-width: 500px;
    margin: 30px auto;
}

.portal-intro { text-align: center; margin-bottom: 35px; }
.badge { background: rgba(255, 123, 84, 0.1); color: var(--primary); padding: 6px 14px; border-radius: 30px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.portal-intro h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; margin: 12px 0; }
.portal-intro h1 span { font-style: italic; color: var(--primary); }

/* --- THE QUIZ ROWS (Cards) --- */
.quiz-stack { display: flex; flex-direction: column; gap: 12px; }

.quiz-row {
    background: var(--surface);
    padding: 20px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
    border: 1px solid rgba(255,255,255,0.03);
}

.quiz-row:active { transform: scale(0.98); background: #1f1f1f; }

.quiz-info { display: flex; align-items: center; gap: 16px; }
.icon-box { 
    width: 48px; height: 48px; background: rgba(255,255,255,0.03); 
    border-radius: 14px; display: flex; align-items: center; justify-content: center; 
    color: var(--primary); font-size: 1.2rem; 
}

.quiz-info h3 { font-size: 1rem; font-weight: 700; }
.quiz-info p { font-size: 0.75rem; color: var(--text-dim); }
.lock-icon { color: #333; font-size: 0.9rem; }

/* --- MODAL (The Access Gate) --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal.hidden { display: none; }

.modal-card {
    background: #121212; width: 88%; max-width: 340px; padding: 40px 24px; 
    border-radius: 32px; text-align: center; border: 1px solid rgba(255,255,255,0.1);
}

#passkey-input {
    width: 100%; background: #000; border: 1px solid #333; padding: 15px; 
    border-radius: 12px; color: white; text-align: center; font-size: 1.5rem; 
    letter-spacing: 5px; margin: 20px 0;
}

.unlock-btn {
    width: 100%; background: var(--primary); color: white; border: none; 
    padding: 16px; border-radius: 12px; font-weight: 800; cursor: pointer;
}





/* --- UNIVERSAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #FF7B54;
    --dark: #121212;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light-grey);
    color: var(--dark);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.sanctuary-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--dark);
}

.nav-brand span { color: var(--primary); }

.top-nav-links { display: flex; gap: 20px; }

.nav-item {
    text-decoration: none;
    color: #666;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- CONTAINERS --- */
.dashboard-container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
}

.quiz-card {
    background: var(--white);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.welcome-block h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 10px;
}

/* --- QUIZ SPECIFIC --- */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.option-btn {
    background: #fff;
    border: 1px solid #eee;
    padding: 18px;
    border-radius: 18px;
    text-align: left;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.option-btn:disabled { cursor: default; }

.option-btn.correct { background: #e8f5e9; border-color: #2e7d32; color: #2e7d32; }
.option-btn.wrong { background: #ffebee; border-color: #c62828; color: #c62828; }

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 18px;
    width: 100%;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(255, 123, 84, 0.2);
}

.custom-input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.hidden { display: none; }

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .nav-item span { display: none; }
    .nav-item i { font-size: 1.3rem; }
    .quiz-card { padding: 20px; }
    .welcome-block h1 { font-size: 1.2rem; }
    #final-score { font-size: 2.5rem !important; }
}



:root {
    --primary: #FF7B54;
    --gold: #d4af37;
    --teal: #20c997;
    --bg: #171717;
    --card: #121212;
}

body.dark-theme {
    background: var(--bg);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.pillars-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Tab Header */
.pillars-nav {
    display: flex;
    justify-content: space-between;
    background: #1a1a1a;
    padding: 6px;
    border-radius: 50px;
    margin-bottom: 30px;
}

.tab-link {
    background: transparent;
    border: none;
    color: #888;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}

.tab-link.active {
    background: var(--primary);
    color: white;
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: slideUp 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

/* Hero Section */
.pillar-hero {
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.intercession-bg { background: linear-gradient(135deg, #1a1a1a, #2a2005); border: 1px solid var(--gold); }
.intimacy-bg { background: linear-gradient(135deg, #1a1a1a, #2a1505); border: 1px solid var(--primary); }
.fellowship-bg { background: linear-gradient(135deg, #1a1a1a, #052a25); border: 1px solid var(--teal); }

.pillar-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.gold { background: rgba(212, 175, 55, 0.1); color: var(--gold); }
.orange { background: rgba(255, 123, 84, 0.1); color: var(--primary); }
.teal { background: rgba(32, 201, 151, 0.1); color: var(--teal); }

.scripture-ref { font-style: italic; color: #888; font-size: 0.9rem; }

/* Content Areas */
.pillar-content {
    background: var(--card);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #222;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.feat-item {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.feat-item i { color: var(--primary); margin-right: 8px; }

.quote-box {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin: 20px 0;
    color: #bbb;
    font-style: italic;
}

.pillar-list {
    list-style: none;
    padding: 0;
}

.pillar-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.pillar-list i { color: var(--primary); margin-right: 10px; width: 20px; }

.fellowship-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.type-card {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
}

.type-card h4 { margin: 0 0 5px 0; color: var(--teal); }
.type-card p { margin: 0; font-size: 0.85rem; color: #999; }

.closing-call { text-align: center; font-weight: 800; color: var(--primary); margin-top: 20px; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}



/* academy.css */
:root {
    --primary-orange: #FF7B54;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #888888;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 20px;
}

.header { margin: 20px 0 30px; text-align: left; }
.header h1 { font-weight: 800; font-size: 1.6rem; margin: 0; }
.header p { color: var(--text-muted); margin-top: 5px; font-size: 0.9rem; }

.class-grid {
    display: grid;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.class-card {
    background: var(--white);
    padding: 25px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.class-card:active { transform: scale(0.97); background: #fafafa; }

.icon-box {
    width: 50px;
    height: 50px;
    background: #FFF5F2;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.class-info h3 { margin: 0; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.class-info p { margin: 3px 0 0; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.lock-status {
    position: absolute;
    right: 25px;
    color: #DDD;
}

.locked .icon-box { background: #F1F1F1; color: #AAA; }

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 35px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content input {
    width: 100%;
    padding: 18px;
    margin: 25px 0 15px;
    border-radius: 18px;
    border: 2px solid #F0F0F0;
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.modal-content input:focus { border-color: var(--primary-orange); outline: none; }

.btn-verify {
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-weight: 800;
    width: 100%;
    font-size: 1rem;
    text-transform: uppercase;
}



/* Core Layout Container */
.sanctuary-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Prevents side-scrolling */
    padding: 10px;
}

/* Timeline Container */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

/* THE FIX: Timeline Card Responsiveness */
.timeline-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    gap: 15px;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Left Side (Day/Number) */
.date-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px; /* Fixed width for alignment */
    text-align: center;
}

.date-side .day {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.6;
}

.date-side .month {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FF7B54;
}

/* Right Side (Content) */
.content-side {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.event-info h3 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 800;
}

.event-info p {
    font-size: 0.8rem;
    margin: 2px 0 0 0;
    color: #666;
}

/* Button scaling */
.enter-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap; /* Keeps button text on one line */
    text-decoration: none;
    border-radius: 8px;
    background: #FF7B54;
    color: white;
}

/* MOBILE MEDIA QUERY (The Magic) */
@media (max-width: 480px) {
    .timeline-card {
        padding: 12px;
        gap: 10px;
    }

    /* Stack content vertically if title is too long */
    .content-side {
        flex-direction: column;
        align-items: flex-start;
    }

    .enter-btn {
        width: 100%; /* Full width button on mobile */
        text-align: center;
        margin-top: 10px;
    }

    .date-side {
        min-width: 50px;
    }

    .date-side .month {
        font-size: 1.2rem;
    }

    .sanctuary-header h1 {
        font-size: 1.5rem; /* Shrink header for mobile */
    }
}


/* Fixes for mobile responsiveness */
.timeline-container {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-card {
    display: flex;
    flex-wrap: nowrap; /* Keep day and content on one line */
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08); /* Adjust for your theme */
    border-radius: 12px;
}

.date-side {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.content-side {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* THE MOBILE FIX */
@media (max-width: 600px) {
    .content-side {
        flex-direction: column; /* Stack text and button */
        align-items: flex-start;
    }
    
    .enter-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .sanctuary-header h1 {
        font-size: 1.8rem;
    }
}