.commander-area {
    display: grid;
    grid-template-columns: 350px 1fr; 
    gap: 50px;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.05);
    border-left: 5px solid var(--tni-blue);
}

.commander-card {
    width: 100%;
    position: relative;
}

.commander-photo {
    width: 100%;
    aspect-ratio: 3 / 4; 
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: #e0e0e0; 
    border: 1px solid rgba(0,0,0,0.1);
}

.commander-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.commander-bio {
    padding-right: 20px;
}

.commander-info {
    padding: 15px 0;
}

.commander-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--tni-blue);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.commander-info .rank {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.badge-title {
    display: inline-block;
    background: #f0f4f8;
    color: var(--tni-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.commander-quote {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    border-left: 3px solid var(--tni-gold);
    padding-left: 20px;
    margin: 20px 0;
    line-height: 1.6;
    background: #fff9e6;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.info-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #888;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: var(--tni-blue);
    background-color: #f9fbfd;
}

.tab-btn.active {
    color: var(--tni-blue);
    border-bottom-color: var(--tni-gold);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.section-title.no-border {
    text-align: left;
}

.dynamic-list {
    padding-left: 20px;
    margin: 0;
}

.dynamic-list li {
    margin-bottom: 8px;
}

.history-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
    border-left: 3px solid #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--tni-gold);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e0e0e0;
}

.timeline-year {
    display: inline-block;
    background: var(--tni-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.timeline-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

.timeline-item:hover .timeline-year {
    background: var(--tni-gold);
    color: var(--tni-blue);
}

.danlanud-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #eee;
}

.danlanud-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-bottom: 3px solid var(--tni-gold);
}

.danlanud-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.danlanud-info {
    padding: 15px;
}

.danlanud-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #333;
}

.danlanud-info span {
    font-size: 0.8rem;
    color: #777;
    display: block;
}

.tab-content {
  display: none;
}

.tab-content.tab-visible {
  display: block;
}

.table-scroll {
  overflow-x: auto;
}

.th-center,
.td-center {
  text-align: center;
  width: 100%;
}

.org-slider-container {
    position: relative;
    width: 100%;
    height: 500px; 
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.org-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
}

.org-slide.active {
    opacity: 1;
    z-index: 2;
}

.org-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.org-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

@media (max-width: 768px) {
    .commander-area {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .commander-bio {
        padding-right: 0;
    }

    .commander-info h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .commander-info .rank {
        text-align: center;
    }

    .badge-title {
        display: block;
        text-align: center;
        margin: 0 auto 15px;
    }

    .commander-quote {
        font-size: 1rem;
    }

    .info-tabs {
        gap: 5px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title.no-border {
        text-align: center;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

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

    .org-slider-container {
        height: 320px;
    }

    .org-nav {
        width: 38px;
        height: 38px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}