/* ==============================================
   1. Root Variables
   ============================================== */
:root {
    /* Widths and Heights */
    --inner-width: 1200px;
    --sidebar-width: 300px;
    --search-height: 33px;
    --two-col-width: 744px;

    /* Gaps, margins, paddings */
    --flex-gap: 18px;
    --flex-gap-main: 48px;
    --flex-gap-mobile: 12px;
    --flex-gap-main-mobile: 12px;
    --padding-lr-mobile: 12px;

    /* Colours */
    --text: #565656;
    --background: #FFFFFF;
    --warning: #EE2200;
    --primary: #0060AE;
    --secondary: #2DAC41;
    --tertiary: #FCC900;
    --black: #0F0E0F;
    --white: #FDFCFB;
    --field: #cccccc;
    --button: #003366;
    --button-hover: #000033;

    /* Miscellaneous */
    --news-ad-outline: 1px solid #00000066;
    --widget-border: 4px solid #00000033;
}

/* ==============================================
   2. Global Resets & Base Styles
   ============================================== */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    color: var(--text);
    background: var(--background);
}

body,
input,
button,
select,
textarea {
    font-family: 'Muli', sans-serif;
    font-size: 16px;
    line-height: 24px;
}

/* ==============================================
   3. Headings
   ============================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.woodcote_page-heading {
    margin-top: 0;
    font-weight: bold;
    color: var(--primary);
}

h1,
.woodcote_page-heading {
    font-size: 2.0rem;
    line-height: 2.2rem;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.95rem;
}

h3 {
    font-size: 1.5rem;
     line-height: 1.75rem;

}

h4 {
    font-size: 1.25rem;
     line-height: 1.5rem;
}

h5 {
    font-size: 1.125rem;
     line-height: 1.3rem;
}

h6 {
    font-size: 1.0625rem;
     line-height: 1.1rem;
}

h2.widget-title,
h4.widgettitle {
    color: #0060ae;
    text-transform: uppercase;
    margin-bottom: .75em;
    font-size: 20px;
}

.sub-cat-empty {
    font-size:12px; 
    display:block;
        margin:0 0 6px 0;
}
.sub-cat {
    font-size: 0.8rem;
    line-height: 0.9rem;
    display:block; 
    background:#3f97de; 
    padding:8px;
    color:#fff; 
    text-transform: uppercase;
    margin-bottom:12px;
}
.sub-cat-single {
    display:inline-block !important;
    font-size: 16px;
    line-height: 24px;
    background:#3f97de; 
    padding:6px;
    color:#fff; 
    text-transform: uppercase;
    margin-left: 6px;
}

@media screen and (max-width: 600px) {
    .sub-cat-single {
         margin-left: 0;
         display: block;
         margin-top: 6px;
    }
}

.woodcote_full_news_items a.nounderline,
.woodcote_full_news_items a.nounderline * {
    text-decoration: none !important;
    color:#fff;

}

.woodcote_full_news_items a.nounderline:hover,
.woodcote_full_news_items a.nounderline:hover * {
    text-decoration: none !important;
    color:#fff;
}


/* ==============================================
   4. Links & Buttons
   ============================================== */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input[type=button],
.wp-polls .Buttons {
    padding: 10px 20px;
    color: var(--white);
    background-color: var(--button);
    outline: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover,
input[type=button]:hover {
    color: #FFFFFF;
    background-color: var(--button-hover);
}

/* Pagination */
.previous {
    font-size:18px;
    margin-right:12px;
}

.page_number {
    font-size:18px;
    margin: 0 4px;
}

.next {
    font-size:18px;
    margin-left:12px;
}


/* ==============================================
   5. Layout Structure (Header, Main, Footer)
   ============================================== */
header,
main,
footer {
    margin: 0 auto;
    width: 100%;
}

header,
main {
    max-width: var(--inner-width);
}

@media only screen and (max-width: 1224px) {
    main {
        max-width: calc(var(--inner-width) - (var(--padding-lr-mobile) * 2));
        padding-right: var(--padding-lr-mobile);
        padding-left: var(--padding-lr-mobile);
    }
}

/* ── Header ─────────────────────────────────────── */
header {
    position: relative;
}

header noscript {
    display: block;
    padding: 20px;
}

header noscript h3 {
    margin: 0 0 0.75rem;
    font-size: 2.0rem;
    font-weight: bold;
    color: var(--warning);
}

header noscript p {
    margin: 0;
    font-size: 1.25rem;
}

header #user-status {
    position: fixed;
    z-index: 9999;
    top: 100px;
    left: 40%;
    padding: 50px;
    width: 400px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #cc2c04;
    background-color: beige;
    border: 5px solid black;
    border-radius: 25px;
}

