/* Fade-in animation for the main container */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #008ea7, #a8e5f0);
    border-radius: 2px;
    margin: 0.5rem auto 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 142, 167, 0.04);
    transition: box-shadow 0.2s;
}

.info-card:hover {
    box-shadow: 0 6px 24px rgba(0, 142, 167, 0.10);
}

.card-icon {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #008ea7, #a8e5f0);
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0, 142, 167, 0.10);
}

.info-card p {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.7;
}

.btn-document {
    background: linear-gradient(45deg, #008ea7, #a8e5f0);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    margin: 0 0.5rem 0.5rem 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 142, 167, 0.10);
    display: inline-block;
}

.btn-document:hover {
    color: #fff;
    background: linear-gradient(45deg, #1199b1, #70d2e4);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 142, 167, 0.15);
}

.timeline {
    position: relative;
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #a8e5f0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #008ea7, #a8e5f0);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    left: -2.5rem;
    top: 0;
    box-shadow: 0 2px 8px rgba(0, 142, 167, 0.10);
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-left: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 142, 167, 0.04);
    min-width: 200px;
}

.timeline-content h4 {
    margin-top: 0;
    color: #008ea7;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0;
    color: #495057;
}

.organigrama-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.organigrama-title {
    text-align: center;
    color: #008ea7;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.organigrama-tree {
    position: relative;
    margin: 0 auto;
    padding-left: 0;
    border-left: 3px solid #a8e5f0;
    border-top: 3px solid #a8e5f0;
    border-bottom: 3px solid #a8e5f0;

}

.organigrama-node {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0 0 2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 142, 167, 0.04);
    min-width: 200px;
    transition: box-shadow 0.2s;
}

.organigrama-node:hover {
    box-shadow: 0 6px 24px rgba(0, 142, 167, 0.10);
}

.organigrama-node::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 2rem;
    height: 2px;
    background: #a8e5f0;
    border-radius: 1px;
}

.organigrama-node:first-child::before {
    display: show;
}


.organigrama-position {
    font-weight: bold;
    color: #001f5b;
    font-size: 1.1rem;
}

.organigrama-person {
    color: #3bc6d4;
    margin-left: 0.5em;
    font-weight: 500;
}

.vertical-line {
    width: 2px;
    height: 40px;
    background: #a8e5f0;
    margin: 0 auto 0 auto;
    display: block;
    border-radius: 1px;
}

.centered {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #007fa3;
    margin-bottom: 20px;
  }

  .horizontal-line {
    
    border: none;
    border-top: 2px solid #a8e5f0;
    margin: 20px 0px 0;
  }

/* Organigrama expand functionality and details styling */


.organigrama-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organigrama-info {
    flex: 1;
}

.expand-indicator {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.expand-icon {
    font-size: 1.2rem;
    color: #008ea7;
    transition: transform 0.3s ease;
}

.organigrama-node.expanded .expand-icon {
    transform: rotate(180deg);
}

.organigrama-img-container {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.organigrama-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.organigrama-details {
    margin-top: 1rem;
}

.organigrama-mission {
    margin-bottom: 1.5rem;
}

.organigrama-mission h4 {
    color: #001f5b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #a8e5f0;
    padding-bottom: 0.5rem;
}

.organigrama-mission p {
    color: #495057;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 0;
}

.organigrama-contact {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #008ea7;
}

.contact-item {
    margin-bottom: 0.75rem;
    color: #495057;
    line-height: 1.5;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #001f5b;
    font-weight: 600;
}

.contact-item a {
    color: #008ea7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #006d82;
    text-decoration: underline;
}

/* Floating Go Up Button */
.go-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #008ea7, #a8e5f0);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 142, 167, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.go-up-btn:hover {
    background: linear-gradient(45deg, #1199b1, #70d2e4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 142, 167, 0.4);
}

.go-up-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-up-btn i {
    transition: transform 0.2s ease;
}

.go-up-btn:hover i {
    transform: translateY(-2px);
}