@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Poppins:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 90vh;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 100px 5% 50px;
  overflow: hidden;
  gap: 30px;
}

.hero-content-left {
  flex: 1.2;
  max-width: 700px;
  text-align: left;
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.illustration-placeholder {
  width: 100%;
  max-width: 500px;
  height: 400px;
  background-color: #ffffff;
  content: url(../img/Exams-amico.png);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #4a5568;
  font-size: 1.5rem;
}

.illustration-placeholder i {
  font-size: 3rem;
  color: #2b6cb0;
  margin-bottom: 10px;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a202c !important;
  line-height: 1.2;
  margin-bottom: 1rem;
  opacity: 1;
  animation: none;
  text-align: left;
}

.hero-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 2rem;
  max-width: none;
  opacity: 1;
  animation: none;
}

@media screen and (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-content-left,
  .hero-illustration {
    max-width: 100%;
    flex: 1;
  }
  .hero-content-left {
    order: 2;
    text-align: center;
  }
  .hero-illustration {
    order: 1;
    margin-bottom: 30px;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

/* --- Navbar --- */
.navbar-smp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  background-color: #1a3c6e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-smp .logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.navbar-smp .nav-links li a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-smp .nav-links li a:after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #f6ad55;
  transition: width 0.3s ease-in-out;
}

.navbar-smp .nav-links li a:hover:after {
  width: 80%;
}

.navbar-smp .nav-links li a:hover {
  color: #f6ad55;
}

.btn-login {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-login::after {
  display: none !important;
}

.navbar-smp.scrolled {
  background-color: #122d54;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar-smp.scrolled .logo a {
  color: #ffffff;
}

.navbar-smp.scrolled .nav-links li a {
  color: #ffffff;
}

.navbar-smp.scrolled .nav-links li a:hover {
  color: #f6ad55;
}

/* --- Dropdown --- */
.nav-links .dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 95%;
  left: 0;
  background-color: #2563eb;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  padding: 10px 15px;
  display: block;
  font-size: 1rem;
  color: #000000;
  white-space: nowrap;
  transition: color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #2563eb;
  color: #000000;
}

.navbar-smp.scrolled .dropdown-menu {
  background-color: #1a3c6e;
}

.navbar-smp.scrolled .dropdown-menu li a {
  color: #ffffff;
}

.navbar-smp.scrolled .dropdown-menu li a:hover {
  background-color: #122d54;
  color: #f6ad55;
}

.dropdown > a i {
  transition: transform 0.3s ease;
}

.dropdown:hover > a i {
  transform: rotate(180deg);
}

/* --- CTA Button --- */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  margin-top: 2rem;
  background-color: #f6ad55;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(246, 173, 85, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #dd9a4c;
  transform: translateY(-5px);
}

/* --- Tentang Kami --- */
main {
  padding: 0;
}

.about-us {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 80px 5%;
  background-color: #f0f2f5;
  gap: 40px;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  text-align: left;
}

.about-text h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
}

.about-text p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Visi & Misi --- */
.visi-misi-section {
  padding: 80px 5%;
  background-color: #fff;
  text-align: center;
}

.visi-misi-section .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.visi,
.misi {
  flex-basis: 100%;
  max-width: 500px;
}

.visi h3,
.misi h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.visi p,
.misi ul {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  text-align: left;
}

.misi ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.misi ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.misi ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #f6ad55;
}

/* --- Galeri --- */
.gallery-section {
  padding: 80px 5%;
  text-align: center;
  background-color: #fff;
}

.gallery-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1.1rem;
  color: #718096;
  margin-bottom: 3rem;
}

.gallery-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.gallery-slider {
  overflow: hidden;
  border-radius: 10px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.gallery-item {
  min-width: calc(33.333% - 14px);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: filter 0.3s;
}

.gallery-item:hover img {
  filter: brightness(70%);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 0;
}

.gallery-nav.next {
  right: 0;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .caption {
  opacity: 1;
}

/* --- Berita & Alumni --- */
.berita-section,
.alumni-section {
  padding: 80px 5%;
  text-align: center;
  background-color: #f7fafc;
}

.alumni-section {
  background-color: #fff;
}

.berita-section h2,
.alumni-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 3rem;
}

.berita-container,
.alumni-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.berita-slider,
.alumni-slider {
  overflow: hidden;
  border-radius: 10px;
}

.berita-track,
.alumni-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
}

.berita-item {
  min-width: calc(33.333% - 20px);
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: left;
}

.alumni-card {
  min-width: calc(50% - 15px);
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.berita-item:hover,
.alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.berita-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-top: 0;
  margin-bottom: 15px;
}

.berita-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 1rem;
}

.berita-nav,
.alumni-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 10;
}

.berita-nav:hover,
.alumni-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.berita-nav.prev,
.alumni-nav.prev {
  left: 0;
}

.berita-nav.next,
.alumni-nav.next {
  right: 0;
}

.alumni-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #f6ad55;
}

.alumni-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1a202c;
}

.alumni-card p {
  font-size: 0.9rem;
  color: #4a5568;
  margin-top: 5px;
}

/* --- Fitur Unggulan --- */
.features-section {
  padding: 80px 5%;
  background-color: #fff;
  text-align: center;
}

.features-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: #f7fafc;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.12);
}

.feature-card i {
  font-size: 3rem;
  color: #f6ad55;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }
  .navbar-smp .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
  }
  .navbar-smp .nav-links.active {
    display: flex;
  }
  .navbar-smp .nav-links li {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
  }
  .navbar-smp .nav-links li:last-child {
    border-bottom: none;
  }
  .navbar-smp .nav-links li a {
    display: block;
    padding: 15px 20px;
    text-align: left;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section p {
    font-size: 1.2rem;
  }
  .about-us {
    flex-direction: column;
  }
  .about-image {
    order: 2;
  }
  .footer-column {
    flex-basis: 100%;
    text-align: center;
  }
  .gallery-item,
  .berita-item,
  .alumni-card {
    min-width: 100%;
  }
  .gallery-container,
  .berita-container,
  .alumni-container {
    padding: 0 50px;
  }
}

@media screen and (min-width: 768px) {
  .about-us {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }
  .about-image,
  .about-text {
    flex-basis: 50%;
  }
  .about-image {
    order: 1;
  }
  .visi,
  .misi {
    flex-basis: 45%;
  }
  .footer-column {
    flex-basis: 30%;
    text-align: left;
  }
  .info-column {
    flex-basis: 35%;
  }
  .social-column {
    flex-basis: 25%;
  }
}

/* --- Footer --- */
.main-footer {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 50px 5%;
  font-family: "Poppins", sans-serif;
}

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

.footer-column {
  flex-basis: 100%;
  text-align: center;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-column p,
.footer-column li a {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #a0aec0;
}

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

.footer-column ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #fff;
}

.social-icons a {
  color: #a0aec0;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #4a5568;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #718096;
}

/* --- Back to Top --- */
.back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 1.5rem;
  background-color: #2b6cb0;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.3s;
}

.back-to-top-btn:hover {
  background-color: #1e4e84;
  transform: scale(1.1);
}

.back-to-top-btn.show {
  display: block;
}