/* ===============================
   PAGE HEADER
================================ */

.page-header{
    background:
        linear-gradient(rgba(80,0,0,0.88), rgba(128,0,0,0.88)),
        url('../img/batik.png');
    background-size: cover;
    background-position: center;
    padding: 110px 8%;
    text-align: center;
    color: white;
}

.page-header h1{
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.page-header p{
    font-size: 18px;
    margin: 0;
    color: #ffeaea;
}

/* ===============================
   GALLERY SECTION
================================ */

.gallery-section{
    padding: 80px 8%;
    background: #f8f8f8;
    min-height: 500px;
}

/* ===============================
   TAB MENU
================================ */

.tab-menu{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn{
    min-width: 260px;
    padding: 16px 28px;
    border-radius: 50px;
    border: 2px solid #8b0000;
    background: white;
    color: #8b0000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.tab-btn.active,
.tab-btn:hover{
    background: #8b0000;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(139,0,0,0.25);
}

.tab-content{
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active{
    display: block;
}

@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(15px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   OUR KEY PEOPLE
================================ */

.people-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.people-card{
    background: #ffffff;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: 0.3s ease;
    position: relative;
}

.people-card::before{
    content: "";
    display: block;
    height: 105px;
    background: linear-gradient(135deg, #8b0000, #b30000);
}

.people-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.16);
}

.avatar-circle{
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2f2f2, #dcdcdc);
    border: 7px solid #ffffff;
    margin: -70px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    position: relative;
    z-index: 2;
}

.avatar-circle span{
    font-size: 68px;
    line-height: 1;
}

.people-card h3{
    color: #8b0000;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.people-card p{
    color: #666;
    font-size: 17px;
    margin-bottom: 35px;
}

/* ===============================
   COMPANY ACTIVITIES
================================ */

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-card{
    background: white;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.gallery-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.15);
}

.gallery-card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-card:hover img{
    transform: scale(1.08);
}

.gallery-content{
    padding: 24px;
}

.gallery-content h3{
    color: #8b0000;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.gallery-content p{
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
}

/* ===============================
   MODAL COMPANY ACTIVITIES
================================ */

.gallery-modal{
    border: none;
    border-radius: 22px;
    overflow: hidden;
}

.gallery-modal .modal-header{
    background: #8b0000;
    color: white;
    padding: 18px 26px;
}

.gallery-modal .modal-title{
    font-weight: 800;
}

.gallery-modal .btn-close{
    filter: brightness(0) invert(1);
}

.gallery-detail{
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 15px;
}

.gallery-detail-img{
    background: #f8f8f8;
    border-radius: 18px;
    padding: 15px;
    text-align: center;
}

.gallery-detail-img img{
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 14px;
}

.gallery-detail-info h2{
    color: #8b0000;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 15px;
}

.gallery-detail-line{
    width: 70px;
    height: 4px;
    background: #8b0000;
    border-radius: 20px;
    margin-bottom: 20px;
}

.gallery-detail-info p{
    color: #555;
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

/* ===============================
   EMPTY DATA
================================ */

.empty-text{
    text-align: center;
    grid-column: 1 / -1;
    color: #777;
    font-size: 20px;
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* ===============================
   RESPONSIVE
================================ */

@media(max-width: 992px){

    .people-grid,
    .gallery-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-detail{
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gallery-detail-line{
        margin: 0 auto 20px;
    }

    .gallery-detail-info p{
        text-align: center;
    }
}

@media(max-width: 768px){

    .page-header{
        padding: 85px 6%;
    }

    .page-header h1{
        font-size: 34px;
    }

    .page-header p{
        font-size: 15px;
    }

    .gallery-section{
        padding: 60px 6%;
    }

    .tab-menu{
        flex-direction: column;
        gap: 14px;
        margin-bottom: 35px;
    }

    .tab-btn{
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 16px;
    }

    .people-grid,
    .gallery-grid{
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .avatar-circle{
        width: 115px;
        height: 115px;
        margin-top: -60px;
    }

    .avatar-circle span{
        font-size: 58px;
    }

    .people-card h3{
        font-size: 21px;
    }

    .people-card p{
        font-size: 15px;
    }

    .gallery-card img{
        height: 210px;
    }

    .gallery-content{
        padding: 20px;
    }

    .gallery-content h3{
        font-size: 19px;
    }

    .gallery-content p{
        font-size: 14px;
        line-height: 1.7;
    }

    .gallery-detail{
        padding: 5px;
        gap: 20px;
    }

    .gallery-detail-img img{
        max-height: 320px;
    }

    .gallery-detail-info h2{
        font-size: 24px;
    }

    .gallery-detail-info p{
        font-size: 14px;
        line-height: 1.8;
    }
}

/* FIX AVATAR OUR KEY PEOPLE */

.people-card{
    padding: 0 0 28px !important;
}

.people-card h3{
    display: block !important;
    color: #8b0000 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 12px 0 6px !important;
    position: relative;
    z-index: 5;
}

.avatar-circle{
    width: 135px !important;
    height: 135px !important;
    border-radius: 50% !important;
    background: #eeeeee !important;
    border: 7px solid #ffffff !important;
    margin: -70px auto 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;
    position: relative !important;
    z-index: 10 !important;
}

.avatar-circle span{
    display: block !important;
    font-size: 68px !important;
    line-height: 1 !important;
}