/*
Theme Name: Rubbish Removal Enfield
Theme URI: https://www.rubbishremovalenfield.co.uk/
Author: Rubbish Removal Enfield
Author URI: https://www.rubbishremovalenfield.co.uk/
Description: A clean, responsive Bootstrap 5.3 compatible WordPress theme for Rubbish Removal Enfield with visible navigation, mobile menu support, service templates and editable page files.
Version: 2.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rubbish-removal-enfield
*/

:root {
    --rre-primary: #29AB87;
    --rre-secondary: #0E1B25;
    --rre-black: #000000;
    --rre-white: #ffffff;
    --rre-border: rgba(0, 0, 0, 0.10);
    --rre-soft: #f7faf9;
    --rre-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    --rre-radius: 22px;
    --rre-font: Inter, Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 116px;
    background: var(--rre-white);
    color: var(--rre-black);
    font-family: var(--rre-font);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body.admin-bar .rre-header-wrap {
    top: 32px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--rre-primary);
}

img {
    max-width: 100%;
    height: auto;
}

.rre-container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.rre-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background: #29AB87;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.rre-topbar {
    background: var(--rre-secondary);
    color: var(--rre-white);
    font-size: 14px;
}

.rre-topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rre-topbar span,
.rre-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rre-white);
}

.rre-topbar i {
    color: var(--rre-white);
}

.rre-main-header {
    background: #29AB87;
}

.rre-header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.rre-logo-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    color: var(--rre-white);
}

.rre-logo-link:hover {
    color: var(--rre-white);
}

.rre-logo-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--rre-secondary);
    color: var(--rre-white);
    font-size: 22px;
}

.rre-logo-text {
    display: block;
    color: var(--rre-white);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.7px;
}

.rre-nav-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rre-nav-menu,
.rre-nav-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rre-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rre-nav-menu li {
    position: relative;
}

.rre-nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 999px;
    color: var(--rre-white) !important;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rre-nav-menu > li > a:hover,
.rre-nav-menu > li.current-menu-item > a,
.rre-nav-menu > li.current_page_item > a,
.rre-nav-menu > li.current-menu-ancestor > a {
    background: var(--rre-secondary);
    color: var(--rre-white) !important;
}

.rre-nav-menu .menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 10px;
    font-weight: 900;
}

.rre-nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 10000;
    min-width: 260px;
    padding: 10px;
    background: var(--rre-white);
    border: 1px solid var(--rre-border);
    border-radius: 18px;
    box-shadow: var(--rre-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.rre-nav-menu li:hover > .sub-menu,
.rre-nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rre-nav-menu .sub-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--rre-black) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.rre-nav-menu .sub-menu a:hover {
    background: #29AB87;
    color: var(--rre-white) !important;
}

.rre-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.rre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rre-btn-dark {
    background: var(--rre-secondary);
    color: var(--rre-white) !important;
}

.rre-btn-primary {
    background: #29AB87;
    color: var(--rre-white) !important;
    border-color: rgba(255, 255, 255, 0.35);
}

.rre-header-actions .rre-btn-primary {
    background: var(--rre-white);
    color: #29AB87 !important;
}

.rre-btn:hover {
    transform: translateY(-2px);
    color: var(--rre-white) !important;
}

.rre-header-actions .rre-btn-primary:hover {
    background: var(--rre-secondary);
    color: var(--rre-white) !important;
}

.rre-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    background: var(--rre-secondary);
    color: var(--rre-white);
    font-size: 21px;
    cursor: pointer;
}

.rre-mobile-panel {
    display: none;
}

.rre-hero {
    padding: 84px 0;
    background: var(--rre-secondary);
    color: var(--rre-white);
    overflow: hidden;
}

.rre-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: center;
}

.rre-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: #29AB87;
    color: var(--rre-white);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--rre-black);
    line-height: 1.15;
    letter-spacing: -0.45px;
}