header .logo-banner {
    display: flex;
    column-gap: var(--flex-gap);
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: var(--flex-gap) 0;
    height: auto;
}

header .logo-banner .logo {
    flex: 0 0 25%;
}

header .logo-banner .logo a img {
    width: 100%;
}

header .logo-banner .banner {
    display: flex;
    justify-content: right;
    flex: 0 0 calc(75% - var(--flex-gap));
}

header .logo-banner .banner a img {
    width: 100%;
}

@media only screen and (max-width: 821px) {
    header {
        height: auto;
    }

    header .logo-banner {
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 0;
        row-gap: var(--flex-gap-mobile);
        padding: var(--flex-gap-mobile) 0;
    }

    header .logo-banner .logo,
    header .logo-banner .banner {
        flex: 0 0 100%;
    }

    header .logo-banner .logo a,
    header .logo-banner .banner a {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    header .logo-banner .logo a img {
        max-width: 320px;
    }

    header .logo-banner .banner a img {
        max-width: 768px;
    }
}

/* ── Navigation & Below Menu Banner ─────────────── */
nav {
    width: 100%;

}

nav div ul {
    text-align: center !important;
}

.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
    top: 52% !important;          /* or 1.05em / 18px – pick whichever centers it best on your setup */
    transform: translateY(-50%) !important;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link {
    padding: 0px 14px;
}

#mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle + #mega-menu-max_mega_menu_1 {
    width: 100% !important;
}

@media only screen and (min-width: 768px) {
    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item-has-children li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
        float: right;
        margin-left: auto;
        margin-top: 16px;
    }
}

@media only screen and (max-width: 768px) {
    /* Match the plugin's exact sibling structure for highest specificity override */
    #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle.mega-menu-open ~ button.mega-close {
        left: auto !important;               /* Remove the calc-based left positioning */
        right: 0 !important;              /* Pin to right edge + your offset */
        top: 0 !important;                /* Adjust if vertical alignment looks off (e.g., 15px or 20px) */
        transform: none !important;          /* Cancel any centering/transform */
        visibility: visible !important;
        opacity: 1 !important;
        background: black;
    }

    /* Reinforce parent relative positioning for absolute coords to work */
    #mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle.mega-menu-open {
        position: relative !important;
    }
}

