/* --- Features Hero Section --- */
.features-hero {
    padding: 60px 20px;
    background-color: var(--brand-dark);
    color: var(--text-light);
    text-align: center;
    /* Add the animated background */
    background-image:
        linear-gradient(45deg, #2c3e50, #34495e),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 100%, 50px 50px, 50px 50px;
    animation: slowPanRight 60s linear infinite;
}
.features-hero h1 {
    color: #fff;
    border-bottom: none;
    font-size: 2.8rem;
}
.features-hero .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 10px auto 0 auto;
}
.features-hero .container {
    background-color: var(--brand-orange);
}

/* --- Feature Showcase Section --- */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}
.feature-showcase:last-of-type {
    border-bottom: none;
}
/* Reverse layout for alternating rows */
.feature-showcase.layout-reversed {
    grid-template-areas: "visual text";
}
.feature-showcase.layout-reversed .feature-text {
    grid-area: text;
}
.feature-showcase.layout-reversed .feature-visual {
    grid-area: visual;
}

.feature-text h2 {
    text-align: left;
    display: block;
    position: static;
    transform: none;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    font-size: 2.2rem;
}
.feature-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.btn-learn-more {
    font-weight: bold;
    color: var(--brand-orange);
    text-decoration: none;
    font-size: 1.1rem;
}
.btn-learn-more:hover {
    text-decoration: underline;
}

.product-mockup {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* --- Final CTA on Features Page --- */
.final-cta-section {
    background-color: var(--brand-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}
.final-cta-section .container {
    background-color: transparent;
    box-shadow: none;
}
.final-cta-section h2 {
    color: #fff;
    border-bottom: none;
    font-size: 2.8rem;
}
.final-cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Keyframe for background animation --- */
@keyframes slowPanRight {
    0% { background-position: 0% 0%; }
    100% { background-position: 100px 100px; }
}


/* --- Detailed Manual Page (feature_more.php) --- */
.manual-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}
.side-nav {
    position: sticky;
    top: 120px; /* Adjust based on main nav height */
    width: 240px;
    flex-shrink: 0;
}
.side-nav h3 {
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-top: 0;
}
.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-nav li a {
    display: block;
    padding: 10px 15px;
    margin: 5px 0;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}
.side-nav li a:hover {
    color: var(--brand-orange);
    background-color: #f0f0f0;
    text-decoration: none;
}
.side-nav li a.active {
    background-color: var(--brand-orange);
    color: #fff;
    font-weight: 700;
}
.side-nav .nav-link {
    margin-top: 20px;
    font-size: 1rem;
}

.content-area {
    flex-grow: 1;
    min-width: 0; /* Prevents flexbox from overflowing */
}
.logo-header {
    display: block;
    max-width: 180px;
    margin: 0 0 30px 0;
}
.manual-section {
    padding-top: 20px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}
.manual-section:last-child {
    border-bottom: none;
}
.manual-section h2 {
    text-align: left;
    display: block;
    position: static;
    transform: none;
    border-bottom-width: 2px;
    padding-bottom: 10px;
    margin-bottom: 25px;
}
.screenshot {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.note, .warning {
    padding: 15px 20px;
    margin: 20px 0;
    border-left-width: 5px;
    border-left-style: solid;
    border-radius: 4px;
}
.note {
    background-color: #e7f3fe;
    border-color: #2196F3;
}
.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}
code {
    background-color: #e9ecef;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* --- Responsive for Features Pages --- */
@media (max-width: 992px) {
    .feature-showcase, .feature-showcase.layout-reversed {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-showcase.layout-reversed .feature-visual {
        grid-row: 1;
    }
    .feature-text h2 {
        text-align: center;
    }
    .manual-container {
        flex-direction: column;
    }
    .side-nav {
        position: static;
        width: 100%;
        margin-bottom: 30px;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 20px;
    }
}
