:root {
    --primary: #eca7f2; /* Warm Terracotta */
    --secondary: #F7EBE1; /* Soft Cream */
    --accent: #2E4052; /* Deep Slate Blue */
    --text-dark: #333333;
    --text-light: #FAFAFA;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation with Logo Integration */
header {
    background-color: rgba(247, 235, 225, 0.95);
    /* Updated padding to manage the larger logo */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Logo link styling */
.logo-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

/* Key update: Logo image styling */
.logo-image {
    max-height: 60px; /* Limits logo height to prevent layout issues */
    width: auto;      /* Maintains aspect ratio */
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: var(--primary);
}

.btn {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background-color: #a86443;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 123, 87, 0.4);
}

/* SPA Page Sections */
.page-section {
    /*display: none;*/
    display: block;
    animation: fadeIn 0.6s ease;
    flex: 1;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Landing Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(to right, rgba(247, 235, 225, 0.95) 30%, rgba(247, 235, 225, 0.2)),
    url('https://images.unsplash.com/photo-1554461463-5477ab68b6d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    background-position: center 20%;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #555;
}

/* Section Typography */
.section-title {
    text-align: center;
    padding: 4rem 1rem 1rem;
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 3rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* Tutorials Hub */
.tutorials-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0 5% 5rem;
    flex-wrap: wrap;
}

.tutorial-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    width: 350px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid var(--primary);
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.tutorial-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.tutorial-card p {
    color: #666;
    margin-bottom: 2rem;
}

/* Content Wrappers (Video & Written) */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 3rem 5%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.back-btn {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    margin-bottom: 2rem;
    padding: 0.6rem 1.5rem;
}

.back-btn:hover {
    background-color: var(--accent);
    color: white;
    box-shadow: none;
}

/* Video Setup */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Written Setup */
.written-instructions h3 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.written-instructions p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.written-instructions ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.written-instructions li {
    margin-bottom: 0.8rem;
}

.pdf-download {
    background-color: var(--accent);
    margin-top: 2rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--accent);
    color: var(--secondary);
    text-align: center;
    padding: 2.5rem 5%;
    margin-top: auto; /* Pushes footer to bottom */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* SVG Icons */
svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 5%;
    }

    .logo-image {
        max-height: 50px; /* Smaller logo for mobile */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero {
        justify-content: center;
        text-align: center;
        background-position: center;
        background: linear-gradient(to right, rgba(247, 235, 225, 0.95), rgba(247, 235, 225, 0.8)),
        url('https://images.unsplash.com/photo-1554461463-5477ab68b6d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    }
    nav ul {
        display: none; /* Hide standard nav on mobile (simple version) */
    }
    .tutorial-card {
        width: 100%;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

/* Auth and admin workspace styles (scoped, additive only) */
.om-form-page {
    padding: 2rem 5% 4rem;
}

.om-form-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.om-single-card-shell {
    max-width: 650px;
}

.om-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.om-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    border-bottom: 5px solid var(--primary);
    padding: 1.75rem;
}

.om-form-card h2,
.om-form-card h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 1rem;
}

.om-field-label {
    display: block;
    margin: 0.75rem 0 0.35rem;
    color: var(--accent);
    font-weight: 600;
}

.om-text-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: var(--text-dark);
}

.om-text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 167, 242, 0.2);
}

.om-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.9rem 0 1rem;
}

.om-btn-full {
    width: 100%;
    margin-top: 0.9rem;
}

.om-btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.om-btn-ghost:hover {
    background: var(--accent);
    color: #fff;
}

.om-btn-danger {
    background: #d9534f;
}

.om-btn-danger:hover {
    background: #b73b38;
    box-shadow: 0 4px 15px rgba(183, 59, 56, 0.35);
}

.om-form-alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.om-form-alert-error {
    background: #fdeaea;
    color: #8c2f2f;
    border: 1px solid #f1c1c1;
}

.om-form-alert-success {
    background: #eaf8ed;
    color: #25643b;
    border: 1px solid #bfe7ca;
}

.om-form-note {
    color: #666;
    margin-bottom: 1rem;
}

.om-card-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1.3rem 0;
}

.om-recovery-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.om-recovery-list li {
    margin-bottom: 0.35rem;
    font-family: monospace;
    font-size: 0.95rem;
}

.om-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.om-table-wrapper {
    overflow-x: auto;
}

.om-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.om-data-table th,
.om-data-table td {
    text-align: left;
    padding: 0.65rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.om-data-table thead {
    background: #faf6f2;
}

.om-table-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 5%;
    }

    .logo-image {
        max-height: 50px; /* Smaller logo for mobile */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero {
        justify-content: center;
        text-align: center;
        background-position: center;
        background: linear-gradient(to right, rgba(247, 235, 225, 0.95), rgba(247, 235, 225, 0.8)),
        url('https://images.unsplash.com/photo-1554461463-5477ab68b6d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    }
    nav ul {
        display: none; /* Hide standard nav on mobile (simple version) */
    }
    .tutorial-card {
        width: 100%;
    }
    .section-title {
        font-size: 2.2rem;
    }

    .om-form-page {
        padding: 1.5rem 5% 3rem;
    }

    .om-form-card {
        padding: 1.2rem;
    }
}
