.history-section {
    min-height: 66.67vh;
    padding: 30px 150px;
}

.history-sub-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    text-align: justify;
    color: #d02129;
    margin-bottom: 15px;
}

.history-main-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 50px;
    color: #444444;
}

.history-main-title .brand {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 49.69px;
    color: #27368b;
}

.history-description {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bs-neutral-600);
}

@media (min-width: 992px) {
    .history-container .row {
        display: flex;
        align-items: stretch;
    }

    .history-description.col-lg-5 {
        flex: 0 0 40%;
        max-width: 40%;
        padding-right: 45px;
        display: flex;
        flex-direction: column;
    }

    .history-video.col-lg-7 {
        flex: 0 0 60%;
        max-width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center vertically */
    }

    .box-history-text {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .box-video-history {
        height: 60%;
        aspect-ratio: 1.8;
        margin: 0 auto;
    }
}

.history-description p {
    text-align: justify;
}

.btn-discover-history {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 40px;
    padding: 0 20px;
    margin-top: 15px;
    border: 1.31px solid #27368b;
    border-radius: 68.63px;
    background: transparent;
    color: #27368b !important;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-decoration: none !important;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-discover-history svg {
    transition: transform 0.3s ease;
}

.btn-discover-history.expanded svg {
    transform: rotate(180deg);
}

.btn-discover-history:hover {
    background: #27368b;
    color: #fff !important;
}

/* History description truncation */
.history-desc-wrapper {
    max-height: 8em;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bs-neutral-600);
}

.history-desc-wrapper.expanded {
    max-height: 1000px;
}

.history-desc-wrapper p {
    text-align: justify;
    margin: 0;
}

.history-container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .history-container {
        padding-left: 0;
        padding-right: 0;
    }
}

.box-video-history {
    position: relative;
    width: auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.box-video-history iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.box-history-text {
    width: 100%;
}

/* Responsive */
@media (max-width: 991px) {
    .box-history-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .box-video-history {
        margin-top: 20px;
    }

    .history-section {
        min-height: auto !important;
        padding: 50px 0;
    }
}

.history-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
}

.mt-80 {
    margin-top: 80px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 50px;
    font-weight: 700;
    color: #27368b;
    margin-bottom: 10px;
    font-family: "Manrope", sans-serif;
}

.stat-label {
    font-size: 20px;
    font-weight: 500;
    color: #4b4b4b;
    margin: 0;
}

.stat-divider {
    width: 1px;
    height: 120px;
    background-color: #e3e3e3;
}

@media (max-width: 991px) {
    .history-stats {
        flex-wrap: wrap;
        gap: 30px;
        padding-bottom: 20px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 0 0 calc(50% - 15px);
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-label {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .stat-item {
        flex: 0 0 100%;
    }
}

/* Employee Section Styles */
.employee-section {
    padding: 50px 200px 0 200px;
}

.employee-header {
    margin-bottom: 30px;
}

.employee-sub-title {
    display: inline-block;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    color: #d02129;
    margin-bottom: 15px;
}

.employee-main-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 50px;
    color: #444444;
}

.employee-main-title .brand {
    color: #27368b;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 49.69px;
}

.employee-card {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background-color: #eee;
}

.employee-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.employee-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 30px;
    transition: background 0.4s ease;
    z-index: 2; /* Keep text above the sliding panel */
}

.employee-card:hover .employee-overlay {
    background: transparent; /* Remove gradient when white panel is visible */
}

.employee-hover-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background-color: #ffffff;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    z-index: 1;
}

.employee-card:hover .employee-hover-panel {
    transform: translateY(0);
}

.employee-info .name {
    font-family: "Alexandria", sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.employee-info .position {
    font-family: "Alexandria", sans-serif;
    font-size: 25px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transition: color 0.4s ease;
}

.employee-card:hover .employee-info .name {
    color: #111111;
}

.employee-card:hover .employee-info .position {
    color: #111111;
}

@media (max-width: 1199px) {
    .employee-info .name {
        font-size: 26px;
    }
}

/* Mind Section Styles */
.mind-section {
    padding: 50px 200px 0 200px;
    background-color: #ffffff;
}

.mind-header {
    margin-bottom: 30px;
}

.mind-sub-title {
    display: inline-block;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    color: #d02129;
    margin-bottom: 15px;
}

.mind-main-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 50px;
    color: #444444;
}

.mind-main-title .brand {
    color: #27368b;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 49.69px;
}

.card-mind {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--bs-border-color);
    max-width: 100%;
    width: 100%;
    aspect-ratio: 4 / 5.4;
    display: flex;
    flex-direction: column;
}

.card-mind .card-image {
    height: 85.55%;
    overflow: hidden;
    position: relative;
}

.card-mind .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-mind .card-info {
    height: 20%;
    padding: 15px 20px;
    background-color: var(--bs-neutral-0);
    border-radius: 20px;
    position: relative;
    margin-top: -5.55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.card-mind .card-title h4 {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #283593;
    margin: 0;
    text-align: center;
}

@media (min-width: 1400px) {
    .card-mind .card-title h4 {
        font-size: 16px;
        align-items: center;
    }
    .employee-section {
        padding: 30px 100px 0 100px;
    }
}

/* Employee Modal Styles */
.employee-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.employee-modal.active {
    opacity: 1;
    visibility: visible;
}

.employee-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f3f3f3; /* Light gray background as requested */
    opacity: 0.95;
}

.employee-modal-content {
    position: relative;
    width: 1400px;
    max-width: 95%;
    height: 540px;
    background-color: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    z-index: 1;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.employee-modal.active .employee-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    font-size: 32px;
    color: #333333;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    transform: scale(1.1);
    color: #d02129;
}

.employee-modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.employee-modal-left {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 40px;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-modal-right {
    flex: 0 0 65%;
    max-width: 65%;
    padding: 60px 80px 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-name {
    font-family: "Manrope", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #283593;
    margin-bottom: 5px;
}

.modal-position {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 25px;
}

.modal-bio {
    max-width: 90%;
}

.modal-bio p {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 15px;
}

/* Modal Responsive */
@media (max-width: 991px) {
    .employee-modal-content {
        width: 700px;
    }

    .modal-name {
        font-size: 32px;
    }

    .modal-position {
        font-size: 22px;
    }

    .modal-bio p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .employee-modal-content {
        max-width: 95%;
        border-radius: 20px;
    }

    .employee-modal-body {
        flex-direction: column;
        padding: 40px 20px 30px;
    }

    .employee-modal-left {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 0 30px;
    }

    .modal-image-container {
        min-height: 300px;
        max-height: 350px;
    }

    .employee-modal-right {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .modal-bio {
        max-width: 100%;
    }

    .modal-name {
        font-size: 28px;
    }

    .modal-position {
        font-size: 20px;
    }
}

@media (min-width: 1400px) {
    .history-section,
    .mind-section {
        padding: 30px 100px;
    }

    .history-container {
        padding-left: 0;
        padding-right: 0;
    }
}
