/*
Theme Name:  News Week
Theme URI:   https://wordpress.org/themes/
Author:      High Performance Build Engine
Author URI:  https://wordpress.org/
Description: Ultra High Performance PageSpeed 95+ WordPress Theme for News Week with Primary Color #B09732, High Readability Typography, Transparent Single/Page Containers, Form Black Shadow, Rounded-Square Pagination, 4-Tier Fallback Image Engine, and Sticky Sidebar.
Version:     1.0.0
Text Domain: news-week
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:        custom-logo, custom-menu, featured-images, translation-ready, sticky-post, theme-options, threaded-comments

==================================================
1. CORE BASE STYLES & RESET
==================================================
*/

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background-color: #fafafa;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #B09732;
    --primary-dark: #8c7724;
    --primary-light: #d4bc54;
    --accent-gold: #f59e0b;
}

/* ==================================================
   2. PRIMARY BACKGROUND (#B09732): ALWAYS WHITE (#ffffff) TEXT BOTH DEFAULT & HOVER
   ================================================== */
header.site-header, 
footer.site-footer, 
.bg-\[\#B09732\],
.bg-primary {
    background-color: #B09732 !important;
    color: #ffffff !important;
}

header.site-header *, 
footer.site-footer *, 
.bg-\[\#B09732\] *,
.bg-primary * {
    color: #ffffff !important;
}

header.site-header a, 
header.site-header a:hover,
header.site-header nav a,
header.site-header nav a:hover,
header.site-header .menu-item a,
header.site-header .menu-item a:hover,
footer.site-footer a, 
footer.site-footer a:hover,
.bg-\[\#B09732\] a,
.bg-\[\#B09732\] a:hover,
.bg-primary a,
.bg-primary a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

header.site-header a:hover,
header.site-header nav a:hover,
header.site-header .menu-item a:hover,
footer.site-footer a:hover, 
.bg-\[\#B09732\] a:hover,
.bg-primary a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    opacity: 0.95 !important;
}

/* ==================================================
   3. SCOPED TITLES & LINKS: SOLID BLACK (#000000) DEFAULT & PRIMARY GOLD (#B09732) HOVER
   ================================================== */
article header {
    background-color: transparent !important;
    color: #000000 !important;
}

#page a:not(#wpadminbar *):not(header.site-header *):not(footer.site-footer *):not(.bg-\[\#B09732\] *):not(.bg-slate-900 *), 
.site-main a:not(#wpadminbar *):not(header.site-header *):not(footer.site-footer *):not(.bg-\[\#B09732\] *):not(.bg-slate-900 *), 
.site-main h1 a:not(#wpadminbar *), 
.site-main h2 a:not(#wpadminbar *), 
.site-main h3 a:not(#wpadminbar *), 
.site-main h4 a:not(#wpadminbar *), 
.site-main h5 a:not(#wpadminbar *), 
[data-role^="sec"] a:not(#wpadminbar *):not(header.site-header *):not(footer.site-footer *):not(.bg-\[\#B09732\] *):not(.bg-slate-900 *) {
    color: #000000 !important;
    background-color: transparent !important;
    text-decoration: none;
    transition: color 0.2s ease-in-out !important;
}

#page a:not(#wpadminbar *):not(header.site-header *):not(footer.site-footer *):not(.bg-\[\#B09732\] *):not(.bg-slate-900 *):hover, 
.site-main a:not(#wpadminbar *):not(header.site-header *):not(footer.site-footer *):not(.bg-\[\#B09732\] *):not(.bg-slate-900 *):hover, 
.site-main h1 a:not(#wpadminbar *):hover, 
.site-main h2 a:not(#wpadminbar *):hover, 
.site-main h3 a:not(#wpadminbar *):hover, 
.site-main h4 a:not(#wpadminbar *):hover, 
.site-main h5 a:not(#wpadminbar *):hover, 
[data-role^="sec"] a:not(#wpadminbar *):not(header.site-header *):not(footer.site-footer *):not(.bg-\[\#B09732\] *):not(.bg-slate-900 *):hover {
    color: #B09732 !important;
    text-decoration: underline;
}

/* DARK HERO OVERLAYS SOLID WHITE (#ffffff) */
.bg-slate-900 a,
.text-white,
.text-white a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.bg-slate-900 a:hover,
.text-white a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.entry-content a {
    color: #B09732 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(176, 151, 50, 0.4) !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 2px !important;
}

.entry-content a:hover {
    color: #8c7724 !important;
    text-decoration-color: #B09732 !important;
    background-color: #f7f4e6 !important;
    border-radius: 0.25rem !important;
}

/* ==================================================
   4. LEAVE A REPLY (#respond) & CONTACT FORM SHADOW & HIGH READABILITY STYLING
   ================================================== */
#respond,
.comment-respond,
.comment-form,
.contact-form,
.wpcf7,
.wpforms-container {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

#reply-title, 
.comment-reply-title {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    border-bottom: 2px solid #B09732 !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.comment-form label,
.contact-form label,
.wpcf7 label,
.wpforms-field-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.25rem !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpforms-form input,
.wpforms-form textarea,
.contact-form input,
.contact-form textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea,
form input[type="text"],
form input[type="email"],
form input[type="url"],
form textarea {
    width: 100% !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    margin-top: 0.375rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
}

.comment-form input:focus,
.comment-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
#respond input:focus,
#respond textarea:focus,
form input:focus,
form textarea:focus {
    outline: none !important;
    border-color: #B09732 !important;
    box-shadow: 0 10px 15px -3px rgba(176, 151, 50, 0.3), 0 4px 6px -2px rgba(176, 151, 50, 0.15) !important;
}

.comment-form input[type="submit"],
.wpcf7 input[type="submit"],
.wpforms-form button[type="submit"],
.contact-form button[type="submit"],
#respond input[type="submit"] {
    background-color: #B09732 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.75rem !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.comment-form input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.contact-form button[type="submit"]:hover,
#respond input[type="submit"]:hover {
    background-color: #8c7724 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35) !important;
}

/* HIGH-READABILITY ARTICLE TYPOGRAPHY (.entry-content) */
.entry-content {
    color: #0f172a;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.entry-content p {
    margin-bottom: 1.25rem;
    color: #0f172a;
}

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #020617;
    border-left: 4px solid #B09732;
    padding-left: 0.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* PAGINATION */
.theme-pagination, .navigation.pagination, .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.theme-pagination .page-numbers, 
.navigation.pagination .page-numbers, 
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.375rem;
    height: 2.375rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.theme-pagination .page-numbers.current, 
.navigation.pagination .page-numbers.current, 
.pagination .page-numbers.current {
    background-color: #B09732 !important;
    color: #ffffff !important;
    border-color: transparent !important;
    font-weight: 900 !important;
}
