/* Standalone styling for the About section */

.about-modern {
    --about-bg: #fdfdfd;
    --about-border: #d9d5d5;
    --about-text: #4a4a4a;
    --about-muted: #707070;
    --about-accent: #591919;
    --about-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    --about-radius: 18px;

    padding: clamp(32px, 6vw, 64px) 5vw;
    background: linear-gradient(135deg, #faf8f8 0%, #efeded 100%);
}


.about-page {
    background: linear-gradient(135deg, #faf8f8 0%, #efeded 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-page main {
    background: linear-gradient(135deg, #faf8f8 0%, #efeded 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.about-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
    gap: clamp(20px, 4vw, 40px);
    align-items: stretch;
    background: var(--about-bg);
    border: 1px solid var(--about-border);
    border-radius: var(--about-radius);
    box-shadow: var(--about-shadow);
    padding: clamp(18px, 4vw, 30px);
    position: relative;
    overflow: hidden;
}

.about-media {
    position: relative;
    width: 100%;
    height: clamp(260px, 32vw, 380px);
    margin: 0;
}

.about-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--about-radius);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
    filter: saturate(1.05);
}

.about-content {
    padding: clamp(8px, 2vw, 16px);
    color: var(--about-text);
    display: flex;
    flex-direction: column;
}

.about-title {
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    margin: 0 0 12px;
    color: var(--about-accent);
    letter-spacing: 0.02em;
}

.about-title::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 4px;
    margin-left: 10px;
    background: linear-gradient(90deg, var(--about-accent), transparent);
    border-radius: 999px;
    vertical-align: middle;
}

.about-body {
    display: grid;
    gap: 10px;
    line-height: 1.58;
    font-size: 0.95rem;
}

.about-body p {
    margin: 0;
    color: var(--about-text);
}

.about-signature {
    margin-top: 18px;
    text-align: right;
    color: var(--about-muted);
}

.about-name {
    font-family: "Dancing Script", cursive;
    font-size: 1.6rem;
    margin: 0;
    color: var(--about-accent);
}

