/* General Reset */
body,
h1,
h2,
h3,
p,
ul,
li,
a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: rgba(12,32,75,255);
    color: #333;
    margin: 0;
}

/* Organization */
.title-organizational {
    background-color: #f9f9f9;
    height: 100vh;
    padding-top: 35vh;
    justify-content: center;
}

.title-organizational h1 {
    text-align: center;
    font-size: 4.5rem;
    font-weight: 700;
    color: black;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}


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

.title-organizational h1 span {
    text-align: center;
    font-size: 4.5rem;
    color: black;
    font-weight: bolder;
    line-height: 1.6;
    background: linear-gradient(to right, #214246, #718c7a);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-organizational p {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 400;
    color: #545454;
    line-height: 1.8;
    margin-bottom: 40px;
    width: 80%;
    justify-self: center;
    opacity: 0;
    animation: fadeIn2 1s ease-out forwards;
    animation-delay: 0.3s;
}

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

.garisdivider {
    width: 80%;
    height: 4px;
    margin: auto;
    background: linear-gradient(to right, #214246, #718c7a);
    border-radius: 10px;
    margin-bottom: 100px;
    clip-path: inset(0 100% 0 0);
    animation: wipeIn 1.5s ease-out forwards;
    animation-delay: 0.8s;
  }
  
  @keyframes wipeIn {
    to {
      clip-path: inset(0 0 0 0);
    }
  }

/* Organization - Instruktur */
.instruktur {
    margin: auto;
    animation: fadeIn 1.25s ease-out forwards;
}

.card {
    background-color: #f3f3f3;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.3);
}

.instruktur .card {
    display: flex;
    gap: 5%;
    margin: 4rem auto;
    width: 50%;
    padding: 3%;
    justify-content: center;
    align-items: center;
}

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

.card img {
    width: 200px;
    border-radius: 15px;
    flex-shrink: 0;
    flex-grow: 0;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    transition: transform 0.3s ease;
}

.card img:hover {
    transform: scale(1.05);
}

.info {
    display: flex;
    flex-direction: column;
    gap: 7pt;
}

.info h2 {
    color: #1b5f69;
    font-size: 22pt;
}

.info h3 {
    font-weight: 500;
    font-size: 14pt;
    font-weight:700;
}



/* Organization - Inti */

.inti {
    margin: auto;
}

.inti h1,
.divisi-program h1,
.divisi-dkv h1 {
    font-size: 24pt;
}

.divisi-program h1,
.divisi-dkv h1 {
    margin-bottom: 2rem;
}

.inti .card,
.divisi-program .card,
.divisi-dkv .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.5rem;
}

.inti .card {
    margin: 0 auto;
    gap: 2.8rem;
    width: 85%;
}

.first-level,
.second-level,
.third-level,
.divisi-program-content,
.divisi-dkv-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

.person {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 16rem;
    align-items: center;
}

.person img {
    width: 210px;
    aspect-ratio: 4 / 5;
    margin-bottom: 1rem;
}

.person h2 {
    color: #000;
    font-size: 14px;
    margin-bottom: 0.4rem;
}

.person h3 {
    font-weight: 500;
    font-size: 13px;
}

/* Organization - Divisi */
.divisi-program .card,
.divisi-dkv .card {
    width: 65%;
}

.divisi-program .card {
    margin: 4rem auto;
}

.divisi-dkv .card {
    margin: 0 auto 4rem;
}


/* Responsive Rules */
@media (max-width: 768px) {
    .title-organizational p {
        font-size: 10pt;
    }
    .instruktur .card {
        flex-direction: column;
        width: 80%;
        padding: 2rem;
    }

    .instruktur .card img {
        width: 160px;
        aspect-ratio: 4 / 5;
        margin-bottom: 1.1rem;
    }

    .instruktur .info h2 {
        font-size: 18pt;
        text-align: center;
    }

    .instruktur .info h3 {
        font-size: 12pt;
        text-align: center;
    }

    .inti .card,
    .divisi-program .card,
    .divisi-dkv .card {
        width: 80%;
        padding: 8% 4%;
    }

    .first-level,
    .second-level,
    .third-level,
    .divisi-program-content,
    .divisi-dkv-content {
        flex-direction: column;
        gap: 2rem;
    }

    .second-level,
    .third-level {
        gap: 3rem;
    }

    .person {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .person img {
        width: 160px;
        border-radius: 10%;
    }

    .person h2,
    .person-right h2,
    .person-center h2 {
        font-size: 12pt;
    }

    .person h3,
    .person-right h3,
    .person-center h3 {
        font-size: 10pt;
    }

    .inti h1,
    .divisi-program h1,
    .divisi-dkv h1 {
        font-size: 18pt;
    }

    .divisi-program-content .person:nth-child(2) {
        order: 1;
    }

    .divisi-program-content .person:nth-child(1) {
        order: 2;
    }

    .divisi-program-content .person:nth-child(3) {
        order: 3;
    }
}

@media (max-width: 480px) {
    .instruktur .card {
        width: 80%;
        padding: 1.5rem;
    }

    .instruktur .card img {
        width: 140px;
    }

    .inti h1,
    .divisi-program h1,
    .divisi-dkv h1 {
        font-size: 14pt;
    }

    .instruktur .info h2 {
        font-size: 14pt;
    }

    .instruktur .info h3 {
        font-size: 10pt;
    }

    .person img {
        width: 140px;
    }

    .person h2 {
        font-size: 10pt;
    }

    .person h3 {
        font-size: 9pt;
    }

    .inti .card,
    .divisi-program .card,
    .divisi-dkv .card {
        padding: 10% 4%;
        width: 80%;
    }
}
