/* Global Styles */
:root {
  --primary-color: #FF6B6B;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --text-color: #2C3E50;
  --text-light: #7F8C8D;
  --background-color: #FFFFFF;
  --background-alt: #F9F9F9;
  --border-color: #EEEEEE;
  --success-color: #2ECC71;
  --warning-color: #F39C12;
  --error-color: #E74C3C;
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
  --header-height: 80px;
  --footer-bg: #2C3E50;
  --footer-text: #ECEFF1;
}

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

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: darken(var(--primary-color), 10%);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style-type: none;
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

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

.logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.ask-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.ask-button:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

/* Main Content Styles */
main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 60px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  padding: 80px 30px;
  background-color: var(--background-alt);
  margin-bottom: 60px;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-color);
  line-height: 1.2;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

/* Blog Posts Section */
.blog-posts {
  padding: 0 30px 60px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.blog-posts h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2em;
  color: var(--text-color);
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.post-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
}

.new-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-color);
  font-size: 0.7em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: bold;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
}

.read-more::after {
  content: ' →';
  transition: var(--transition);
}

.read-more:hover {
  color: darken(var(--secondary-color), 10%);
}

.read-more:hover::after {
  margin-left: 3px;
}

/* Features Section */
.features {
  padding: 60px 30px;
  background-color: var(--background-alt);
}

.features h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2em;
  color: var(--text-color);
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: var(--container-width);
  margin: 0 auto;
}

.feature-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.4em;
}

.feature-card p {
  color: var(--text-light);
}

/* About Page Styles */
.about-hero {
  padding: 80px 30px;
  background-color: var(--background-alt);
  text-align: center;
  margin-bottom: 60px;
}

.about-hero h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.about-hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

.about-story {
  padding: 0 30px 60px;
}

.story-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.story-image {
  flex: 1;
  min-width: 300px;
}

.story-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.story-text {
  flex: 1;
  min-width: 300px;
}

