* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

html{
  scroll-behavior:smooth;
}

.container {
  width: 100%;
  height: 100vh;
}

.bg_img1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("image/gambarsekolah.png");
  background-position: center;
  background-size: cover;
}

.navbar {
  width: 100%;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  font-size: 14px;
  position: relative;
  z-index: 1000;
}

.logo {
  width: 100px;
  cursor: pointer;
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 20px;
  position: relative;
  font-size: 16px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.sidebar-only {
  display: none !important;
}

.nav-links li a:hover {
  color: lightblue;
}

.nav-links li:not(.sidebar-only)::after {
  content: '';
  height: 3px;
  width: 0;
  background: lightblue;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.5s;
}

.nav-links li:not(.sidebar-only):hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; 
    flex-direction: column;
    width: 70%; 
    height: 100vh;
    background: #232739; 
    position: fixed;
    top: 0;
    right: -70%;
    transition: right 0.4s ease;
    padding: 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    right: 0; 
  }

  .sidebar-only {
    display: block !important;
  }

  .sidebar-title {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .sidebar-title a {
    font-weight: bold;
    font-size: 18px;
    text-transform: none !important;
  }

  .nav-links li {
    margin: 0; 
    width: 100%;
    text-align: left; 
  }

  .nav-links li a {
    display: block;
    padding: 18px 25px;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links li a:hover, 
  .nav-links li.active a {
    background: #3a86ff; 
    color: white;
  }

  .sidebar-footer {
    margin-top: auto; 
    padding: 20px 25px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links li::after {
    display: none; 
  }

  .hamburger {
    display: block;
    z-index: 1001; 
  }
}

.header-text{
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: white;
  margin-top: 10px;
}

.header-text h1{
  font-size: 90px;
  margin: 10px;
}

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

.landing .text {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  text-align: center;
}

.landing .text h1 {
  color: rgb(242, 1, 255);
  font-size: 90px;
}

.header-text p{
  margin: 20px auto;
  font-weight: 100;
  line-height: 25px;
}

.header-button{
  width: 200px;
  padding: 15px 0;
  text-align: center;
  margin: 30px auto;
  border-radius: 25px;
  font-weight: bold;
  border: 2px solid lightblue;
  background: transparent;
  cursor: pointer;
  transition: 0.5s;
}

.header-button a{
  text-decoration: none;
  color: white;
}

.header-button:hover{
  background: lightblue;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6);
}

.content-section {
  width: 85%;
  max-width: 1100px; 
  margin: 80px auto;
  color: #2c3e50; 
  font-family: 'Montserrat', sans-serif;
}

.content-section.center {
  text-align: center;   
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

.popup:target {
  display: block;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: #fff;
  margin: 8% auto;
  padding: 30px;
  width: 80%;
  max-width: 1000px;
  max-height: 70%;
  border-radius: 10px;
  text-align: justify;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  overflow-y: auto;
}

.popup-img {
  width: 1000px;
  height: 500px;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #888;
}

.section-inner {
  display: flex;
  align-items: center;
  gap: 60px; 
  margin-bottom: 60px;
}

.section-inner.reverse {
  flex-direction: row-reverse;
}

.section-img {
  flex: 1;
}

.section-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease; 
}

.section-img img:hover {
  transform: scale(1.02); 
}

.section-text {
  flex: 1.2;
}

.section-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  margin-bottom: 20px;
  color: #1a4d2e;

  display: inline-block; 
  background-color: rgba(26, 77, 46, 0.1); 
  padding: 10px 25px;
  border-radius: 50px; 
  border-left: 5px solid #1a4d2e; 
}


.section-img-sejarah {
  flex: 1;
}

.section-img-sejarah img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease; 
}

.section-img-sejarah img:hover {
  transform: scale(1.02); 
}

.section-text-sejarah{
  flex: 1.2;
}

.section-text-sejarah h3 {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  margin-bottom: 15px;
  color: #222;
}

.section-text-sejarah p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.6;
  color: #1a4d2e;
  text-align: justify;
}

.section-inner.reverse .section-text h2::after {
  margin-left: auto;
  margin-right: 0;
}

.section-inner.reverse .section-text {
  text-align: right;
}

.section-text p {
  font-size: 25px;
  line-height: 1.8;
  color: #555;
  text-align: justify; 
}


@media (max-width: 768px) {
  .section-inner, 
  .section-inner.reverse {
    flex-direction: column; 
    gap: 30px;
    text-align: center;
  }

  .section-inner.reverse .section-text {
    text-align: center;
  }

  .section-text h2::after,
  .section-inner.reverse .section-text h2::after {
    margin: 10px auto; 
  }
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  margin-top: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  border: none;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6);
}

footer {
  background: black;
  position: relative;
  width: 100%;
  height: auto;
  padding: 50px 0px;
}

footer .f-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.5fr 0.5fr 1fr;
  grid-gap: 5px;
}

.footer-center,
.footer-right {
  padding-top: 50px;
}

footer h2 {
  position: relative;
  color: white;
  font-weight: 500;
  margin-bottom: 30px;
}

footer h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0px;
  width: 150px;
  height: 2px;
  background-color: white;
}

footer li {
  list-style-type: none;
}

.footer-left {
  display: flex;
  align-content: center;
  justify-content: center;
}

.footer-left img {
  margin: auto;
  width: 300px;
  height: 300px;
}

.footer-center li a {
  color: white;
  text-decoration: none;
  margin-bottom: 10px;
  display: inline-block;
  font-size: 20px;
}

.footer-center li a:hover {
  color: lightblue;
}

.icon {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 50px);
  grid-gap: 20px;
}

.icon li {
  list-style-type: none;
}

.icon li a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: grey;
  display: grid;
  align-content: center;
  justify-content: center;
  border-radius: 40%;
}

.icon li a img {
  width: 30px;
  height: 30px;
}

.icon li a:hover {
  background: lightblue;
}

@media (max-width: 768px) {
  footer .f-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-center, .footer-right {
    padding-top: 10px;
  }
}

.copyright {
  width: 100%;
  background: rgb(27, 27, 27);
  padding: 8px 0px;
  text-align: center;
  color: white;
}

.bg_img1, footer {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}