.rre-hero h1,
.rre-hero h2,
.rre-hero h3,
.rre-footer h1,
.rre-footer h2,
.rre-footer h3,
.rre-footer h4,
.rre-footer h5,
.rre-footer h6 {
    color: var(--rre-white);
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 900;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 850;
}

h3 {
    margin-bottom: 14px;
    font-size: 23px;
    font-weight: 850;
}

p {
    margin-top: 0;
    margin-bottom: 18px;
}

.rre-lead {
    color: currentColor;
    font-size: 18px;
    line-height: 1.85;
}

.rre-section-light .rre-lead,
.rre-section .rre-lead,
.rre-card p,
.rre-content p {
    color: var(--rre-black);
}

.rre-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.rre-hero-image,
.rre-image-card {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--rre-shadow);
}

.rre-hero-image img,
.rre-image-card img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.rre-section {
    padding: 82px 0;
}

.rre-section-light {
    background: var(--rre-soft);
}

.rre-section-head {
    max-width: 820px;
    margin: 0 auto 46px;
    text-align: center;
}

.rre-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.rre-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.rre-card {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--rre-border);
    border-radius: var(--rre-radius);
    background: var(--rre-white);
    color: var(--rre-black);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.rre-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #29AB87;
    color: var(--rre-white);
    font-size: 23px;
}

.rre-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rre-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--rre-black);
}

.rre-list li::before {
    content: "\f00c";
    position: absolute;
    top: 1px;
    left: 0;
    color: var(--rre-primary);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.rre-page-hero {
    padding: 76px 0;
/*     background: var(--rre-secondary); */
	 background:#1f735c;
    color: var(--rre-white);
    text-align: center;
}

.rre-page-hero h1,
.rre-page-hero h2,
.rre-page-hero h3 {
    color: var(--rre-white);
}

.rre-page-hero .rre-container {
    max-width: 920px;
}

.rre-content {
    max-width: 900px;
    margin: 0 auto;
}

.rre-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.rre-post-card {
    margin-bottom: 26px;
    overflow: hidden;
    border: 1px solid var(--rre-border);
    border-radius: var(--rre-radius);
    background: var(--rre-white);
    color: var(--rre-black);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.rre-post-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.rre-post-card-content {
    padding: 28px;
}

.rre-sidebar {
    position: sticky;
    top: 142px;
}

.rre-widget {
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--rre-border);
    border-radius: var(--rre-radius);
    background: var(--rre-white);
    color: var(--rre-black);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.rre-recent-post {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--rre-border);
}

.rre-recent-post:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.rre-recent-post img {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    object-fit: cover;
}

.rre-recent-post strong {
    display: block;
    color: var(--rre-black);
    font-size: 14px;
    line-height: 1.35;
}

.rre-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rre-form-field-full {
    grid-column: 1 / -1;
}

.rre-input,
.rre-textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--rre-border);
    border-radius: 14px;
    background: var(--rre-white);
    color: var(--rre-black);
    font: inherit;
}

.rre-textarea {
    min-height: 130px;
    resize: vertical;
}

.rre-footer {
    padding-top: 68px;
    background: var(--rre-secondary);
    color: var(--rre-white);
}

.rre-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.rre-footer h3 {
    color: var(--rre-white);
    font-size: 20px;
}

.rre-footer a {
    color: var(--rre-white);
}

.rre-footer a:hover {
    color: var(--rre-white);
    text-decoration: underline;
}

.rre-footer-logo {
    max-width: 220px;
    margin-bottom: 20px;
}

.rre-footer-bottom {
    padding: 22px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.rre-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rre-primary);
    color: var(--rre-white) !important;
    font-size: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1200px) {
    .rre-logo-text {
        font-size: 20px;
    }

    .rre-nav-menu > li > a {
        padding: 11px 10px;
        font-size: 14px;
    }

    .rre-btn {
        padding: 12px 15px;
    }
}

