/* About Page Hero Image Section - UPDATED */
.about-hero__section {
    padding-top: 20px; /* Adjust as needed to position content below header */
    padding-bottom: 120px; /* Spacing below the image */
    background-color: var( --white ); /* Assuming a white background for this section */
    display: flex;
    justify-content: center;
}

.about-hero__image-container {
    width: 100%;
    max-width: 1200px; /* The container is still constrained */
    border-radius: 25px;
    overflow: hidden; /* This makes the image inside respect the border-radius */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    line-height: 0; /* Removes any potential extra space below the image */
}

.about-hero__image {
    width: 100%; /* Makes the image responsive to the container width */
    height: auto; /* Maintains the image's original aspect ratio */
    display: block;
    /* Removed position, object-fit, etc. as they are no longer needed */
}

/* Specific overrides for ad placement ONLY on the About page */
#ad-placement-placeholder .site-ad__container {
    margin-top: 90px; /* Decreased top margin for this page only */
    background-color: #0d4033; /* Specific color for this page only */
}

/* Responsive adjustments for the About Hero section - UPDATED */
@media (max-width: 991.98px) {
    .about-hero__section {
        padding-bottom: 20px;
    }

    .about-hero__image-container {
        width: 95%;
        border-radius: 15px; /* Slightly less rounded corners on smaller screens */
    }
}

@media (max-width: 767.98px) {
    .about-hero__section {
        padding-top: 15px;
        padding-bottom: 25px;
    }

    .about-hero__image-container {
        width: 95%;
        border-radius: 10px; /* Even less rounded on small mobile */
    }
}

@media (max-width: 575.98px) {
    .about-hero__section {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .about-hero__image-container {
        width: 95%;
        border-radius: 8px;
    }

    /* Adjust ad placement margin for very small screens if needed, based on the global mobile rule */
    #ad-placement-placeholder .site-ad__container {
        margin-top: 20px; /* Further reduce top margin for mobile on this page if desired */
    }
}

/* Section styling (from aboutc2.css) */
.about-question-section {
    background-color: var(--light-graish-orange);
    padding: 50px 80px 40px 80px;
}

