body {
  font-family: "Poppins";
}

html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  font-family: "Poppins";
}

:root {
  --primary: #ce9800;
  --secondary: #88540b;
  --bg: #fffec2;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 7%;
  background-color: #f9f9f9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  color: var(primary);
}

.logo-name {
  font-weight: bold;
  font-size: 24px;
  color: #ce9800;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 10px;
}

.nav-logo {
  display: flex;
}

.navbar-nav a {
  color: #ce9800;
  justify-content: space-between;
  display: inline-block;
  margin: 0 0.5rem;
}

.navbar .navbar-nav a:hover {
  transition: 0.5s;
  color: var(--secondary);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  color: var(secondary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar-extra {
  display: none;
}

/* Styling untuk navbar */
.navbar-nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* Styling untuk dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: rgba(249, 249, 249, 0.9); /* Latar belakang transparan */
  min-width: 160px;
  z-index: 1;
  padding: 12px 0;
  margin-top: 17px;
  margin-left: 5px;
  left: 0;
  top: 100%;
  border-radius: 5px 5px 5px 5px;
  backdrop-filter: blur(5px); /* Efek blur untuk latar belakang */
}

/* Menampilkan dropdown saat kelas "show" ditambahkan */
.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-toggle {
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }
  .navbar .navbar-nav a {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .navbar #menuList {
    display: none;
  }
  .navbar-extra {
    display: flex;
    align-items: center;
  }

  .navbar-nav.active {
    display: block;
    width: 100%;
  }

  .hero {
    flex-direction: column;
    text-align: left;
    display: block;
  }

  .hero-content {
    flex-wrap: wrap-reverse;
    padding: 2rem 0;
  }

  .leftsection h1 {
    font-size: 35px;
    margin-top: -80px;
  }

  .rightsection img {
    width: 250px;
    height: 250px;
  }

  .rightsection {
    text-align: center;
  }

  #about {
    width: 100%;
  }

  .tentang {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .tujuan {
    order: -1;
  }

  .kiri {
    align-items: center;
  }

  .kanan {
    align-items: center;
  }

  .misi {
    margin-top: -20px;
  }

  .left-section {
    display: none;
  }

  .kang {
    display: none;
  }

  .nilai {
    display: flex;
    flex-direction: column;
  }

  .items {
    display: block;
  }

  .item {
    display: block;
    margin-bottom: 20px;
  }

  .lefts,
  .rights {
    width: 100%;
  }

  /* Move all .item elements into one column */
  .nilai .rights {
    margin-top: -20px; /* Adjust margin if needed to align */
  }

  .nilai .lefts .items,
  .nilai .rights .items {
    display: block;
  }

  .nilai .rights .item {
    margin-top: 0;
  }

  #profile {
    display: block;
    text-align: center;
  }

  .p-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .p-1 img {
    margin-top: 20px;
    margin-bottom: 5px; /* Add space between the image and the paragraph */
    width: 100%; /* Make image responsive */
    height: auto;
  }

  .p-1 p {
    margin-left: 0px;
    width: 100%;
    margin-bottom: -15px;
  }

  .footers .footer-container {
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .footer-container .contact-us .iii {
    float: none;
  }
  .quicklinks {
    width: 80%;
    order: 2; 
    text-align: left;
    margin-bottom: 40px;
  }
  .quicklinks .float-left {
    float: left;
  }

  .footer-container {
    align-items : left;
  }

  .center-section {
    order: 1; 
    text-align: left;
    align-items : left;
    margin-bottom: 40px;
    margin-top: -40px;
  }

  .contact-us {
    order: 3; 
    text-align: left;
    align-items : left;
    width: 80%;
  }

  .footer-bottom p {
  }
}

.hero {
  margin-top: 8rem;
  padding: 1.4rem 7%;
}

.hero-content {
  display: flex;
  justify-content: space-between;
}

.leftsection {
  margin-top: 6rem;
}

.tittle {
  font-size: 3.833rem;
  font-weight: 800;
  line-height: 70px;
  margin-top: -60px;
  color: var(--primary);
}

.RKDM {
  color: var(--secondary);
}

.desc {
  color: #333333;
  font-weight: 500;
  font-size: 0.9rem;
  max-width: 22rem;
  text-align: justify;
}