@media (max-width: 1080px) {
    body {
        padding-top: 80px;
    }

    body.admin-bar .rre-header-wrap {
        top: 32px;
    }

    .rre-topbar {
        display: none;
    }

    .rre-header-inner {
        min-height: 80px;
    }

    .rre-logo-link {
        max-width: calc(100% - 64px);
    }

    .rre-logo-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
        font-size: 20px;
    }

    .rre-logo-text {
        font-size: 20px;
        white-space: normal;
    }

    .rre-nav-wrap,
    .rre-header-actions {
        display: none;
    }

    .rre-mobile-toggle {
        display: inline-flex;
    }

    .rre-mobile-panel {
        display: block;
        position: fixed;
        top: 80px;
        right: -100%;
        z-index: 9998;
        width: min(390px, 92vw);
        height: calc(100vh - 80px);
        padding: 24px;
        overflow-y: auto;
        background: var(--rre-white);
        border-left: 1px solid var(--rre-border);
        box-shadow: var(--rre-shadow);
        transition: right 0.28s ease;
    }

    .rre-mobile-panel.is-open {
        right: 0;
    }

    .rre-mobile-panel .rre-nav-menu {
        display: block;
    }

    .rre-mobile-panel .rre-nav-menu li {
        display: block;
    }

    .rre-mobile-panel .rre-nav-menu > li > a {
        width: 100%;
        justify-content: space-between;
        min-height: auto;
        padding: 15px 14px;
        margin-bottom: 6px;
        border-radius: 12px;
        background: var(--rre-secondary);
        color: var(--rre-white) !important;
    }

    .rre-mobile-panel .rre-nav-menu .sub-menu {
        position: static;
        min-width: 0;
        padding: 6px 0 10px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }

    .rre-mobile-panel .rre-nav-menu .sub-menu a {
        padding: 12px 14px;
        margin-bottom: 4px;
        border-radius: 10px;
        background: var(--rre-soft);
        color: var(--rre-black) !important;
        white-space: normal;
    }

    .rre-mobile-actions {
        display: grid;
        gap: 12px;
        margin-top: 20px;
    }

    .rre-mobile-actions .rre-btn {
        width: 100%;
    }

    .rre-hero-grid,
    .rre-grid-2,
    .rre-blog-layout {
        grid-template-columns: 1fr;
    }

    .rre-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rre-sidebar {
        position: static;
    }

    .rre-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.admin-bar .rre-header-wrap {
        top: 46px;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 76px;
    }

    .rre-container {
        width: min(100% - 26px, 1240px);
    }

    .rre-header-inner {
        min-height: 76px;
        gap: 12px;
    }

    .rre-logo-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
        font-size: 18px;
    }

    .rre-logo-text {
        font-size: 17px;
        letter-spacing: -0.5px;
    }

    .rre-mobile-toggle {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .rre-mobile-panel {
        top: 76px;
        height: calc(100vh - 76px);
    }

    .rre-hero,
    .rre-section,
    .rre-page-hero {
        padding: 56px 0;
    }

    .rre-grid-3,
    .rre-form-grid,
    .rre-footer-grid {
        grid-template-columns: 1fr;
    }

    .rre-hero-image img,
    .rre-image-card img {
        height: 310px;
    }

    .rre-hero-actions .rre-btn {
        width: 100%;
    }
}


/* Single Blog Post Typography */

.single-post .entry-title,
.single-post h1 {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.single-post h2 {
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
    margin: 42px 0 18px;
    color: #111827;
}

.single-post h3 {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
    margin: 30px 0 14px;
    color: #1f2937;
}

.single-post h4 {
    font-size: 24px;
    line-height: 1.45;
    font-weight: 700;
    margin: 24px 0 12px;
    color: #374151;
}

.single-post p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #374151;
}

.single-post ul,
.single-post ol {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 22px;
}

.single-post li {
    margin-bottom: 8px;
}

.single-post blockquote {
    font-size: 19px;
    line-height: 1.7;
    padding: 20px 24px;
    margin: 30px 0;
    border-left: 4px solid #29AB87;
    background: #f8fafc;
    font-style: italic;
}

