@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

h1 {
    color: hsla(229, 54%, 51%, 1);
    text-align: center;
    font-size: 3em;
    margin-top: 1.2em;
}

h2 {
    font-size: 2.5em;
}

.container {
    max-width: 1170px;
    margin: auto;
}

.kosongan {
    height: 200px;
}

/* 1. Style Header */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: hsla(229, 54%, 51%, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo img {
    width: 80px;
}

/* 1b. Style Menu */

.header .menu-container {
    position: relative;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.header .menu a,
.header .menu li {
    text-decoration: none;
    font-size: 16px;
    color: hsl(0, 0%, 100%);
    line-height: 1.5;
    transition: all 0.7s ease;
    position: relative;
}

.header .menu > li:hover {
    color: hsl(0, 0%, 80%);
}

.header .menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Adjust as needed to position the underline */
    left: 50%; /* Start from the center */
    width: 0; /* Initially no width */
    height: 1px; /* Thin underline */
    background-color: hsl(0, 0%, 100%);
    transition: all 0.3s ease;
}

.header .menu > li:hover a::after {
    left: 0; /* Expand from center to left edge */
    width: 100%; /* Full width */
}

.header .menu i {
    margin-left: 5px;
}

/* Animation untuk Sub-Menu */

.header .menu .sub-menu > li > a > span {
    background-image: linear-gradient(hsl(0, 0%, 100%), hsl(0, 0%, 100%));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.7s ease;
}

.header .menu .sub-menu li:hover > a > span {
    background-size: 100% 1px;
}

.header .menu .sub-menu i {
    transform: rotate(-90deg);
    right: 24px;
}

/* 1b-1. Style Sub Menu */

.sub-menu > li:first-child > a {
    padding-top: 15px;
}

.sub-menu > li:last-child > a {
    padding-bottom: 15px;
}

.sub-sub-menu > li:first-child > a {
    padding-top: 15px;
}

.sub-sub-menu > li:last-child > a {
    padding-bottom: 15px;
}

.sub-menu a {
    font-size: 16px;
    color: hsl(0, 0%, 100%);
    padding: 7.5px 12.5px;
    display: block;
}

.sub-menu {
    width: 230px;
    background-color: hsla(229, 54%, 51%, 0.7);
    backdrop-filter: blur(0px);
}

.sub-menu a,
.sub-menu li {
    text-decoration: none;
    list-style: none;
}

.header .menu-container .menu .sub-menu {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: none;
    transform-origin: top;
    transform: scaleY(0);
    box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
}

.header .menu-container .menu li:hover .sub-menu {
    transition: all 0.7s ease;
    transform: none;
    visibility: visible;
    opacity: 1;
}

/* 1b-2. Style Sub-Sub Menu */

.header .menu-container .menu .sub-sub-menu {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: none;
    transform-origin: top;
    transform: scaleY(0);
    box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
}

.header .menu-container .menu .sub-menu li:hover .sub-sub-menu {
    transition: all 0.5s ease;
    transform: none;
    visibility: visible;
    opacity: 1;
}

.sub-sub-menu {
    width: 230px;
    background-color: hsla(229, 54%, 51%, 0.7);
    backdrop-filter: blur(0px);
}

.header .menu-container .menu .sub-sub-menu.kiri {
    left: -100%;
    top: 0;
}

.header .menu .sub-sub-menu > li > a > span {
    background-image: linear-gradient(hsl(0, 0%, 100%), hsl(0, 0%, 100%));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.7s ease;
}

.header .menu .sub-sub-menu li:hover span {
    background-size: 100% 1px;
}

/* Style Header-Kanan */

.header-kanan > * {
    margin: 0 25px;
}

.header-kanan .icon-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: hsl(0, 0%, 100%);
    font-size: 16px;
}

.hamburger-menu {
    display: none;
}

/* Header Mobile */