/* Text column content */
.about-question-section__content {
    font-family: "Agrandir-Regular", sans-serif;
    padding: 0 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Heading */
.about-question-section__heading {
    color: var(--teal);
    font-size: 55px;
    line-height: 60px;
    font-weight: 500;
    margin: 0;
}

/* Divider line */
.about-question-section__divider {
    width: 470px;
    height: 2px;
    background-color: grey;
    margin: 25px 0;
}

/* Paragraph */
.about-question-section__paragraph {
    width: 75%;
    color: var(--teal);
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

/* Button */
.about-question-section__button {
    background-color: var(--teal);
    color: var(--universal-tan-02);
    border: none;
    border-radius: 25px;
    padding: 5px 25px;
    width: 470px;
    font-size: 16px;
    cursor: pointer;
}

/* Image wrapper */
.about-question-section__image-wrapper {
    width: 100%; /* Increased width to make the image larger */
    position: relative;
    padding-bottom: 80%; /* Increased padding-bottom to make the image taller */
    border-radius: 15px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Image */
.about-question-section__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================== Responsive (aboutc2.css) ===================== */

/* Medium devices (≤ 991.98px) */
@media (max-width: 991.98px) {
    .about-question-section {
        padding: 50px 30px 80px 30px;
    }

    .about-question-section__content {
        padding: 0 20px;
        text-align: center;
        align-items: center;
    }

    .about-question-section__heading {
        font-size: 42px;
        line-height: 48px;
    }

    .about-question-section__divider {
        width: 60%;
        margin: 20px auto;
    }

    .about-question-section__paragraph {
        width: 100%;
        font-size: 18px;
    }

    .about-question-section__button {
        width: auto;
        padding: 10px 30px;
        margin-bottom: 20px;
    }

    .about-question-section__image-wrapper {
        width: 100%;
        padding-bottom: 60%;
    }
}

/* Small devices (≤ 767.98px) */
@media (max-width: 767.98px) {
    .about-question-section__heading {
        font-size: 36px;
        line-height: 42px;
    }

    .about-question-section__paragraph {
        font-size: 16px;
    }

    .about-question-section__divider {
        margin: 15px auto;
    }
}

/* Extra small devices (≤ 575.98px) */
@media (max-width: 575.98px) {
    .about-question-section {
        padding: 40px 20px 60px 20px;
    }

    .about-question-section__heading {
        font-size: 30px;
        line-height: 38px;
    }

    .about-question-section__button {
        font-size: 14px;
        padding: 10px 25px;
        margin-bottom: 20px;
    }

    .about-question-section__image-wrapper {
        padding-bottom: 70%;
    }
}

/* About Page Component 3 (Values Section) (from aboutc3.css) */
.about-values-section {
    background-color: var(--teal); /* Teal background as per design */
    padding: 254px 200px; /* Increased vertical padding */
    text-align: center; /* Center content horizontally */
}

    .about-values-section .container {
        max-width: 1200px; /* Constrain content width */
    }

    .about-values-section .row {
        justify-content: center; /* Center the columns within the row */
        align-items: flex-start; /* Align items to the top within the row */
        gap: 0px; /* Adjusted: Decreased gap to 0px for desktop */
    }

.about-values-section__item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center icon and text within each item */
    text-align: center;
    margin-bottom: 30px; /* Space between items when stacked on mobile */
    flex-basis: 23%; /* Adjusted: Give items a bit less than 25% to account for gap */
    max-width: 23%; /* Adjusted: Give items a bit less than 25% to account for gap */
}

.about-values-section__icon {
    width: 170px; /* Increased icon size */
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Makes SVG icons white */
}

.about-values-section__text {
    font-family: "Agrandir-Textbold", sans-serif;
    font-size: 1.9rem;
    font-weight: 100;
    color: var(--white); /* White text color */
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Responsive Adjustments */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .about-values-section__item {
        margin-bottom: 0; /* Remove bottom margin when side-by-side */
        flex-basis: 24%; /* Adjusted for tablet to ensure 4 items fit */
        max-width: 24%;
    }

    .about-values-section .row {
        gap: 5px; /* Adjusted: Smaller gap for tablets */
    }
}

/* Small devices (portrait phones, less than 768px) */
@media (max-width: 767.98px) {
    .about-values-section {
        padding: 59px 0; /* Adjusted padding for very small screens */
    }

    .about-values-section__item {
        width: fit-content; /* Ensure it takes full width of its column */
        flex-basis: auto; /* Reset flex-basis */
        max-width: none; /* Reset max-width */
        margin: 0 auto; /* Center the item within its column */
    }

    .about-values-section .row {
        gap: 10px; /* Adjusted: Smaller gap for mobile */
    }

    .about-values-section__icon {
        width: 90px; /* Adjusted icon size for mobile */
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .about-values-section {
        padding: 59px 0; /* Adjusted padding for very small screens */
    }

    .about-values-section__icon {
        width: 120px;
    }

    .about-values-section__text {
        font-size: 1.1rem;
    }

    .about-values-section__item {
        width: fit-content; /* Ensure it takes full width of its column */
        flex-basis: auto; /* Reset flex-basis */
        max-width: none; /* Reset max-width */
        margin-bottom: 25px;
        margin: 0 auto; /* Center the item within its column */
    }

    .about-values-section .row {
        gap: 5px; /* Even smaller gap for very small mobile */
    }
}

/* About Page Component 4 (Accessible Living Section) */
.about-accessible-section {
    background-color: var(--white); /* White background as per design */
    padding: 78px 0 60px 0; /* Adjusted: Decreased vertical padding */
}

    .about-accessible-section .container {
        max-width: 1200px; /* Constrain content width */
    }

    .about-accessible-section .row {
        display: flex;
        flex-wrap: wrap; /* Allows columns to stack on smaller screens */
        align-items: center; /* Vertically align items in the center */
        margin-left: 0; /* Reset default Bootstrap row negative margin */
        margin-right: 0; /* Reset default Bootstrap row negative margin */
        width: 100%; /* Ensure row takes full width */
    }

/* Left Column: Text Content */
.about-accessible-section__content {
    flex-basis: 100%; /* Default to full width on mobile */
    max-width: 100%;
    padding: 0 20px; /* Horizontal padding for mobile */
    text-align: center; /* Center text on mobile */
    margin-bottom: 40px; /* Space below content when stacked */
}

.about-accessible-section__heading {
    width: 85%; /* Ensure heading takes full width */
    font-family: "Agrandir-Regular", sans-serif; /* As per design, often Nunito Sans for headings */
    font-size: 2.8rem;
    font-weight: 400; /* Changed: Bolder as seen in design */
    color: var(--teal); /* Teal heading color */
    margin-bottom: 15px;
    line-height: 1.2;
    /* Removed margin-left: auto; margin-right: auto; from here */
}

/* New divider style */
.about-accessible-section__divider {
    width: 82%; /* Length of the divider line */
    height: 2px; /* Thickness of the divider line */
    background-color: grey; /* Teal color for the divider */
    margin-bottom: 20px;
    margin-left: auto; /* Center divider on mobile */
    margin-right: auto; /* Center divider on mobile */
}

.about-accessible-section__paragraph {
    max-width: 85%;
    font-family: "Agrandir-Regular", sans-serif; /* Inter for body text */
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--teal); /* Changed: Paragraph text color to teal */
    margin-bottom: 25px;
    /* Removed margin-left: auto; margin-right: auto; from here */
}

.about-accessible-section__list {
    list-style: none; /* Remove default bullet points */
    padding-left: 0; /* Remove default padding */
    margin-bottom: 30px;
    text-align: left; /* Align list items left */
    max-width: 500px; /* Constrain list width slightly */
    /* Removed margin-left: auto; margin-right: auto; from here */
}

    .about-accessible-section__list li {
        max-width: 90%;
        font-family: "Agrandir-Regular", sans-serif;
        font-size: 1.1rem;
        color: var(--teal); /* Changed: List item text color to teal */
        margin-bottom: 5px;
        display: flex; /* Use flex for icon and text alignment */
        align-items: flex-start; /* Align icon and text to top */
        position: relative; /* For pseudo-element positioning */
        padding-left: 20px;
        margin-left: 14px; /* Space for custom bullet */
    }

        .about-accessible-section__list li::before {
            /* Custom dot bullet */
            content: "";
            position: absolute;
            left: 0;
            top: 0.6em; /* Adjust vertical position of the dot */
            width: 6px;
            height: 6px;
            background-color: var(--teal); /* Teal color for the dot */
            border-radius: 50%;
            transform: translateY(-50%); /* Center vertically */
        }

.about-accessible-section__button {
    font-family: "Agrandir-Regular", sans-serif;
    background-color: var(--teal); /* Teal button background */
    color: var(--universal-tan-02); /* Universal Tan 02 button text */
    padding: 5px 170px; /* Adjusted: Less vertical, more horizontal padding */
    border-radius: 9999px; /* Changed: Very rounded edges (pill shape) */
    border: none;
    font-size: 1rem;
    font-weight: 300; /* Changed: Lighter text weight */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block; /* Make it a block element to center with margin: auto */
    margin: 30px auto 0 auto; /* Center the button horizontally and add top margin */
}

    .about-accessible-section__button:hover {
        background-color: var(--light-teal); /* Slightly lighter teal on hover */
        transform: translateY(-2px);
    }

/* Right Column: Image */
.about-accessible-section__image-col {
    flex-basis: 100%; /* Default to full width on mobile */
    max-width: 100%;
    padding: 0 20px; /* Horizontal padding for mobile */
}

/* Wrapper for the image to control its aspect ratio and rounded corners */
.about-accessible-section__image-wrapper {
    position: relative; /* Needed for absolute positioning of image */
    width: 100%;
    padding-bottom: 90%; /* Adjusted for a slightly taller square aspect ratio */
    overflow: hidden; /* Ensures content respects border-radius */
    border-radius: 17px; /* Rounded corners for the square container */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Subtle shadow as in design */
}

/* Styles for the image itself */
.about-accessible-section__image {
    position: absolute; /* Position image absolutely within its wrapper */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Adjustments */

/* Desktop (medium screens and up) */
@media (min-width: 768px) {
    /* Using Bootstrap's 'md' breakpoint for side-by-side */
    .about-accessible-section__content {
        flex-basis: 50%; /* 50% width for text on desktop */
        max-width: 50%;
        padding-right: 5px; /* Adjusted: Decreased space between text and image even more */
        padding-left: 0; /* Reset mobile padding */
        text-align: left; /* Left align text on desktop */
        margin-bottom: 0; /* Remove bottom margin when not stacked */
    }

    .about-accessible-section__list {
        margin-left: 0; /* Align list left on desktop */
        margin-right: 0;
    }
    /* Desktop divider alignment */
    .about-accessible-section__divider {
        margin-left: 0;
    }

    .about-accessible-section__button {
        /* Removed margin-left: 0; and margin-right: auto; to allow margin: 0 auto to work */
        margin: 30px 10px 0 0; /* Adjusted: Move button slightly left on desktop */
    }

    .about-accessible-section__image-col {
        flex-basis: 50%; /* 50% width for image on desktop */
        max-width: 50%;
        padding-left: 5px; /* Adjusted: Decreased space between text and image even more */
        padding-right: 0; /* Reset mobile padding */
    }
}

/* Tablet (medium screens, slightly smaller adjustments) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .about-accessible-section__heading {
        font-size: 2.1rem;
    }

    .about-accessible-section__paragraph {
        font-size: 1rem;
    }

    .about-accessible-section__list li {
        font-size: 0.95rem;
    }

    .about-accessible-section__button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .about-accessible-section__content {
        padding-right: 30px;
        padding-left: 30px;
    }

    .about-accessible-section__image-col {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Mobile (small screens) */
@media (max-width: 767.98px) {
    .about-accessible-section {
        padding: 60px 0;
    }

    .about-accessible-section__heading {
        font-size: 2rem;
        margin-left: auto; /* Center heading on mobile */
        margin-right: auto; /* Center heading on mobile */
    }

    .about-accessible-section__paragraph {
        font-size: 0.9rem;
        margin-left: auto; /* Center paragraph on mobile */
        margin-right: auto; /* Center paragraph on mobile */
    }

    .about-accessible-section__list {
        margin-left: auto; /* Center list on mobile */
        margin-right: auto; /* Center list on mobile */
    }

        .about-accessible-section__list li {
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

            .about-accessible-section__list li::before {
                /* Adjust dot position for mobile */
                top: 0.5em;
            }

    .about-accessible-section__button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .about-accessible-section__content {
        margin-bottom: 30px; /* Less space when stacked */
    }

    .about-accessible-section__image-col {
        padding-top: 20px; /* Add some space above image when stacked */
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
    .about-accessible-section {
        padding: 40px 0;
    }

    .about-accessible-section__heading {
        font-size: 1.8rem;
    }

    .about-accessible-section__paragraph {
        font-size: 0.85rem;
    }

    .about-accessible-section__list {
        max-width: 100%; /* Allow list to take full width on very small screens */
    }

        .about-accessible-section__list li {
            font-size: 0.8rem;
        }

    .about-accessible-section__button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* About Page Component 5 (The New Way to Find Your Home) */
.about-c5-section {
    background-color: var( --white ); /* Changed: Main section background color to white */
    padding: 50px 25px; /* Vertical padding for the outer section */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-c5-outer-box {
    border: 2px solid black;
    background-color: var(--teal); /* Outer box background color (teal) */
    border-radius: 5px; /* Adjusted: Increased rounded corners for the outer box */
    /* Reduced padding to allow the inner box to be visible and centered */
    padding: 90px 150px; /* Adjusted for better overall fit */
    max-width: 1400px; /* Increased max-width for outer box */
    width: 90%; /* Ensure it's responsive */
}

.about-c5-inner-box {
    margin: 0; /* Remove fixed margin to allow auto margins to center */
    background-color: var( --universal-tan-02 ); /* Inner box background color (white) */
    border-radius: 5px; /* Adjusted: Increased rounded corners for inner box */
    padding: 10px 40px 25px 40px; /* Adjusted: Decreased padding inside the inner box */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    display: flex; /* Use flexbox for inner content alignment */
    align-items: center; /* Vertically align content in columns */
    justify-content: space-between; /* Distribute space between text/stats and image */
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

    .about-c5-inner-box .row {
        /* This row is no longer needed as inner-box is flex container */
        display: contents; /* Makes children participate directly in inner-box's flex layout */
    }

/* Left Column: Text Content and Stats */
.about-c5-content-col {
    flex-basis: 50%; /* Take half width on desktop */
    max-width: 50%;
    padding: 0 20px 0 0; /* Horizontal padding, adjusted right padding */
    text-align: left; /* Left align text on desktop */
    margin-bottom: 0; /* Remove bottom margin when not stacked */
}

.about-c5-heading {
    font-family: "Agrandir-Regular", sans-serif;
    font-size: 2rem;
    font-weight: 400; /* As requested */
    color: var(--teal); /* Teal heading color */
    margin-bottom: 8px;
    line-height: 1;
}

.about-c5-paragraph {
    font-family: "Agrandir-Regular", sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 400;
    color: var(--teal); /* Teal paragraph color */
    margin-bottom: 15px;
    max-width: 500px; /* Constrain width for readability */
    margin-left: 0; /* Align left */
    margin-right: auto;
}

.about-c5-stats-row {
    display: flex;
    justify-content: flex-start; /* Align stats to left on desktop */
    flex-wrap: wrap; /* Allow stats to wrap on smaller screens */
    gap: 20px; /* Space between stat items */
    margin-top: 10px;
}

.about-c5-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within each stat item */
    text-align: center;
    flex: 1; /* Allow items to grow and shrink */
    min-width: 80px; /* Minimum width for stacking */
    max-width: 120px; /* Max width for items, adjusted */
}

.about-c5-stat-icon {
    width: 80px; /* Adjusted: Smaller icon size to match design */
    height: auto;
    margin-bottom: 20px;
    /* Removed: filter property */
}

.about-c5-stat-number {
    font-family: "Agrandir-Regular", sans-serif;
    font-size: 1.5rem; /* Adjusted font size */
    font-weight: 400;
    color: var(--teal); /* Teal color for numbers */
    margin-bottom: 3px;
}

.about-c5-stat-text {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem; /* Adjusted font size */
    line-height: 1.1;
    color: var(--teal); /* Teal color for stat text */
    margin-bottom: 0;
}

/* Right Column: Image */
.about-c5-image-col {
    flex-basis: 50%; /* Take half width on desktop */
    max-width: 80%;
    padding: 0; /* No padding needed here, handled by inner-box */
    display: flex; /* Use flex to center image */
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
}

.about-c5-main-image {
    width: 185%; /* Image fills its column */
    height: auto;
    max-width: 800px; /* Adjusted max-width for image to fit better */
}

/* Responsive Adjustments */

/* Desktop (medium screens and up) */
@media (min-width: 768px) {
    .about-c5-content-col {
        padding-right: 30px; /* Space between text and image */
        padding-left: 0; /* Reset mobile padding */
    }

    .about-c5-image-col {
        padding-left: 30px; /* Space between text and image */
        padding-right: 0; /* Reset mobile padding */
    }
}

/* Tablet (medium screens, slightly smaller adjustments) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .about-c5-heading {
        font-size: 2.2rem; /* Adjusted font size */
    }

    .about-c5-paragraph {
        font-size: 0.95rem; /* Adjusted font size */
    }

    .about-c5-inner-box {
        padding: 30px;
    }

    .about-c5-content-col {
        padding-left: 0;
        padding-right: 20px;
    }

    .about-c5-image-col {
        padding-left: 20px;
        padding-right: 0;
    }

    .about-c5-stat-icon {
        width: 50px; /* Further adjusted icon size */
    }

    .about-c5-stat-number {
        font-size: 1.3rem;
    }

    .about-c5-stat-text {
        font-size: 0.75rem;
    }
}

/* Mobile (small screens, less than 768px) */
@media (max-width: 767.98px) {
    .about-c5-section {
        padding: 40px 0;
    }

    .about-c5-outer-box {
        padding: 20px;
    }

    .about-c5-inner-box {
        padding: 25px;
        flex-direction: column; /* Stack content vertically on mobile */
    }

    .about-c5-content-col {
        flex-basis: 100%; /* Full width on mobile */
        max-width: 100%;
        margin-bottom: 30px;
        padding: 0; /* Remove horizontal padding for full width */
        text-align: center; /* Center text on mobile */
    }

    .about-c5-heading {
        font-size: 2rem; /* Adjusted font size */
    }

    .about-c5-paragraph {
        font-size: 0.85rem; /* Adjusted font size */
        margin-left: auto; /* Center paragraph */
        margin-right: auto;
    }

    .about-c5-stats-row {
        gap: 15px;
        justify-content: center; /* Center stats horizontally on mobile */
    }

    .about-c5-stat-item {
        min-width: 80px;
        max-width: 120px;
    }

    .about-c5-stat-icon {
        width: 60px;
    }

    .about-c5-stat-number {
        font-size: 1.5rem;
    }

    .about-c5-stat-text {
        font-size: 0.8rem;
    }

    .about-c5-image-col {
        flex-basis: 100%; /* Full width on mobile */
        max-width: 100%;
        padding-top: 10px;
        padding-bottom: 0;
    }

    .about-c5-main-image {
        max-width: 300px; /* Smaller max-width for mobile image */
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .about-c5-section {
        padding: 30px 0;
    }

    .about-c5-outer-box {
        padding: 15px;
    }

    .about-c5-inner-box {
        padding: 20px;
    }

    .about-c5-heading {
        font-size: 1.8rem;
    }

    .about-c5-paragraph {
        font-size: 0.8rem;
    }

    .about-c5-stats-row {
        flex-direction: column; /* Stack stats vertically on very small screens */
        gap: 10px;
    }

    .about-c5-stat-item {
        max-width: 100%; /* Full width when stacked */
    }

    .about-c5-stat-icon {
        width: 50px;
    }

    .about-c5-stat-number {
        font-size: 1.3rem;
    }

    .about-c5-stat-text {
        font-size: 0.75rem;
    }
}

/* About Page Component 6 */
.about-c6-section {
    background-color: #e6e6d9; /* Changed: Background color to #E6E6D9 */
    padding: 20px 0; /* Adjusted: Decreased vertical padding further */
}

    .about-c6-section .container {
        max-width: 1350px; /* Constrain content width */
    }

    .about-c6-section .row {
        display: flex;
        flex-wrap: wrap; /* Allows columns to stack on smaller screens */
        align-items: center; /* Vertically align items in the center */
        margin-left: 0; /* Reset default Bootstrap row negative margin */
        margin-right: 0; /* Reset default Bootstrap row negative margin */
        width: 100%; /* Ensure row takes full width */
    }

/* Left Column: Text Content */
.about-c6-section__content {
    flex-basis: 100%; /* Default to full width on mobile */
    max-width: 100%;
    padding: 0 20px; /* Horizontal padding for mobile */
    text-align: center; /* Center text on mobile */
}

.about-c6-section__heading {
    font-family: "Agrandir-Regular", sans-serif;
    width: 100%;
    font-size: 4rem;
    font-weight: 350;
    color: var(--teal);
    margin-bottom: 0;
    line-height: 0.9;
    margin-left: 15%;
}

/* Right Column: Image */
.about-c6-section__image-col {
    flex-basis: 100%;
    max-width: 100%;
    padding: 20px 10px;
}

/* Wrapper for the image to control its aspect ratio and rounded corners */
.about-c6-section__image-wrapper {
    margin-left: 10%;
    position: relative;
    width: 100%;
    padding-bottom: 110%;
    overflow: hidden;
    border-radius: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Styles for the image itself */
.about-c6-section__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

/* Responsive Adjustments */

/* Desktop (medium screens and up) */
@media (min-width: 768px) {
    .about-c6-section__content {
        flex-basis: 50%;
        max-width: 45%;
        padding-right: 0px;
        padding-left: 0;
        text-align: left;
        margin-bottom: 0;
        margin-right: -20px;
    }

    .about-c6-section__image-col {
        flex-basis: 50%;
        max-width: 50%;
        padding-left: 0px;
        padding-right: 0;
        margin-right: -20px;
    }
}

/* Tablet (medium screens, slightly smaller adjustments) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .about-c6-section__heading {
        font-size: 2.8rem;
    }

    .about-c6-section__content {
        padding-right: 30px;
        padding-left: 30px;
    }

    .about-c6-section__image-col {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Mobile (small screens) */
@media (max-width: 767.98px) {
    .about-c6-section {
        padding: 60px 0;
    }

    .about-c6-section__heading {
        font-size: 2.5rem;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .about-c6-section__content {
        margin-bottom: 30px;
    }

    .about-c6-section__image-col {
        padding-top: 20px;
    }

    .about-c6-section__image-wrapper {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        padding-bottom: 90%;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
    .about-c6-section {
        padding: 40px 0;
    }

    .about-c6-section__heading {
        font-size: 2rem;
    }

    .about-c6-section__image-wrapper {
        width: 95%;
        padding-bottom: 95%;
    }
}

.about-needs-card-section {
    background-color: #2b3f38;
    padding: 70px 0;
    text-align: center;
}

    .about-needs-card-section .container {
        max-width: 1320px;
    }

.about-needs-card-heading {
    font-family: "Agrandir-Regular", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--universal-tan-02);
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-needs-card-paragraph {
    width: 45%;
    font-family: "Agrandir-Regular", sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--universal-tan-02);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-needs-card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
}

.about-needs-card-wrapper {
    flex: 0 0 23%;
    margin-bottom: 20px;
}

.about-needs-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.about-needs-card__header {
    background-color: var(--universal-tan-02);
    padding: 25px 15px 20px 15px;
    display: flex;
    align-items: center;
    gap: 0px;
    border-bottom-left-radius: 23px;
    border-bottom-right-radius: 23px;
}

.about-needs-card__icon {
    width: 75px;
    height: auto;
}

.about-needs-card__title {
    font-family: "Agrandir-Regular", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--teal);
    margin-bottom: 0;
}

.about-needs-card__body {
    padding: 22px 23px;
    background-color: var(--white);
    flex-grow: 1;
}

.about-needs-card__text {
    width: 100%;
    font-weight: 400;
    font-size: 1.04rem;
    line-height: 1.7;
    color: var(--teal);
    margin-bottom: 0;
    text-align: left;
}

/* 🔽 Responsive Fixes */
@media (max-width: 991.98px) {
    .about-needs-card-wrapper {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 767.98px) {
    .about-needs-card-section {
        padding: 50px 0;
    }

    .about-needs-card-heading {
        font-size: 2.2rem;
    }

    .about-needs-card-paragraph {
        width: 90%;
        font-size: 0.9rem;
        margin-bottom: 40px;
    }

    .about-needs-card-wrapper {
        flex: 0 0 100%;
        max-width: 95%;
        margin: 0 auto 20px auto;
    }

    .about-needs-card__header {
        padding: 20px 15px;
    }

    .about-needs-card__icon {
        width: 65px;
    }

    .about-needs-card__title {
        font-size: 1.2rem;
    }

    .about-needs-card__body {
        padding: 20px 15px;
    }

    .about-needs-card__text {
        font-size: 1.1rem;
        line-height: 1.65;
    }
}

@media (max-width: 575.98px) {
    .about-needs-card-section {
        padding: 30px 0;
    }

    .about-needs-card-heading {
        font-size: 1.8rem;
    }

    .about-needs-card-paragraph {
        width: 90%;
        font-size: 0.85rem;
    }

    .about-needs-card__header {
        padding: 18px 12px;
    }

    .about-needs-card__icon {
        width: 65px;
    }

    .about-needs-card__title {
        font-size: 1.1rem;
    }

    .about-needs-card__body {
        padding: 18px 12px;
    }

    .about-needs-card__text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* About Page Component 8 (Testimonials Section) */
.about-testimonials-section {
    background-color: var(--universal-tan-02); /* Universal Tan 02 background */
    padding: 60px 0; /* Ample vertical padding */
    text-align: center; /* Center content horizontally */
}

    .about-testimonials-section .container {
        max-width: 1200px; /* Constrain content width */
    }

.about-testimonials-section__heading {
    font-family: "Agrandir-Regular", sans-serif;
    font-size: 2.8rem;
    font-weight: 400; /* As requested */
    color: var(--teal); /* Teal heading color */
    margin-bottom: 4px;
    line-height: 1.2;
}

.about-testimonials-section__paragraph {
    /* Using Nunito Sans for consistency */
    font-size: 0.8rem;
    font-family: "Inter", sans-serif;
    color: var(--teal); /* Changed: Paragraph color to teal */
    margin-bottom: 20px;
    max-width: 600; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}

.about-testimonial-card {
    background-color: var(--teal); /* Teal background for the quote box */
    border-radius: 25px; /* Adjusted: Less rounded corners */
    padding: 40px;
    margin: 0 auto 27px auto; /* Center the card and add bottom margin */
    max-width: 80%; /* Adjusted: Increased max-width for wider card */
    color: var(--universal-tan-02); /* White text inside the card */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    /* UPDATED: Using Grid for layout */
    display: grid;
    grid-template-columns: auto 1fr auto; /* open-quote | text | close-quote */
    grid-template-rows: auto auto; /* text-row | author-row */
    gap: 10px 20px;
    align-items: end; /* Align items to the bottom of their cell */
}

.about-testimonial-card__quote-open {
    width: 70px;
    height: auto;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: start; /* Align this quote to the top */
}

.about-testimonial-card__quote-text {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400; /* Medium weight for quote text */
    margin-bottom: 0;
    text-align: left;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.about-testimonial-card__quote-close {
    width: 70px;
    height: auto;
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: end; /* Align this quote to the bottom of the text block */
}

.about-testimonial-card__author {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 300; /* Lighter weight for author */
    margin-top: 20px; /* Add some space above the author */
    margin-bottom: 1px;
    grid-column: 1 / 4; /* Span all three columns */
    grid-row: 2 / 3;
    text-align: center; /* Center the author text */
}

.about-testimonials-section__button {
    background-color: var(--teal); /* Teal button background */
    color: var(--universal-tan-02); /* Universal Tan 02 button text */
    padding: 10px 50px; /* Less vertical, more horizontal padding */
    border-radius: 9999px; /* Very rounded edges (pill shape) */
    border: none;
    font-size: 1rem;
    font-family: "Agrandir-Regular", sans-serif;
    font-weight: 400; /* Lighter text weight */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block; /* Make it a block element to center with margin: auto */
    margin: 10px auto 0 auto; /* Center the button horizontally and add top margin */
}

    .about-testimonials-section__button:hover {
        background-color: var(--light-teal); /* Slightly lighter teal on hover */
        transform: translateY(-2px);
    }

/* Responsive Adjustments */

/* Tablet (medium screens, 768px and up) */
@media (min-width: 768px) {
    .about-testimonials-section__heading {
        font-size: 3.2rem;
    }

    .about-testimonials-section__paragraph {
        font-size: 1.2rem;
    }

    .about-testimonial-card__quote-text {
        font-size: 1.5rem;
    }

    .about-testimonial-card__author {
        font-size: 1.1rem;
    }
}

/* Mobile (small screens, less than 768px) */
@media (max-width: 767.98px) {
    .about-testimonials-section {
        padding: 40px 0;
    }

    .about-testimonials-section__heading {
        font-size: 2.5rem;
    }

    .about-testimonials-section__paragraph {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .about-testimonial-card {
        padding: 25px;
        margin-bottom: 40px;
        max-width: 95%;
        grid-template-columns: auto 1fr; /* UPDATED: two columns for mobile */
        gap: 15px;
    }

    .about-testimonial-card__quote-open {
        display: block; /* UPDATED: Make the quote visible */
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        align-self: start;
        width: 30px;
    }

    .about-testimonial-card__quote-text {
        grid-column: 2 / 3; /* Text in the second column */
        grid-row: 1 / 2;
        font-size: 1.1rem;
        margin-bottom: 0;
        padding-right: 0; /* Remove padding */
        position: relative; /* Needed for the closing quote */
    }

    .about-testimonial-card__quote-close {
        position: static; /* UPDATED: Changed from absolute */
        grid-column: 2 / 3; /* Place in second column */
        grid-row: 1 / 2; /* Place in first row with text */
        justify-self: end; /* Align to the right */
        align-self: end; /* Align to the bottom */
        width: 30px;
    }

    .about-testimonial-card__author {
        grid-column: 1 / 3; /* Span both columns */
        grid-row: 2 / 3; /* Author is now the second row */
        font-size: 0.9rem;
    }

    .about-testimonials-section__button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .about-testimonials-section {
        padding: 30px 0;
    }

    .about-testimonials-section__heading {
        font-size: 2rem;
    }

    .about-testimonials-section__paragraph {
        font-size: 0.9rem;
    }

    .about-testimonial-card {
        padding: 20px;
        max-width: 100%;
    }

    .about-testimonial-card__quote-text {
        font-size: 1rem;
    }

    .about-testimonial-card__author {
        font-size: 0.85rem;
    }

    .about-testimonials-section__button {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}

/*
=====================================================================
== 🖥️  FIX: Styles for Large Desktops (1400px and wider) 🖥️ ==
=====================================================================
The following styles apply only to screens wider than 1400px to
prevent the design from stretching out too much and to maintain
a comfortable reading width.
*/
@media (min-width: 1400px) {
    /*
  Increase the max-width of standard bootstrap containers.
  This affects most sections, like Values, Accessible Living, etc.
  */
    .container {
        max-width: 1320px;
    }

    /*
  ✅ RULE UPDATED ✅
  Make the hero image container match the new container width.
  This ensures it aligns perfectly with the content below it.
  */
    .about-hero__image-container {
        max-width: 1320px;
    }

    /*
  The "What is nestoraa?" section doesn't use a .container,
  so we add horizontal padding that aligns its content with the
  other sections that are now 1320px wide.
  */
    .about-question-section {
        padding-left: calc((100vw - 1320px) / 2);
        padding-right: calc((100vw - 1320px) / 2);
    }

    /*
  Constrain the main paragraph in the "Your needs shape your living"
  section to prevent text lines from becoming too long and hard to read.
  */
    .about-needs-card-paragraph {
        max-width: 750px;
    }

    /*
  The testimonial card uses a percentage max-width. We'll give it
  a fixed max-width on large screens so it doesn't become too wide.
  */
    .about-testimonial-card {
        max-width: 960px;
    }
}
