/*
Theme Name:    Twenty Twenty-One Child
Template:      twentytwentyone
Version:       1.0.0
*/

/* ==========================================================================
   1. SCREEN BACKGROUND PROFILE (PALE SLATE FRAME & CONTAINER)
   ========================================================================== */
html,
body,
.site-branding {
    background-color: #e2e8f0 !important; /* Shifted slightly darker to a solid, muted slate-grey */
    background: #e2e8f0 !important;
}

#page.site {
    max-width: 1200px;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08); /* Modern, soft shadow drop */
    min-height: 100vh;
}

/* ==========================================================================
   2. WHITE LOGO BANNER (TOP GRAPHIC ONLY)
   ========================================================================== */
.custom-top-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding: 20px 0 10px 0;
}

.custom-top-banner img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. FIXED SLIM NAV BAR (RESTORED NAVY BLUE BACKGROUND)
   ========================================================================== */
header#masthead,
.site-header,
.primary-navigation-wrapper,
.primary-navigation {
    background-color: #1e293b !important; /* Restored original Navy Blue background */
    background: #1e293b !important;
}

header#masthead,
.site-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

.site-header .header-inner {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100%;
    padding-left: 6.5rem !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.primary-navigation {
    margin: 0 !important;
    width: 100%;
}

.primary-navigation > div > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Enforce breathing room between menu links */
.primary-navigation li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 2.5rem !important;
    padding: 0 !important;
}

.primary-navigation a {
    color: #ffffff !important; /* Restored pure white links for clear readability on Navy */
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    transition: color 0.15s ease-in-out;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Explicitly target ONLY the very first menu option (e.g., "Home") */
.primary-navigation li:first-child {
    margin-left: 2.5rem !important;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
    color: #f87171 !important; /* Soft crimson accent matching your hover style */
    text-decoration: underline !important;
}

/* ==========================================================================
   4. WHITE CENTER CONTENT CANVAS & DISTANCE RECOVERY
   ========================================================================== */
#content,
.site-content,
.site-main,
#primary {
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding-top: 4rem !important;
}

.site-main,
.site-main *,
.entry-title,
.site-main h1,
.site-main h2,
.site-main h3,
.site-main p,
.site-main li,
.site-main time {
    color: #1e293b !important;
}

.site-main a {
    color: #991b1b !important;
    text-decoration: underline !important;
}

/* Target entry-title to match your typography identity */
h1.entry-title,
.entry-title,
.entry-title a {
    color: #0284c7 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    text-decoration: none !important;
}

.entry-title a:hover {
    color: #025a87 !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   5. SUB-BANNER LAYOUT FOR ICON
   ========================================================================== */
.menu-sub-banner {
    background-color: #ffffff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0 0 0;
}

.menu-sub-banner img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   6. HEADER BULLETIN IMAGE ONLY LAYOUT (CENTERED)
   ========================================================================== */
.header-bulletin-image-block {
    background-color: #ffffff !important;
    width: 100%;
    padding: 1.5rem 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box;
}

.bulletin-image-link {
    display: inline-block !important;
    margin: 0 auto !important;
    max-width: 100%;
    width: auto;
}

.header-bulletin-image-block img {
    display: block;
    margin: 0 auto !important;
    max-width: 1200px;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   7. CORE BLOCK SEARCH DELETION (REGARDLESS OF CONTAINER POSITION)
   ========================================================================== */
.wp-block-search,
.widget_search,
form.search-form,
.wp-block-search__inside-wrapper,
.wp-block-search__label,
input.wp-block-search__input,
input.search-field {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

button.wp-block-search__button,
input.search-submit {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   8. DYNAMIC FOOTER WIDGET WHITE TEXT FORCE OVERRIDE
   ========================================================================== */
.footer-widgets-wrapper,
.footer-widgets {
    --wp--style--color--text: #ffffff !important;
    --global--color-text: #ffffff !important;
    --global--color-primary: #ffffff !important;
    color: #ffffff !important;
}

.footer-widgets-wrapper *,
.footer-widgets *,
.footer-widgets-wrapper h2,
.footer-widgets-wrapper h3,
.footer-widgets-wrapper a,
.footer-widgets-wrapper li,
.widget-area * {
    color: #ffffff !important;
}

.footer-widgets-wrapper a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-widgets-wrapper a:hover {
    color: #f87171 !important;
}

/* ==========================================================================
   9. SIDE-BY-SIDE RECENT FEED LAYOUT (LEFT IMAGE / RIGHT TEXT)
   ========================================================================== */
.header-custom-feed-container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 2rem 2.5rem !important;
    background-color: #ffffff !important;
}

.feed-row-item {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important; /* Soft light grey separator line */
}

.feed-row-item:last-child {
    border-bottom: none !important;
}

.feed-row-left {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    width: 260px !important;
}

.feed-row-left img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.feed-no-image-placeholder {
    width: 100%;
    height: 160px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px dashed #e2e8f0;
}

.feed-row-right {
    flex: 1 !important;
}

h3.feed-item-title {
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
}

h3.feed-item-title a {
    color: #0284c7 !important; /* Refined Byzantine deep red */
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    transition: color 0.15s ease-in-out;
}

h3.feed-item-title a:hover {
    color: #f87171 !important;
    text-decoration: none !important;
}

.feed-item-excerpt p {
    color: #475569 !important;     /* Slate gray text format */
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.feed-item-excerpt a.more-link {
    color: #0284c7 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.feed-item-excerpt a.more-link:hover {
    color: #dc2626 !important;
}

.no-feed-data {
    color: #94a3b8;
    text-align: center;
    padding: 3rem;
    font-style: italic;
}