@media (max-width: 768px) {
    .header .menu-container {
        display: none;
    }

    .hamburger-menu {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
    }

    .hamburger-menu i {
        font-size: 24px;
        color: #fff;
        transition: all 0.3s ease;
    }
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: hsla(229, 54%, 51%, 1);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.mobile-menu .close-btn:hover {
    color: hsl(0, 0%, 80%);
}

.mobile-menu .logo {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.mobile-menu .logo img {
    max-width: 150px;
}

.mobile-menu .search-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    text-align: left;
    color: #fff;
    transition: all 0.3s ease;
}

.search-btn i {
    visibility: hidden;
}

.mobile-menu .search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu .menu {
    display: block;
    padding: 0;
}

.mobile-menu .menu li {
    margin: 10px 0;
    background: none;
}

.mobile-menu .menu > li > a {
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 0;
    display: block;
    color: #fff;
    transition: all 0.3s ease;
    background: none;
}

.mobile-menu .menu a:hover {
    color: hsl(0, 0%, 80%);
}

.mobile-menu .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu .sub-menu.show {
    width: auto;
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-menu .sub-sub-menu {
    position: static;
    background: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu .sub-sub-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-menu .has-submenu i {
    transition: transform 0.3s ease;
}

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

/* /////////////////////// */
/* Hero Section and Slider */
/* /////////////////////// */

/* Hero Section and Slider */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsla(229, 54%, 51%, 0.1);
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: hsla(229, 54%, 51%, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: hsla(229, 54%, 51%, 0.9);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: white;
}

/* ////////////// */
/* Hero Section 2 */
/* ////////////// */

.h2-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.h2-slider-text {
    margin-top: 5vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    text-align: center;
    z-index: 2; /* Ensures the text appears above the slider */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Optional shadow for better readability */
}

.h2-slider-text-home {
    margin-top: 5vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    text-align: center;
    z-index: 2; /* Ensures the text appears above the slider */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1); /* Optional shadow for better readability */
}

.h2-slider {
    display: flex;
    width: 100vw;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.h2-slider img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(75%); /* Adjust percentage to control darkness */
}

.h2-slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

/* ///////////////// */
/* Draggable Section */
/* ///////////////// */

.draggable-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 30px;
}

.draggable-section p {
    font-weight: 600;
    color: hsla(229, 54%, 51%, 1);
}

.custom-draggable-slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 80%;
    gap: 30px;
    margin: 0 auto;
    user-select: none; /* Prevent text selection */
    height: 50%;
}

.draggable-slider-container {
    height: min-content;
    cursor: grab;
    display: flex;
    gap: 30px;
    overflow-y: hidden;
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

.draggable-slider-container:active {
    cursor: grabbing;
}

.draggable-slide {
    flex: 0 0 auto; /* Display 5 slides at a time */
    text-align: center;
}

.draggable-slide img {
    height: 200px;
    width: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.draggable-section h2 {
    margin-bottom: 30px;
    color: hsla(229, 54%, 51%, 1);
    text-align: center;
}

@media (max-width: 768px) {
    .custom-draggable-slider-container {
        width: 100%;
    }

    .draggable-slide img {
        height: 200px;
    }

    .draggable-slide:first-child {
        margin-left: 60px;
    }

    .draggable-slide:last-child {
        margin-right: 60px;
    }
}

@media (max-width: 480px) {
    .draggable-slide img {
        height: 150px;
    }
    
    .draggable-section h2 {
        margin-bottom: 0;
    }
}


.draggable-section p {
    text-align: center;
    margin: 0 5%;
}

@media (max-width: 419px) {

    .draggable-section p {
        margin: 0;
    }

}


/* Tentang Kami */

.counter-container {
    display: flex;
    justify-content: center;
    background: url("/image/TKIT Sholahuddin 1.jpg");
    background-position: center;
  }
  
  .counter-box-container {
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  
  .counter-box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    color: #fff;
    background: transparent;
    padding: 40px;
    border-radius: 10px;
    gap: 30px;
    flex: 1;
  }
  
  .counter-box:first-child {
    margin-left: 40px;
  }
  
  .counter-box:last-child {
    margin-right: 40px;
  }
  
  .counter-box * {
    margin: 0;
  }
  
  .counter-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #fff;
  }
  
  .counter-number {
    font-size: 36px;
    font-weight: bold;
  }
  
  .counter-label {
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  /* 2x2 grid for screen width below 670px */
  @media (max-width: 670px) {
    .counter-box-container {
      padding: 40px 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px; /* Adjust gap for smaller layout */
    }
  
    .counter-box {
      padding: 20px; /* Reduce padding size */
      gap: 20px;
    }

    .counter-box:first-child {
      margin-left: 0;
    }
    
    .counter-box:last-child {
      margin-right: 0;
    }
  
    .counter-icon {
      font-size: 30px; /* Smaller icon */
    }
  
    .counter-number {
      font-size: 24px; /* Smaller number */
    }
  
    .counter-label {
      font-size: 14px; /* Smaller label */
    }
  }

/* ////////////////// */
/* Video Kami Section */
/* ////////////////// */

.video-kami-container {
    margin: 50px 0
}

.video-kami {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: min-content;
}

.video-kami-container p {
    color: #007bff;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
}

.video-kami-container a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    font-size: 1.2em;
    transition: color 0.3s;
}

.video-kami-container a:hover {
    color: rgb(83, 50, 228); /* Lighter shade on hover */
}

.video-container {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.video-kami h2 {
    color: hsla(229, 54%, 51%, 1);
    text-align: center;
}

.video-description {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1em;
    color: #333;
}

.video-grid iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.video-grid iframe:hover {
    transform: scale(1.05);
}

@media (max-width: 1000px) {
    .video-grid {
        width: 100%;
        margin: 0 30px;
    }

    .video-kami iframe {
        height: auto;
    }
}

/* ///////////////////// */
/* Image Gallery Section */
/* ///////////////////// */

.image-gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    text-align: center;
}

.image-gallery-container h2 {
    color: hsla(229, 54%, 51%, 1);
}

.gallery-scroll-container {
    height: 400px;
    width: 90%;
    overflow-y: auto; 
    border: 1px solid #ccc; 
    padding: 10px; 
    border-radius: 8px;
    margin: 40px 0;
}

.image-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: hsla(229, 54%, 51%, 0.7);
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    color: black;
}
  
