/* Base styles for the header */
header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    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;
    margin-bottom: 8px;
}

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 */
}

/* Slider styles for desktop hero */
#hero {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
    /* width: 1240px; */
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 1s ease;
    background-size: cover;
    width: auto;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex: 1 0 100%;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5); */
    z-index: 1;
}

#hero .hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    text-align: left;
    max-width: 600px;
}

.hero-content h1 {
    font-family: "montserrat", sans-serif;
}

.navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.nav-btnhero {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-btnhero.active,
.nav-btnhero:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background: #f0ede0;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.footer-section {
    width: 23%;
    padding: 0px;
    margin-bottom: 8px;
}

.footer-section.hubungi-kami {
    margin-right: 10px;
}

.footer-section h2 {
    font-family: "roboto", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 8px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    margin: 0 0 8px 0;
}

.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;
}

.social-icon {
    width: 24px;
    height: 24px;
    background-size: cover;
}

.hubungi-kami-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 11px;
}

.footer-underline {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0;
}

.footer-underline-short {
    border-bottom: 2px solid #000000;
    width: 100%;
    margin: 10px 0;
}

.logos {
    display: flex;
    gap: 10px;
    justify-content: right;
    align-items: center;
    width: 100%;
}

.logos img {
    width: 40px;
    height: auto;
    display: inline-block;
}

.logos img.peradi {
    width: 80px;
}

.footer-section img.logo {
    display: block;
    margin-top: 20px;
    width: 180px;
}

/*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;
    }
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
    #hero {
        height: 500px;
    }

    .hero-content {
        left: 5%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #hero {
        height: 400px;
    }

    .hero-content {
        left: 5%;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .navigation {
        bottom: 10px;
    }

    .nav-btnhero {
        width: 10px;
        height: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    #hero {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }
}

/* responsive jargon */
/* Responsive Styling */
@media (max-width: 768px) {
    #Allah p {
        font-size: 0.8em; /* Reduce font size on smaller screens */
    }

    #Allah p::after {
        width: 100%; /* Narrower line on smaller screens */
    }
}

@media (max-width: 480px) {
    #Allah p {
        font-size: 0.75em; /* Further reduce font size on very small screens */
    }

    #Allah p::after {
        width: 100%; /* Further reduce the width of the line */
    }
}