/* Tablet */
@media (max-width: 1024px) {
    .single-post .entry-title,
    .single-post h1 {
        font-size: 32px;
    }

    .single-post h2 {
        font-size: 26px;
    }

    .single-post h3 {
        font-size: 22px;
    }

    .single-post h4 {
        font-size: 18px;
    }

    .single-post p,
    .single-post ul,
    .single-post ol {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .single-post .entry-title,
    .single-post h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .single-post h2 {
        font-size: 24px;
    }

    .single-post h3 {
        font-size: 20px;
    }

    .single-post h4 {
        font-size: 17px;
    }

    .single-post p,
    .single-post ul,
    .single-post ol {
        font-size: 15px;
        line-height: 1.7;
    }
}


/* Blog page title sizes */
.blog .entry-title,
.blog .post-title,
.blog article h2 {
    font-size: 28px !important;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog .entry-title a,
.blog .post-title a {
    font-size: inherit;
    color: #111827;
    text-decoration: none;
}

.blog .entry-summary,
.blog p {
    font-size: 16px;
    line-height: 1.7;
}

/* Mobile */
@media (max-width: 767px) {
    .blog .entry-title,
    .blog .post-title,
    .blog article h2 {
        font-size: 22px !important;
    }
}



/* Fix footer colours on blog/single post pages */
footer,
.site-footer,
.rre-footer {
    color: #ffffff !important;
}

footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.rre-footer h2,
.rre-footer h3,
.rre-footer h4,
.rre-footer h5,
.rre-footer h6 {
    color: #ffffff !important;
}

footer p,
footer li,
.site-footer p,
.site-footer li,
.rre-footer p,
.rre-footer li {
    color: rgba(255, 255, 255, 0.85) !important;
}

footer a,
.site-footer a,
.rre-footer a {
    color: #ffffff !important;
    text-decoration: none;
}

footer a:hover,
.site-footer a:hover,
.rre-footer a:hover {
    color: #29AB87 !important;
}




/* Fix single blog post header/menu spacing */
.single-post .rre-main-header,
.single-post header,
.single-post .site-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.single-post .rre-main-nav,
.single-post .main-navigation,
.single-post nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-post .rre-main-nav ul,
.single-post .main-navigation ul,
.single-post nav ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    align-items: center !important;
}

.single-post .rre-main-nav li,
.single-post .main-navigation li,
.single-post nav li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.single-post .rre-main-nav a,
.single-post .main-navigation a,
.single-post nav a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
}