.about-role {
    margin: 4px 0 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/*----break >=1200----*/
@media (min-width: 1200px) {
    .about-card {
        grid-template-columns: minmax(420px, 1fr) minmax(520px, 1.1fr);
        gap: clamp(16px, 2.4vw, 30px);
        padding: clamp(20px, 4vw, 32px);
        padding-left: 40px;
    }

    .about-media {
        height: clamp(320px, 28vw, 380px);
        max-width: 560px;
    }

    .about-content {
        padding-top: 0;
        padding-left: 4px;
    }

    .about-body {
        font-size: 0.95rem;
    }
}

@media (min-width: 1200px) and (max-height: 768px) {
    .about-modern {
        margin-top: 175px;
    }
}

@media (min-width: 1200px)and (max-height: 668px) {
    .about-page .home-icon-wrapper {
        top: 75px;
    }

    .about-page .header-text h1 {
        font-size: 1.7rem;
        font-weight: bolder;
    }

    .about-page .header-text .subtitle {
        font-size: 0.8rem;
        font-weight: normal;
    }

    .about-modern {
        margin-top: 0px;
    }
}



/*----break 1024-1199----*/
@media (min-width: 1024px) and (max-width: 1199px) {
    .about-card {
        grid-template-columns: minmax(360px, 1fr) minmax(440px, 1fr);
        gap: clamp(14px, 2.4vw, 26px);
        padding: clamp(18px, 4vw, 28px);
        padding-left: 36px;
    }

    .about-media {
        height: clamp(280px, 30vw, 340px);
        max-width: 520px;
    }

    .about-content {
        padding-top: 0;
        padding-left: 4px;
    }

    .about-title {
        font-size: clamp(1.2rem, 2vw, 1.55rem);
    }

    .about-body {
        font-size: 0.94rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px)  and (max-height: 768px) {
    .about-modern {
        margin-top: 175px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px)  and (max-height: 668px) {
    .about-modern {
        margin-top: 0px;
    }
}



/*----break 800-1023----*/
@media (min-width: 800px) and (max-width: 1023px) {
    .about-card {
        grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr);
        gap: clamp(18px, 3vw, 30px);
        padding: clamp(16px, 3vw, 24px);
        padding-top: clamp(28px, 4vw, 36px);
        padding-left: 32px;
    }

    .about-media {
        height: clamp(240px, 34vw, 320px);
        max-width: 480px;
    }

    .about-content {
        padding-top: 0;
    }

    .about-title {
        font-size: 1.4rem;
    }

    .about-body {
        font-size: 0.93rem;
    }
}



@media (min-width: 800px) and (max-width: 1023px) and (max-height: 779px) {
    .about-modern {
        margin-top: 175px;
    }
}

@media (min-width: 800px) and (max-width: 1023px) and (max-height: 668px) {
    .about-page .home-icon-wrapper {
        top: 75px;
    }

    .about-page .header-text h1 {
        font-size: 1.55rem;
        font-weight: bolder;
    }

    .about-page .header-text .subtitle {
        font-size: 0.75rem;
        font-weight: normal;
    }

    .about-page .social-icons {
        right: 30px;
    }

    .about-modern {
        margin-top: 0;
    }
}



/*----break 600-799----*/
@media (min-width: 600px) and (max-width: 799px) {
    .about-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: clamp(16px, 4vw, 22px);
    }

    .about-media {
        height: clamp(220px, 50vw, 300px);
        max-width: 100%;
        padding: 8px 10px 0;
    
    }

    .about-content {
        padding: clamp(12px, 3vw, 18px);
    }

    .about-signature {
        text-align: left;
    }
}

@media (min-width: 600px) and (max-width: 799px) and (max-height: 768px) {
    .about-modern {
        margin-top: 175px;
    }
}

@media (min-width: 600px) and (max-width: 799px) and (max-height: 668px) {
    .about-page .home-icon-wrapper {
        top: 75px;
    }
}



/*----break 390-599----*/
@media (min-width: 390px) and (max-width: 599px) {
    .about-page main {
        padding-top: 190px;
    }

    .about-modern {
        padding: clamp(20px, 5vw, 28px) 5vw 32px;
    }

    .about-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: clamp(16px, 4vw, 22px);
    }

    .about-media {
        height: clamp(220px, 50vw, 300px);
        max-width: 100%;
        padding: 8px 10px 0;
    }

    .about-content {
        padding: clamp(12px, 3vw, 18px);
    }

    .about-image {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: none;
        margin: 0;
        
    }

    .about-title {
        font-size: 1.2rem;
    }

    .about-body {
        font-size: 0.9rem;
    }

    .about-signature {
        text-align: left;
    }
}

/*----break <=389----*/

@media (max-width: 389px) {
    .about-page main {
        padding-top: 175px;
    }

    .about-modern {
        padding: 16px 16px 24px;
    }

    .about-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
        overflow: visible;
    }

    .about-media {
        height: 200px;
        max-width: 100%;
        padding: 6px 6px 0;
    }

    .about-content {
        padding: 10px;
    }

    .about-image {
        width: 100%;
        height: 100%;
    }

    .about-title {
        font-size: 1.1rem;
    }

    .about-body {
        font-size: 0.85rem;
    }

    .about-signature {
        text-align: left;
    }

    .about-page .header-text {
        max-width: 60% !important;
    }

    .about-page .header-text h1 {
        font-size: 1rem !important;
    }

    .about-page .header-text .subtitle {
        font-size: 0.48rem !important;
    }

    .about-page .social-icons {
        gap: 8px !important;
        right: 12px !important;
        bottom: 12px !important;
    }

    .about-page .social-icons a {
        font-size: 18px !important;
    }
}
