/*
==================================================================
PARKWAY VILLAGE CUSTOM STYLES
==================================================================
All custom styling consolidated into this single file
This ensures styles are preserved during theme updates
Created: 2025
*/

/* ================================================================
   CSS VARIABLES - BRAND COLORS
   ================================================================ */
:root {
    --pv-purple: #9A4E9E;
    --pv-green: #00b156;
    --pv-blue: #007AC6;
    --pv-navy: #232E82;
    --pv-orange: #FBB034;
}

/* ================================================================
   TYPOGRAPHY - PROXIMA NOVA FONT FAMILY
   ================================================================ */
body {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0px;
}

h1, h2, h3, h4 {
    font-family: "proxima-soft", sans-serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0px;
}

h5, h6 {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0px;
}

h2, h2.title {
    font-size: 30px;
    line-height: 34px;
}

h4.title, h4 {
    font-size: 20px;
    line-height: 22px;
    text-transform: uppercase;
}

/* Navigation and Menu Typography */
#menu > ul > li > a,
#overlay-menu ul li a {
    font-family: "proxima-nova", sans-serif;
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
.standard-headline div {
    margin-left: 0;
}

/* ================================================================
   FANCY BOX COMPONENT
   ================================================================ */
.fancy-box {
    background-color: var(--pv-purple);
    box-shadow: 5px 5px 0 var(--pv-blue);
    color: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 1rem 0.5rem;
}

.fancy-box.fancy-box-single {
    padding: 1rem 1.2rem;
}

.fancy-box-single > div {
    display: flex;
    gap: 0.75rem;
    margin-top: 7px;
    padding-top: 5px;
}

.fancy-box .excerpt-hellip {
    display: none;
}

.fancy-box h1 {
    line-height: 1.2;
    font-size: 34px;
}

.fancy-box h1, .fancy-box p {
    color: #ffffff !important;
    margin-bottom: 10px;
    text-wrap: balance;
}


.fancy-box .two-fifth.column {
    width: initial;
}

/* ================================================================
   HOME GRID SECTION
   ================================================================ */
.home-grid {
    background-color: #F4F5F9;
}

.home-grid div h3,
.home-grid div div {
    color: #1E1E1E;
}

.home-grid div h4 {
    color: var(--pv-navy);
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
}

.home-grid .section_wrapper {
    display: grid;
    grid-template-columns: auto;
    gap: 2rem;
}

.home-grid .section_wrapper .divider {
    display: none;
}

.home-grid .section_wrapper .one-second.mcb-wrap {
    width: 100%;
}

.home-grid .column_feature_box .mcb-item-feature_box-inner {
    padding: 0;
    overflow: initial;
}

.home-grid .feature_box .feature_box_wrapper .photo_wrapper,
.home-grid .feature_box .feature_box_wrapper .desc_wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.home-grid .feature_box .feature_box_wrapper .desc_wrapper {
    padding: 0;
}

.home-grid .feature_box .feature_box_wrapper .photo_wrapper img {
    object-fit: cover;
}

/* Home Grid Box Shadows - Color Coded */
.home-grid .section_wrapper .box-1 .photo_wrapper {
    box-shadow: 5px 5px 0 var(--pv-purple);
}

.home-grid .section_wrapper .box-2 .photo_wrapper {
    box-shadow: 5px 5px 0 var(--pv-green);
}

.home-grid .section_wrapper .box-3 .photo_wrapper {
    box-shadow: 5px 5px 0 var(--pv-orange);
}

.home-grid .section_wrapper .box-4 .photo_wrapper {
    box-shadow: 5px 5px 0 var(--pv-blue);
}

.home-grid .pink-btn .button {
    color: #ffffff;
    padding: 10px 35px;
}

/* ================================================================
   FOOTER STYLING
   ================================================================ */
#Wrapper #Footer {
    background-color: var(--pv-purple);
}

#Footer .widgets_wrapper {
    padding: clamp(30px, 4.5vw, 60px) 0 15px 0;
}

#Footer .sibling-text aside, #Footer .widgets aside {
    margin: 0;
}

#Footer .widgets, #Footer .widgets + div {
    width: 100%;
    max-width: 340px;
    margin-top: 55px;
}

#Footer .widgets aside h3,
#Footer nav.footer-nav ul#menu-footer-menu > li > a {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    pointer-events: none;
}

#Footer .widgets aside i {
    font-size: 24px;
}

