/* ------------------------------
   Global Styles - CodeAndRank
   ------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* ------------------------------
   Layout Containers
   ------------------------------ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.section {
  margin-bottom: 60px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ------------------------------
   Header & Navigation
   ------------------------------ */
header {
  background-color: #0a1a44;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  max-height: 55px;
}

.main-nav a {
  color: #fff;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #00b8ff;
}

/* ------------------------------
   Hero Section
   ------------------------------ */
.hero {
  position: relative;
  height: 80vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  color: white;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
}

/* ------------------------------
   Buttons
   ------------------------------ */
.btn {
  display: inline-block;
  background-color: #0a1a44;
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #132c70;
}

/* ------------------------------
   Images
   ------------------------------ */
img {
  max-width: 100%;
  border-radius: 10px;
  height: auto;
  display: block;
  margin: auto;
}

/* ------------------------------
   FAQ Section
   ------------------------------ */
.faq {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  background-color: #f5f5f5;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 14px 18px;
  background-color: #fafafa;
}

.faq-answer.active {
  display: block;
}

/* ------------------------------
   Footer
   ------------------------------ */
footer {
  background-color: #0a1a44;
  color: white;
  text-align: center;
  padding: 30px 10px;
  margin-top: 40px;
}

footer a {
  color: #00b8ff;
  text-decoration: none;
  margin: 0 8px;
}

/* ------------------------------
   WhatsApp Floating Button
   ------------------------------ */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  padding: 14px 16px;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #1ebe5b;
}

/* ------------------------------
   Responsive Design
   ------------------------------ */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .main-nav a {
    margin-left: 15px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    height: 55vh;
  }
}
