/*
Theme Name: Make Money Online
Theme URI: https://example.com/
Author: Make Money Online
Description: Lightweight, security-hardened theme reproducing the Make Money Online landing design. Built to work with Elementor (HTML widget / Full Width template).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: make-money-online
*/

/* ===== Base ===== */
body.mmo-theme {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Scoped reset: only inside the design sections (never touches Elementor UI or the admin bar) */
body.mmo-theme .hero-section,
body.mmo-theme .about-section,
body.mmo-theme .lead-section,
body.mmo-theme .articles-section,
body.mmo-theme .faq-section,
body.mmo-theme .site-footer,
body.mmo-theme .hero-section *,
body.mmo-theme .about-section *,
body.mmo-theme .lead-section *,
body.mmo-theme .articles-section *,
body.mmo-theme .faq-section *,
body.mmo-theme .site-footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Design (from the approved mockup) ===== */
body.mmo-theme .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body.mmo-theme .hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

body.mmo-theme .hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

body.mmo-theme .hero-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

body.mmo-theme .hero-section p {
    max-width: 750px;
    margin: 0 auto 15px auto;
    font-size: 1.15rem;
    color: #e0e8f5;
    line-height: 1.7;
}

body.mmo-theme .hero-section p strong {
    color: #ffffff;
    font-size: 1.05rem;
}

body.mmo-theme .about-section {
    padding: 70px 0;
    background-color: #ffffff;
}

body.mmo-theme .two-columns {
    display: flex;
    align-items: center;
    gap: 50px;
}

body.mmo-theme .col-image {
    flex: 1;
}

body.mmo-theme .col-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: block;
}

body.mmo-theme .col-content {
    flex: 1;
}

body.mmo-theme .col-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1e3c72;
}

body.mmo-theme .col-content > p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 25px;
}

body.mmo-theme .benefits-list {
    list-style: none;
}

body.mmo-theme .benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 18px;
    padding-left: 35px;
    position: relative;
}

body.mmo-theme .benefits-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.3rem;
}

body.mmo-theme .lead-section {
    background-color: #1e3c72;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

body.mmo-theme .lead-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

body.mmo-theme .lead-section p {
    margin-bottom: 15px;
    color: #d0dcf0;
    font-size: 1.1rem;
}

body.mmo-theme .lead-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
}

body.mmo-theme .lead-form input {
    flex: 1;
    min-width: 220px;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

body.mmo-theme .lead-form button {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.mmo-theme .lead-form button:hover {
    background-color: #218838;
}

body.mmo-theme .articles-section {
    padding: 70px 0;
}

body.mmo-theme .articles-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1e3c72;
}

body.mmo-theme .articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

body.mmo-theme .article-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

body.mmo-theme .article-card:hover {
    transform: translateY(-5px);
}

body.mmo-theme .article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

body.mmo-theme .article-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.mmo-theme .article-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #222;
}

body.mmo-theme .article-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

body.mmo-theme .article-link {
    display: inline-block;
    color: #2a5298;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

body.mmo-theme .article-link:hover {
    color: #1e3c72;
    text-decoration: underline;
}

body.mmo-theme .faq-section {
    padding: 70px 0;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
}

body.mmo-theme .faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #1e3c72;
}

body.mmo-theme .faq-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px auto;
    color: #666;
    font-size: 1.05rem;
}

body.mmo-theme .faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.mmo-theme .faq-item {
    background: #f9fbff;
    border: 1px solid #e1e8f5;
    border-left: 5px solid #2a5298;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.mmo-theme .faq-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(30, 60, 114, 0.09);
}

body.mmo-theme .faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.mmo-theme .faq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background-color: #2a5298;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
}

body.mmo-theme .faq-answer {
    font-size: 0.98rem;
    color: #4a5568;
    line-height: 1.7;
    padding-left: 42px;
}

body.mmo-theme .faq-answer strong {
    color: #1e3c72;
    font-weight: 600;
}

body.mmo-theme .site-footer {
    background-color: #111;
    color: #aaa;
    padding: 40px 20px 30px 20px;
    text-align: center;
}

body.mmo-theme .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
}

body.mmo-theme .footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

body.mmo-theme .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

body.mmo-theme .site-footer p {
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 992px) {
    body.mmo-theme .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.mmo-theme .hero-section h1 {
        font-size: 2.8rem;
    }

}

@media (max-width: 768px) {
    body.mmo-theme .two-columns {
        flex-direction: column;
    }

    body.mmo-theme .hero-section h1 {
        font-size: 2.2rem;
    }

    body.mmo-theme .hero-section h2 {
        font-size: 1.4rem;
    }

    body.mmo-theme .articles-grid {
        grid-template-columns: 1fr;
    }

    body.mmo-theme .lead-form {
        flex-direction: column;
    }

    body.mmo-theme .lead-form input,
    body.mmo-theme .lead-form button {
        width: 100%;
    }

    body.mmo-theme .faq-item {
        padding: 20px;
    }

    body.mmo-theme .faq-answer {
        padding-left: 0;
        margin-top: 8px;
    }

    body.mmo-theme .footer-links {
        flex-direction: column;
        gap: 12px;
    }

}