.story-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.mission-vision {
  padding: 60px 30px;
  background-color: var(--background-alt);
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.mission, .vision {
  flex: 1;
  min-width: 300px;
  background-color: var(--background-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.mission h2, .vision h2 {
  margin-bottom: 15px;
  font-size: 1.8em;
  color: var(--secondary-color);
}

.mission p, .vision p {
  color: var(--text-light);
}

.team {
  padding: 60px 30px;
}

.team h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2em;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.team-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.team-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.team-card h3 {
  margin: 15px 0 5px;
  padding: 0 15px;
}

.team-card p {
  color: var(--text-light);
  padding: 0 15px 15px;
}

.values {
  padding: 60px 30px;
  background-color: var(--background-alt);
}

.values h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2em;
}

.values-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.value-card {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.value-icon {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.4em;
}

.value-card p {
  color: var(--text-light);
}

/* Contact Page Styles */
.contact-hero {
  padding: 80px 30px;
  background-color: var(--background-alt);
  text-align: center;
  margin-bottom: 60px;
}

.contact-hero h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.contact-hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

.contact-content {
  padding: 0 30px 60px;
}

.contact-info-form {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h2, .contact-form h2 {
  margin-bottom: 30px;
  font-size: 1.8em;
  color: var(--text-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-icon {
  color: var(--secondary-color);
  margin-right: 15px;
  flex-shrink: 0;
}

.info-text h3 {
  margin-bottom: 5px;
  font-size: 1.2em;
  color: var(--text-color);
}

.info-text p {
  color: var(--text-light);
}

.social-links h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
  color: var(--text-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-alt);
  color: var(--text-color);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

.required {
  color: var(--error-color);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.map-section {
  padding: 60px 30px;
  background-color: var(--background-alt);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8em;
}

.map-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.location-map {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.faq-section {
  padding: 60px 30px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8em;
}

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

.faq-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
  color: var(--text-color);
}

.faq-item p {
  color: var(--text-light);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--background-color);
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text-light);
}

.thank-you-content {
  text-align: center;
}

.success-icon {
  color: var(--success-color);
  margin-bottom: 20px;
}

.thank-you-content h2 {
  margin-bottom: 15px;
  font-size: 1.8em;
}

.thank-you-content p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.close-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.close-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* Blog Post Styles */
.post-content {
  display: flex;
  gap: 40px;
  max-width: var(--container-width);
  margin: 40px auto 0;
  padding: 0 30px;
}

article {
  flex: 2;
  min-width: 0;
}

.sidebar {
  flex: 1;
  min-width: 280px;
}

.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  line-height: 1.2;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9em;
}

.post-meta span {
  margin-right: 15px;
}

.post-image {
  margin-bottom: 30px;
}

.post-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.post-body {
  margin-bottom: 30px;
}

.post-body h2 {
  font-size: 1.8em;
  margin: 30px 0 15px;
  color: var(--text-color);
}

.post-body h3 {
  font-size: 1.4em;
  margin: 25px 0 15px;
  color: var(--text-color);
}

.post-body p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.post-body ul, .post-body ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body ul {
  list-style-type: disc;
}

.post-body ol {
  list-style-type: decimal;
}

.post-body blockquote {
  margin: 20px 0;
  padding: 15px;
  border-left: 4px solid var(--secondary-color);
  background-color: var(--background-alt);
  font-style: italic;
}

.post-body strong {
  font-weight: 700;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}

.tag-label {
  font-weight: 500;
  margin-right: 10px;
}

.tag {
  display: inline-block;
  background-color: var(--background-alt);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 4px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--secondary-color);
  color: white;
}

.post-share {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.share-label {
  font-weight: 500;
  margin-right: 15px;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--background-alt);
  color: var(--text-color);
  margin-right: 10px;
  transition: var(--transition);
}

.share-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.prev-post, .next-post {
  max-width: 45%;
}

.prev-post span, .next-post span {
  display: block;
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 5px;
}

.prev-post a, .next-post a {
  font-weight: 500;
  color: var(--secondary-color);
}

.prev-post a:hover, .next-post a:hover {
  color: darken(var(--secondary-color), 10%);
}

/* Sidebar Styles */
.sidebar-widget {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
}

.sidebar-widget h3 {
  margin-bottom: 20px;
  font-size: 1.4em;
  color: var(--text-color);
}

.about-content {
  text-align: center;
}

.about-content img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.about-content p {
  color: var(--text-light);
}

.recent-posts ul li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.recent-posts ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-posts ul li a {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
}

.recent-posts ul li a:hover {
  color: var(--primary-color);
}

.post-date {
  font-size: 0.9em;
  color: var(--text-light);
}

.categories ul li {
  margin-bottom: 10px;
}

.categories ul li a {
  color: var(--text-color);
  transition: var(--transition);
}

.categories ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 30px 40px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-logo, .footer-links, .footer-posts, .footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-container h3 {
  margin-bottom: 20px;
  font-size: 1.3em;
  color: var(--footer-text);
}

.footer-links ul li, .footer-posts ul li {
  margin-bottom: 10px;
}

.footer-links a, .footer-posts a {
  color: var(--footer-text);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover, .footer-posts a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-contact .social-icons {
  margin-top: 20px;
}

.footer-contact .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
}

.footer-contact .social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--footer-bg);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  font-size: 0.9em;
}

.legal-links a {
  color: var(--footer-text);
  opacity: 0.8;
  margin-left: 20px;
  font-size: 0.9em;
  transition: var(--transition);
}

.legal-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Cookie Consent Styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
}

#accept-all {
  background-color: var(--success-color);
  color: white;
  border: none;
}

#customize {
  background-color: var(--background-alt);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

#decline {
  background-color: var(--background-alt);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.cookie-buttons button:hover {
  transform: translateY(-2px);
}

.cookie-content a {
  display: block;
  margin-top: 10px;
  font-size: 0.9em;
  color: var(--secondary-color);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .features-container {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card {
    max-width: 100%;
  }
  
  .post-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .hero h1 {
    font-size: 2.2em;
  }
  
  .hero p {
    font-size: 1.1em;
  }
  
  .blog-posts h2, .features h2 {
    font-size: 1.8em;
  }
  
  .posts-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .legal-links {
    margin-top: 10px;
  }
  
  .legal-links a {
    margin: 0 10px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .prev-post, .next-post {
    max-width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .logo {
    height: 40px;
  }
  
  .ask-button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  
  .hero {
    padding: 60px 15px;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .blog-posts, .features {
    padding: 40px 15px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .cookie-content {
    padding: 15px;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
  
  .post-header h1 {
    font-size: 2em;
  }
}