/* SINGLE BLOG POST RESPONSIVE FIX */
.single-post .entry-content {
    max-width: 100%;
    overflow: hidden;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.single-post .entry-content iframe,
.single-post .entry-content video,
.single-post .entry-content embed {
    max-width: 100%;
    width: 100%;
}

.single-post .entry-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.single-post .entry-content pre,
.single-post .entry-content code {
    overflow-x: auto;
    max-width: 100%;
}

/* Typography */
.single-post .entry-content h1 {
    font-size: 36px;
    line-height: 1.3;
}

.single-post .entry-content h2 {
    font-size: 30px;
    line-height: 1.35;
}

.single-post .entry-content h3 {
    font-size: 24px;
    line-height: 1.4;
}

.single-post .entry-content h4 {
    font-size: 20px;
    line-height: 1.4;
}

.single-post .entry-content p,
.single-post .entry-content li {
    font-size: 17px;
    line-height: 1.8;
}

/* Tablet */
@media (max-width: 1024px) {
    .single-post .entry-content h1 {
        font-size: 30px;
    }

    .single-post .entry-content h2 {
        font-size: 26px;
    }

    .single-post .entry-content h3 {
        font-size: 22px;
    }

    .single-post .entry-content p,
    .single-post .entry-content li {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .single-post .container,
    .single-post .content-area,
    .single-post .site-main,
    .single-post article {
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin: 0 !important;
    }

    .single-post .entry-content h1 {
        font-size: 26px;
    }

    .single-post .entry-content h2 {
        font-size: 22px;
    }

    .single-post .entry-content h3 {
        font-size: 19px;
    }

    .single-post .entry-content h4 {
        font-size: 17px;
    }

    .single-post .entry-content p,
    .single-post .entry-content li {
        font-size: 15px;
        line-height: 1.7;
    }

    .single-post .entry-content table {
        font-size: 14px;
    }
}

* Force single post images to stay inside container */
.single-post .entry-content img,
.single-post .entry-content figure img,
.single-post article img,
.single-post .wp-block-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
    box-sizing: border-box;
}

/* Fix Gutenberg image blocks */
.single-post .wp-block-image,
.single-post figure {
    max-width: 100% !important;
    margin: 20px 0 !important;
    overflow: hidden;
}

/* Prevent content overflow */
.single-post .entry-content,
.single-post article,
.single-post .site-main {
    overflow-x: hidden !important;
}

/* Fix aligned images */
.single-post .alignright,
.single-post .alignleft,
.single-post .aligncenter {
    float: none !important;
    margin: 20px auto !important;
    display: block !important;
    max-width: 100% !important;
}/* Mobile toggle visibility fix */
@media screen and (max-width: 1080px) {
    .rre-nav-wrap,
    .rre-header-actions {
        display: none !important;
    }

    .rre-mobile-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        flex: 0 0 48px !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 10001 !important;
        background: #0E1B25 !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,0.35) !important;
        border-radius: 14px !important;
        font-size: 22px !important;
    }

    .rre-mobile-toggle i {
        display: inline-block !important;
        color: #ffffff !important;
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .rre-header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .rre-logo-link {
        max-width: calc(100% - 64px) !important;
    }
}

@media (max-width: 1080px) {
    .rre-mobile-toggle {
        display: flex !important;
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 5px !important;
        background: #29ab87 !important;
        border: 1px solid rgba(255,255,255,0.35) !important;
        border-radius: 14px !important;
        cursor: pointer !important;
        z-index: 999999 !important;
    }

    .rre-toggle-line {
        width: 20px;
        height: 2px;
        background: #ffffff;
        border-radius: 20px;
        transition: 0.25s ease;
    }

    .rre-mobile-toggle.is-open .rre-toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .rre-mobile-toggle.is-open .rre-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .rre-mobile-toggle.is-open .rre-toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .rre-mobile-panel {
        display: block !important;
        position: fixed !important;
        top: 76px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 76px) !important;
        padding: 18px 16px 24px !important;
        background: #29ab87 !important;
        box-shadow: 0 18px 40px rgba(0,0,0,0.16) !important;
        transform: translateY(-120%) !important;
        transition: transform 0.28s ease !important;
        z-index: 99998 !important;
        overflow-y: auto !important;
    }

    .rre-mobile-panel.is-open {
        transform: translateY(0) !important;
    }

    .rre-mobile-panel .rre-nav-menu {
        display: block !important;
    }

    .rre-mobile-panel .rre-nav-menu > li > a {
        width: 100% !important;
        display: flex !important;
        padding: 14px 16px !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        background: #29ab87 !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    .rre-mobile-actions {
        display: grid !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }

    .rre-mobile-actions .rre-btn {
        width: 100% !important;
    }
}

@media (max-width: 1080px) {
    .rre-header-wrap {
        z-index: 999999 !important;
    }

    .rre-main-header {
        position: relative !important;
        z-index: 999999 !important;
    }

    .rre-mobile-panel {
        top: 96px !important;
        max-height: calc(100vh - 96px) !important;
        padding-top: 28px !important;
        z-index: 99990 !important;
    }
}

@media (max-width: 640px) {
    .rre-mobile-panel {
        top: 92px !important;
        max-height: calc(100vh - 92px) !important;
    }
}

/* Make header non-sticky */
.rre-header-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

body {
    padding-top: 0 !important;
}

body.admin-bar .rre-header-wrap {
    top: auto !important;
}

/* Mobile menu position after non-sticky header */
@media (max-width: 1080px) {
    .rre-mobile-panel {
        position: absolute !important;
        top: 76px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }
}

html,
body {
    overflow-x: hidden !important;
}