/* Custom styles for AcademicHub website */

/* Import Thai fonts */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Kanit:wght@400;500;600;700&display=swap');

/* Base styles */
:root {
  --primary: #306ee8;
  --secondary: #636f88;
  --accent: #f59e0b;
  --background-light: #f6f6f8;
  --background-dark: #111621;
  --text-main: #111318;
  --text-muted: #636f88;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

/* Apply fonts to different elements */
body {
  font-family: 'Prompt', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', sans-serif;
}

.hero-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
}

.btn-primary, .btn-secondary {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
}

.nav-link {
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom button styles */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: #255ad4;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient background */
.gradient-bg {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Section padding */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Responsive typography */
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.75rem);
  line-height: 1.15;
  font-weight: 800;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to { 
    transform: translateY(0); 
    opacity: 1;
  }
}

/* FAQ accordion */
.faq-item {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.faq-question {
  padding: 1rem 1.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item[open] .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

/* Footer styles */
.footer-bg {
  background-color: var(--background-dark);
  color: var(--text-muted);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .md\:flex-row {
    flex-direction: column;
  }
  
  .md\:flex-col {
    flex-direction: row;
  }
  
  .md\:text-left {
    text-align: left;
  }
  
  .md\:text-center {
    text-align: center;
  }
  
  .md\:order-1 {
    order: 0;
  }
  
  .md\:order-2 {
    order: 0;
  }
}