@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;700&display=swap');

/* === Base === */
#about {
    scroll-margin-top: 100px;
}

.about-section {
    background-color: #fff;
    padding: 3rem 1rem 5rem;
    font-family: 'Lexend', sans-serif;
}

/* === Section Title + Subtitle === */
.about-main-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #003344;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* === Container === */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: stretch;
    position: relative;
}

    .about-container.image-right {
        flex-direction: row-reverse;
    }

    .about-container.image-left {
        flex-direction: row;
    }

/* === Image === */
.about-image {
    flex: 0 0 40%;
    max-width: 100%;
    max-height: 100%x; /* <-- prevent image from growing vertically */
    height: 100%;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}


/* === Content === */
.about-content {
    flex: 1 1 60%;
    background-color: #fff;
    padding: 2.5rem 3rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.about-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #000;
    letter-spacing: 0.02em;
}

.title-underline {
    height: 6px;
    background-color: #f0db24;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    width: 100px;
}

/* === Text Content (LTR / RTL and Toggle Support) === */
.about-text-container {
    position: relative;
}

.about-text {
    max-height: 250px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: justify;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #222;
}

    .about-text.expanded {
        max-height: none;
    }

.toggle-button {
    margin-top: 0.8rem;
    background-color:  #b8950b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Lexend', sans-serif;
    transition: background-color 0.3s ease;
}

    .toggle-button:hover {
        color: #000000;
        background-color: #B8860b ;
    }

/* === Responsive Design === */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column !important;
        align-items: center;
        padding: 0 1rem;
    }

    .about-content {
        order: 1;
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-bottom: 1.2rem;
    }

    .about-image {
        order: 2;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

        .about-image img {
            height: auto;
            object-fit: cover;
            border-radius: 10px;
        }

    .about-content h2,
    .about-title {
        font-size: 1.6rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 1.2rem;
    }

    .title-underline {
        margin: 0 auto 1.5rem;
    }

    .toggle-button {
        font-size: 0.95rem;
        padding: 0.45rem 1rem;
    }
}

/* === Remove Fade Effect === */
.fade-in-section,
.fade-in-section.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
