   
@import url(https://fonts.googleapis.com/css?family=Racing+Sans+One);

/* Reset */
a, abbr, acronym, address, applet, article, aside, audio, b, blockquote, big, body, center, canvas, caption, cite, code, command, datalist, dd, del, details, dfn, dl, div, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, keygen, label, legend, li, meter, nav, object, ol, output, p, pre, progress, q, s, samp, section, small, span, source, strike, strong, sub, sup, table, tbody, tfoot, thead, th, tr, td, video, tt, u, ul, var {
    background: transparent;
    border: 0 none;
    font-size: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: top;
}
.container-item .rss-item .rss-header {
	color: inherit;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
table, table td {
    padding: 0;
    border: none;
    border-collapse: collapse;
}
img {
    vertical-align: top;
}
embed {
    vertical-align: top;
}
article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video {
    display: block;
}
mark, rp, rt, ruby, summary, time {
    display: inline;
}
input, textarea {
    border: 0;
    padding: 0;
    margin: 0;
    outline: 0;
}
iframe {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Left-align all headlines, titles, and <p> content */
h1, h2, h3, h4, h5, h6 {
    font-size: 25px; /* Keep your sizing */
    line-height: 25px;
    font-family: 'Racing Sans One', cursive;
    margin: 25px 0;
    color: #ECF4F6;
    text-align: left !important; /* Force left for all headings */
    float: left; /* Float for inline flow if needed; clears below */
    width: 100%; /* Full width to prevent wrapping issues */
}

p {
    margin: 10px 0;
    max-width: 800px;
    text-align: left !important; /* Left-align all paragraphs */
    word-break: break-word; /* Prevent long words from overflowing */
    overflow-wrap: break-word; /* Modern fallback for word wrapping */
}

p2 {
    align-content: left; /* Keep, but add text-align */
    max-width: 400px;
    text-align: left !important;
}

/* Existing classes get left-align boost */
.text_column, .item-content p, .container-item p {
    text-align: left !important;
    padding-left: 15px; /* Extra left buffer to avoid border clip */
}

/* Container tweaks for no clipping */
.content-box, .zerogrid .row, .wrap-col {
    padding-left: 15px !important; /* Min left padding */
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

.text_column {
    max-width: 800px;
    margin: 20px auto;
    text-align: left !important;
    padding: 20px 15px; /* Balanced padding, extra on sides */
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    word-break: break-word; /* Ensure words don't clip */
}

/* Shrink for smaller screens */
@media (max-width: 1024px) {
    h1, h2, h3, h4, h5, h6 {
        font-size: 22px; /* Slight scale down */
        line-height: 22px;
    }
    p {
        max-width: 700px; /* Shrink content width */
        font-size: 14px; /* Easier read on tablet */
    }
    .text_column {
        max-width: 90%;
        padding: 15px 12px;
    }
    .zerogrid {
        max-width: 95%; /* Body-level shrink */
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px; /* Overall shrink */
    }
    h1, h2, h3, h4, h5, h6 {
        font-size: 20px;
        line-height: 20px;
        margin: 20px 0;
    }
    p {
        max-width: 100%; /* Full width but padded */
        font-size: 13px;
        line-height: 20px;
    }
    .text_column, .content-box {
        max-width: 95%;
        margin: 15px auto;
        padding: 15px 12px !important; /* Prevent left clip */
    }
    .zerogrid .row {
        padding: 0 10px; /* Extra room in grid */
        margin: 0 -10px; /* Counter negative margins */
    }
    .modern-containers .container-item {
        padding: 15px 12px !important; /* Mobile padding boost */
    }
}

@media (max-width: 480px) {
    /* Extra small: Max shrink + padding for visibility */
    html, body {
        width: 100%;
        overflow-x: hidden; /* No horizontal scroll */
    }
    .zerogrid {
        max-width: 100%;
        padding: 0 8px; /* Tight but safe */
    }
    .zerogrid .row, .content-box {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    h1, h2, h3 {
        font-size: 18px;
        line-height: 18px;
    }
    p {
        font-size: 12px;
        line-height: 18px;
        padding-left: 5px; /* Micro-buffer for tiny screens */
    }
    .text_column {
        padding: 12px 10px !important;
        margin: 10px auto;
    }
    /* Steps grid: Ensure no clip */
    .modern-containers .container-row {
        padding: 0 8px;
        gap: 15px;
    }
    .container-item {
        padding: 12px !important;
        min-width: auto;
    }
}

/* Override zerogrid for mobile shrink (add to end of style.css) */
@media (max-width: 767px) {
    .zerogrid {
        width: 100% !important;
        padding: 0 8px !important;
    }
    .zerogrid .col-1-1, .zerogrid .col-1-2 {
        width: 100% !important;
        padding: 0 5px !important; /* Minimal padding, no clip */
        margin-left: 0 !important;
    }
    .zerogrid .row {
        margin: 0 -5px !important;
    }
}
input, textarea, select {
    margin: 0;
    padding: 0px;
}

html {
    -webkit-text-size-adjust: none;
}
.video embed, .video object, .video iframe {
    width: 100%;
    height: auto;
}
img {
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
}

a {
    color: #ECF4F6;
    text-decoration: none;
}
a:hover {
    opacity: 0.9;
    text-decoration: none;
}

h1, h2, h3 {
    font-size: 25px;
    line-height: 25px;
    font-family: 'Racing Sans One', cursive;
    margin: 25px 0;
    color: #ECF4F6;
}
h4, h5, h6 {
    font-size: 16px;
    line-height: 16px;
}

p {
    margin: 10px 0;
    max-width: 800px;
}
p2 {
    align-content: left;
    max-width: 400px;
}

.t-center {
    text-align: center;
}
.t-left {
    text-align: left;
}
.t-right {
    text-align: right;
}
.f-right {
    float: right;
}
.f-left {
    float: left;
}

.post:after, .post:before, article:after, article:before, section:after, section:before {
    clear: both;
    content: '\0020';
    display: block;
    visibility: hidden;
    width: 0;
    height: 0;
}

.clear {
    content: "\0020";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix:after, .clearfix:before {
    clear: both;
    content: '\0020';
    display: block;
    visibility: hidden;
    width: 0;
    height: 0;
}

html, body {
    width: 100%;
    padding: 0;
    margin: 0;
}
body {
    background-color: #000000;
    color: #ECF4F6;
    font: 14px/25px Arial, Helvetica, sans-serif;
}
body .wrap-body {}

header {
    margin-bottom: 50px;
}
header .wrap-header {
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #ccc;
}

.zoom-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100% !important;
}
.zoom-container2 {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 150px !important;
}

#container {}
#container .wrap-container {}

.content-box {
    margin-bottom: 30px;
}
.content-box.box-1 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
}
.content-box.box-2 .item {
    border-right: 1px solid #ccc;
    padding-right: 30px;
}
.content-box.box-2 .item h3.item-header {
    margin-bottom: 30px;
}
.content-box.box-3 {
    max-width: 900px;
}

.content-box .item {
    padding: 10px 0;
}
.content-box .item:hover .item-content {
    background-color: #E4B66B;
    color: #fff;
    transition: all 600ms ease;
    border: 1px solid #012C6D;
}
.content-box .item h3.item-header {
    font-size: 25px;
    margin: 0 0 20px;
}
.content-box .item img {
    display: block;
    width: 100% !important;
    height: auto;
    transition: all .5s ease;
}
.content-box .item .item-content {
    background-color: #161a25;
    padding: 25px;
    border: 1px solid #ddd;
}
.content-box .item span {
    font-size: 15px;
    font-weight: 500;
    color: #ECF4F6;
}
.content-box .item .item-content p {
    margin: 0;
}
.content-box .item:hover h3.item-header a {
    color: #171A25;
}
.content-box .item:hover a.button {
    text-decoration: underline;
}
.content-box .item:hover .zoom-container img {
    transform: scale(1.25);
}

.link {
    margin-bottom: 25px;
}
.link li {
    margin-bottom: 5px;
}
.link a {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
}
.link a:hover {
    color: #D19E4D;
}
.link li:before {
    content: '';
    margin-right: 13px;
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-bottom: 2px;
    background-color: #f26324;
}
.link li ul {
    display: none;
}

#main-content {}
#main-content .wrap-content {}

article {
    background: #FCF5EA;
    color: #3F3F3F;
    margin-bottom: 40px;
    border: 1px solid #ddd;
}
article:after, article:before {
    clear: both;
    content: '\0020';
    display: block;
    visibility: hidden;
    width: 0;
    height: 0;
}
article img {
    max-height: 400px;
    width: 100%;
    border: none;
}
article .art-header {}
article .art-content {
    padding: 40px 60px 30px 60px;
}
article .art-content blockquote {
    border-left: 3px solid #1c7791;
    font-size: 18px;
    margin: 0 50px;
    font-style: italic;
    color: #666;
    padding-left: 20px;
}
article .art-content ol {
    float: left;
    text-align: justify;
    margin: 10px 50px;
    font-size: 16px;
    list-style-type: circle;
}
article .entry-title {
    margin: 0 0 20px;
    text-align: center;
}
article h1.entry-title {
    line-height: 1.2;
    font-size: 38px;
}
article h2 {
    line-height: 1.1;
    font-size: 20px;
    margin: 0;
}
article .info a {
    color: #BE0A0A;
}
article .info a:hover {
    text-decoration: underline;
}

footer {
    background-color: #0F1116;
    padding: 5px;
}
footer .bottom-social a {
    background-color: #002B6A;
}

#contact_form * {
    box-sizing: border-box;
}
.contact h3 {
    margin-left: 30px;
}
#contact_form {
    padding: 0px 25px;
}
#ff label {
    cursor: pointer;
    margin: 5px 0;
    display: block;
    font-weight: bold;
}
#ff input {
    display: block;
    width: 100%;
    border-radius: 4px;
    color: #000;
    border: 1px solid #F26324;
    padding: 13px;
    margin: 5px 0 25px 0;
    font-size: 16px;
    max-height: 45px;
}
#ff textarea {
    display: block;
    width: 100%;
    height: 200px;
    border-radius: 4px;
    background-color: #171A25;
    color: #FCF5EA;
    border: 1px solid #F26324;
    padding: 10px;
    margin: 5px 0 25px 0;
}
#ff .sendButton {
    cursor: pointer;
    background-color: #F26324;
    border-radius: 3px;
    width: 35%;
    color: #ffffff;
}
#ff .sendButton:hover {
    opacity: 0.8;
}

