/* ===================================
   STRUKTUR ORGANISASI PAGE STYLES
   =================================== */

   
/* Page Header */
.page-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 60px 0;
    color: white;
}

.header-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-year {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Organizational Chart Section */
.org-chart-section {
    background: #ffffff;
}

.org-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.org-structure-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


.org-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.org-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 20px;
}

.org-year-badge {
    display: inline-block;
    background: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Organizational Chart */
.org-chart {
    max-width: 1200px;
    margin: 50px auto 0;
    position: relative;
}

.org-level {
    margin-bottom: 40px;
    position: relative;
}

/* Connecting Lines */
.org-level::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #28a745;
}

.org-level.level-1::before {
    display: none;
}

/* Organizational Box */
.org-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

.org-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 15px 15px 0 0;
}

.org-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.org-position {
    background: #ffc107;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.org-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Different Colors for Different Positions */
.org-penasehat::before {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.org-penasehat .org-position {
    background: #dc3545;
    color: white;
}

.org-pembina::before {
    background: linear-gradient(90deg, #fd7e14 0%, #e8590c 100%);
}

.org-pembina .org-position {
    background: #fd7e14;
    color: white;
}

.org-ketua::before {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.org-ketua .org-position {
    background: #28a745;
    color: white;
}

.org-sekretaris::before {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

.org-sekretaris .org-position {
    background: #007bff;
    color: white;
}

.org-bendahara::before {
    background: linear-gradient(90deg, #6f42c1 0%, #5a32a3 100%);
}

.org-bendahara .org-position {
    background: #6f42c1;
    color: white;
}

.org-penanggungjawab::before {
    background: linear-gradient(90deg, #17a2b8 0%, #117a8b 100%);
}

.org-penanggungjawab .org-position {
    background: #17a2b8;
    color: white;
}

.org-bidang::before {
    background: linear-gradient(90fd, #20c997 0%, #17a589 100%);
}

.org-bidang .org-position {
    background: #20c997;
    color: white;
}

/* Level 4 - Sekretaris & Bendahara side by side */
.level-4 .row {
    position: relative;
}

.level-4 .row::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #28a745;
}

.level-4 .col-md-5::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #28a745;
}

/* Level 6 - Bidang Multiple Columns */
.level-6 .row {
    position: relative;
}

.level-6::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #28a745;
}

.level-6 .col-lg-3::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #28a745;
}

/* Team Section */
.team-section {
    background: #f8f9fa;
}

.team-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(40, 167, 69, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 15px;
}

.team-social a {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 20px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: #ffc107;
    color: white;
    transform: translateY(-5px);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.team-position {
    font-size: 1rem;
    color: #28a745;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-title {
        font-size: 2rem;
    }

    .org-main-title {
        font-size: 1.5rem;
    }

    .org-subtitle {
        font-size: 2rem;
    }

    .org-box {
        max-width: 100%;
    }

    .org-position {
        font-size: 0.85rem;
    }

    .org-name {
        font-size: 1rem;
    }

    .level-4 .row::before,
    .level-6::before {
        display: none;
    }

    .level-4 .col-md-5::before,
    .level-6 .col-lg-3::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-year {
        font-size: 1rem;
    }

    .org-logo {
        width: 80px;
        height: 80px;
    }

    .org-main-title {
        font-size: 1.3rem;
    }

    .org-subtitle {
        font-size: 1.5rem;
    }

    .org-year-badge {
        font-size: 0.9rem;
        padding: 10px 25px;
    }

    .org-level {
        margin-bottom: 25px;
    }

    .org-level::before {
        height: 15px;
        top: -15px;
    }

    .team-image {
        height: 250px;
    }

    .team-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 1.2rem;
    }

    .org-main-title {
        font-size: 1.1rem;
    }

    .org-subtitle {
        font-size: 1.3rem;
    }

    .org-box {
        padding: 20px;
    }

    .org-position {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .org-name {
        font-size: 0.9rem;
    }

    .team-image {
        height: 200px;
    }

    .team-name {
        font-size: 1.1rem;
    }

    .team-position {
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-box,
.team-card {
    animation: fadeInUp 0.6s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .scroll-top,
    .team-social {
        display: none;
    }

    .org-box {
        break-inside: avoid;
    }

    .page-header {
        background: #28a745;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}