/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header */
header {
    background: #f9f9f9; /* Subtle, clean background */
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(110, 198, 241, 0.06);
}

header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Banner image container matches main content width */
.banner-container {
    max-width: 800px;
    margin: 1.5rem auto 2rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.banner-container img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

main p {
    margin-bottom: 1rem;
}

section {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 0.5rem;
}

section h3 {
    font-size: 1.2rem;
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

section p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}

section ul {
    list-style: none;
    padding-left: 0;
}

section ol, section ul {
    padding-left: 1.5em;
}

section li {
    padding: 0.5rem 0;
    color: #555;
}

section li a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

section li a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Button Styles */
button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 1rem 0;
}

button:hover {
    background-color: #e55555;
}

button:active {
    transform: scale(0.98);
}

/* FAQ Styles */
details {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

details summary {
    font-weight: 600;
    color: #2c3e50;
    user-select: none;
    transition: color 0.2s ease;
}

details summary:hover {
    color: #ff6b6b;
}

details p {
    margin-top: 1rem;
    color: #555;
}

/* Restore bullets for lists inside FAQ details */
details ul {
    list-style: disc outside;
    padding-left: 1.5em;
    margin-left: 0;
}

details li {
    list-style-type: disc;
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
}

/* Ad Space */
.ad-space {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* Scroll Hint */
.scroll-hint {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    opacity: 0.85;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #1a252f;
}

footer nav {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

footer nav a {
    display: inline-block;
    align-items: center;
    justify-content: center;
    height: 2rem;
    padding: 0 0.2rem;
}

.footer-sep {
    color: #ecf0f1;
    margin: 0 1.1rem;
    font-size: 1.1em;
    display: inline-block;
    vertical-align: middle;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ff6b6b;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    footer nav {
        font-size: 0.95rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    footer nav a {
        display: inline;
        margin: 0;
        height: auto;
        padding: 0;
    }

    footer nav a::after {
        content: none !important;
    }

    footer a {
        display: block;
        margin: 0.5rem 0;
    }

    .ad-space {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }

    main {
        margin: 1rem auto;
    }

    section {
        padding: 0.8rem;
        border-radius: 4px;
    }

    section h2 {
        font-size: 1.1rem;
    }

    button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem 0.5rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}