a.button {
    color: #000;
    font-family: 'Racing Sans One', cursive;
    font-size: 16px;
}
a.button:hover {
    text-decoration: underline;
}

.rslides {}

.callbacks_container {
    position: relative;
    float: left;
    width: 100%;
}
.callbacks {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}
.callbacks li {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}
.callbacks img {
    display: block;
    position: relative;
    z-index: 1;
    height: auto;
    width: 100%;
    border: 0;
}
.callbacks .caption {
    display: block;
    position: absolute;
    z-index: 2;
    font-size: 20px;
    text-shadow: none;
    color: #fff;
    background: rgba(0,0,0, .8);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 20px;
    margin: 0;
    max-width: none;
}
.callbacks_nav {
    position: absolute;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    top: 52%;
    left: 0;
    opacity: 0.7;
    z-index: 3;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none;
    height: 61px;
    width: 38px;
    background: transparent url("../images/themes.gif") no-repeat left top;
    margin-top: -45px;
}
.callbacks_nav:active {
    opacity: 1.0;
}
.callbacks_nav.next {
    left: auto;
    background-position: right top;
    right: 0;
}
nav2 li {
    display: inline;
    border: solid;
    border-width: 1px 1px 0 1px;
    margin: 0 5px 0 0;
    border-radius: 6px;
    box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
    background: #BC9357;
}
nav2 li a {
    padding: 0 10px;
}
.content-box, .wrap-col, .col-1-1 {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}
.content-box::before,
.content-box::after,
.wrap-col::before,
.wrap-col::after,
.col-1-1::before,
.col-1-1::after {
    content: none !important;
}
.wrap-header {
    padding: 10px;
    position: relative;
    z-index: 1001;
}
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 999; /* Below menu */
}
.logo img {
    max-width: 100%;
    height: auto;
}
.idx-search-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-height: 600px;
    overflow: visible;
}

