/* ======================================================
   STYLE CSS - SMA NEGERI 2 PEKALONGAN
   Modern • Clean • Professional
   ====================================================== */

/* ================= GLOBAL ================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fc;
  color: #333;
}

h1, h2, h3, h4, h5 {
  letter-spacing: 0.5px;
}

.section-title {
  font-weight: 700;
  color: #004aad;
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-weight: 700;
}

.hero-section p {
  max-width: 650px;
  margin: auto;
}

/* Wave effect bottom */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(to top, #f8f9fc, transparent);
}
/* ================= FEATURE CARD ================= */
.feature-card {
  border-radius: 18px;
  transition: all 0.35s ease;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

/* Efek background halus saat hover */
.feature-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,74,173,0.05), rgba(0,120,255,0.08));
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.4s;
}

.feature-card:hover::before {
  opacity: 1;
}

/* Icon animation */
.feature-icon i {
  transition: 0.4s;
}

.feature-card:hover .feature-icon i {
  transform: scale(1.2) rotate(5deg);
}

/* ================= CARD ================= */
.card {
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.card img {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  height: 200px;
  object-fit: cover;
}

/* ================= BUTTON ================= */
.btn {
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #004aad, #0078ff);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #003580, #0059cc);
}

.btn-warning {
  border: none;
}

/* ================= NAVBAR ================= */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: #004aad !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #004aad;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ================= STAT SECTION ================= */
.stat-card {
  border-radius: 16px;
}

/* ================= FORM ================= */
.form-control {
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: #004aad;
  box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.15);
}

textarea.form-control {
  resize: none;
}

/* ================= CTA SECTION ================= */
.cta-section {
  background: linear-gradient(135deg, #003580, #0059cc);
}

.cta-section h2 {
  font-weight: 700;
}

/* ================= FOOTER ================= */
footer {
  background: #002b66;
  color: #fff;
  padding: 20px 0;
}

footer a {
  color: #ffc107;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* ================= SCROLL TOP BUTTON ================= */
#scrollTopBtn {
  z-index: 999;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .card img {
    height: 180px;
  }

}
