/* ========== RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

body {
  background-color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
}

html {
  scroll-behavior: smooth;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
  background: #fff;
  border-radius: 10px;
}

/* ========== HEADINGS & TEXT ========== */
h1,
h2,
h3 {
  color: #222;
  margin-bottom: 15px;
  line-height: 1.3;
  margin-top: 20px;
}

p {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 300;
  text-align: justify;
}

h1,
h2 {
  text-align: center;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

/* ========== BUTTONS ========== */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
}

.register {
  background-color: #28a745;
}
.login {
  background-color: #007bff;
}
.download {
  background-color: #dc3545;
}

/* ========== GIFT CODE BOX ========== */
.gift-code {
  background: #f3f4f6;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
}

.code-box {
  background: #e5e7eb;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
}

/* ========== TABLE ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  vertical-align: top;
}

td:first-child {
  font-weight: bold;
  width: 40%;
  background: #f9fafb;
  word-break: break-word;
}

/* ========== LISTS ========== */
ul {
  margin: 15px 0 15px 20px;
}
ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

/* ========== SECTIONS & STEPS ========== */
.section {
  margin: 30px auto;
  padding: 20px;
  max-width: 1200px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.step {
  background-color: #f3f4f6;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: #28292b;
}

/* ========== FAQ SECTION ========== */
.faq-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.faq-item {
  background: #ece0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  padding: 0 18px;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 10px 18px 18px;
}

/* ========== IMAGES ========== */
.img-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.img-container img {
  max-width: 300px;
  height: auto;
  border-radius: 12px;
}


.banner-img {
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
  width: 100%;
  padding: 8px 0;
}

.banner-img img {
  width: 400px;
  height: auto;
  display: block;
  object-fit: contain;
}


/* header */

:root {
  --dark-bar: #2a2a2a;
  --light-brown: #ecc879;
  --green-gradient: linear-gradient(to right, #28e78a, #09e091);
}


.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* === TOP BAR === */
.top-bar {
  background-color: var(--dark-bar);
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;

}

.top-bar .btn {
  background-color: var(--light-brown);
  border: 1px solid black;
  padding: 8px 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 120px;
}

/* === HEADER === */
.header {
  background-color: var(--light-brown);

}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 45px;
  flex-wrap: wrap;
}

.logo img {
  height: 75px
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: black;
}

/* === DROPDOWN BASE === */
.dropdown {
  position: relative;   /* keep menu inside parent */
  display: inline-block;
}

.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: #111;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
  padding: 0px 15px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;   /* show below button */
  left: 0;
  background-color: #fff;
  min-width: 200px;
  z-index: 999;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #000;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Desktop hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* === MOBILE FIX === */
@media (max-width: 768px) {
  /* Disable hover dropdown on touch devices */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  /* When .active class is added (via JS), show menu */
  .dropdown.active .dropdown-content {
    display: block;
    position: relative;   /* stack inside flow */
    box-shadow: none;
  }

  .dropdown .dropbtn {
    width: 100%;
    text-align: left;
  }
}

.btn-download {
  background: linear-gradient(to right, #28e78a, #1cc28a);
  /* Updated green gradient */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-download:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .top-bar .btn {
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;

  }

  .nav {
    padding: 10px 20px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .header-actions {
    width: 100%;
  }

  .btn-download {
    width: 40%;
    text-align: center;
    align-items: center;
    margin-top: 20px;
    margin-left: 70px;
  }
}

/* Essential page */

@media (max-width: 576px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 22px;
  }

  h3{
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }
  p, li {
    font-size: 14px;
  }

  .buttons button {
    width: 100%;
    padding: 10px;
  }

  
}




/* footer */

.site-footer {
  background-color: #d6b46b;
  color: #000;
  padding: 40px 20px 20px;
  font-size: 15px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-column {
  flex: 1 1 220px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #000;

  margin-left: 30px;
}


.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #fff;
}

.footer-column p {
  color: #000;
  line-height: 1.6;
}

.footer-bottom p {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  color: #000;
}

.steps {
  font-size: 22px;
}

/* -----Style----of---- table----of---content------- */
/* Table of Contents */
details.toc-container {
  margin: 2rem 0;
  background-color: #231c21;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  max-width: 40%;   /* desktop */
}

/* TOC Title */
summary.toc-title {
  font-size: 1.2rem;
  font-weight: bold;
  padding: .6rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: #ecc879;
  color: #000;
  border-radius: 10px;
}

summary.toc-title::-webkit-details-marker {
  display: none;
}

summary.toc-title::before {
  content: "►";
  font-size: 0.8em;
  margin-right: 1rem;
  transition: transform 0.2s ease-in-out;
}

details[open] summary.toc-title::before {
  transform: rotate(90deg);
}

/* TOC List */
ul.toc-list {
  list-style: decimal;
  color: #fff;
  font-size: 17px;
  margin: 18px 16px 16px 30px;
  line-height: 31px;
  padding: 0;
}

ul.toc-list li {
  background-color: #3b3439;
  margin: 8px 0;
  padding: 4px 10px;
  color: #fff;
  border-radius: 6px;
}

ul.toc-list li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

ul.toc-list li a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE FIX === */
@media (max-width: 768px) {
  details.toc-container {
    max-width: 100%;
    margin: 1rem 0;
  }

  summary.toc-title {
    font-size: 1rem;
    padding: .5rem 1rem;
  }

  ul.toc-list {
    font-size: 15px;
    line-height: 26px;
    margin: 14px 12px 12px 22px;
  }

  ul.toc-list li {
    font-size: 15px;
    padding: 6px 8px;
  }
}
