/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "roboto", sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: "montserrat", sans-serif;
}

.main-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Header styles */
header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease;
    font-family: "montserrat", sans-serif;
    height: 71.19px;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 71.19px;
}

.sticky.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

header .logo {
    display: flex;
    align-items: center;
    margin-right: 70px;
}

header .logo img {
    height: 40px;
}

/* Navigation menu for desktop */
nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Ensure text aligns with logo */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px; /* Adjust spacing between nav items */
}

nav ul li:first-child {
    margin-left: 0; /* Remove left margin for the first item */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    line-height: 40px; /* Matches the height of the logo */
}

/* Hamburger Button for Mobile */
.navbar-toggler {
    background-color: #33333300;
    color: white;
    padding: 10px;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 2000;
    border-radius: 5px;
    display: none; /* hide hamburger button */
}

/* section */

#section {
    width: auto;
    height: auto;
    position: absolute;
    top: 25px;
}

.main-title {
    text-decoration: none;
    font-size: 16px;
    color: #000000;
    font-family: "montserrat", sans-serif;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
}
.titleKiri {
    text-decoration: none;
    font-size: 16px;
    color: #000000;
    font-family: "montserrat", sans-serif;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
}
/* Main content styles */

.main {
    margin-top: auto;
    width: auto;
    height: auto;
    margin-bottom: auto;
}

.container {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
}

/* Kontainer untuk memusatkan title */
.main-title-container {
    display: flex;
    justify-content: center; /* Memusatkan secara horizontal */
    align-items: center; /* Memastikan teks berada di tengah secara vertikal */
    margin-top: 100px; /* Jarak dari elemen di atasnya */
    margin-bottom: 5px; /* Jarak dari card profile */
    width: 100%;
}

.main-title {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    font-family: "montserrat", sans-serif;
    text-align: center;
}

/* Mengatur jarak antara box profil */
.profile-card {
    background-color: #fff;
    padding: 10px;
    margin: 20px; /* Mengatur jarak antar box profil */
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 200px;
}

.profile-card h2 {
    font-size: 12px;
    font-family: "montserrat", sans-serif;
    font-weight: 900;
    color: #000000a4;
}

/* POP UP PROFILE */
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-card h3 {
    font-size: 16px;
    font-family: "montserrat", sans-serif;
    font-weight: 900;
    color: #000000;
    text-align: left;
}

.profile-card p {
    font-size: 12px;
    font-family: "montserrat", sans-serif;
    font-weight: 900;
    color: #00000057;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 5%;
    margin-bottom: 10px;
    object-fit: cover;
}

h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-family: "montserrat", sans-serif;
}
p {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
    font-family: "montserrat", sans-serif;
}

/* profile satuan */
.profile-1 {
    display: flex;
    justify-content: center;
    justify-items: center;
    /* padding: 20px; */
    width: auto;
    height: auto;
    flex-direction: column 2px; /* Change to column layout */
    margin-top: 10px;
    /* margin-bottom: 120px; */
}

.profile-2 {
    display: flex;
    justify-content: center;
    justify-items: center;
    /* padding: 20px; */
    width: auto;
    height: auto;
    flex-direction: column 2px; /* Change to column layout */
    margin-top: 10px;
}

.profile-3 {
    display: flex;
    justify-content: center;
    justify-items: center;
    /* padding: 20px; */
    width: auto;
    height: auto;
    flex-direction: column 2px; /* Change to column layout */
    margin-bottom: 10px;
    margin-top: 10px;
}

.profile-4 {
    display: flex;
    justify-content: center;
    justify-items: center;
    /* padding: 20px; */
    width: auto;
    height: auto;
    flex-direction: column 2px; /* Change to column layout */
    margin-bottom: 10px;
    margin-top: 10px;
}

.profile-5 {
    display: flex;
    justify-content: center;
    justify-items: center;
    /* padding: 20px; */
    width: auto;
    height: auto;
    flex-direction: column 2px; /* Change to column layout */
    margin-bottom: 50px;
    margin-top: 10px;
}