/* consultation option responsive */
/* Responsive Styling */
@media (max-width: 1024px) {
    .consultation-options {
        gap: 15px;
    }

    .option {
        width: 250px;
        height: 350px;
        padding: 20px;
    }

    .option h3 {
        font-size: 18px;
    }

    .option p {
        font-size: 0.9em;
    }

    .option ul li {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .consultation-options {
        gap: 10px;
    }

    .option {
        width: 220px;
        height: 320px;
    }

    .option h3 {
        font-size: 16px;
    }

    .option p {
        font-size: 0.85em;
    }

    .option ul li {
        font-size: 0.8em;
    }

    .icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .consultation-options {
        flex-direction: column;
        gap: 20px;
    }

    .option {
        width: 100%;
        padding: 20px;
        height: auto;
    }

    .option h3 {
        font-size: 16px;
    }

    .option p {
        font-size: 0.8em;
    }

    .option ul li {
        font-size: 0.75em;
    }

    .icon {
        width: 40px;
        height: 40px;
    }
}

/* services responsive */
/* Responsive Styling */
@media (max-width: 1024px) {
    .service {
        width: 180px;
    }

    .service p {
        font-size: 15px;
    }

    .additional-service-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .service {
        width: 150px;
    }

    .service img {
        width: 50px;
    }

    .service p {
        font-size: 14px;
    }

    .additional-service-button {
        padding: 8px 14px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .service {
        width: 100%;
        margin-bottom: 20px;
    }

    .service img {
        width: 40px;
    }

    .service p {
        font-size: 13px;
    }

    .additional-service-button {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

/*comment responsive*/
/* Responsive Styles */
@media (max-width: 1024px) {
    .comment-header .avatar {
        width: 40px;
        height: 40px;
    }

    .user-info h3 {
        font-size: 15px;
    }

    .user-info p {
        font-size: 13px;
    }

    .comment-text {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .comments-container {
        width: 100%;
        padding: 0 15px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-header .avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .comment-text {
        font-size: 10px;
    }

    .user-info h3 {
        font-size: 14px;
    }

    .user-info p {
        font-size: 12px;
    }

    .reply {
        padding-left: 20px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .comments-container {
        width: 100%;
        padding: 0 10px;
    }

    .comment-header .avatar {
        width: 30px;
        height: 30px;
    }

    .user-info h3 {
        font-size: 13px;
    }

    .user-info p {
        font-size: 12px;
    }

    .comment-text {
        font-size: 10px;
    }

    .reply {
        padding-left: 15px;
        margin-left: 10px;
    }
}

/* add comment, nav btn comment responsive */
/* Responsive Styles */
@media (max-width: 768px) {
    .add-comment h3 {
        font-size: 18px;
    }

    .add-comment form textarea {
        height: 80px;
        font-size: 14px;
    }

    .add-comment form button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }

    .arrow-left,
    .arrow-right {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .add-comment h3 {
        font-size: 16px;
    }

    .add-comment form textarea {
        height: 60px;
    }

    .add-comment form button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .nav-btn {
        width: 30px;
        height: 30px;
    }

    .arrow-left,
    .arrow-right {
        font-size: 18px;
    }

    .comment-navigation {
        width: 90%;
        justify-content: space-around;
    }
}

/* pop up responsive */
/* Responsive styles */
@media (max-width: 768px) {
    .popup-content {
        width: 90%;
        padding: 20px;
    }

    .popup .close {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 95%;
        padding: 15px;
    }

    .popup-content label {
        font-size: 12px;
    }

    .popup-content input {
        font-size: 12px;
        padding: 8px;
    }

    .popup-content small {
        font-size: 10px;
    }

    .popup .close {
        font-size: 18px;
    }
}

/* submit btn responsive  */
/* Responsive styles */
@media (max-width: 768px) {
    .submit-button {
        font-size: 14px;
        padding: 8px; /* Kurangi padding untuk layar yang lebih kecil */
    }

    .error-message {
        font-size: 11px; /* Sesuaikan ukuran font pesan kesalahan */
    }
}

@media (max-width: 480px) {
    .submit-button {
        font-size: 12px;
        padding: 6px; /* Lebih kecil lagi untuk perangkat mobile */
    }

    .error-message {
        font-size: 10px; /* Pesan kesalahan lebih kecil di perangkat kecil */
    }

    .submit-button:enabled {
        background-color: #4caf50;
        color: white;
        cursor: pointer;
    }
}

/* pop up container,content, & close responsive */
/* Responsive styles */
@media (max-width: 768px) {
    .popup-content {
        width: 90%; /* Sesuaikan lebar untuk tablet */
        padding: 15px; /* Kurangi padding untuk layar lebih kecil */
    }

    .popup-content button {
        font-size: 14px; /* Sesuaikan ukuran font untuk tombol */
        padding: 12px 16px;
    }

    .close {
        font-size: 24px; /* Sesuaikan ukuran tombol close */
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 95%; /* Lebih kecil lagi untuk layar ponsel */
        padding: 10px;
    }

    .popup-content button {
        font-size: 12px;
        padding: 10px 12px;
    }

    .close {
        font-size: 20px;
    }
}

/* responsive isi (about us) */
/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
    #about-us .section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 40px;
    }

    #about-us .about-images,
    #about-us .achievement-image {
        width: 50%;
        margin: 20px 0;
    }

    #about-us .about-text,
    #about-us .achievement-text {
        width: 80%;
        margin: 0;
    }

    #about-us h2 {
        font-size: 1.8rem;
    }

    #about-us p {
        font-size: 1rem;
        line-height: 1.4;
    }

    #about-us .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    #about-us .section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    #about-us .about-images,
    #about-us .achievement-image {
        width: 70%;
        margin: 15px 0;
    }

    #about-us .about-text,
    #about-us .achievement-text {
        width: 90%;
        margin: 0;
    }

    #about-us h2 {
        font-size: 1.5rem;
    }

    #about-us p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    #about-us .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* For smaller mobile devices */
@media (max-width: 480px) {
    #about-us .about-images,
    #about-us .achievement-image {
        width: 80%;
    }

    #about-us .about-text,
    #about-us .achievement-text {
        width: 95%;
    }

    #about-us h2 {
        font-size: 1.3rem;
    }

    #about-us p {
        font-size: 0.8rem;
    }

    #about-us .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/*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;
    }
}
