/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-pink: #FFE5E5;
  --light-pink: #FFF0F0;
  --medium-pink: #FFD6D6;
  --dark-pink: #FFB3B3;
  --accent-pink: #FF9999;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  --border-color: #FFCCCC;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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(--light-pink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 82px;
}

/* Header Styles */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(255, 182, 193, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--border-color);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo .logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-pink);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-pink);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem 2rem;
  width: 100%;
}

/* Banner Styles */
.banner-container {
  width: 100%;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.banner-full {
  max-height: 60vh;
  min-height: 300px;
}

.banner-medium {
  max-height: 400px;
}

/* Hero Banner with H1 */
.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  margin-bottom: 2rem;
}

.hero-banner .banner-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  min-height: 200px;
  object-fit: cover;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 10;
}

/* Sections */
section {
  margin-bottom: 3rem;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 182, 193, 0.15);
}

section h1 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
}

section h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

section p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

section ul, section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

section li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

section strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 182, 193, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background-color: var(--medium-pink);
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

table tbody tr:hover {
  background-color: var(--primary-pink);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* Definition List (FAQ) */
dl {
  margin: 1.5rem 0;
}

dt {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Footer Styles */
.site-footer {
  background-color: var(--white);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(255, 182, 193, 0.2);
  margin-top: 4rem;
  padding: 2rem 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo .logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.footer-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.footer-nav-link:hover {
  color: var(--accent-pink);
}

.footer-copyright {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-copyright p {
  margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent-pink);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 153, 153, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--dark-pink);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 153, 153, 0.5);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* 404 Page Styles */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--accent-pink);
  margin-bottom: 1rem;
  font-weight: 700;
}

.error-page h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.error-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

.error-page .home-link {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-pink);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 153, 153, 0.3);
}

.error-page .home-link:hover {
  background-color: var(--dark-pink);
}

/* Responsive Design */

/* PC - min 1025px (default styles above) */

/* Laptop - max 1024px */
@media (max-width: 1024px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  .hero-banner .banner-image {
    max-height: 50vh;
    min-height: 100px;
  }

  .nav-list {
    gap: 1.5rem;
  }

  main {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  section {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* Tablet - max 768px */
@media (max-width: 768px) {
  body {
    padding-top: 82px;
  }

  .header-container {
    padding: 1rem;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.3);
    border-top: 2px solid var(--border-color);
  }

  .header-nav.active {
    display: block;
    text-align: center;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  main {
    padding: 0 1rem 1rem 1rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  section h1 {
    font-size: 1.75rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .banner-full {
    max-height: 40vh;
    min-height: 200px;
  }
  
  .hero-banner .banner-image {
    max-height: 50vh;
    min-height: 180px;
  }

  .banner-medium {
    max-height: 300px;
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: 0.75rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-nav-list {
    gap: 1rem;
    flex-direction: column;
  }

  .error-page h1 {
    font-size: 4rem;
  }

  .error-page h2 {
    font-size: 1.5rem;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile L - max 425px */
@media (max-width: 425px) {
  body {
    padding-top: 72px;
  }

  .header-container {
    padding: 0.75rem;
  }

  .header-logo .logo-img {
    height: 40px;
  }

  main {
    padding: 0 0.75rem 0.75rem 0.75rem;
  }

  section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  section h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .banner-full {
    max-height: 35vh;
    min-height: 180px;
  }
  
  .hero-banner .banner-image {
    max-height: 35vh;
    min-height: 150px;
  }

  .banner-medium {
    max-height: 250px;
  }

  table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
  }

  table th,
  table td {
    padding: 0.5rem;
    white-space: nowrap;
  }

  section ul, section ol {
    margin-left: 1.5rem;
  }

  .footer-logo .logo-img {
    height: 40px;
  }

  .error-page {
    padding: 2rem 1rem;
  }

  .error-page h1 {
    font-size: 3rem;
  }

  .error-page h2 {
    font-size: 1.25rem;
  }

  .error-page p {
    font-size: 1rem;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile M - max 375px */
@media (max-width: 375px) {
  body {
    padding-top: 67px;
  }

  .header-logo .logo-img {
    height: 35px;
  }

  section {
    padding: 0.75rem;
  }

  section h1 {
    font-size: 1.25rem;
  }

  section h2 {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .banner-full {
    max-height: 30vh;
    min-height: 150px;
  }
  
  .hero-banner .banner-image {
    max-height: 30vh;
    min-height: 120px;
  }

  .banner-medium {
    max-height: 200px;
  }

  table {
    font-size: 0.75rem;
  }

  table th,
  table td {
    padding: 0.4rem;
  }

  .footer-logo .logo-img {
    height: 35px;
  }

  .error-page h1 {
    font-size: 2.5rem;
  }

  .error-page h2 {
    font-size: 1.1rem;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* Mobile S - max 320px */
@media (max-width: 320px) {
  body {
    padding-top: 62px;
  }

  .header-container {
    padding: 0.5rem;
  }

  .header-logo .logo-img {
    height: 30px;
  }

  main {
    padding: 0 0.5rem 0.5rem 0.5rem;
  }

  section {
    padding: 0.75rem;
  }

  section h1 {
    font-size: 1.1rem;
  }

  section h2 {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .banner-full {
    max-height: 25vh;
    min-height: 120px;
  }
  
  .hero-banner .banner-image {
    max-height: 25vh;
    min-height: 100px;
  }

  .banner-medium {
    max-height: 180px;
  }

  table {
    font-size: 0.7rem;
  }

  table th,
  table td {
    padding: 0.35rem;
  }

  .footer-logo .logo-img {
    height: 30px;
  }

  .footer-nav-list {
    gap: 0.75rem;
  }

  .error-page {
    padding: 1.5rem 0.5rem;
  }

  .error-page h1 {
    font-size: 2rem;
  }

  .error-page h2 {
    font-size: 1rem;
  }

  .error-page p {
    font-size: 0.9rem;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

