/* Layout Styles - Header, Footer, Page Structure */\n
/* Header Styles - Based on Original Design */
.site-header {
    background: var(--background-pure-white);
    position: relative;
    z-index: 100;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.header-top-gray-bar {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1002;
    height: 50px;
    padding: 10px 20px;
    background-color: var(--background-light-gray);
}

.header-top-bar {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

.header-top-row {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top-row-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.header-top-row-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.header-top-row-social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--primary-white);
    font-weight: var(--bold);
    font-size: 1.1rem;
    background-color: var(--secondary-forest-green);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-top-row-social-icon:hover {
    background-color: var(--primary-green);
}

/* Header buttons in gray bar */
.header-top-gray-bar .header-login,
.header-top-gray-bar .header-join-today {
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    font-weight: var(--bold);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 !important;
}

.header-top-gray-bar .header-login {
    background-color: transparent;
    color: var(--primary-charcoal);
    border: 2px solid var(--primary-charcoal);
}

.header-top-gray-bar .header-login:hover {
    background-color: var(--primary-charcoal);
    color: var(--primary-white);
}

.header-top-gray-bar .header-join-today {
    background-color: var(--primary-green);
    color: var(--primary-white);
    border: none;
}

.header-top-gray-bar .header-join-today:hover {
    background-color: var(--secondary-forest-green);
}

.header-member-menu {
    position: relative;
}

.header-member-toggle {
    background: none;
    border: none;
    color: var(--primary-charcoal);
    font-size: 1.15rem;
    font-weight: var(--regular);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
}

.header-member-name {
    font-weight: var(--bold);
}

.header-member-toggle:hover {
    color: var(--primary-green);
}

.header-member-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.header-member-menu:hover .header-member-arrow {
    transform: rotate(180deg);
}

.header-member-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-white);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.header-member-menu:hover .header-member-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-member-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--primary-charcoal);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.header-member-dropdown a:hover {
    background-color: var(--primary-light-gray, #f5f5f5);
    color: var(--primary-green);
}

.header-member-dropdown a:first-child {
    border-radius: 4px 4px 0 0;
}

.header-member-dropdown a:last-child {
    border-radius: 0 0 4px 4px;
}

/* Login Dropdown Menu */
.header-login-menu {
    position: relative;
}

.header-login-menu .header-login {
    background-color: transparent;
    color: var(--primary-charcoal);
    border: 2px solid var(--primary-charcoal);
}

.header-login-menu .header-login:hover,
.header-login-menu.active .header-login {
    background-color: var(--primary-charcoal);
    color: var(--primary-white);
}

.header-login-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 320px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999;
}

.header-login-menu.active .header-login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Login Form Styles */
.login-form-group {
    margin-bottom: 16px;
}

.login-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-charcoal);
}

.login-form-group input[type="text"],
.login-form-group input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #757575;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: var(--primary-charcoal);
    background-color: var(--primary-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form-group input[type="text"]:focus,
.login-form-group input[type="password"]:focus {
    outline: none;
    border: 2px solid var(--primary-green);
    box-shadow: 0 0 0 3px rgba(159, 192, 69, 0.15);
}

.login-form-group input::placeholder {
    color: #BDBDBD;
}

.login-remember {
    margin-bottom: 20px;
}

.login-remember label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.login-submit-btn {
    width: 100%;
    height: 48px;
    padding: 12px 24px;
    background-color: var(--primary-green);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-submit-btn:hover {
    background-color: var(--secondary-forest-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(159, 192, 69, 0.3);
}

.login-submit-btn:disabled {
    background-color: #BDBDBD;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-form-links {
    margin-top: 16px;
    text-align: center;
}

.login-form-links a {
    font-size: 14px;
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: none;
}

.login-form-links a:hover {
    color: var(--secondary-forest-green);
    text-decoration: underline;
    background: none;
}

.login-form-error {
    background-color: #FEE2E2;
    color: #DC2626;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Arrow indicator for dropdown */
.header-login-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-white);
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive Login Dropdown */
@media (max-width: 768px) {
    .header-login-dropdown {
        width: 280px;
        right: -50px;
        padding: 20px;
    }

    .header-login-dropdown::before {
        right: 70px;
    }
}

@media (max-width: 480px) {
    .header-login-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 24px;
        transform: translateY(100%);
    }

    .header-login-menu.active .header-login-dropdown {
        transform: translateY(0);
    }

    .header-login-dropdown::before {
        display: none;
    }
}

.header-menu-bar {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 0px;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 10px 20px 10px 20px;
    background: var(--background-pure-white);
    transition: all 0.3s ease;
}

/* Removed duplicate sticky header rules - using .header-scrolled instead */

/* Hide gray bar when scrolled */
.header-scrolled .header-top-gray-bar {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Show only menu bar when scrolled */
.header-scrolled .header-menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    height: auto;
    padding: 20px 20px 8px 20px;
    background-color: var(--background-pure-white);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Prevent content jump when header becomes sticky */
body.header-sticky-active {
    padding-top: 120px; /* Adjusted for new header height (100px menu bar + 20px spacing) */
}

/* Smooth transitions for header elements */
.header-top-gray-bar,
.header-menu-bar {
    transition: all 0.3s ease-in-out;
}

/* Adjust logo and button sizes when sticky */
.header-scrolled .site-branding {
    height: auto;
    display: flex;
    align-items: center;
}

.header-scrolled .site-branding img,
.header-scrolled .custom-logo {
    height: auto;
    width: auto;
    max-height: 60px;
}

.header-scrolled .site-title {
    font-size: 1.5rem;
}

.header-scrolled .button {
    padding: 8px 20px;
    font-size: 1.1rem;
}

/* Ensure logo links are always clickable */
.site-branding a,
.custom-logo-link,
.site-title {
    display: block;
    z-index: 1001;
    position: relative;
    text-decoration: none;
    pointer-events: auto;
}

/* Ensure site-branding container doesn't block clicks */
.site-branding {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    display: flex;
    align-items: center;
    height: auto;
}

.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1600px;
    position: relative;
    z-index: 1000;
    height: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    font-weight: var(--bold);
    color: var(--primary-charcoal);
    text-decoration: none;
}

.site-title:hover {
    color: var(--primary-green);
}

.menubar-logo {
    height: 60px;
}

.menubar-menu {
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
}

.button {
    color: var(--primary-charcoal);
    font-size: 1.25rem;
    margin: 0 0 0 20px;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--primary-charcoal);
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.menubar-join-today {
    color: var(--primary-white);
    background-color: var(--primary-green);
    border: none;
}

.menubar-login {
    border: none;
}

/* Navigation Styles */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(159, 192, 69, 0.75);
    color: #fff;
}

.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-parent > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    background-color: var(--primary-green);
    color: #fff;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px); /* Viewport height minus header bars (50px + 100px) */
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--primary-charcoal);
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 60px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    background-color: var(--primary-charcoal);
}

