/* About Banner: use an online background photo */
.about-banner {
    position: relative;
    height: 40vh;
    background: 
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
      url("https://png.pngtree.com/background/20250503/original/pngtree-analyzing-real-estate-investments-picture-image_16494911.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-banner .banner-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.about-banner .banner-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.about-banner .banner-content h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: rgba(var(--white), 0.9);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* Layout: Sidebar + Content */
.about-wrapper .container.flex {
    display: flex;
    gap: 40px;
    margin: 80px auto;
    align-items: flex-start;
}

/* Sidebar */
.about-sidebar {
    flex: 0 0 280px;
    background-color: var(--accent-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    font-size: 1rem;
}

.about-sidebar .sidebar-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-sidebar li {
    margin-bottom: 10px;
}

.about-sidebar a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.about-sidebar a i {
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
    color: var(--secondary-color);
}

.about-sidebar li.active a,
.about-sidebar a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.about-sidebar li.active a i,
.about-sidebar a:hover i {
    color: var(--secondary-color);
}

/* Content Area */
.about-content {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.about-heading {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.about-heading .blue-line {
    display: none;
}

.about-heading h2 {
    display: inline-block;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    vertical-align: middle;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Content Section Title and Paragraph */
.content-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.content-section p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.content-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Team Member Horizontal Layout */
.team-member-horizontal {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
}

.team-member-horizontal img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    /* border-radius: 50%; */
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member-horizontal img:hover {
    transform: scale(1.08);
}

.team-info {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0;
}

.team-info h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.team-info .role {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.team-info p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .about-wrapper .container.flex {
        flex-direction: column;
        gap: 30px;
        margin: 60px auto;
    }

    .about-sidebar {
        width: 100%;
        flex: none;
    }

    .about-sidebar a {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .about-content {
        padding: 30px;
    }

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

@media (max-width: 768px) {
    .about-banner {
        height: 30vh;
    }

    .about-banner .banner-content h1 {
        font-size: 2.5rem;
    }

    .about-banner .banner-content h2 {
        font-size: 1.2rem;
    }

    .about-wrapper .container.flex {
        margin: 40px auto;
        gap: 20px;
    }

    .about-content {
        padding: 20px;
    }

    .about-heading h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .content-section p {
        font-size: 0.9rem;
    }

    .team-member-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .team-member-horizontal img {
        margin-bottom: 0;
        width: 80px;
        height: 80px;
    }

    .team-info h4 {
        font-size: 1.1rem;
    }

    .team-info .role {
        font-size: 0.9rem;
    }

    .team-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .about-banner {
        height: 25vh;
    }

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

    .about-banner .banner-content h2 {
        font-size: 1rem;
    }

    .about-wrapper .container.flex {
        margin: 30px auto;
        gap: 15px;
    }

    .about-sidebar {
        padding: 15px;
    }

    .about-sidebar .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .about-sidebar a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .about-sidebar a i {
        font-size: 1rem;
        width: 20px;
    }

    .about-content {
        padding: 15px;
    }

    .about-heading h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .about-heading {
        padding-bottom: 10px;
    }

    .content-section h3 {
        font-size: 1.1rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .content-section p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .team-member-horizontal {
        gap: 10px;
        padding: 10px;
    }

    .team-member-horizontal img {
        width: 70px;
        height: 70px;
    }

    .team-info h4 {
        font-size: 1rem;
    }

    .team-info .role {
        font-size: 0.85rem;
    }

    .team-info p {
        font-size: 0.8rem;
    }
}

/* See More / See Less styles - Refined */
.long-text {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
    margin-bottom: 10px;
    overflow-y: auto;
    padding-right: 10px;
}

.long-text.expanded {
    max-height: 300px;
}

/* Style for scrollbar within long-text */
.long-text::-webkit-scrollbar {
    width: 8px;
}

.long-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.long-text::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.long-text::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.see-more-btn {
    margin-top: 5px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s ease;
    font-size: 0.85rem;
}

.see-more-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* Scrollbar for long sidebar content on smaller screens if needed */
@media (max-width: 1024px) {
    .about-sidebar ul {
        max-height: 300px;
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Style for scrollbar */
    .about-sidebar ul::-webkit-scrollbar {
        width: 8px;
    }

    .about-sidebar ul::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .about-sidebar ul::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .about-sidebar ul::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

