/* Base Styles */
:root {
  --primary-color: #8A2BE2;
  --secondary-color: #6A1CAF;
  --accent-color: #F06292;
  --text-color: #333333;
  --light-text: #FFFFFF;
  --background-color: #F8F5FE;
  --card-background: #FFFFFF;
  --section-padding: 4rem 0;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(240, 98, 146, 0.3);
}

.cta-button:hover {
  background-color: #E91E63;
  transform: translateY(-2px);
  color: var(--light-text);
  box-shadow: 0 6px 12px rgba(240, 98, 146, 0.4);
}

section {
  padding: var(--section-padding);
}

/* Header Styles */
header {
  background-color: var(--card-background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #f8f5fe 0%, #f0e5ff 100%);
}

.hero .container {
  display: flex;
  align-items: center;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: left;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  max-width: 500px;
}

/* Features Section */
.features {
  background-color: var(--card-background);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--background-color);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  background-color: var(--primary-color);
  color: var(--light-text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* FAQ Section */
.faq {
  background-color: var(--card-background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-question {
  background-color: var(--background-color);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.toggle {
  font-size: 1.5rem;
  font-weight: bold;
}

.faq-answer {
  background-color: var(--card-background);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

/* Footer */
footer {
  background-color: #333;
  color: var(--light-text);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 2rem;
}

.footer-logo p {
  margin-top: 1rem;
  font-weight: 600;
}

.footer-icon {
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-column {
  margin-right: 3rem;
  min-width: 150px;
}

.footer-column h3 {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #ccc;
}

.footer-column a:hover {
  color: var(--light-text);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }

  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 2rem;
    margin-right: 0;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-column {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  header .container {
    padding: 1rem;
  }

  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-background);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  nav.active {
    max-height: 300px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav ul li {
    margin: 0 0 1rem 0;
  }
  
  nav ul li:last-child {
    margin-bottom: 0;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .hero h2 {
    text-align: center;
    font-size: 2rem;
  }
  
  .hero p {
    margin: 0 auto 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-column {
    margin-bottom: 2rem;
  }
  
  .footer-column:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animation for FAQ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-answer {
  animation: fadeIn 0.5s ease forwards;
}

/* Thai font support */
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sarabun/v13/DtVjJx26TKEr37c9aAFJn3YO5gjupg.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sarabun/v13/DtVmJx26TKEr37c9YK5sikrGMJGhRQ.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/notosansthai/v18/iJWnBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SodNWFE.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Sans Thai';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/notosansthai/v18/iJWlBXeUZi_OHPqn4wq6hQ2_hbJ1xyN9wd43SofNWA1MZbLXGimR.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