.idx-search-container iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 8px;
}

.idx-search-container::before {
    content: 'Loading MLS Listings...';
    display: block;
    text-align: center;
    padding: 20px;
    color: #333;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
}

/* Hide loading message when iframe has src */
.idx-search-container:has(iframe[src])::before {
    content: none;
}

/* Fallback for older browsers that don't support :has() */
.idx-search-container.loaded::before {
    content: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .idx-search-container {
        padding: 10px;
        min-height: 500px;
    }
    .idx-search-container iframe {
        min-height: 500px;
    }
}
/* Ensure parent containers don't restrict height */
.zerogrid, .content-box, .wrap-col, .col-1-1 {
    max-height: none !important;
    overflow: visible !important;
}
/* Video Container for YouTube Embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    width: 100%; /* Full width by default */
    max-width: 800px; /* Limit width on larger screens */
    margin: 0 auto; /* Center horizontally */
    overflow: hidden;
    z-index: 100;
    border: none;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Form Wrapper */
#formWrap {
    width: 100%;
    padding: 20px 0;
    text-align: center; /* Center-align content */
    background-color: #171A25; /* Match existing dark theme */
}

/* Form Container */
#form {
    max-width: 600px; /* Constrain width for large screens */
    margin: 0 auto; /* Center horizontally */
    padding: 20px;
    box-sizing: border-box;
}