#Footer nav.footer-nav ul#menu-footer-menu > li:first-of-type > a {
    margin-bottom: 10px;
}

#Footer nav.footer-nav ul#menu-footer-menu > li:last-of-type > a {
    margin-top: 15px;
    margin-bottom: 10px;
}

#Footer nav.footer-nav ul#menu-footer-menu > li > a {
    display: block;
}

#Footer nav.footer-nav ul#menu-footer-menu > li > ul > li {
    text-decoration: underline;
}

#Footer .widgets aside ul li {
    display: flex;
    gap: 0.5rem;
}

#Footer .widgets aside ul li a, #Footer .widgets aside ul li p {
    text-decoration: underline;
}

#Footer .widgets aside ul.social {
    margin-top: 15px;
}

/* Footer Copyright */
.footer-copyright > .container > * {
    margin-bottom: 10px;
}

#Footer .footer_copy .copyright {
    text-align: center;
    float: initial !important;
}

#Footer .footer_copy .social {
    display: none;
}

.footer_button {
    width: 42px;
    height: 42px;
    font-size: 20px !important;
    padding: 0;
}

#Footer .image_wrapper img {width: 420px;}
#Footer .footer_copy .mcb-column-inner {
	margin-bottom: 0;
}

/* ================================================================
   FORMS & INPUT STYLING
   ================================================================ */
/* Live Search Styling */
body .column_livesearch {
    margin-bottom: clamp(60px, 10vw, 120px) !important;
    width: 100% !important;
}

body .column_livesearch .mfn-live-search-wrapper {
    box-shadow: none !important;
    border: 1px solid var(--pv-purple);
}

/* Custom Form Styling */
.custom-form .gform_wrapper {
    margin-top: 20px;
}

.custom-form .gform_wrapper h3 {
    margin: 0px;
    font-size: 26px;
    line-height: 1;
}

.custom-form .gform_wrapper.gravity-theme .gfield_required {
    display: none;
}

.custom-form.contact-us .gform_wrapper li {
    margin-top: 10px;
}

.custom-form.contact-us .gform_wrapper li span label {
    padding-bottom: 10px;
}

.custom-form .gform_wrapper p {
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.custom-form .gform_wrapper .asterisk {
    color: #FF0000;
}

.custom-form .gform_fields {
    grid-row-gap: 5px;
}

.custom-form .gform_wrapper label {
    font-size: 14px !important;
    line-height: 1;
    font-weight: 500 !important;
}

.custom-form .gform_wrapper input,
.custom-form .gform_wrapper select,
.custom-form .gform_wrapper textarea {
    border-radius: 7px;
    padding: 13px 15px !important;
}

.custom-form .gform_wrapper input.button {
    width: 100%;
    background-color: var(--pv-navy);
    text-transform: capitalize;
}

.custom-form textarea {
    height: 150px !important;
}

.custom-form .footer_copy .mcb-column-inner {
    margin-bottom: 0;
}

/* Document Viewer Controls */
.document-controls input[type="text"],
.document-controls select {
    padding: 8px 12px;
    border: 1px solid var(--pv-purple);
    border-radius: 4px;
}

/* ================================================================
   BLOCKQUOTE STYLING
   ================================================================ */
blockquote {
    font-size: 17px;
    line-height: 31px;
    display: block;
    height: auto;
    margin: 0 0 35px 25px;
    top: 15px;
    position: relative;
}

blockquote:before {
    content: "";
}

.blockquote {
    position: relative;
    margin-bottom: 20px;
}

.blockquote .mfn-blockquote-icon {
    display: block;
    font-size: 65px;
    position: absolute;
    left: 25px;
    top: 25px;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, .1);
}

.blockquote blockquote {
    margin-bottom: 25px;
}

body:not(.style-simple) .blockquote blockquote {
    text-decoration: initial;
    text-decoration-color: rgba(0, 0, 0, .1);
    text-underline-offset: 8px;
    text-align: center;
    text-decoration-thickness: 1px;
    text-underline-position: from-font;
}

.blockquote p.author {
    margin-left: 25px;
}

.blockquote p.author i {
    margin-right: 5px;
}

/* ================================================================
   TESTIMONIALS & CONTENT SECTIONS
   ================================================================ */
/* Testimonial Slider */
.testimonial-slider h2 {
    text-align: center;
}

.testimonial-slider .blockquote .icon-quote::before {
    display: none;
}

