/* header */
* {
    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 */
}

/* Main styling */

main .container {
    width: 90%;
    max-width: 800px;
    margin: 100px auto 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

main {
    width: 862px;
    height: 800px;
    align-content: center;
    align-items: center;
    margin: auto;
}

.profile-header {
    display: flex;
    margin-left: 0px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.back-button {
    text-decoration: none;
    font-size: large;
    margin-right: 10px;
    color: #000;
    border: none;
    background: none;
    margin-right: 230px;
    width: 30px;
    height: 30px;
}

.back-button:hover {
    transform: translateY(2px);
    transform: translateX(2px);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* new */
.profile-header h1 {
    font-size: 24px;
    margin: 0;
    padding: auto;
    align-items: center;
    align-content: center;
}

.profile-header p {
    font-size: 16px;
    color: #666;
}

.icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.profile-section p {
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.6;
}

.profile-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #00000065;
}

.profile-content p {
    font-size: 14px;
    margin: 10px 0;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section ul li {
    font-size: 14px;
    margin: 5px 0;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

.next-button {
    background-color: #c18a42;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* For tablets and smaller screens */
@media (max-width: 1024px) {
    .profile-header h1 {
        font-size: 22px;
    }

    .profile-header p {
        font-size: 14px;
    }

    .profile-section h2 {
        font-size: 16px;
    }

    .profile-section p {
        font-size: 13px;
    }

    .profile-content h3 {
        font-size: 15px;
    }

    .profile-content p {
        font-size: 13px;
    }

    .next-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* For mobile screens */
@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 20px;
    }

    .profile-header p {
        font-size: 14px;
    }

    .icon {
        width: 18px;
        height: 18px;
    }

    .profile-section h2 {
        font-size: 16px;
    }

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

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

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

    .next-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* For small mobile screens */
@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 18px;
    }

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

    .icon {
        width: 16px;
        height: 16px;
    }

    .profile-section h2 {
        font-size: 14px;
    }

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

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

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

    .next-button {
        font-size: 12px;
        padding: 6px 14px;
    }
}
/* new */

.profile {
    display: flex;
    align-items: center;
    margin-top: 40px;
    margin-left: 85px;
    margin-bottom: 34px;
    gap: 20px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 165px;
    height: 155px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 21px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    font-size: 24px;
    margin: 10px 0;
}

.profile-info h2 {
    margin: 0;
    font-size: 22px;
}

.profile-info p {
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.textBawahProfil {
    margin-left: 78px;
    padding-bottom: 10px;
}

.textBawahProfil p {
    margin: auto;
    font-weight: bold;
}

.textBawahProfil a {
    margin: auto;
    margin-left: 39px;
}
.iconBawahProfil {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.profile-content {
    text-align: left;
    margin-top: 20px;
    margin-left: 75px;
}

.profile-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 30px;
}

.profile-content p {
    font-size: 14px;
    margin: 5px 0;
    margin-bottom: 5px;
    width: 650px;
    height: auto;
}

.iconPendidikan {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    margin-bottom: -6px;
    margin-top: -10px;
}

.teksIsi {
    font-size: 14px;
    margin-top: -10px;
}

.next-button {
    background-color: #c18a42;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
/* For tablets and smaller screens */
@media (max-width: 1024px) {
    .profile {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-top: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-header h1 {
        font-size: 20px;
    }

    .profile-info h2 {
        font-size: 18px;
    }

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

    .profile-content {
        margin-left: 0;
        width: 100%;
    }

    .profile-content h3 {
        font-size: 18px;
    }

    .profile-content p {
        width: 100%;
        font-size: 12px;
    }

    .next-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* For mobile screens */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-top: 20px;
        margin-bottom: 20px;
        gap: 15px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-header h1 {
        font-size: 18px;
    }

    .profile-info h2 {
        font-size: 16px;
    }

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

    .textBawahProfil {
        margin-left: 0;
    }

    .profile-content {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .profile-content p {
        font-size: 12px;
        width: 100%;
    }

    .next-button {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* For small mobile screens */
@media (max-width: 480px) {
    .profile {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .profile-header h1 {
        font-size: 16px;
    }

    .profile-info h2 {
        font-size: 14px;
    }

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

    .profile-content h3 {
        font-size: 16px;
    }

    .profile-content p {
        font-size: 10px;
        width: 100%;
    }

    .next-button {
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* modal */

.modal {
    display: none;
    position: flex;
    z-index: 1000;
    left: 0;
    top: 0;
    /* width: 100%;
    height: 100%; */
    overflow: auto;
    /* background-color: rgba(0, 0, 0, 0.5); */
    justify-content: center;
    align-items: center;
}

#consultation-modal.modal.main {
    max-width: 100%; /* Pastikan modal tidak melebihi lebar layar */
    width: 881px;
    height: 600px;
    margin: auto; /* Pastikan modal berada di tengah secara horizontal */
    padding: none;
}

.modal-content {
    /* background-color: #fff; */
    margin: 15% auto;
    padding: 10px;
    /* border: 1px solid #888; */
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;

    text-align: left;
    margin-top: 20px;
    margin-left: 75px;
}

.modal-content h3 {
    font-weight: bold;
    border-bottom: 1px solid #00000065;
    width: 786.98px;
    height: 35.02px;
}

.close {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-bottom: 6px;
    margin-top: -10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.consultation-option {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.consultation-option img {
    width: 40px;
    height: 40px;
    margin-right: 20px;
}

.consultation-option input {
    width: 15px;
    height: 15px;
}

.option-info {
    flex: 1;
}

.option-info p {
    width: 483px;
    height: 80px;
    margin-right: 10px;
    flex: 1;
}

.ok-button {
    background-color: #c18a42;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 140px;
}
/* For tablets and smaller devices */
@media (max-width: 1024px) {
    #consultation-modal.modal.main {
        width: 90%;
        height: auto;
    }

    .modal-content {
        width: 90%;
        max-width: 500px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    #consultation-modal.modal.main {
        width: 100%;
        height: auto;
        padding: 0 10px;
    }

    .modal-content {
        width: 100%;
        padding: 15px;
        max-width: 400px;
    }

    .modal-content h3 {
        font-size: 18px;
    }

    .option-info p {
        font-size: 14px;
    }

    .ok-button {
        width: 100%;
        margin-left: 0;
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* For small mobile screens */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: 320px;
        padding: 15px;
    }

    .modal-content h3 {
        font-size: 16px;
    }

    .consultation-option img {
        width: 30px;
        height: 30px;
    }

    .ok-button {
        font-size: 10px;
        padding: 6px 10px;
    }
}
/* modal */

/*footer*/
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 */
}

.hubungi-kami-icon2 {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 15px; /* 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 */
}

/* header responsive */
/*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;
    }
}

/* main container & back button responsive */
/* For tablets and smaller screens */
@media (max-width: 1024px) {
    main {
        width: 100%; /* Ensure main section takes full width */
        max-width: 700px;
        padding: 15px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-button {
        display: block;
        text-align: center; /* Center text inside the button */
        margin: 0 auto 100px auto; /* Center the button and add bottom margin */
        font-size: 16px;
    }
}

/* For mobile screens */
@media (max-width: 768px) {
    main .container {
        padding: 15px;
        width: 95%; /* Expand width to take more screen space */
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-button {
        display: block;
        text-align: center; /* Center text inside the button */
        margin: 0 auto 100px auto; /* Center the button and add bottom margin */
        font-size: 16px;
    }
}

/* For small mobile screens */
@media (max-width: 480px) {
    main .container {
        padding: 10px;
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-button {
        display: block;
        text-align: center; /* Center text inside the button */
        margin: 0 auto 100px auto; /* Center the button and add bottom margin */
        font-size: 16px;
    }
}

/* Responsive adjustments for modal */
@media (max-width: 1024px) {
    .modal-content {
        width: 95%;
        max-width: 700px;
    }

    .modal-content h3 {
        font-size: 16px;
    }

    .option-info p {
        font-size: 13px;
    }

    .ok-button {
        font-size: 13px;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 600px;
    }

    .modal-content h3 {
        font-size: 16px;
    }

    .option-info p {
        font-size: 13px;
    }

    .ok-button {
        font-size: 13px;
        padding: 8px 15px;
    }

    .consultation-option {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: flex-start;
    }

    .consultation-option img {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        max-width: 350px;
        padding: 15px;
    }

    .modal-content h3 {
        font-size: 14px;
    }

    .option-info p {
        font-size: 12px;
    }

    .ok-button {
        font-size: 12px;
        padding: 7px 10px;
    }

    .consultation-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .consultation-option img {
        width: 30px;
        height: 30px;
    }

    .close {
        font-size: 18px;
    }
}

/*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;
    }
}
