/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: #6B46C1;
  --secondary-purple: #8B5CF6;
  --dark-purple: #4C1D95;
  --light-purple: #A78BFA;
  --lighter-purple: #DDD6FE;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --border-color: #E5E7EB;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(107, 70, 193, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

h1{
  text-align: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.9;
}

.header-logo img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.header-nav li {
  margin: 0;
}

.header-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.header-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Burger Menu Button */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.burger-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
  z-index: 1000;
  padding-top: 80px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 1rem;
  display: block;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

ul.footer-nav{
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-purple);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  color: var(--dark-purple);
  margin-bottom: 1rem;
  margin-top: 2rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Banner Images */
.banner-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.15);
  display: block;
}

.banner-image:first-of-type {
  margin-top: 0;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(107, 70, 193, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
  color: var(--white);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
  background-color: var(--lighter-purple);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* FAQ Styles */
dl {
  margin: 2rem 0;
}

dt {
  font-weight: 700;
  color: var(--primary-purple);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding: 1rem;
  background-color: var(--lighter-purple);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 3rem;
}

dt:hover {
  background-color: var(--light-purple);
  color: var(--white);
}

dt.active {
  background-color: var(--primary-purple);
  color: var(--white);
}

dt::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

dt.active::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

dd {
  margin-left: 0;
  margin-bottom: 1rem;
  color: var(--text-dark);
  padding: 1rem 1rem 1rem 2rem;
  border-left: 3px solid var(--light-purple);
  background-color: var(--bg-light);
  border-radius: 0 8px 8px 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
  color: var(--white);
  padding: 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-logo img {
  height: 35px;
  width: auto;
  margin-right: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.footer-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
  color: var(--white);
  font-size: 0.9rem;
}

/* 404 Page Styles */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
  line-height: 1;
}

.error-404 p {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Scroll to Top Button */
#scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

#scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

#scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.6);
}

/* Responsive Design */

/* PC - min 1025px */
@media (min-width: 1025px) {
  .header-container,
  .footer-container {
    flex-wrap: nowrap;
  }
}

/* Laptop - max 1024px */
@media (max-width: 1024px) {
  header {
    padding: 1rem 1.5rem;
  }

  .header-container {
    gap: 1.5rem;
  }

  .header-nav ul {
    gap: 1.5rem;
  }

  main {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  footer {
    padding: 1.5rem;
  }

  .footer-container {
    gap: 1.5rem;
  }
}

/* Tablet - max 768px */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .header-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  main {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1rem;
  }

  li {
    font-size: 1rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.8rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-nav {
    justify-content: center;
    gap: 1rem;
  }

  .footer-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }

  .error-404 h1 {
    font-size: 5rem;
  }

  .error-404 p {
    font-size: 1.3rem;
  }
}

/* Mobile L - max 425px */
@media (max-width: 425px) {
  #scroll-top-btn {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.3rem;
  }

  header {
    padding: 0.8rem;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .header-logo img {
    height: 32px;
  }

  .header-nav ul {
    gap: 0.5rem;
  }

  .header-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }

  main {
    padding: 0.8rem;
  }

  section {
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
  }

  p {
    font-size: 0.95rem;
  }

  li {
    font-size: 0.95rem;
  }

  ul, ol {
    margin-left: 1.5rem;
  }

  table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
  }

  th, td {
    padding: 0.6rem;
    white-space: nowrap;
  }

  dt {
    font-size: 1.1rem;
  }

  dd {
    font-size: 0.9rem;
  }

  footer {
    padding: 1rem 0.8rem;
  }

  .footer-logo {
    font-size: 1.1rem;
  }

  .footer-logo img {
    height: 28px;
  }

  .footer-nav {
    gap: 0.5rem;
    width: 100%;
  }

  .footer-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
  }

  .error-404 {
    padding: 3rem 1rem;
  }

  .error-404 h1 {
    font-size: 4rem;
  }

  .error-404 p {
    font-size: 1.1rem;
  }
}

/* Mobile M - max 375px */
@media (max-width: 375px) {
  .header-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .header-nav a {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.5rem;
  }

  .footer-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .footer-nav a {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  .error-404 h1 {
    font-size: 3.5rem;
  }
}

/* Mobile S - max 320px */
@media (max-width: 320px) {
  #scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.2rem;
  }

  header {
    padding: 0.6rem;
  }

  .header-logo {
    font-size: 1rem;
  }

  .header-logo img {
    height: 28px;
  }

  main {
    padding: 0.6rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
  }

  li {
    font-size: 0.9rem;
  }

  table {
    font-size: 0.7rem;
  }

  th, td {
    padding: 0.4rem;
  }

  .footer-logo {
    font-size: 1rem;
  }

  .footer-logo img {
    height: 24px;
  }

  .error-404 h1 {
    font-size: 3rem;
  }

  .error-404 p {
    font-size: 1rem;
  }
}