/* Hide all video controls completely - Safari specific */
.hero-video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-timeline {
    display: none !important;
}

.hero-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.hero-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-green);
    opacity: 0.6;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: left;
    color: var(--primary-white);
    overflow-y: auto;
    max-height: 100%;
}

.hero-content-inner {
    max-width: 100%;
    margin: 0;
    padding-left: 30px;
    padding-bottom: 40px;
}

.hero-title {
    font-family: var(--primary-font);
    font-size: 5rem;
    font-weight: 200;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--primary-font);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.25rem;
    font-weight: var(--bold);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-button-primary {
    background-color: var(--primary-white);
    color: var(--primary-green);
    border: 3px solid var(--primary-white);
}

.hero-button-primary:hover {
    background-color: transparent;
    color: var(--primary-white);
    border-color: var(--primary-white);
}

.hero-button-secondary {
    background-color: transparent;
    color: var(--primary-white);
    border: 3px solid var(--primary-white);
}

.hero-button-secondary:hover {
    background-color: var(--primary-white);
    color: var(--primary-green);
}

.hero-description {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--primary-white);
    max-width: 600px;
    text-align: left;
    flex: 1;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

/* Main Content Area */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0 0 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--bold);
    color: var(--primary-charcoal);
    margin-bottom: 2rem;
    text-align: center;
}

/* News/Posts Grid - Based on Original Design */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2rem 0;
}

.post-card {
    background: var(--background-pure-white);
    border-radius: 4px;
    box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 2px 6px 25px 0px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.post-card-content {
    width: 100%;
}

.post-card h2 {
    font-size: 1.75rem;
    font-weight: var(--regular);
    margin-bottom: 4px;
    color: var(--primary-charcoal);
    text-align: left;
    line-height: 1.2;
}

.post-card h2 a {
    text-decoration: none;
    color: inherit;
}

.post-card h2 a:hover {
    color: var(--primary-green);
}

.post-meta {
    font-size: 0.75rem;
    font-weight: var(--light);
    color: var(--neutral-gray);
    margin-bottom: 0px;
    text-align: left;
}

.post-meta-item:not(:last-child):after {
    content: "/";
    margin: 0 6px;
}

.post-taxonomy {
    font-size: 1rem;
    font-weight: var(--medium);
    color: var(--primary-green);
    margin-bottom: 9px;
    text-align: left;
}

.post-taxonomy-item:not(:last-child):after {
    content: "/";
    margin: 0 4px;
}

.post-excerpt {
    color: var(--primary-charcoal);
    line-height: 1.6;
    text-align: left;
    margin-top: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--medium);
}

.read-more:hover {
    color: var(--secondary-forest-green);
    text-decoration: underline;
}