.kotak-opsi {
    justify-content: center;
    justify-items: center;
    margin-right: 100px;
    width: 300px;
    font-size: 12px;
    height: 300px;
    font-style: bold;
    font-family: "montserrat", sans-serif;
}

/* Style for the profile text */
.ProfilTeks {
    text-decoration: none;
    font-size: 14px;
    color: #333;
    font-family: "montserrat", sans-serif;
    display: flex;
    align-items: center;
    /* transition: color 0.3s ease; */
}

.ProfilTeks i {
    margin-right: 10px;
    margin-left: 10px;
}

/* Mengatur jarak antara tulisan dan box profil */
.profile-container {
    height: auto;
    width: 400px;
    text-align: left;
    margin-right: 40px; /* Mengatur jarak antara tulisan dan box profil */
    margin-top: 80px;
    margin-bottom: auto;
    padding-right: 20px; /* Tambahan padding jika diperlukan */
    font-family: "montserrat", sans-serif;
    font-size: 16px;
}

.profile-container ul {
    list-style-type: none; /* Change to 'none' if you don't want bullet points */
    padding-left: 20px; /* Adjust padding as needed */
}

.profile-container li {
    margin-bottom: 10px; /* Space between list items */
}

.profile-link {
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit text color */
    display: inline-block; /* Make the link block-level */
}

/* kategori bidang */
/* Style for the kategori bidang under each profile card */
.kategori-bidang {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    ); /* 2 columns layout for categories */
    gap: 20px; /* Space between categories */
    padding: 40px;
    justify-content: center; /* Center content */
    max-width: 1100px;
    margin: 0 auto;
    background-color: #ffffff;
    margin-bottom: 100px;
}

