/*
 Theme Name:   WP Tool Theme
 Theme URI:    https://x.ai/wptool-theme/
 Author:       xAI Developer
 Author URI:   https://x.ai
 Description:  A simple WordPress theme that displays a selected static page or post as the homepage, with editable header and footer, including navigation menus and widget areas. Supports individual pages and a blog posts page.
 Version:      1.0.10
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  wptool-theme
 Tags:         minimal, one-column, custom-menu, custom-logo, widgets
*/

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.professional-header {
    background-color: #1a252f; /* Dark, professional background */
    color: white;
    padding: 0.5rem 0;
    min-height: 80px; /* Fixed height for consistency */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center logo and nav */
    height: 80px; /* Match header height */
}

header .header-logo {
    display: flex;
    align-items: center; /* Vertically center logo/text */
    max-height: 50px;
    max-width: 200px;
}

header .header-logo img {
    max-height: 50px; /* Smaller logo size */
    max-width: 200px;
    height: auto;
    width: auto;
    display: block;
}

header .custom-header-text {
    max-height: 50px;
    max-width: 200px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 50px; /* Match logo height */
    color: white;
}

header .header-nav {
    display: flex;
    align-items: center; /* Vertically center nav */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: #00a0d2; /* Professional hover color */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left; /* Content left-aligned */
}

.container h2 {
    text-align: center; /* Center post/page titles */
    font-size: 2.5rem; /* Title size as requested */
}

footer {
    color: white;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
}

footer nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

footer nav ul li a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #00a0d2; /* Professional color */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #007ea6;
}

.error-message {
    text-align: center; /* Keep error messages centered */
}

.error-message h2 {
    color: #d9534f;
    font-size: 2rem; /* Distinct size for error messages */
}

.error-message p {
    font-size: 1.1rem;
    margin-top: 1rem;
}

.header-widget, .footer-widget {
    margin: 1rem 0;
    text-align: center; /* Keep widgets centered */
}

.header-widget .widget-title, .footer-widget .widget-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.header-text {
    font-size: 1.2rem;
    margin: 1rem 0;
    text-align: center; /* Keep header text centered */
}

@media (max-width: 768px) {
    .professional-header {
        min-height: 120px; /* Taller for stacked layout */
        padding: 0.5rem 0;
    }

    header .header-container {
        flex-direction: column;
        height: auto;
        padding: 0 1rem;
    }

    header .header-logo {
        margin: 0.5rem 0;
        justify-content: center; /* Center logo/text on mobile */
    }

    header .header-nav {
        justify-content: center; /* Center nav on mobile */
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .container {
        padding: 1rem;
    }

    .container h2 {
        font-size: 2rem; /* Slightly smaller titles on mobile */
    }
}