/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: "Poppins", sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  z-index: 1000;
}

header h2 {
  color: #38bdf8;
  font-weight: 600;
}

/* ===== NAV ===== */
nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: #e5e7eb;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #38bdf8;
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #38bdf8;
}

/* ===== SLIDER ===== */
.slider {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ===== HERO ===== */
.hero {
  min-height: 80vh;
  background: linear-gradient(135deg, #1e3a8a, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  margin-top: 10px;
  font-size: 1.1rem;
}

.hero button {
  margin-top: 20px;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  background: white;
  color: #1e3a8a;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover {
  background: #0f172a;
  color: white;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
  padding: 70px 8%;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card h3 {
  margin-bottom: 10px;
}
.card a {
  text-decoration: none;
  color: white;
  cursor: pointer;
}
.card a:hover {
  color: #38bdf8;
}

.card p {
  color: #6b7280;
  font-size: 14px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ===== DARK SECTION ===== */
.dark {
  background: #0f172a;
  color: white;
}

.dark .card {
  background: #1e293b;
}

/* ===== FAQ ===== */
.faq {
  max-width: 700px;
  margin: auto;
  text-align: left;
}

.faq-item h4 {
  background: #e5e7eb;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.faq-item p {
  padding: 10px;
  display: none;
}

/* ===== FORM ===== */
form {
  max-width: 400px;
  margin: auto;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

button {
  background: #1e3a8a;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
}

button:hover {
  background: #38bdf8;
}

/* ===== FOOTER ===== */
footer {
  background: #0f172a;
  color: #9ca3af;
  padding: 20px;
  text-align: center;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .slider {
    height: 350px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 10px;
    justify-content: center;
  }

  nav a {
    margin: 8px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .slider {
    height: 250px;
  }

  section {
    padding: 50px 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  button {
    font-size: 14px;
  }
}