/* Center Business Card Image */
#form img {
    display: block;
    margin: 0 auto 20px; /* Center image with bottom margin */
    max-width: 350px; /* Ensure image doesn’t exceed its natural width */
}

/* Form Styling */
#contact_form, #relocation_form {
    padding: 0; /* Override existing 0px 25px padding */
}

/* Form Row */
.row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

/* Labels */
.label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left; /* Keep labels left-aligned for readability */
    color: #ECF4F6; /* Match body text color */
}

/* Input and Textarea Containers */
.input, .area {
    width: 100%;
}

/* Input, Textarea, and Select */
.detail, .mess, select.detail {
    width: 100%;
    padding: 10px;
    border: 1px solid #F26324; /* Match existing border color */
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #171A25; /* Match textarea background */
    color: #FCF5EA; /* Match textarea text color */
    font-size: 16px;
}

/* Textarea Specific */
.mess {
    height: 150px; /* Slightly shorter than current 200px for balance */
}

/* Radio Buttons (for relocation.php) */
.input label {
    margin-right: 15px;
    color: #ECF4F6;
}

/* Submit Button */
.submit {
    text-align: center;
    margin-top: 20px;
}

.submit input {
    display: inline-block;
    padding: 12px 30px; /* Slightly larger than .container-button (10px 20px) */
    background-color: #F0C071; /* Match .container-button gold */
    color: #171A25; /* Match .container-button text color */
    border: none;
    border-radius: 5px; /* Match .container-button */
    font-family: Arial, Helvetica, sans-serif; /* Match .container-button */
    font-weight: bold; /* Match .container-button */
    text-transform: uppercase; /* Match .container-button */
    font-size: 18px; /* Larger than .container-button for prominence */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Match .container-button */
    width: auto; /* Override existing 35% width */
}

.submit input:hover {
    background-color: #D19E4D; /* Match .container-button hover */
    color: #171A25; /* Consistent text color on hover */
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 15px 0;
    text-align: center; /* Center reCAPTCHA */
}

/* Error Messages */
.error {
    color: #F26324;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    #form {
        max-width: 100%; /* Full width on mobile */
        padding: 10px;
    }

    #formWrap {
        padding: 10px 0;
    }

    .row {
        margin-bottom: 10px;
    }

    .detail, .mess, select.detail {
        padding: 8px;
        font-size: 14px;
    }

    .submit input {
        width: 100%; /* Full-width button on mobile */
        padding: 10px 20px; /* Slightly smaller padding for mobile */
        font-size: 16px; /* Slightly smaller font for mobile */
    }

    .g-recaptcha {
        transform: scale(0.85); /* Scale down reCAPTCHA on small screens */
        transform-origin: center;
    }
}
/* Small screens (≤600px) */
@media (max-width: 600px) {
    .video-container {
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Override max-width */
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
        margin: 0; /* Remove centering margins */
    }
}

/* Extra small screens (≤400px) */
@media (max-width: 400px) {
    .video-container {
        padding-bottom: 56.25%; /* Stick with 16:9 for consistency */
    }
}

/* Featured Real Estate Container */
.featured-real-estate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

/* Ensure Zerogrid doesn't interfere */
.content-box.box-2 .item {
    border-right: none; /* Remove right border to avoid misalignment */
    padding-right: 0;
    text-align: center; /* Centers h3 and other content */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .video-container {
        max-width: 100%; /* Full width on mobile */
        padding-bottom: 75%; /* Adjust for mobile aspect ratio if needed */
    }
}
.content-box, .wrap-col {
    border: none;
    box-shadow: none;
}
/* Parallax Banner Section */
/* Parallax Banner Section */
.banner {
    position: relative;
    min-height: 600px; /* Increased to ensure image visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../scrldigres.png');
    background-size: contain; /* Changed to contain to show full image */
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Ensure behind content */
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7); /* Darker for better contrast */
    border-radius: 8px;
    color: #ECF4F6;
}

.parallax {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 20px;
    font-family: 'Racing Sans One', cursive;
}

.parallax_description {
    font-size: 16px;
    line-height: 25px;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .banner {
        min-height: 400px; /* Adjusted for mobile */
    }
    .parallax {
        font-size: 28px;
    }
    .parallax_description {
        font-size: 14px;
    }
    .banner-content {
        padding: 20px;
    }
}

header {
    position: relative;
    z-index: 1000; /* Keep header above content */
}