.profile {
  margin-top: 1rem;
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
}

.profile a {
  color: #fff;
}

.profile:hover {
  background: var(--secondary);
}

.right-section {
  align-items: end;
}

#about {
  background-color: var(--bg);
  padding: 2rem 7%;
  width: 100%;
}

.title {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.tentang {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.kiri,
.kanan {
  width: 100%;
  max-width: 800px; /* Atur sesuai kebutuhan Anda */
  margin: 0 auto; /* Agar kontainer rata tengah */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.kiri {
  text-align: left;
  flex-wrap: wrap-reverse;
  display: flex;
}

.visi,
.misi {
  background-color: var(--primary);
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 60px;
  padding-right: 30px;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
}

.tujuan {
  text-align: center;
  order: 3;
  background-color: var(--primary);
  padding: 20px 40px;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
}

.visi {
  margin-bottom: 20px;
}

.visi h2,
.tujuan h2,
.misi h2 {
  text-align: center;
  margin-bottom: 10px;
}

.tujuan p {
  text-align: center;
}

.misi {
  text-align: left;
}

#dedi {
  margin-top: 5rem;
  margin-bottom: 5rem;
  padding: 1.4rem 7%;
}

.dedi-content {
  display: flex;
  justify-content: center;
}

.left-section {
  margin-top: 6rem;
}

.kdm {
  color: var(--primary);
  text-align: center;
}

.kang {
  margin-top: 6rem;
}

.ks {
  color: var(--primary);
  text-align: center;
}

#nilai-nilai {
  background-color: var(--bg);
  padding: 2rem 7%;
  width: 100%;
}

.nilai {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.lefts,
.rights {
  width: 100%;
  max-width: 800px; /* Atur sesuai kebutuhan Anda */
  margin: 0 auto; /* Agar kontainer rata tengah */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.item {
  background-color: var(--primary);
  padding: 20px 40px;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
}

.desk {
}

.item h2 {
  font-size: 23px;
}

#profile {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.4rem 7%;
}

.pro {
  text-align: center;
  color: var(--primary);
}

.p-1 {
  display: flex;
  justify-content: center;
}

.paragraf1 {
  color: var(--primary);
  margin-top: 20px;
  width: 22rem;
  margin-left: 10px;
}

.organisasi {
  color: var(--primary);
  margin-top: 20px;
}

.paragraf3 {
  margin-top: 5px;
}

#kegiatan {
  background-color: var(--bg);
  margin-top: 2rem;
  margin-bottom: 5rem;
  padding: 1.4rem 7%;
}

#kegiatan h1 {
  color: var(--primary);
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem; /* Adjust the gap as needed */
  margin-top: 20px;
}

.gallery img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Responsive design for mobile screens */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    width: 180px;
    height: 180px;
  }
}

#footer {
  padding: 1.4rem 7%;
  justify-content: space-between;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.contact-us .iii {
  float: right;
}
.quicklinks,
.contact-us {
  flex: 1;
  text-align: left;
}

.quicklinks h4,
.contact-us h4 {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
}

.quicklinks ul,
.contact-us ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.quicklinks li,
.contact-us li {
  margin-bottom: 10px;
}

.quicklinks li a,
.contact-us li a {
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  color: #333;
}

.contact-us a {
  font-size: 12px;
}

.quicklinks li a:hover,
.contact-us li a:hover {
  color: #ce9800;
}

.contact-us li img {
  margin-right: 10px;
  vertical-align: middle;
}

.contact-us {
}

.center-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.logo-rkdm {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo-rkdm img {
  height: 75px;
  margin-right: 15px;
}

.logo-rkdm .name h4 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  color: #ce9800;
  text-align: left;
  font-size: 1.2rem;
}

.logo-rkdm .name span {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--primary);
}

.socmed {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.socmed a img {
  width: 40px;
  align-items: center;
  height: 40px;
}

.socmed a img {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.socmed img {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.socmed {
  margin-left: 40px;
}

.footer-bottom {
  bottom: 0;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: #333;
  border-top: 1px solid #eaeaea;
}

.center-section {
}

.footer-bottom p {
  margin: 0;
  padding: 10px 0;
}