.teksBidang h1 {
    font-size: 24px;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Styling each link */
.kategori-bidang a {
    background-color: #424242; /* Background color for each category */
    color: white;
    padding: 15px 20px;
    height: 100px;
    border-radius: 10px; /* Rounded corners */
    font-size: 14px;
    font-family: "montserrat", sans-serif;
    text-align: center;
    text-decoration: none; /* Remove underline */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease,
        box-shadow 0.3s ease;
    text-align: center;
    display: flex; /* Use Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Hover effect */
.kategori-bidang a:hover {
    background-color: #b48947; /* Darker shade on hover */
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kategori-bidang {
        grid-template-columns: repeat(
            auto-fit,
            minmax(140px, 1fr)
        ); /* Smaller columns for mobile */
        gap: 10px;
    }

    .teksBidang h1 {
        font-size: 16px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .kategori-bidang a {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .kategori-bidang {
        grid-template-columns: repeat(
            auto-fit,
            minmax(120px, 1fr)
        ); /* Further reduced size for very small screens */
        gap: 8px;
    }

    .teksBidang h1 {
        font-size: 16px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .kategori-bidang a {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* Footer styles */
footer {
    background: #f0ede0;
    padding: 5px 20px; /* Adjust padding to make background smaller */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.footer-section {
    width: 23%;
    padding: 0px; /* Reduce padding */
    margin-bottom: 8px; /* Reduce margin-bottom */
    position: relative;
}

.footer-section.hubungi-kami {
    margin-right: 10px; /* Mengurangi margin di antara mereka */
}

.footer-section h2 {
    font-family: "roboto", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 8px; /* Reduce margin-bottom */
    position: relative;
}

.footer-section p,
.footer-section a {
    /* font-weight: 500; */
    font-size: 14px;
    line-height: 20px; /* Reduce line-height */
    color: #000000;
    margin: 0 0 8px 0; /* Reduce margin */
}

.footer-section a {
    text-decoration: none;
    color: #000000;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section .social-media {
    display: flex;
    justify-content: flex-start;
    gap: 5px; /* Reduce gap */
}

.social-icon {
    width: 24px;
    height: 24px;
    background-size: cover;
}

.hubungi-kami-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 11px; /* Reduce margin-right */
}

.footer-underline {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0; /* Reduce margin */
}

.footer-underline-short {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0; /* Reduce margin */
}

.logos {
    display: flex;
    gap: 10px; /* Reduce gap */
    justify-content: right;
    align-items: center;
    width: 100%;
}

.logos img {
    width: 40px; /* Default size for other logos */
    height: auto;
    display: inline-block;
}

.logos img.peradi {
    width: 80px; /* Larger size for PERADI logo */
}

.footer-section img.logo {
    display: block;
    margin-top: 20px;
    width: 180px; /* Adjust size as needed */
}

/* responsive header */
/*Header Mobile styles */
@media (max-width: 1024px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/*Header Mobile styles */
@media (max-width: 860px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/*Header Mobile styles */
@media (max-width: 768px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/*Header Mobile styles */
@media (max-width: 560px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

@media (max-width: 450px) {
    /* Show the hamburger button */
    .navbar-toggler {
        display: block;
        background-color: #33333300;
        color: white;
        border-radius: 5px;
    }

    /* Hide the navbar menu initially on mobile */
    #navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95); /* Covers the full page */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Ensures it covers the whole height */
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active ul {
        display: flex;
    }

    /* Hide the hamburger button when menu is active */
    .navbar-toggler.hidden {
        display: none;
    }

    /* Style the menu items for mobile */
    #navbar-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #navbar-menu ul li a {
        font-size: 20px;
        color: white;
        text-align: center;
    }

    /* Show the navbar menu when active */
    #navbar-menu.active {
        display: flex;
    }
}

/* profile card responsive */
/* Responsive Styles */
@media (max-width: 1024px) {
    .profile-card {
        width: 220px; /* Ukuran lebih kecil untuk tablet */
        height: auto; /* Sesuaikan tinggi otomatis */
        margin: 15px;
    }

    .profile-card h3 {
        font-size: 14px; /* Kurangi ukuran font pada tablet */
    }

    .profile-card p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .profile-card {
        width: 180px; /* Lebar card untuk ponsel kecil */
        margin: 10px auto; /* Atur margin otomatis untuk memusatkan */
        width: calc(50% - 40px); /* Two columns layout */
    }

    .profile-card h3 {
        font-size: 12px;
    }

    .profile-card p {
        font-size: 10px;
    }

    .avatar {
        width: 80px;
        height: 80px; /* Ukuran lebih kecil untuk avatar */
    }
}

@media (max-width: 480px) {
    .profile-card {
        width: calc(50% - 40px); /* Two columns layout */
        width: 180px; /* Lebar card untuk ponsel kecil */
        margin: 10px auto; /* Atur margin otomatis untuk memusatkan */
    }

    .profile-card h3 {
        font-size: 14px;
    }

    .profile-card p {
        font-size: 12px;
    }

    .avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto; /* Pusatkan avatar */
    }
}

@media (max-width: 768px) {
    .profile-1,
    .profile-2,
    .profile-3,
    .profile-4,
    .profile-5 {
        flex-direction: column; /* Stack profile sections vertically on mobile */
        margin: 10px 0;
    }

    .profile-container {
        width: 100%; /* Full width on mobile */
        margin: 10px 0; /* Reduce margins */
    }

    .kotak-opsi {
        width: 200px; /* Smaller for mobile */
        height: auto;
        margin-right: 0; /* Remove right margin */
    }

    .ProfilTeks {
        font-size: 12px; /* Smaller font for mobile */
    }
}

/*Footer Responsive styling for mobile */
@media (max-width: 768px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}

/*Footer Responsive styling for mobile */
@media (max-width: 768px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-section {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .logos img {
        width: 30px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .hubungi-kami-icon {
        width: 20px;
        height: 20px;
    }
}
