/* =========================================
   ABOUT INTRO SECTION
   ========================================= */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.subtitle-accent {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--light-red);
    color: var(--primary-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.feature-item:hover .icon-box {
    background: var(--primary-red);
    color: var(--white);
}

.feature-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.about-image-wrapper {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
}

.about-img-main {
    width: 100%;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.image-back {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-red);
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 0.1;
}

/* =========================================
   TIMELINE (VERTICAL)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Garis tengah */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

/* Dot di tengah */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary-red);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item .content {
    padding: 25px;
    background-color: var(--white);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-item:hover .content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary-red);
}

.timeline-item .date {
    display: inline-block;
    background: var(--light-red);
    color: var(--primary-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* =========================================
   ORGANIZATIONAL CHART
   ========================================= */
/* =========================================
   ORGANIZATIONAL CHART
   ========================================= */
.org-chart-wrapper {
    overflow-x: auto;
    text-align: center;
    padding: 40px 20px;
    /* Custom Scrollbar for better UX */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) var(--light-gray);
    border-radius: var(--border-radius);
}

.org-chart-wrapper::-webkit-scrollbar {
    height: 8px;
}

.org-chart-wrapper::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.org-chart-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-red);
    border-radius: 4px;
}

.org-chart,
.org-chart ul,
.org-chart li {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

.org-chart {
    display: inline-block;
    white-space: nowrap;
    /* Prevent wrapping */
    min-width: 100%;
}

.org-chart ul {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

/* Vertical line down from Parent to Children List */
.org-chart ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 2px solid #ccc;
    width: 0;
    height: 20px;
}

/* Hide top connector for the very root UL */
.org-chart>ul::before {
    display: none;
}

.org-chart li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 0 10px;
    position: relative;
}

/* Horizontal connectors on LI */
.org-chart li::before,
.org-chart li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%;
    height: 20px;
}

.org-chart li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #ccc;
    /* Vertical connector to the Node */
}

/* Remove connectors for single children */
.org-chart li:only-child::after,
.org-chart li:only-child::before {
    display: none;
}

.org-chart li:only-child {
    padding-top: 0;
}

/* Remove extra connectors for first and last child */
.org-chart li:first-child::before,
.org-chart li:last-child::after {
    border: 0 none;
}

/* Add round corners for connectors */
.org-chart li:last-child::before {
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
}

.org-chart li:first-child::after {
    border-radius: 5px 0 0 0;
}

/* Cards Style */
.org-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    width: 180px;
    min-height: 130px;
    /* Uniform height */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    text-decoration: none;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.org-card:hover {
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.org-icon {
    width: 44px;
    height: 44px;
    background: var(--light-red);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.org-card:hover .org-icon {
    background: var(--primary-red);
    color: var(--white);
}

.org-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
    line-height: 1.3;
}

.org-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* Special Cards */
.org-root {
    background: var(--dark);
    color: var(--white);
    border: none;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.org-root h4,
.org-root p {
    color: var(--white);
}

.org-root .org-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.org-root:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.org-highlight {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.2);
}

.org-highlight h4,
.org-highlight p {
    color: var(--white);
}

.org-highlight .org-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.org-highlight:hover {
    background: var(--secondary-red);
}

.org-unit {
    width: 150px;
    min-height: auto;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.org-unit h4 {
    margin: 0;
    font-size: 0.95rem;
}

/* =========================================
   TEAM GRID
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-img-box {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(220, 20, 60, 0.9);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: 0.4s ease;
}

.team-card:hover .team-social-overlay {
    bottom: 0;
}

.team-social-overlay a {
    color: var(--white);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.team-social-overlay a:hover {
    background: var(--white);
    color: var(--primary-red);
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info .position {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================
   VALUES
   ========================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    /* Ensure equal height */
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.1);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card i {
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 25px;
    background: var(--light-red);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.value-card:hover i {
    background: var(--primary-red);
    color: var(--white);
    transform: rotateY(180deg);
}

.value-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.value-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {

    /* Timeline Mobile */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item.left,
    .timeline-item.right {
        text-align: left;
    }

    .timeline-item::after {
        left: 21px;
    }

    .org-chart-wrapper {
        overflow-x: scroll;
    }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        margin-bottom: 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .org-card {
        width: 150px;
        padding: 15px;
    }
}