
/* About Us Styles */
.about-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: calc(var(--header-height) + 60px) 0 120px;
    text-align: left;
}

.about-header .container {
    padding-top: 0;
    padding-bottom: 0;
}

.about-header-title {
    font-family: 'Barlow', sans-serif;
    font-size: 60px;
    color: #FFFFFF;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.about-header-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 25px;
    color: #FFFFFF;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}


.about-rd-section {
    padding: 100px 0;
}

.about-rd-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-rd-text {
    flex: 1;
}

.about-rd-title {
    font-family: 'Barlow', sans-serif;
    font-size: 70px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-rd-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    color: #404040;
    line-height: 1.4;
    margin-bottom: 40px;
    text-align: justify;
}

.about-rd-btn {
    display: inline-block;
    background-color: #AD191C;
    color: #FFFFFF;
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.about-rd-btn:hover {
    background-color: #87000B;
}

.about-rd-image-wrapper {
    flex: 1;
    text-align: right;
}

.about-rd-image-inner {
    position: relative;
    display: inline-block;
}

.about-rd-img {
    max-width: 100%;
    border-radius: 25px;
    display: block;
    position: relative;
    z-index: 2;
}

.about-rd-ellipse {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 120px;
    height: 120px;
    z-index: 1;
}

@media (max-width: 992px) {
    .about-rd-container {
        flex-direction: column;
    }
    .about-rd-title {
        font-size: 50px;
    }
    .about-rd-desc {
        font-size: 22px;
    }
}

/* Core Values / Features Section */
.about-features-section {
    background-color: #FABD021A;
    padding: 100px 0;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-feature-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 60px 30px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-5px);
}

.about-feature-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 25px;
    display: block;
    object-fit: contain;
}

.about-feature-title {
    font-family: 'Barlow', sans-serif;
    font-size: 22px;
    color: #1D1B1A;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-feature-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    color: #414A36;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1200px) {
    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Biotech Section */
.about-biotech-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.about-biotech-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-biotech-text {
    flex: 1;
}

.about-biotech-title {
    font-family: 'Barlow', sans-serif;
    font-size: 70px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-biotech-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    color: #564334;
    line-height: 1.5;
    text-align: justify;
}

.about-biotech-image-wrapper {
    flex: 1;
    text-align: right;
}

.about-biotech-image-inner {
    position: relative;
    display: inline-block;
}

.about-biotech-img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 2;
}

.about-biotech-decoration {
    position: absolute;
    bottom: 0;
    right: -20px;
    width: auto;
    height: auto;
    z-index: 3;
}

@media (max-width: 992px) {
    .about-biotech-container {
        flex-direction: column-reverse;
    }
    .about-biotech-title {
        font-size: 50px;
    }
}


/* Departments Section */
.about-departments-section {
    padding: 20px 0 100px;
    background-color: #FFFFFF;
}

.about-departments-title {
    font-family: 'Barlow', sans-serif;
    font-size: 70px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-departments-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    color: #253A34;
    max-width: 800px;
    margin-bottom: 60px;
    line-height: 1.5;
}

.departments-gallery {
    display: flex;
    gap: 16px;
    width: 100%;
}

.gallery-main-img {
    flex: 1;
    border-radius: 12px;
    object-fit: cover;
    max-width: 50%;
}

.gallery-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 50%;
}

.gallery-top-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    flex: 1;
}

.gallery-bottom-row {
    display: flex;
    gap: 16px;
    flex: 1;
}

.gallery-bottom-row img {
    flex: 1;
    width: calc(50% - 8px);
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .departments-gallery {
        flex-direction: column;
    }
    .gallery-main-img, .gallery-right-col {
        max-width: 100%;
    }
}


.dept-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.dept-img-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    pointer-events: none;
}

.dept-img-title {
    font-family: 'Barlow', sans-serif;
    font-size: 30px;
    color: #FFFFFF;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dept-img-text {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-main-img .dept-img-wrapper,
.gallery-top-img .dept-img-wrapper,
.gallery-bottom-row .dept-img-wrapper {
    height: 100%;
}

.gallery-main-img {
    flex: 1;
    max-width: 50%;
}
.gallery-main-img > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-top-img { width: 100%; flex: 1; display: flex; }
.gallery-top-img > img { width: 100%; object-fit: cover; }
.gallery-bottom-row .dept-img-wrapper { flex: 1; width: calc(50% - 8px); display: flex; }
.gallery-bottom-row img { width: 100%; object-fit: cover; }


/* Strategic Alliances Section */
.about-alliances-section {
    background-color: #2F3130;
    padding: 80px 0;
}

.alliances-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.alliances-content {
    flex: 1;
    max-width: 600px;
}

.alliances-subtitle {
    font-size: 16px;
    color: #FDC009;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.alliances-title {
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.alliances-text {
    font-size: 16px;
    color: #E2E3E1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.alliances-stats {
    display: flex;
    gap: 60px;
    margin-bottom: 45px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    color: #FDC009;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 600;
}

.alliances-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FDC009;
    color: #6C5000;
    font-size: 24px;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 8px; /* esquinas redondas */
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
}

.alliances-btn:hover {
    background-color: #e5ad08;
    color: #6C5000;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .alliances-stats {
        flex-direction: column;
        gap: 30px;
    }
    .alliances-title {
        font-size: 28px;
    }
    .alliances-btn {
        font-size: 20px;
        width: 100%;
    }
}

