/* Climate Service Theme Overrides */
:root {
    --primary-color: #0284c7;
    /* Sky 600 */
    --primary-hover: #0369a1;
    /* Sky 700 */
    --secondary-color: #f0f9ff;
    /* Sky 50 */
    --text-main: #334155;
    /* Slate 700 */
    --text-dark: #0f172a;
    /* Slate 900 */
    --accent-color: #0ea5e9;
    /* Sky 500 */
    --white: #ffffff;
}

body {
    color: var(--text-main);
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* PHP Generated Content Styles */
#root>div {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--white) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1rem 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1,
header .logo {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

header nav a {
    color: var(--text-main);
    margin-left: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    padding: 2rem !important;
    flex: 1;
}

/* Hero Section (First Section) */
main>div>section:first-child {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e0f2fe 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

main h1 {
    color: var(--text-dark) !important;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

main h2 {
    color: var(--primary-color) !important;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

main h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

main p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

main ul,
main ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

main li {
    margin-bottom: 0.5rem;
}

/* Call to Action Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--text-dark) !important;
    color: var(--white) !important;
    padding: 3rem 2rem !important;
    margin-top: auto;
}

footer a {
    color: var(--accent-color) !important;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem !important;
    }

    header nav {
        margin-top: 1rem;
    }

    header nav a {
        margin: 0 0.75rem;
    }

    main {
        padding: 1rem !important;
    }

    main h1 {
        font-size: 1.75rem;
    }
}