.testimonial-slider .mcb-item-testimonials-inner {
    margin-bottom: 0;
}

body .testimonial-slider .blockquote blockquote {
    font-family: "proxima-nova", sans-serif;
    text-align: center !important;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    text-decoration: initial;
    text-decoration-color: rgba(0, 0, 0, .1);
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
    text-underline-position: from-font;
}

body .testimonial-slider .author .title {
    font-family: "proxima-nova", sans-serif;
    font-size: 18px;
    line-height: 1;
    color: #1E1E1E;
    font-weight: 700;
    margin-top: 10px;
    text-transform: capitalize;
    font-weight: 500;
}

/* Single Testimony Page */
.single-testimony h2 {
    text-align: center;
}

.single-testimony .icon-quote::before {
    display: none;
}

/* Latest News Styling */
.Latest_news ul.ul-first li h4 a,
.Latest_news ul.ul-second li h5 a {
    font-family: "proxima-nova", sans-serif;
    color: var(--pv-navy);
    font-weight: 400;
    line-height: 1;
}

.Latest_news .button-container {
    display: flex;
    padding-bottom: 5px;
    margin-top: 20px;
}

.Latest_news .button-container a {
    color: #ffffff;
    padding: 10px 35px;
    background-color: var(--pv-navy);
    border: none;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03), inset 0px 4px 3px -2px rgba(0, 0, 0, .07);
    font-weight: 500;
}

.Latest_news .button-container a:hover {
    text-decoration: none;
}

.Latest_news ul.ul-second {
    display: flex;
    flex-direction: column;
}

.Latest_news ul.ul-second li {
    overflow: initial;
    margin: 0 0 18px;
}

.Latest_news ul.ul-second li:nth-child(1) .photo {
    box-shadow: 5px 5px 0 var(--pv-purple);
}

.Latest_news ul.ul-second li:nth-child(2) .photo {
    box-shadow: 5px 5px 0 var(--pv-blue);
}

.Latest_news ul.ul-second li:nth-child(3) .photo {
    box-shadow: 5px 5px 0 var(--pv-orange);
}

/* ================================================================
   DOCUMENT VIEWER & TABLES
   ================================================================ */
.intranet-documents {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.intranet-documents th,
.intranet-documents td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.intranet-documents th {
    background-color: var(--pv-purple);
    color: white;
    cursor: pointer;
}

/* ================================================================
   IMAGE & GALLERY STYLING
   ================================================================ */
/* Plan Images */
.plan-image img {
    max-height: 500px;
    object-fit: contain;
}

/* Gallery Grid */
.gallery-page h2 {
    margin: 0px auto 25px;
    width: 100%;
    display: block;
    text-align: center;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 50px;
}

.grid-item {
    width: calc(100% / 3);
    padding: 10px;
}

.grid-item a {
    text-decoration: none;
    display: none;
}

.grid-item a:first-of-type {
    display: block;
}

.grid-item a:hover .grid-image img {
    transform: scale(1.1);
}

.grid-link {
    position: relative;
}

.grid-icon {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 2;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, .25);
}

.grid-icon span {
    font-size: 40px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.grid-image {
    overflow: hidden;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    transition: .5s ease;
}

.grid-name {
    background-color: #f8f8f8;
    color: #412d63;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: .5px;
}

.mfp-iframe-holder .mfp-content {
    max-width: 1500px;
    max-height: 80vh;
}

/* Contact Image Styling */
.contact-image div,
.contact-image div.image_frame,
.contact-image div.image_wrapper {
    overflow: initial;
}

.contact-image img {
    box-shadow: 5px 5px 0 var(--pv-orange);
}

/* ================================================================
   PAGE-SPECIFIC STYLING
   ================================================================ */
/* Single Post Pages */
body.single-post #Subheader {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

body img.subhead-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
    min-height: 320px;
    max-height: 600px;
}

body img.subhead-image .container {
    position: relative;
}

.subhead-image__container {
    background-color: #fff;
    position: relative;
}

.subhead-image__container .title {
    position: absolute;
    top: 60%;
    left: 0;
    transform: translate(0, -50%);
    text-wrap: balance;
}

body.single-post .post-header .mcb-column-inner {
    margin-bottom: 0;
    padding-top: 15px;
}

body.single-post:not(.template-slider) #Header_wrapper {
    background-image: none;
    background-color: #eaeaea;
    position: relative;
}

/* Portal Template */
.portal-template-default .section_wrapper,
.post-type-archive-portal .section_wrapper {
    display: block;
}