/* Make the Max Mega Menu nav sticky */
nav {
    position: sticky;
    top: 0;
    z-index: 999999999;                    /* High enough to stay above most content, but below overlays/popups if needed */
    background-color: #ffffff;       /* MUST have a background! Otherwise content shows through when stuck */
    /* Optional: subtle shadow when stuck for better visual separation */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Handle WordPress admin bar overlap (if you're logged in) */
body.admin-bar nav {
    top: 32px;                       /* Default admin bar height on desktop */
}

@media (max-width: 782px) {
    body.admin-bar nav {
        top: 46px;                   /* Admin bar height on mobile/small screens */
    }
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
    background:#828282;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link:hover, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link:focus {
    background:#828282;
}

@media screen and (max-width: 600px) {
    .mega-sub-menu .mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
        top: 52% !important;          /* or 1.05em / 18px – pick whichever centers it best on your setup */
        transform: translateY(-2%) !important;
    }
}

/* Optional: Ensure mega sub-menus don't get cut off (increase if dropdowns are hidden) */
.mega-menu-horizontal .mega-sub-menu,
.megamenu-wrap .mega-sub-menu {
    z-index: 1000 !important;        /* Or higher if still issues */
}

.below-menu-banner {
    clear: both !important;
    overflow: hidden;
    padding: var(--flex-gap-mobile) 0;
    text-align: center;
    margin-bottom: 24px;
}

.below-menu-banner::after {
    content: "";
    display: table;
    clear: both;
}

.below-menu-banner .ad-728x90,
.below-menu-banner .adsanity-728x90,
.below-menu-banner [id^="ad-"],
.below-menu-banner .adsanity-single,
.below-menu-banner .widget-under-menu-desktop {
    float: none !important;
    clear: both !important;
    margin: 0 auto !important;
    display: block !important;
    position: relative;
}

.below-menu-banner .adsanity-inner,
.below-menu-banner .adsanity-inner a,
.below-menu-banner .adsanity-inner img {
    display: block;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
}

/* Only center content inside — do NOT set display on the wrapper here */
.logo-advert-mobile-wrap.mobile-only [id^="ad-"],
.logo-advert-mobile-wrap.mobile-only .adsanity-inner,
.logo-advert-mobile-wrap.mobile-only img {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.logo-advert-mobile-wrap.mobile-only img {
    max-width: 100% !important;
    height: auto !important;
}

/* ── Main Content ───────────────────────────────── */
main {
    display: flex;
    justify-content: center;
    column-gap: var(--flex-gap-main);
    row-gap: 0;
}

main .main-wrap {
    flex: 0 0 calc(100% - var(--flex-gap-main) - var(--sidebar-width));
}

main .main-wrap .wrap-search-bar {
    display: flex;
    align-items: center;
    column-gap: var(--flex-gap-main);
    padding: 0 0 var(--padding-lr-mobile);
}

main .main-wrap .wrap-search-bar img {
    height: var(--search-height);
}

main .main-wrap #news_item_search {
    display: flex;
    align-items: center;
}

main .main-wrap #search_term {
    height: var(--search-height);
    padding: 21px;
    color: var(--black);
    background-color: var(--field);
    outline: none;
    border: none;
}

main .main-wrap #search_term::placeholder {
    color: var(--text);
}



main .main-wrap .news-2-col {
    display: flex;
    flex-wrap: wrap;
    gap: var(--flex-gap);
    margin: 20px auto;
}

main .main-wrap .news-2-col .news_item_holder {
    font-size: 1.0rem;
    line-height: 1.333;
}

main .main-wrap .news-2-col .news_item_holder .news_headline {
    margin: 10px 0;
    font-size: 1.333rem;
    line-height: 1.2;
}

main .main-wrap .news-2-col .news_item_holder,
main .main-wrap .news-2-col .news_advert_holder {
    flex: 1 1 calc(50% - (var(--flex-gap) / 2));
    outline: var(--news-ad-outline);
}

main .main-wrap .news-2-col .adsanity-1x1 img {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
}

main .sidebar {
    flex: 0 0 var(--sidebar-width);
}

main .sidebar .widget {
    margin-bottom: var(--flex-gap-mobile);
    padding-bottom: var(--flex-gap-mobile);
    border-bottom: var(--widget-border);
}

main .sidebar .widget form input[type=text],
main .sidebar .widget form input[type=email] {
    margin-bottom: var(--flex-gap-mobile);
    padding: 10px;
    width: 100%;
    color: var(--black);
    background-color: var(--field);
    outline: none;
    border: none;
}

main .sidebar .widget form input::placeholder {
    color: var(--text);
}

main .sidebar .widget form button,
main .sidebar .widget form .Buttons {
    width: 100%;
}

main .sidebar .widget form button {
    margin-top: 5px;
}

main .sidebar .widget:last-child {
    border: none;
}

@media only screen and (min-width: 822px) {
    main .main-wrap .news-2-col {
        max-width: var(--two-col-width);
    }
}

@media only screen and (max-width: 821px) {
    main {
        column-gap: 0;
        row-gap: var(--flex-gap-main-mobile);
        flex-wrap: wrap;
    }

    main .main-wrap {
        flex: 0 0 100%;
        min-width: 0;
    }

    main .sidebar {
        flex: 0 0 100%;
    }
}

@media only screen and (max-width: 580px) {
    main .main-wrap .wrap-search-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    main .main-wrap .wrap-search-bar #news_item_search {
        display: block;
        min-width: 100%;
        text-align: center;
    }

    main .main-wrap .news-2-col .news_item_holder,
    main .main-wrap .news-2-col .news_advert_holder {
        flex: 1 1 100%;
    }
}