.alliances-image-wrapper {
    flex: 1;
    max-width: 375px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.alliances-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 992px) {
    .alliances-container {
        flex-direction: column;
    }
    .alliances-image-wrapper {
        margin-top: 40px;
        max-width: 100%;
    }
}

/* Timeline Section */
.about-timeline-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.timeline-container {
    text-align: center;
}

.timeline-title {
    font-size: 50px;
    color: #AA182C;
    margin-bottom: 20px;
    font-weight: bold;
}

.timeline-subtitle {
    font-size: 20px;
    color: #564334;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    padding: 40px 0;
    align-items: center;
}

/* The connecting timeline line */
.timeline-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2%;
    width: 96%;
    height: 4px;
    background-color: #AA182C;
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 0;
}

.timeline-box {
    background-color: #FEF8F5;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

/* Alternate vertical positions */
.timeline-box:nth-child(odd) {
    transform: translateY(-40px);
}
.timeline-box:nth-child(even) {
    transform: translateY(40px);
}

.timeline-box:hover {
    box-shadow: 0 15px 40px rgba(170, 24, 44, 0.2);
}

/* Dots on the line */
.timeline-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 4px solid #AA182C;
    border-radius: 50%;
    left: 50%;
    margin-left: -10px;
}

/* Position dots depending on whether the box is up or down */
.timeline-box:nth-child(odd)::after {
    bottom: -54px; /* Adjust to hit the line */
}
.timeline-box:nth-child(even)::after {
    top: -54px; /* Adjust to hit the line */
}


.timeline-year {
    font-size: 16px;
    font-weight: bold;
    color: #AA182C;
    margin-bottom: 15px;
}

.timeline-box-title {
    font-size: 17px;
    font-weight: bold;
    color: #2F3130;
    margin-bottom: 15px;
}

.timeline-box-text {
    font-size: 17px;
    color: #564334;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px 0;
        row-gap: 100px;
    }
    .timeline-grid::before {
        display: none; /* Hide horizontal line on mobile/tablet */
    }
    .timeline-box:nth-child(odd), .timeline-box:nth-child(even) {
        transform: translateY(0);
    }
    .timeline-box::after {
        display: none; /* Hide dots */
    }
}
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    .timeline-title {
        font-size: 40px;
    }
}

/* Core Values Section */
.about-values-section {
    background-color: #ffffff;
    padding: 60px 0 100px 0;
}

.values-container {
    text-align: center;
}

.values-main-title {
    font-size: 70px;
    color: #1D1B1A;
    margin-bottom: 60px;
    font-weight: bold;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-box {
    background-color: #FEF8F5;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.value-box:hover {
    transform: translateY(-5px);
}

.value-box-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
}

.value-box-text {
    font-size: 17px;
    line-height: 1.6;
}

.value-box-1 .value-box-title, .value-box-1 .value-box-text {
    color: #8E4E00;
}

.value-box-2 .value-box-title, .value-box-2 .value-box-text {
    color: #1A6D00;
}

.value-box-3 .value-box-title, .value-box-3 .value-box-text {
    color: #B6241F;
}

.value-box-4 .value-box-title, .value-box-4 .value-box-text {
    color: #F18A00;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    .values-main-title {
        font-size: 45px;
    }
}

.value-box-icon {
    width: 50px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    /* This ensures it aligns to the start depending on LTR/RTL */
    margin-inline-start: 0;
    margin-inline-end: auto;
}

/* Newsletter Section */
.about-newsletter-section {
    background-color: #AD1E19;
    padding: 80px 0;
}

.newsletter-title {
    font-size: 70px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    line-height: 1.2;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-text-col {
    flex: 1;
}

.newsletter-desc {
    font-size: 17px;
    color: #ffffff;
    line-height: 1.6;
}

.newsletter-form-col {
    flex: 1;
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    outline: 2px solid #FDC009;
}

.newsletter-btn {
    flex-shrink: 0;
    background-color: #FDC009;
    color: #6C5000;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.newsletter-btn:hover {
    background-color: #e5ad08;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-title {
        font-size: 50px;
    }
    .newsletter-form {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .newsletter-title {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-input {
        width: 100%;
    }
    .newsletter-btn {
        width: 100%;
    }
}