/* About Page Styles - Rice Village Theme */

.about-main {
    /* width: 100vw; */
    background: var(--color-white);
    min-height: 70vh;
    padding: 3.5rem 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem 2rem;
    background: linear-gradient(90deg, #f7f9fa 60%, #eaf0ff 100%);
    border-radius: 1.5em;
    box-shadow: 0 4px 24px 0 rgba(76, 89, 134, 0.08);
    text-align: center;
}

.about-header h1 {
    color: var(--color-primary-blue);
    font-size: var(--font-size-heading);
    font-family: var(--font-heading-family);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.about-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.about-intro-text {
    flex: 2 1 320px;
    min-width: 260px;
    text-align: left;
}

.about-intro-text p {
    color: var(--text-color-dark);
    font-size: 1.15rem;
    font-family: var(--font-body);
    margin-bottom: 1.1em;
    line-height: 1.7;
}

.about-intro-photo {
    flex: 1 1 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-intro-photo img {
    max-width: 180px;
    border-radius: 1em;
    box-shadow: 0 2px 12px rgba(76, 89, 134, 0.13);
    border: 4px solid #fff;
    background: #eaf0ff;
}

/* Company Story Section */
.company-story {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 3rem auto 0 auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(90deg, #eaf0ff 60%, #f7f9fa 100%);
    border-radius: 1.5em;
    box-shadow: 0 4px 24px 0 rgba(76, 89, 134, 0.08);
}

.company-story.alt-layout {
    flex-direction: row;
}

.company-story-text {
    flex: 2 1 320px;
    min-width: 260px;
    font-family: var(--font-body);
    color: var(--text-color-dark);
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: left;
}

.company-story-image {
    flex: 1 1 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-story-image img {
    max-width: 200px;
    border-radius: 1em;
    box-shadow: 0 2px 12px rgba(76, 89, 134, 0.13);
    border: 4px solid #fff;
    background: #eaf0ff;
}

/* Values & Process Section */
.about-values {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(90deg, #f7f9fa 60%, #eaf0ff 100%);
    border-radius: 1.5em;
    box-shadow: 0 4px 24px 0 rgba(76, 89, 134, 0.08);
    text-align: center;
    
}

.about-values.alt-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.about-values h2 {
    color: var(--color-primary-blue);
    font-family: var(--font-family-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.values-text {
    flex: 1 1 260px;
    min-width: 220px;
    text-align: center; /* Center the text */
    font-family: var(--font-body);
    color: var(--text-color-dark);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    justify-items: center;
}

.value-item {
    background: #fff;
    border-radius: 1em;
    box-shadow: 0 2px 12px rgba(76, 89, 134, 0.07);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 260px;
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.15rem;
    color: var(--background-color-main);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.value-item p {
    font-size: 1rem;
    color: var(--text-color-dark);
    font-family: var(--font-body);
}

.about-values.alt-layout .values-grid {
    flex: 2 1 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    justify-items: center;
}

/* Map/Location Section */
.about-location {
    max-width: 900px;
    margin: 3rem auto 2rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(90deg, #eaf0ff 60%, #f7f9fa 100%);
    border-radius: 1.5em;
    box-shadow: 0 4px 24px 0 rgba(76, 89, 134, 0.08);
    text-align: center;
}

.about-location h2 {
    color: var(--background-color-main);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.location-block {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
}

.address-details {
    min-width: 200px;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    font-family: var(--font-body);
    text-align: left;
    background: var(--color-white);
    border-radius: 1em;
    box-shadow: 0 2px 12px rgba(76, 89, 134, 0.07);
    padding: 1.5rem 1.2rem;
}

.map-embed {
    min-width: 260px;
    max-width: 400px;
    flex: 1 1 260px;
}

/* Contact Summary Section */
.about-contact-summary {
    max-width: 600px;
    margin: 2.5rem auto 2rem auto;
    padding: 2rem 1.5rem;
    background: linear-gradient(90deg, #f7f9fa 60%, #eaf0ff 100%);
    border-radius: 1.5em;
    box-shadow: 0 4px 24px 0 rgba(76, 89, 134, 0.08);
    text-align: center;
}

.about-contact-summary h2 {
    color: var(--color-primary-blue);
    font-family: var(--font-family-heading);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.contact-summary-text {
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
}

.contact-summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.contact-summary-link {
    font-size: 1.1rem;
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-summary-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Container utility for consistent section width */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* ========== CUSTOM RESPONSIVE MEDIA QUERIES ========== */

/* 📱 Mobile Devices – 320px–480px */
@media (min-width: 320px) and (max-width: 480px) {
    .about-main {
        padding: 1.2rem 0 1rem;
    }

    .about-header {
        padding: 0.7rem;
        border-radius: 0.7em;
        font-size: 1rem;
    }

    .about-header h1 {
        font-size: 1.3rem;
    }

    .about-intro {
        flex-direction: column;
        gap: 1.2rem;
    }

    .about-intro-text,
    .company-story-text,
    .values-text,
    .address-details {
        font-size: 0.93rem;
        padding: 0.5rem 0.2rem;
    }

    .about-intro-photo img,
    .company-story-image img {
        max-width: 90px;
    }

    .company-story {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1rem 0.5rem;
        max-width: 100%;
    }

    .company-story-text {
        font-size: 0.93rem;
        min-width: 0;
        padding: 0.5rem 0.2rem;
        text-align: left;
    }

    .company-story-image {
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .company-story-image img {
        max-width: 90px;
        width: 100%;
        height: auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .value-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .about-values {
        padding: 1rem 0.5rem;
        max-width: 100%;
        border-radius: 1em;
    }

    .about-values h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .values-text {
        font-size: 0.93rem;
        margin-bottom: 1rem;
        padding: 0.5rem 0.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .value-item {
        padding: 0.7rem;
        max-width: 100%;
    }

    .map-embed iframe {
        height: 120px;
        width: 100%;
    }

    .about-location {
        padding: 1rem 0.5rem;
    }

    .about-contact-summary {
        padding: 0.7rem;
    }
}

/* 📲 iPads & Tablets – 481px–768px */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .about-main {
        padding: 1.7rem 0 1.2rem;
    }

    .about-header {
        padding: 1.1rem;
    }

    .about-header h1 {
        font-size: 1.7rem;
    }

    .about-intro {
        flex-direction: column;
        gap: 1.7rem;
    }

    .about-intro-text,
    .company-story-text,
    .values-text,
    .address-details {
        font-size: 1rem;
    }

    .about-intro-photo img,
    .company-story-image img {
        max-width: 120px;
    }

    .company-story {
        flex-direction: column;
        gap: 1.7rem;
        padding: 1.2rem 0.7rem;
        max-width: 100%;
    }

    .company-story-text {
        font-size: 1rem;
        min-width: 0;
        padding: 0.7rem 0.3rem;
        text-align: left;
    }

    .company-story-image {
        justify-content: center;
        align-items: center;
        margin-bottom: 1.2rem;
    }

    .company-story-image img {
        max-width: 120px;
        width: 100%;
        height: auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.7rem;
    }

    .value-item {
        padding: 1rem;
        max-width: 100%;
    }

    .about-values {
        padding: 1.2rem 0.7rem;
        max-width: 100%;
        border-radius: 1.2em;
    }

    .about-values h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .values-text {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        padding: 0.7rem 0.3rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.7rem;
    }

    .value-item {
        padding: 1rem;
        max-width: 100%;
    }

    .map-embed iframe {
        height: 160px;
        width: 100%;
    }

    .about-location {
        padding: 1.2rem 0.7rem;
    }

    .about-contact-summary {
        padding: 1rem;
    }
}

/* 💻 Laptops & Small Screens – 769px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 16px;
    }

    .about-main {
        padding: 2.2rem 0 1.7rem;
    }

    .about-header,
    .about-values,
    .about-location,
    .about-contact-summary {
        padding: 1.5rem 1rem;
    }

    .about-header h1 {
        font-size: 2rem;
    }

    .about-intro {
        flex-direction: row;
        gap: 1.7rem;
    }

    .about-intro-photo img,
    .company-story-image img {
        max-width: 140px;
    }

    .company-story {
        flex-direction: row;
        gap: 1.7rem;
        padding: 1.5rem 1rem;
        max-width: 900px;
    }

    .company-story-text {
        font-size: 1.08rem;
        min-width: 220px;
        padding: 1rem 0.5rem;
        text-align: left;
    }

    .company-story-image {
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }

    .company-story-image img {
        max-width: 140px;
        width: 100%;
        height: auto;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.7rem;
    }

    .map-embed iframe {
        height: 180px;
        width: 100%;
    }

    .about-values {
        padding: 1.5rem 1rem;
        max-width: 900px;
        border-radius: 1.3em;
    }

    .about-values h2 {
        font-size: 1.8rem;
        margin-bottom: 1.7rem;
    }

    .values-text {
        font-size: 1.08rem;
        margin-bottom: 1.3rem;
        padding: 1rem 0.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.7rem;
    }

    .value-item {
        padding: 1rem;
        max-width: 100%;
    }

    .map-embed iframe {
        height: 160px;
        width: 100%;
    }

    .about-location {
        padding: 1.2rem 0.7rem;
    }

    .about-contact-summary {
        padding: 1rem;
    }
}

/* 🖥️ Large Screens & Desktops – 1025px–1200px */
@media (min-width: 1025px) and (max-width: 1200px) {
    body {
        font-size: 17px;
    }

    .about-main {
        padding: 3rem 0 2.2rem;
    }

    .about-header,
    .company-story,
    .about-values,
    .about-location,
    .about-contact-summary {
        padding: 2rem 1.5rem;
        max-width: 950px;
    }

    .about-header h1 {
        font-size: 2.3rem;
    }

    .about-intro {
        flex-direction: row;
        gap: 2.2rem;
    }

    .about-intro-photo img,
    .company-story-image img {
        max-width: 170px;
    }

    .company-story {
        flex-direction: row;
        gap: 2.2rem;
        padding: 2rem 1.5rem;
        max-width: 950px;
    }

    .company-story_text {
        font-size: 1.13rem;
        min-width: 240px;
        padding: 1.2rem 0.7rem;
        text-align: left;
    }

    .company-story-image {
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }

    .company-story-image img {
        max-width: 170px;
        width: 100%;
        height: auto;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2rem;
    }

    .map-embed iframe {
        height: 220px;
        width: 100%;
    }

    .about-values {
        padding: 2rem 1.5rem;
        max-width: 950px;
        border-radius: 1.4em;
    }

    .about-values h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .values-text {
        font-size: 1.13rem;
        margin-bottom: 1.5rem;
        padding: 1.2rem 0.7rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2rem;
    }

    .value-item {
        padding: 1.4rem;
        max-width: 260px;
    }
}

/* 📺 TV & Extra-Large Screens – 1201px+ */
@media (min-width: 1201px) {
    body {
        font-size: 18px;
    }

    .about-main {
        padding: 4rem 0 3rem;
    }

    .about-header,
    .company-story,
    .about-values,
    .about-location,
    .about-contact-summary {
        padding: 2.5rem 2rem;
        max-width: 1200px;
    }

    .about-header h1 {
        font-size: 2.7rem;
    }

    .about-intro {
        flex-direction: row;
        gap: 3rem;
    }

    .about-intro-photo img,
    .company-story-image img {
        max-width: 200px;
    }

    .company-story {
        flex-direction: row;
        gap: 3rem;
        padding: 2.5rem 2rem;
        max-width: 1200px;
    }

    .company-story_text {
        font-size: 1.18rem;
        min-width: 260px;
        padding: 1.5rem 1rem;
        text-align: left;
    }

    .company-story-image {
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
    }

    .company-story-image img {
        max-width: 200px;
        width: 100%;
        height: auto;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .map-embed {
        max-width: 600px;
    }

    .map-embed iframe {
        height: 260px;
        width: 100%;
    }

    .about-values {
        padding: 2.5rem 2rem;
        max-width: 1200px;
        border-radius: 1.5em;
    }

    .about-values h2 {
        font-size: 2.3rem;
        margin-bottom: 2.2rem;
    }

    .values-text {
        font-size: 1.18rem;
        margin-bottom: 1.7rem;
        padding: 1.5rem 1rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .value-item {
        padding: 1.5rem 1.2rem;
        max-width: 260px;
    }
}