.news-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.news-header h1 {
    margin: 0;
    flex-shrink: 0;
}

.full_news_item h1 {
    margin-bottom: 24px;
}

.news-search-form {
    flex: 1 1 auto;           /* ← this makes it grow to fill remaining space */
    max-width: 600px;         /* optional safety cap so it doesn't go crazy wide */
    min-width: 280px;         /* minimum usable width on smaller screens */
    display: flex;
    align-items: stretch;
}

.news-search-form input[type="search"] {
    flex: 1 1 auto;           /* input grows to fill the form */
    min-width: 0;             /* prevents overflow issues */
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;   /* rounded left only */
    border-right: none;
}

.news-search-form button {
    padding: 0.75rem 1.5rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.news-search-form button:hover {
    background: #0055aa;
}
/* ── Footer ─────────────────────────────────────── */
footer {
    display: flex;
    justify-content: center;
    flex: 0 0 100%;
    margin: var(--padding-lr-mobile) 0 0;
    padding: var(--padding-lr-mobile);
    color: var(--white);
    background-color: var(--primary);
}

footer section {
    width: 0 0 100%;
    max-width: var(--inner-width);
    text-align: center;
}

/* ==============================================
   6. News Item & Meta Styles
   ============================================== */
.not-logged {
    background: red;
    padding: 12px;
    color: #fff;
}

.not-logged a {
    color: #fff !important;
    text-decoration: underline !important;
}

.not-logged a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.woodcote_news_item_holder {
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.woodcote_news-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.woodcote_news-meta-row .news_cat_type {
    flex: 1;
}

.woodcote_news-meta-row .woodcote_news_date {
    text-align: right;
    white-space: nowrap;
    padding-left: 16px;
    font-weight: bold;
}

.woodcote_news_date_main {
    font-weight: bold;
    display: block;
    margin-bottom: 12px;
}

.woodcote_news_headline {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 22px;
}

.woodcote_news_headline a {
    text-decoration: none;
}

.woodcote_full_news_items .woodcote_news_item_holder.woodcote_advert_item {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 20px 0 0 0 !important;
}

.woodcote_full_news_items .woodcote_news_item_holder.woodcote_advert_item > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Keep the parent holder 100% wide with its original border/height */
.woodcote_news_item_holder.woodcote_advert_item {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;   /* prevents unwanted height stretching */
    text-align: center !important;
}

/* Target ONLY the inner AdSanity ad and constrain + center it */
.woodcote_news_item_holder.woodcote_advert_item .adsanity-single,
.woodcote_news_item_holder.woodcote_advert_item .adsanity-ad,
.woodcote_news_item_holder.woodcote_advert_item div[id^="adsanity-"],
.woodcote_news_item_holder.woodcote_advert_item .ad-unit,
.woodcote_news_item_holder.woodcote_advert_item .adsanity-inner {
    max-height: 250px !important;
    height: auto !important;               /* important: don't force 100% */
    margin: 0 auto !important;
    display: block !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Fix height and prevent stretching on MPU images */
.woodcote_news_item_holder.woodcote_advert_item .ad-300x250 .adsanity-inner img,
.woodcote_news_item_holder.woodcote_advert_item .ad-300x600 .adsanity-inner img,
.woodcote_news_item_holder.woodcote_advert_item .adsanity-inner img {
    max-height: 250px !important;
    width: auto !important;               /* use natural width up to 300px */
    height: auto !important;              /* preserve correct aspect ratio */
    margin: 0 auto !important;
    display: block !important;
}

.woodcote_news_content {
    font-size: 14px;
    line-height: 18px;
    color: #444;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woodcote_news_content p,
.woodcote_news_content li,
.woodcote_news_content div {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

#leading-news-item:hover {
    transform: scale(1.12);
}

.woodcote_empty-sub-cat {
    font-size: 12px;
    display: block;
    margin: 0 0 6px 0;
}

.woodcote_news-date-2 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.woodcote_cat-other {
    background: #0060ae;
    padding: 6px;
    color: #fff;
    display: inline-block;
    text-transform: uppercase;
}

.woodcote_page-heading {
    text-align: center;
}

.woodcote_debug-footer {
    font-size: 10px;
    color: #d9d7d5;
}

/* ==============================================
   7. Images & Floats
   ============================================== */
.woodcote_cb_float_image_left {
    float: left;
    display: block;
    width: 45%;
    padding-bottom: 8px;
}

.woodcote_cb_float_image_right {
    float: right;
    display: block;
    width: 45%;
    padding-bottom: 8px;
    margin-left: 16px;
}

.woodcote_cb_image_display_right,
.woodcote_cb_image_display_left {
    padding: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.woodcote_cb_image_caption_right,
.woodcote_cb_image_caption_left {
    padding: 0;
    font-size: 10px;
    line-height: 12px;
}

.woodcote_cb_image_caption_left {
    padding: 0 20px 0 0;
}

.woodcote_cb_image_mobile {
    display: none;
}

@media (max-width: 900px) {
    .woodcote_cb_float_image_right {
        float: initial;
        display: block;
        width: 100%;
        padding-bottom: 8px;
        margin-left: 0;
    }
}

/* ==============================================
   8. Grid Layouts & Responsive News Items
   ============================================== */
.woodcote_full_news_items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 0 6px 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.read_more {
    display: none;
    text-align: right;
    margin-top: 12px;
}

.clear {
    clear: both;
}

@media (max-width: 900px) {
    .woodcote_full_news_items {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-right: 0;
        max-width: 100%;
    }
}

/* ==============================================
   9. Visibility Helpers (Desktop / Mobile)
   ============================================== */
.desktop-only,
.mobile-only {
    display: none !important;
}

@media screen and (min-width: 601px) {
    .desktop-only {
        display: block !important;
    }
}

@media screen and (max-width: 600px) {
    .mobile-only {
        display: block !important;
    }

    header .logo-banner .banner {
        display: block;
    }
}

/* ==============================================
   10. News Header with Search Form
   ============================================== */
.news-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.article-header h1 {
    margin: 0 0 24px 0;
    flex-shrink: 0;
    text-transform: uppercase;
}

.news-header h1 {
    margin: 0 0 0 0;
    flex-shrink: 0;
    text-transform: uppercase;
}

.news-header form {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.news-header input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.news-header button {
    padding: 10px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.news-header button:hover {
    background: #005177;
}

@media screen and (max-width: 600px) {
    .news-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .news-header form {
        width: 100%;
    }

    .news-header input[type="text"] {
        width: 100%;
    }
}

/* ==============================================
   11. Consent Modal & Opt-in/Opt-out Buttons
   ============================================== */
#consent-modal .modal-buttons button,
#optInButton,
#optOutButton {
    padding: 12px !important;
}

#optOutButton {
    display: none !important;
}

/* ==============================================
   12. Video Embed (Responsive 16:9)
   ============================================== */
.second_video .custom-html-widget {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.custom-html-widget iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==============================================
   13. SAF Support Layout (Desktop two-column)
   ============================================== */
.saf-sup-left,
.saf-sup-left-inner {
    display: inline-block;
    width: 60%;
    padding-right: 24px;
    vertical-align: top;
}

.saf-sup-right,
.saf-sup-right-inner {
    display: inline-block;
    width: 38%;
    vertical-align: top;
}

/* Mobile stacking */
@media screen and (max-width: 600px) {
    .saf-sup-left,
    .saf-sup-left-inner,
    .saf-sup-right-inner,
    .saf-sup-right {
        display: block;
        width: 100%;
        padding-right: 0;
    }
}

/* ==============================================
   14. Form Field Overrides (General)
   ============================================== */
.fld_fld input,
.fld_fld select {
    width: 100% !important;
    height: 40px;
}

/* Constant Contact inline form button */
.ctct-inline-form .ctct-form-button {
    background-color: #0078c1 !important;
    border: 1px solid #0078c1;
    color: #ffffff;
    padding: 20px !important;
}

/* Constant Contact embed form button override */
.ctct-form-embed.form_0 .ctct-form-custom .ctct-form-button {
    background: #1a73e8 !important;
    border: 1px solid #0078c1;
    padding: 16px !important;
    font-size: 24px;
}

/* ==============================================
   15. Modern Form Wrapper & Layout
   ============================================== */
.modern-form-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: grid;
    gap: 10px;
}

.modern-form-wrapper p {
    margin: 0;
    padding: 0;
}

/* Desktop two-column grid */
@media (min-width: 768px) {
    .modern-form-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .form-row.half-width {
        margin-bottom: 0;
    }
    .form-row.full-width {
        grid-column: span 2;
    }
}

/* Mobile single-column */
@media (max-width: 767px) {
    .modern-form-wrapper {
        grid-template-columns: 1fr;
        padding: 15px;
        margin: 0 10px;
    }
    .form-row.half-width,
    .form-row.full-width {
        grid-column: span 1;
    }
    .form-input {
        width: 95% !important;
    }
}

/* Form rows & spacing */
.form-row {
    margin-bottom: 10px;
}

/* Labels */
.modern-form-wrapper label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 15px;
}

/* Required asterisk */
.required {
    color: #d32f2f;
    font-size: 13px;
    margin-left: 3px;
}

/* Inputs & textareas */
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* Custom select arrow */
.ctct-select-element {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    padding-right: 25px;
    position: relative;
}

.ctct-select-element::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
    pointer-events: none;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.checkbox-note {
    font-size: 11px;
    line-height: 13px;
    color: #666;
    margin-top: 4px;
    display: block;
}

/* Submit button */
.submit-button {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.submit-button:hover {
    background: #0056b3;
}

/* Turnstile CAPTCHA */
.cf-turnstile {
    margin: 10px 0;
}

/* ==============================================
   16. Contact Form 7 – Messages & Validation
   ============================================== */
.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 0;
    font-weight: normal;
    display: none;
}

.wpcf7-list-item {
    display: inline-block;
    margin: 0 0 0 0em;
}

/* Response output (general) */
.wpcf7-response-output,
div.wpcf7-form .wpcf7-response-output {
    margin: 8px 0 0 0 !important;
    padding: 6px !important;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid transparent !important;
}

/* Error states */
.wpcf7-not-valid {
    border-color: #d32f2f;
}

div.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
div.wpcf7-form .wpcf7-response-output.wpcf7-spam-blocked {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb !important;
}

/* Success state */
div.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb !important;
}

/* Remove space after message */
div.wpcf7-form .wpcf7-response-output + * {
    margin-top: 0 !important;
}

/* ==============================================
   17. SociableKit / Twitter Feed Tweaks
   ============================================== */
.sk-ww-twitter-feed .sk-header-top {
    display: none !important;
}

/* Branding link styling */
.sk_branding,
.sk-ww-twitter-feed a[href*="sociablekit.com"] {
    font-size: 10px !important;
    opacity: 0.7 !important;
    line-height: 1.2 !important;
}
/* ==============================================
   18. First News Items in Grid
   ============================================== */
#feed_item_0i {
    margin: 20px 0;
    height: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#leading-news-item {
    transition: all 3s ease;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#leading-news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

.featured-overlay .news_date {
    text-align: left;
}

.featured-overlay .news_headline {
    font-size: 1.8rem;
    line-height: 2rem;
    margin-top: 8px;
}


/* ==============================================
   19. Overlay
   ============================================== */
#dark_wrap {
    display: hidden;
    position: fixed;
    z-index: 99999998;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    background: #000;
    opacity: .75;
    filter: alpha(opacity=75);
}

#newsletter_overlay, #newsletter_overlay_2 {
    display: none;
    height: auto;
    width: 85%;
    max-width: 555px;
    position: absolute;
    margin: 0;
    left: 0;
    top: 0;
    z-index: 999999999999999;
    cursor: pointer;
}

#newsletter_overlay img, #newsletter_overlay_2 img {
    width: 100%;
}

#topxcorner, #topxcorner_2 {
    position: absolute;
    display: block;
    top: -10px;
    right: -10px;
    z-index: 999999999;
}


	.no-sidebar .main-wrap {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.no-sidebar .sidebar,
.no-sidebar aside {
    display: none;
}
@media (max-width: 768px) {
    .no-sidebar .wrap,
    .no-sidebar #inner-content,
    .no-sidebar .main-wrap,
    .no-sidebar .entry-content {
        padding-left: 0;
        padding-right: 0;
    }
}

.sub-cat-h2 {
    font-size: 20px;
    text-transform: uppercase;
    line-height: 24px;
    background: #f0f0f0;
    padding: 6px 12px;
}
