/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

a:hover {
    color: #3498db;
}

h1,
h2,
h3 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
    margin-bottom: 0.5em;
}

h2,
.prose h2 {
    font-size: 2rem;
    margin-top: 2em;
    /* Increased from 1.5em */
    margin-bottom: 1em;
    /* Explicit bottom margin */
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
    clear: both;
    /* Ensure headings don't wrap weirdly with floats */
    color: #2c3e50;
    /* Ensure color is set */
}

h3,
.prose h3 {
    font-size: 1.5rem;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: #2c3e50;
    font-weight: 600;
}

p,
ul,
ol {
    margin-bottom: 1.2em;
    /* Improved paragraph spacing */
}

/* Expertise Page Styles */
/* Expertise Page Styles */
.spiros-photo,
.prose img.spiros-photo {
    max-width: 220px !important;
    /* Reduced from 300px */
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: none;
    margin: 5px 0 15px 25px !important;
    display: block;
    mix-blend-mode: multiply;
    float: right !important;
}

/* Header - UPDATED FOR TRANSPARENCY */
.site-header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    /* White text for contrast on bg image */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
    display: flex;
    align-items: center;
}

.logo img {
    height: auto !important;
    /* Override inline HTML height */
    max-height: 90px;
    /* Larger size to match original site */
    width: auto;
}

/* Navigation - UPDATED FOR CONTRAST */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 15px;
    /* Reduced margin since we have padding on links */
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent !important;
    color: #fff !important;
    padding: 8px 20px !important;
    margin-top: 0;
    border: 2px solid transparent !important;
    border-radius: 30px !important;
    text-transform: none;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: inline-block;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

.main-nav li.active a {
    background: #fff !important;
    color: #2c3e50 !important;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.home-hero .btn:hover {
    color: #fff !important;
    border-bottom-color: #fff;
    opacity: 0.9;
}

/* SUB-PAGE Hero - UPDATED MATCHING ORIGINAL SITE */
.page-hero {
    text-align: left;
    /* Left align like original site */

    /* Breakout Hack: Forces full width even inside container */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* Padding calculation ensures text aligns with the 900px content width, not 1100px container */
    padding-top: 150px;
    padding-bottom: 60px;

    /* FIXED ALIGNMENT: Subtracting 8px accounts for the scrollbar width which shifts vw calculations */
    padding-left: max(20px, calc((100vw - 900px) / 2 + 20px - 8px));
    padding-right: max(20px, calc((100vw - 900px) / 2 + 20px - 8px));

    background-color: #333;
    background-size: cover;
    background-position: center top;
    color: #fff;
    margin-bottom: 40px;
}

.page-hero .hero-overlay {
    background: transparent;
    /* Transparent background */
    padding: 0;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.page-hero h1 {
    margin: 0;
    font-size: 3rem;
    /* Slightly larger */
    font-family: 'Roboto Slab', sans-serif;
    /* User requested font */
    font-weight: 300;
    /* FIXED: Lighter weight */
    color: #fff;
    /* White text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
}

/* Content Width for Pages */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    text-shadow: none;
    /* No shadow on button text */
}

.btn:hover {
    background-color: #2980b9;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: #fdfdfd;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: left;
}

.feature-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #3498db;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
}

.site-footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    /* On mobile, add a dark background so menu is readable */
    .site-header {
        position: relative;
        background: #2c3e50;
    }

    .home-hero {
        /* Reset to cover on mobile to avoid shrinking image too small */
        background-size: cover;
        width: 100%;
        left: 0;
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 60px;
    }

    .home-hero h1 {
        font-size: 3rem;
        /* Smaller font on mobile */
        max-width: 100%;
    }

    .page-hero {
        padding-top: 60px;
    }

    .main-nav {
        margin-top: 20px;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 10px 0;
    }
}

/* Overriding the white box overlay to make it transparent text only */
/* HOMEPAGE Hero - UPDATED FOR FULL WIDTH & LEFT ALIGN */
.home-hero {
    text-align: left;
    /* Align text to left like original site */

    /* Breakout Hack: Forces full width even inside container */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* Padding calculation ensures text aligns with the 1100px container */
    padding-top: 150px;
    padding-bottom: 80px;
    padding-left: max(20px, calc((100vw - 1100px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1100px) / 2 + 20px));

    background-color: #333;
    color: #fff;
    margin-bottom: 40px;

    /* UPDATED: Reverted to cover but with reduced padding above to prevent zooming */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
}

/* Homepage Content Styles */
.home-content p {
    font-family: 'Lato', sans-serif;
    font-size: 19.2px;
    opacity: 0.9;
}

.home-content li {
    font-family: 'Lato', sans-serif;
    font-size: 19.2px;
    color: #252525;
    line-height: 34.56px;
    margin-bottom: 10px;
}

/* UPDATED: Font matches original site more closely */
.home-hero .lead {
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 19.2px;
    font-weight: 300;
    max-width: 450px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 34.56px;
}

/* Overriding the white box overlay to make it transparent text only */
.home-hero .hero-overlay {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.home-hero h1 {
    font-size: 5.5rem;
    /* Larger font size */
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    /* FIXED: Increased width to 12ch. Fits "Publishers" (10ch) but breaks "Book Publishers" (15ch) */
    max-width: 12ch;
}

/* "Find out more" Link Style Override - Text Only */
.home-hero .btn {
    background: transparent !important;
    color: #fff !important;
    padding: 0 !important;
    margin-top: 10px;
    border: none !important;
    border-radius: 0 !important;
    text-transform: none;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    /* Subtle underline */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.home-hero .btn:hover {
    color: #fff !important;
    border-bottom-color: #fff;
    opacity: 0.9;
}

/* Contact Form Styles */
.contact-form-container {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #3498db;
    outline: none;
}

.contact-form button.btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .contact-form button.btn {
        width: auto;
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Expertise Page Styles */