/* Single Post Styles */
.single-post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.single-post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.single-post-meta {
    color: #666;
    font-size: 1rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Page Styles */
.page-header {
    text-align: left;
    margin-bottom: 0;
    color: #333;
}

.page-title {
    font-family: var(--primary-font, "Mona Sans", sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Full Width with Title Template - Header Section */
.page-header-fullwidth {
    background-color: rgba(159, 192, 69, 0.25); /* 25% primary green */
    width: 100%;
}

.page-header-fullwidth .page-header-inner {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Roof line drawing on right side - within content area */
.page-header-fullwidth .page-header-inner::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/roof2.svg');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 95%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.page-header-fullwidth .page-header {
    text-align: left;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.page-header-fullwidth .page-title {
    margin-bottom: 0;
}

.page-header-fullwidth .breadcrumb {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Full Width with Title - Responsive */
@media (max-width: 992px) {
    .page-header-fullwidth .page-header-inner {
        padding: 25px 0;
    }

    .page-header-fullwidth .page-header {
        margin-bottom: 60px;
    }

    .page-header-fullwidth .page-header-inner::before {
        background-size: auto 70%;
        opacity: 0.12;
    }
}

@media (max-width: 768px) {
    .page-header-fullwidth .page-header-inner {
        padding: 20px 0;
    }

    .page-header-fullwidth .page-header {
        margin-bottom: 40px;
    }

    .page-header-fullwidth .page-header-inner::before {
        width: 60%;
        background-size: auto 60%;
        opacity: 0.1;
    }
}

@media (max-width: 540px) {
    .page-header-fullwidth .page-header-inner {
        padding: 16px 0;
    }

    .page-header-fullwidth .page-header {
        margin-bottom: 30px;
    }

    .page-header-fullwidth .page-header-inner::before {
        display: none; /* Hide roof on small mobile */
    }
}

/* Page Sidebar Layout */
.page-container-with-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-main-content {
    flex: 1;
    min-width: 0;
}

.page-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.page-sidebar .widget {
    background: var(--background-subtle);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sidebar .widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--primary-charcoal);
}

/* Full Width with Widgets and Title Template */
.page-with-widgets-container {
    /* Standard Content Width Rule */
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.page-with-widgets-container .page-main-content {
    min-width: 0;
}

.page-widgets-sidebar {
    background: rgba(159, 192, 69, 0.25); /* 25% primary green */
    padding: 25px;
    border-radius: 12px;
}

.page-widgets-sidebar .widget {
    margin-bottom: 25px;
}

.page-widgets-sidebar .widget:last-child {
    margin-bottom: 0;
}

.page-widgets-sidebar .widget-title,
.page-widgets-sidebar .widget h3 {
    font-family: var(--primary-font, "Mona Sans", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green, #9FC045);
}

/* Widget Areas Above/Below Content */
.page-widgets-above,
.page-widgets-below {
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.page-widgets-above {
    margin-top: 40px;
    margin-bottom: 0;
}

.page-widgets-below {
    margin-top: 0;
    margin-bottom: 40px;
}

.page-widgets-above .widget,
.page-widgets-below .widget {
    margin-bottom: 30px;
}

.page-widgets-above .widget:last-child,
.page-widgets-below .widget:last-child {
    margin-bottom: 0;
}

/* Full Width with Widgets - Responsive */
@media (max-width: 992px) {
    .page-with-widgets-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-widgets-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-with-widgets-container {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

/* Full Width Template Styles */
.site-main-fullwidth {
    width: 100%;
}

.fullwidth-article {
    width: 100%;
}

.fullwidth-content {
    width: 100%;
}

/* Allow full-width and wide blocks to break out */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.alignwide {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.fullwidth-content > .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.fullwidth-content > .alignwide {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Default block content gets container width */
.fullwidth-content > *:not(.alignfull):not(.alignwide):not(.ihowz-width-full):not(.wp-block-ihowz-content-with-sidebar):not(.wp-block-ihowz-features-banner) {
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Gutenberg blocks that follow Standard Content Width Rule */
.fullwidth-content > .wp-block-ihowz-features-banner,
.fullwidth-content > .wp-block-ihowz-content-with-sidebar {
    /* Standard Content Width Rule - 90% width, max 1600px, centered */
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Full-width background blocks - break out of container */
.fullwidth-content > .ihowz-width-full {
    padding-left: 0;
    padding-right: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Advertising Bar Styles */
.advertising-bar {
    background: var(--background-light-gray);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #ddd;
}

.advertising-container {
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.advertising-widget {
    display: inline-block;
    margin: 0 auto;
}

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

.advertising-widget-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Footer Styles - Based on Original Design */
.site-footer {
    background: var(--primary-charcoal);
    color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: start;
}

.footer-content {
    width: 100%;
    max-width: 1280px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 20px;
}

.footer-section h3,
.foot-menu-header {
    color: var(--primary-white);
    font-weight: var(--bold);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--primary-white);
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-resources-menu {
    display: grid;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo img,
.footer-logo .footer-logo-img {
    max-height: 80px;
    width: auto;
}

.footer-logo a {
    display: inline-block;
    opacity: 1;
}

.footer-logo a:hover {
    opacity: 0.9;
}

.footer-logo h2 {
    color: var(--primary-white);
    font-size: 1.75rem;
    font-weight: var(--bold);
    margin: 0;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    gap: 15px;
}

.footer-social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    color: var(--primary-white);
    font-weight: var(--bold);
    font-size: 1.5rem;
    background-color: var(--secondary-forest-green);
    border-radius: 50%;
    text-decoration: none;
}

.footer-social-icon:hover {
    background-color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    width: 100%;
}

.footer-copyright-text {
    color: var(--primary-white);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