/* About Page */
#Subheader.Subheader {
    padding: 220px 0;
}

/* Floor Plans Section */
.floor-plans {
    background-color: #F4F5F9;
}

/* Full Banner */
.full-banner div {
    width: 100%;
    max-width: 100%;
}

.full-banner div img {
    max-height: 600px;
    min-height: 320px;
    object-fit: cover;
    width: 100%;
    max-width: 100%;
}

/* Blue Banner */
section.blue-banner {
    padding-top: 180px;
}

/* ================================================================
   INTERACTIVE COMPONENTS
   ================================================================ */
/* Worry-Free Component */
.worry-free {
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.worry-free-checkbox {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-right: 1px solid #ccc;
}

.worry-free-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.worry-free-content {
    flex: 1;
    padding: 15px 20px;
}

.worry-free-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.worry-free-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.worry-free-component {
    margin-top: 50px;
}

.worry-free-component .mcb-column-inner {
    margin-bottom: 5px;
}

.worry-free-component .image_frame {
    box-shadow: 5px 5px 0 var(--pv-orange);
}

/* Floor Plan Interactive Viewer */
.mcb-section.floor-plan-view {
    position: relative;
    overflow: visible;
}

.section_wrapper .one:has(.floor-plan-content) {
    overflow: visible;
}

.floor-plan-image {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floor-plan-image:hover {
    transform: scale(1.05);
    z-index: 10;
}

.floor-plan-image img {
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.floor-plan-image:hover img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.floor-plan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.floor-plan-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.floor-plan-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.floor-plan-close:hover {
    color: #ccc;
}

/* Static Tabs Component */
/* STATIC TAB */

.static-tab .section_wrapper {
	padding: 0 12px 26px;
    background-color: #F4F5F9;
	margin: 0 auto;
	border-left: 12px solid #ffffff;
	border-right: 12px solid #ffffff;
}

.static-tab .section_wrapper .wrap .mcb-column-inner {
	padding: 40px 10px 50px;
	margin: 0;
}

.static-tab .section_wrapper .image_frame {
    box-shadow: 5px 5px 0 var(--pv-orange);
	width: 100%;
}

.static-tab .section_wrapper .image_frame img {
	margin-bottom: 0!important;
}

.static-tab .section_wrapper .wrap .single-tab-item > div{
    padding: 0;
}

.static-tab .single-tab-item div > div {
	background: #F4F5F9;
    color: var(--pv-navy);
    position: absolute;
    left: -12px;
    top: -57px;
	padding: 20px 20px;
}

.static-tab .single-tab-item div > div::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		height: 7px;
		width: 100%;
		background-color: var(--pv-green);
		visibility: visible;
}

.static-tab .single-tab-item div p {
	font-weight: 600;
}

@media only screen and (max-width: 1023px) {
	.static-tab .section_wrapper .image_frame img {
		height: 300px;
		object-fit: cover;
		width: 100%;
		margin-bottom: 15px;
	}
}

@media only screen and (max-width: 767px) {
	.static-tab .section_wrapper .image_frame img {
		height: 200px;
	}
}

.static-tab .section_wrapper > div:first-of-type {
	width: 100%;
}
.static-tab .section_wrapper > div:last-of-type {
	width: 100%;
}

.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner .mcb-wrap-background-overlay {
	display: none;
}

.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner .col-1 {
	width: 55%;
	padding: 40px 0px 0px
}

.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner .col-1 div {
	padding: 0px 0px 0px 10px;
}

.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner .col-2 {
	width: 45%;
	padding: 40px 0px 0px
}

.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner .col-2 div {
	padding: 0px 0px 0px 10px;
}

@media only screen and (max-width: 767px) {
	.static-tab .section_wrapper .wrap .image  .mcb-column-inner{
		padding: 40px 0px 30px;
	}
	.static-tab .section_wrapper {
		padding: 0 12px 65px;
		border-left: 0px solid #ffffff;
		border-right: 0px solid #ffffff;
	}
	.static-tab .single-tab-item div > div {
		left: -33px;
		top: -50px;
	}
}

@media only screen and (max-width: 1023px) {
	.static-tab .section_wrapper {
		padding: 0 12px 65px;
	}
	.static-tab .section_wrapper .wrap .mcb-column-inner {
		padding: 40px 10px 30px;
	}

	.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner {
		gap: 1.5rem;
	}
	.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner > div.col-1,
	.static-tab .section_wrapper > div:last-of-type .mcb-wrap-inner > div.col-2 {
		width: 100%;
		padding: 0px 0px 0px
	}
}

@media only screen and (min-width: 1024px) {
	.static-tab .section_wrapper > div:first-of-type {
		width: 28%;
	}
	.static-tab .section_wrapper > div:last-of-type {
		width: 72%;
	}
}

.static-tab .section_wrapper > div:last-of-type ul {
	margin: 0;
    padding: 0 0 0 10px;
}

.static-tab .section_wrapper > div:last-of-type li {
    line-height: 1.5;
    margin-bottom: 1px;
}

.row-grid-images .image_frame {
	width: 100%;
}

.row-grid-images img {
	width: 100%;
}

.row-grid-images .mcb-column-inner {
	margin-bottom: 0;
}

/* ================================================================
   AMENITIES & CARE LEVELS
   ================================================================ */
/* Amenity Grid */
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.amenity-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.amenity-item i {
    font-size: 48px;
    color: var(--pv-purple);
    margin-bottom: 15px;
    display: block;
}

.amenity-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.amenity-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Care Levels */
.care-levels {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    margin: 30px 0;
}

.care-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.care-level {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--pv-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.care-level h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.care-level ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.care-level ul li {
    color: #666;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.care-level ul li:before {
    content: '✓';
    color: var(--pv-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ================================================================
   SPECIALIZED SECTIONS
   ================================================================ */
/* Flag Content Section */
.flag-content .mcb-column-inner {
    margin-bottom: 5px;
}

.flag-content .image_frame {
    overflow: initial;
}

.flag-content .image_frame .image_wrapper {
    overflow: initial;
    box-shadow: 5px 5px 0 var(--pv-orange);
}

/* Independent Living Section */
.independent-living-r-1 .custom-form {
    color: #1E1E1E;
}

.independent-living-r-1 .custom-form h3 {
    color: var(--pv-navy);
    font-weight: 500;
}

.independent-living-r-1 .custom-form .gform_wrapper p {
    border-bottom: 1px solid #006631;
}

.independent-living-r-1 > div > div:last-of-type {
    background-color: #f2fbff;
    padding-inline: 20px;
    padding-top: 30px;
}

/* Icon Box Enhancement */
.column_icon_box_2 a:not(.button),
.column_icon_box_2 a:not(.button):hover {
    text-decoration: none;
    color: inherit;
}

/* Custom Column Layout */
.mcb-column-inner:nth-child(2) {
    flex-direction: row;
    display: flex;
    gap: 3rem;
}

/* ================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ================================================================ */

/* Mobile Devices (up to 420px) */
@media only screen and (max-width: 420px) {
    section.blue-banner {
        padding-top: 250px;
    }
}

/* Small Tablets (up to 550px) */
@media screen and (max-width: 550px) {
    .grid {
        margin-bottom: 35px;
    }

    .grid-item {
        width: 100%;
    }

    .grid-name {
        font-size: 16px;
        letter-spacing: .3px;
    }

    .grid-icon {
        width: 50px;
        height: 50px;
    }

    .grid-icon span {
        font-size: 30px;
    }
}

/* Tablets (up to 767px) */
@media only screen and (max-width: 767px) {
    /* Layout Adjustments */
    .mcb-column-inner:nth-child(2) {
        flex-direction: column;
        gap: 0rem;
    }

    .divider .mfn-divider-border-solid .mfn-divider-inner:before {
        margin-top: 30px;
    }

    /* Fancy Box Mobile */
    br {
        display: none;
    }

    .close-wrapper a .icon-cancel-fine:before {
        color: #ffffff;
    }

    .fancy-box .mobile-one.column.blue-btn,
    .fancy-box .mobile-one.column.blue-btn-alt {
        width: 50%;
    }

    .divider > div {
        margin: 0 0 0px !important;
    }

    .fancy-box.fancy-box-single {
        width: auto;
    }

    .fancy-box-single > div {
        gap: 0;
    }

    .fancy-box .mobile-one.column.blue-btn div,
    .fancy-box .mobile-one.column.blue-btn-alt div {
        margin: 0;
    }

    .content_wrapper .fancy-box .mcb-column-inner {
        margin-bottom: 5px !important;
    }

    .content_wrapper .fancy-box {
        margin-top: -60px !important;
    }

    .fancy-box {
        padding: 1rem 1rem;
    }

    .section_wrapper .fancy-box .blue-btn {
        margin-right: 1rem;
    }


    .fancy-box .two-fifth.column {
        width: initial !important;
    }

    /* Home Grid Mobile */
    .home-grid .feature_box .feature_box_wrapper .photo_wrapper img {
        height: auto;
    }

    /* Flag Content Mobile */
    .flag-content .section_wrapper .col-text p:last-of-type {
        margin: 0;
    }

    /* Static Tab Mobile */
    .static-tab .section_wrapper .image_frame img {
        height: 300px;
        object-fit: cover;
        width: 100%;
        margin-bottom: 15px;
    }

    /* Independent Living Mobile */
    .independent-living-r-1 > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .independent-living-r-1 > div > div:first-of-type {
        padding-left: 33px;
        padding-right: 33px;
    }

    .independent-living-r-1 > div > div:last-of-type {
        padding-inline: 33px;
    }

    .independent-living-r-1 {
        padding-bottom: 0 !important;
    }

    /* Footer Mobile */
    #Footer .widgets, #Footer .widgets + div {
        margin-top: 50px;
    }

    #Footer .container .one-third .gform_wrapper {
        margin-top: 50px;
    }

    #Footer .sibling-text .image_wrapper img {
        width: 285px;
    }

    #Footer .mcb-column-inner {
        margin: 0;
    }

    /* Testimonials Mobile */
    .testimonial-slider {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Gallery Mobile */
    .gallery-page h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    /* Interactive Components Mobile */
    .amenity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .care-level-grid {
        grid-template-columns: 1fr;
    }

    .care-levels {
        padding: 20px;
    }

    .floor-plan-overlay img {
        max-width: 95%;
        max-height: 95%;
    }

    .floor-plan-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .static-tabs .nav-tabs .nav-link {
        padding: 10px 12px;
        margin-right: 4px;
        font-size: 14px;
    }

    /* Worry-Free Component Mobile */
    .worry-free-component .mcb-column-inner p {
        margin: 0 0 0px !important;
    }

    .worry-free-component {
        margin-top: 0px;
        padding-top: 50px !important;
    }
}

/* Medium Tablets (768px - 959px) */
@media only screen and (min-width: 768px) {
    /* Home Grid Desktop Grid */
    .home-grid .section_wrapper {
        grid-template-columns: auto auto;
        gap: 3rem;
    }

    .home-grid .feature_box .feature_box_wrapper .photo_wrapper img {
        height: 190px;
    }

    /* Flag Content Desktop */
    .flag-content .section_wrapper {
        gap: 2rem;
    }

    .flag-content .section_wrapper > div {
        width: calc(50% - 1rem);
    }

    .flag-content .section_wrapper > div:first-of-type p {
        width: 93%;
    }

    /* Fancy Box Desktop */
    .fancy-box {
        margin-top: -132px;
    }

    /* Gallery Desktop */
    .gallery-page h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    /* Blue Banner Tablet */
    section.blue-banner {
        padding-top: 150px;
    }
}

/* Medium Tablets (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #Footer .widgets_wrapper .container > div {
        width: 100%;
    }
}

/* Large Tablets & Small Desktop (up to 959px) */
@media screen and (max-width: 959px) {
    .grid-item {
        width: 50%;
    }
}

/* Desktop (1024px+) */
@media only screen and (min-width: 1024px) {
    /* Home Grid Large Desktop */
    .home-grid .feature_box .feature_box_wrapper .photo_wrapper img {
        height: 260px;
    }

    /* Fancy Box Large Desktop */
    .fancy-box {
        margin-top: -150px;
    }

    .fancy-box-alt {
        margin-top: -139px;
    }

    .fancy-box-gallery {
        margin-top: -82px;
    }

    /* Independent Living Desktop */
    .independent-living-r-1 > div > div:first-of-type {
        padding-right: 50px;
    }

    .independent-living-r-1 > div > div:last-of-type {
        padding-inline: 50px;
    }

    .independent-living-r-1 .gform_wrapper.gravity-theme .gform_fields {
        row-gap: 5px;
    }

    /* Blue Banner Desktop */
    section.blue-banner {
        padding-top: 120px;
    }
}

/* Extra Large Desktop (1240px+) */
@media only screen and (min-width: 1240px) {
    .home-grid .feature_box .feature_box_wrapper .photo_wrapper img {
        height: 330px;
    }
}