/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  min-height: 100vh;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}


/* NAVBAR */

.navbar {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  justify-content: space-around;
  align-items: center;
  padding: 20px 20px;

  .logo {
    display: flex;
    align-items: center;

    img {
      width: 100%;
      max-width: 280px;
    }
  }
  
  .header-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;


    .badges {
      display: flex;
      column-gap: 1rem;
      row-gap: 8px;
      flex-wrap: wrap;
      justify-content: space-between;

      .btn {
        width: max-content;
        padding: 5px 10px;
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
        border: none;
        border-radius: 5px;
  
        &.ppid {
          background-color: #ff5c5c;
          color: #fff;
        }
        
        &.privacy-policy {
          background-color: #4caf50;
          color: #fff;
        }
        
        &.date {
          background-color: #ffdd21;
          color: #fff;
        }
      }
    }

    .social-icons {
      display: flex;
      gap: 10px;

      .icon-circle {
        position: relative;
        background-color: #4db8ff;
        border-radius: 50%;
        width: 30px;
        height: 30px;

        img {
          position: absolute;
          inset: 50%;
          transform: translate(-50%, -50%);
          width: 16px;
          height: 16px;
        }

        a {
          text-decoration: none;
        }

        &:hover {
          background-color: #6d6969;
        }
      }
    }
  }
}

@media (max-width: 852px) {
  .navbar {
    flex-direction: column;

    .header-right {
      flex-direction: column;
    }
  }
}


/* HEADER BOTTOM */

.header-bottom {
  padding: 20px 0;
  text-align: center;
  background-color: #1e4ea1;
  background-position: center;

  .hamburger {
    display: none;
    text-align: start;
    cursor: pointer;
    padding: 10px 2rem;
    font-size: 24px;
    color: white;
    background-color: #1e4ea1;
  }

  .nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    position: relative;
    gap: 20px;
    font-weight: 600;
    z-index: 1;

    & > li {
      cursor: pointer;
      font-size: 16px;
      color: white;
    }
  
    .dropdown {
      position: relative;
  
      .arrow {
        width: 10px;
        margin-left: 5px;
      }

      &:hover {
        .dropdown-content {
          display: block;
        }

        .arrow {
          transform: scaleY(-1);
        }
      }
  
      .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min-width: 200px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
      
        li {
          padding: 10px;
          color: black;
          text-align: left;
          list-style: none;
      
          &:hover {
            background-color: #ddd;
            color: black !important;
          }
      
          a:hover {
            color: black !important; 
          }
        }
      }
    }
  }
}

@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    padding: 10px;
    
    .logo {
      margin-left: 0;
      margin-bottom: 10px;
    }
  
    .header-right {
      display: none;
    }
  }

  .header-bottom {
    position: relative;
    z-index: 99;

    .hamburger {
      display: block;
    }

    .nav-links {
      display: flex;
      flex-direction: column;
      gap: 0;
      width: 80vw;
      position: absolute;
      top: 100%;
      left: -80vw;
      z-index: 99;
      background-color: #366ac5;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transition: left 0.3s ease;
      
      li {
        padding: 16px 20px;
        text-align: start;
        width: 100%;

        .arrow {
          float: right;
          margin-top: 5px;
        }

        &:hover {
          background-color: #5187e4;
        }

        .dropdown-content {
          position: relative !important;
          margin: 20px 0;
          z-index: 999;
        }
      }
  
      &.active {
        display: flex;
        left: 0;
      }
    }
  }
}


/* FLOATING ICON */

.floating-icons {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 99;

  .icon-circle {
    display: none;
    width: 80px;
    height: 80px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    background-color: transparent;
  
    img {
      max-width: 100%;
      max-height: 100%;
      width: 70px;
      height: 70px;
      object-fit: contain;
    }
  }

  .icon-toolbar {
    position: relative;
    transform: rotate(45deg);
    width: 70px;
    height: 70px;
    margin: 0 5px;
    color: white;
    font-size: 1.5rem;
    background-color: #1e4ea1;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;

    p {
      position: absolute;
      top: calc(50% - 1px);
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

  &.active {
    .icon-toolbar {
      transform: rotate(0);
    }

    .icon-circle {
      display: flex;
    }
  }
}

/* COMMON LAYOUT */

.row {
  display: flex;
  flex-wrap: nowrap;
  overflow-y: auto; 
  gap: 20px;
  padding: 8px;
}

.col-md-4 {
  max-width: calc(33.3333% - 20px);
  display: flex;
}

@media (max-width: 1100px) {
  .col-md-4 {
    min-width: 320px;
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .col-md-4 {
    max-width: 100%;
  }
}
.mt-3 {
  margin-top: 20px;
}

.mt-5 {
  margin-top: 40px;
}

@media (max-width: 576px) {
  .container {
    padding: 10px;
  }

  .section-title {
    font-size: 24px;
  }

  .category-title {
    font-size: 20px;
  }

  .article-content h5 {
    font-size: 16px;
  }
}


/* FOOTER */

.footer {
  background: linear-gradient(to right, #000428, #004e92);
  color: white;
  padding: 30px 0;
  
  .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;

    .logo {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin-right: 40px;

      img {
        width: 300px;
        height: auto;
      }

      p {
        font-size: 14px;
        line-height: 1.6;
        margin: 5px 0;
      }

      .bold-text {
        font-weight: bold; /* Menebalkan hanya teks dalam elemen span */
      }

      .social-icons {
        a {
          color: white;
          font-size: 22px;
          text-decoration: none;
          margin-right: 20px;
        }

        a:last-child {
          margin-right: 0;
        }
      }
    }

    .section {
      flex: 1;
      text-align: left;
      margin: 0 20px;
      
      h3 {
        font-size: 20px;
        margin-bottom: 15px;
        color: #ffffff;
        font-weight: bold;
      }
      
      ul {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
          margin-bottom: 10px; /* Jarak antar item list */
          color: #cfcfcf;
          font-size: 14px;
          line-height: 1.5;

          a {
            color: white;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 15px;
            font-weight: 500;

            &:hover {
              color: #f1f1f1;
            }
          }
        }
      }

      p {
        margin-bottom: 18px;
        color: white;
        font-size: 15px;
        font-weight: 500;
      }
    }

    .map {
      text-align: center;
    
      h3 {
        font-size: 20px;
        margin-bottom: 15px;
        color: white;
        font-weight: bold;
      }
    
      iframe {
        width: 100%;
        height: 250px;
        border-radius: 5px;
        margin-top: 10px;
      }
    }
  }

  .copyright {
    margin-top: 30px;
    font-size: 14px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
  }
}

@media screen and (max-width: 1000px) {

  .footer .container {
    flex-direction: column;
    align-items: center; 
    
    .logo {
      margin-right: 0;
      text-align: center;
      margin-bottom: 20px;
      align-items: center;
    }

    .section {
      margin: 20px 0;
      text-align: center;
      
  
      ul li {
        font-size: 13px;
      }
  
      h3 {
        font-size: 18px;
      }
    }

    .map {
      iframe {
        height: 200px;
      }
    }
  }

  /* Media Query untuk perangkat menengah (tablet) */
  @media screen and (max-width: 1024px) and (min-width: 768px) {
    .footer .social-icons a {
      font-size: 28px !important;
    }
  }

  /* Media Query untuk perangkat kecil (mobile) */
  @media screen and (max-width: 767px) {
    .footer .social-icons a {
      font-size: 24px !important;
    }
  }

  /* Media Query untuk perangkat besar (desktop) */
  @media screen and (min-width: 1025px) {
    .footer .social-icons a {
      font-size: 30px !important;
    }
  }
}