.modal-button:hover {
    background-color: hsla(229, 54%, 51%, 0.9);
}

.modal-button.prev {
    left: 10px;
}

.modal-button.next {
    right: 10px;
}

/* //////////// */
/* Style Footer */
/* //////////// */

/* Footer Styles */
.footer {
    background-color: #1a2942;
    /* background-color: hwb(229 17% 7%); */
    padding: 60px;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-big-column {
    display: flex;
}

.footer-big-column:first-child {
    margin-left: 50px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    margin-bottom: 30px;
    padding-right: 30px;
}

.footer-map {
    flex: 1.5;
}

.map-container {
    height: 300px;
    width: 300px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    display: block;
}

.address {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.address i {
    margin-right: 8px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column ul li a span {
    background-image: linear-gradient(hsl(0, 0%, 100%), hsl(0, 0%, 100%));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.5s ease;
    padding-bottom: 2px;
}

.footer-column ul li a:hover span {
    background-size: 100% 1px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social i {
    font-size: 1em;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
}

/* Footer Style-Responsive */

@media (max-width: 419px) {

    .footer {
        padding: 20px 20px;
    }
}

/* Responsive Design */
@media (max-width: 850px) {

    /* Untuk Header */

    h1 {
        font-size: 2.25em;
    }

    h2 {
        font-size: 2em;
    }

    .h2-slider-text {
        font-size: 3rem;
    }

    .h2-slider-text-home {
        font-size: 3rem;
    }
    
    /* Untuk Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-big-column {
        flex-direction: column;
        align-items: center;
    }

    .footer-big-column:first-child {
        margin-left: 0;
        margin-top: 30px;
    }
    
    .footer-column {
        padding-right: 0;
        min-width: 0;
        margin-bottom: 30px;
        padding-right: 0px;
        text-align: center;
    }

    .footer-column h3 {
        margin-bottom: 15px;
    }

    .footer-column ul li {
        margin-bottom: 5px;
    }
    
    .footer-map {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: -1;
        margin-bottom: 40px;
    }
    
    .map-container {
        max-width: 90%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 15px;
    }
}

/* /////////////////////// */
/* Tentang Yayasan Section */
/* /////////////////////// */

.tentang-yayasan {
    background: url('./image/Home-Tentang.jpg') no-repeat center / cover fixed;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Menambahkan posisi relatif untuk konteks */
}

.tentang-yayasan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.content-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column; /* Mengatur menjadi flex column */
    max-width: 90%;
    width: 600px;
    margin: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
    gap: 40px;
}

.content-overlay h2 {
    color: hsla(229, 54%, 51%, 1);
    text-align: center;
}

.content-overlay p {
    text-align: center;
    margin: 0 5%;
}

@media (max-width: 419px) {

    .content-overlay p {
        margin: 0;
    }
}

.content-overlay div {
    display: flex;
    justify-content: flex-end;
}

.selengkapnya-link {
    color: #007bff; /* Warna teks untuk link */
    text-decoration: none; /* Menghapus garis bawah */
    font-weight: 500;
    transition: color 0.3s ease; /* Animasi transisi warna */
}

.selengkapnya-link:hover{
    color: #0056b3; /* Warna saat hover */
}