/* ===== Theme extras ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: #ffffff;
    clip: auto;
    clip-path: none;
    color: #1e3c72;
    display: block;
    font-weight: 700;
    height: auto;
    left: 8px;
    padding: 12px 20px;
    top: 8px;
    width: auto;
    z-index: 100000;
}

/* Footer menu keeps the same look as the mockup */
body.mmo-theme .footer-links a {
    display: inline-block;
}

/* Lead form: honeypot + status message */
body.mmo-theme .mmo-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body.mmo-theme .lead-section p.mmo-lead-message {
    max-width: 700px;
    margin: 0 auto 20px auto;
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

body.mmo-theme .lead-section p.mmo-lead-error,
body.mmo-theme .lead-section p.mmo-lead-invalid,
body.mmo-theme .lead-section p.mmo-lead-limit {
    background: #b3261e;
}

/* Article cards: placeholder when a post has no featured image */
body.mmo-theme .article-thumb {
    display: block;
}

body.mmo-theme .article-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 0 20px;
    text-align: center;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

body.mmo-theme .article-thumb-fallback.tone-a {
    background: #1e3c72;
}

body.mmo-theme .article-thumb-fallback.tone-b {
    background: #2a5298;
}

body.mmo-theme .article-body h3 {
    line-height: 1.35;
}

/* Classic pages / posts (not built with Elementor) */
body.mmo-theme .site-main {
    display: block;
}

body.mmo-theme .page-article {
    padding: 60px 0;
    background: #ffffff;
}

body.mmo-theme .page-article .container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}

body.mmo-theme .entry-title {
    font-size: 2.2rem;
    line-height: 1.25;
    color: #1e3c72;
    margin: 0 0 20px 0;
}

body.mmo-theme .entry-meta {
    color: #777;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
}

body.mmo-theme .entry-thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
}

body.mmo-theme .entry-content {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.75;
}

body.mmo-theme .entry-content p {
    margin: 0 0 1.2em 0;
}

body.mmo-theme .entry-content h2,
body.mmo-theme .entry-content h3 {
    color: #1e3c72;
    margin: 1.6em 0 0.6em 0;
    line-height: 1.3;
}

body.mmo-theme .entry-content ul,
body.mmo-theme .entry-content ol {
    margin: 0 0 1.2em 1.4em;
}

body.mmo-theme .entry-content a {
    color: #2a5298;
}

body.mmo-theme .entry-content img {
    max-width: 100%;
    height: auto;
}

/* Pagination */
body.mmo-theme .pagination {
    margin-top: 40px;
}

body.mmo-theme .pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.mmo-theme .pagination .page-numbers {
    padding: 8px 14px;
    border-radius: 6px;
    background: #ffffff;
    color: #1e3c72;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.mmo-theme .pagination .page-numbers.current {
    background: #1e3c72;
    color: #ffffff;
}

/* ===== Simple page (Privacy Policy, Terms, About, Contact, Cookies) ===== */
body.mmo-theme .page-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 50px 20px 55px;
    text-align: center;
}

body.mmo-theme .page-hero .back-link {
    display: inline-block;
    color: #ffd700;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 22px;
}

body.mmo-theme .page-hero .back-link:hover {
    text-decoration: underline;
}

body.mmo-theme .page-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 12px 0;
}

body.mmo-theme .page-hero .page-subtitle {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #e0e8f5;
}

body.mmo-theme .page-body {
    padding: 60px 0 70px;
}

body.mmo-theme .page-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-top: 6px solid #2a5298;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    padding: 50px;
}

body.mmo-theme .page-card .last-updated {
    display: inline-block;
    background: #eef3fb;
    color: #1e3c72;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 25px;
}

body.mmo-theme .page-card .entry-content h2 {
    font-size: 1.6rem;
    color: #1e3c72;
    margin: 38px 0 14px 0;
}

body.mmo-theme .page-card .entry-content p,
body.mmo-theme .page-card .entry-content li {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
}

body.mmo-theme .page-card .entry-content ul,
body.mmo-theme .page-card .entry-content ol {
    margin: 0 0 1.2em 1.5em;
}

body.mmo-theme .page-card .entry-content li {
    margin-bottom: 6px;
}

body.mmo-theme .page-card .entry-content strong {
    color: #333333;
}

body.mmo-theme .page-card .entry-content a {
    color: #2a5298;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 768px) {
    body.mmo-theme .page-hero h1 {
        font-size: 2rem;
    }

    body.mmo-theme .page-card {
        padding: 28px 22px;
    }
}