#menu.active {
    z-index: 1001; /* Menu above header when active */
}

.idx-search-container {
    z-index: 100; /* Below header and menu */
}
/* Modern Containers Section */
.modern-containers {
    padding: 40px 0;
    background-color: #171A25; /* Dark background for contrast */
    color: #ECF4F6;
}

.container-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between containers */
    justify-content: center;
    align-items: stretch; /* Ensure containers are equal height */
}

.container-item {
    flex: 1 1 300px; /* Flexible width, minimum 300px */
    max-width: 400px; /* Cap width for larger screens */
    background: #2A2F3D; /* Slightly lighter dark background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Align content vertically */
}

.container-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.container-header {
    font-size: 22px;
    font-family: 'Racing Sans One', cursive;
    margin: 0 0 15px;
    color: #F0C071; /* Gold accent for headers */
}

.container-image {
    width: 100%;
    height: 200px; /* Fixed height to match 400x200px images */
    object-fit: cover; /* Ensure images fill space without distortion */
    border-radius: 8px;
    margin: 0 auto 15px; /* Space below image */
    display: block;
}

.container-item p {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.container-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F0C071; /* Gold to match header */
    color: #171A25; /* Dark text for contrast */
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.container-button:hover {
    background-color: #D19E4D; /* Slightly darker gold for hover */
    color: #171A25;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
    .container-item {
        flex: 1 1 100%; /* Stack containers on smaller screens */
        max-width: 100%;
    }
    .container-image {
        height: 180px; /* Slightly smaller on medium screens */
    }
}

@media (max-width: 600px) {
    .modern-containers {
        padding: 20px 0;
    }
    .container-item {
        padding: 15px;
    }
    .container-header {
        font-size: 20px;
    }
    .container-item p {
        font-size: 14px;
    }
    .container-image {
        height: 150px; /* Adjust for mobile */
    }
}

/* Override conflicting styles from existing CSS */
.modern-containers .zerogrid,
.modern-containers .wrap-col,
.modern-containers .col-1-1 {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    max-height: none !important;
    overflow: visible !important;
}
/* Zerogrid overrides for reliable column layout */
.zerogrid {
    width: 100% !important; /* Full width, max 1600px */
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.zerogrid .row {
    display: flex !important; /* Ensure flexbox for columns */
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
    box-sizing: border-box;
}

.zerogrid .col-1-4 {
    width: 25% !important; /* Four columns on large screens */
    padding: 0 15px;
    box-sizing: border-box;
    min-width: 0; /* Prevent flex shrinkage issues */
}
@media (min-width: 961px) {
    .modern-containers {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 300px;
    }
    .container-row {
        display: flex !important;
        flex-wrap: wrap !important;
        visibility: visible !important;
        justify-content: center;
    }
    .container-item {
        display: flex !important;
        visibility: visible !important;
        min-width: 300px;
        max-width: 400px;
    }
}
/* Ensure modern-containers and children are visible on all screens */
.modern-containers {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px !important;
    overflow: visible !important;
    background-color: #171A25 !important;
    padding: 40px 0 !important;
}

.container-row {
    display: flex !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 250px !important;
    gap: 20px !important;
    justify-content: center !important;
    margin: 0 !important; /* Override zerogrid .row margin */
    padding: 0 15px !important; /* Ensure content isn’t clipped */
}

.container-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 300px !important;
    max-width: 400px !important;
    min-height: 400px !important;
    flex-direction: column !important;
    background: #2A2F3D !important;
    border-radius: 10px !important;
    padding: 20px !important;
}

.container-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* Override zerogrid constraints */
.modern-containers .zerogrid {
    width: 100% !important;
    max-width: 1600px !important;
    overflow: visible !important;
}

.modern-containers .zerogrid .row {
    margin: 0 !important; /* Remove negative margins */
    padding: 0 !important;
    overflow: visible !important;
}

/* Ensure no parent elements hide content */
.wrap-body, header, .wrap-header {
    overflow: visible !important;
    z-index: 10 !important;
}

/* Force visibility on larger screens */
@media (min-width: 961px) {
    .modern-containers {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 300px !important;
    }
    .container-row {
        display: flex !important;
        flex-wrap: wrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 250px !important;
        gap: 20px !important;
        justify-content: center !important;
    }
    .container-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 300px !important;
        max-width: 400px !important;
        min-height: 400px !important;
    }
}
.container-image[src=""], .container-image:not([src]) {
    background-image: url('https://via.placeholder.com/400x200');
    background-size: cover;
    background-position: center;
    min-height: 200px !important;
}
