/* CSS Variables */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --bg-light: #fffae6;
  --accent-blue: #114798;
  --text-color: #666565;
  --heading-color: #111a24;
  --header-footer-bg: #0c3573;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Kanit", serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

/* Header Styles */
.navbar-custom {
  background-color: var(--header-footer-bg) !important;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 2px 10px var(--shadow-medium);
  height: 80px; /* Fixed height for header */

}

/* Add margin to content sections to account for fixed header */
.hero-section, .page-header {
  margin-top: 80px;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.3s ease;
  background-color: var(--header-footer-bg);

}

.navbar-collapse {
  background-color: var(--header-footer-bg);

}
.navbar-nav .nav-link:hover {
  color: var(--accent-blue) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 26, 36, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  color: var(--white);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 0;
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 0;
}

.btn-outline-custom:hover {
  background-color: var(--accent-blue);
  color: var(--white);
}

/* Content Sections */
.section-padding {
  padding: 80px 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-white {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card-custom {
  border: 1px solid #e0e0e0;
  border-radius: 0;
  transition: all 0.3s ease;
  height: 100%;
  background-color: var(--white);
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--shadow-medium);
  border-color: var(--accent-blue);
}

.card-custom .card-body {
  padding: 2rem;
}

.card-custom .card-title {
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-custom img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Content Blocks */
.content-block {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.content-block img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.content-reverse {
  flex-direction: row-reverse;
}

/* List Styles */
.custom-list {
  list-style: none;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.custom-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-left: 4px solid var(--accent-blue);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px var(--shadow-light);
}

/* Footer */
.footer-custom {
  background-color: var(--header-footer-bg);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-custom h5 {
  color: #fffae6;
  margin-bottom: 1rem;
}

.footer-custom a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--header-footer-bg);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-popup .btn {
  margin-left: 10px;
}

/* Form Styles */
.form-control {
  border-radius: 0;
  border: 2px solid #e0e0e0;
  padding: 12px 15px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: none;
}

/* Page Header for Secondary Pages */
.page-header {
  background-color: var(--bg-light);
  padding: 100px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-custom {
    height: 70px; /* Smaller header on mobile */
  }
  
  .hero-section, .page-header {
    margin-top: 70px; /* Adjust for smaller mobile header */
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .content-block {
    flex-direction: column;
    text-align: center;
  }
  
  .content-reverse {
    flex-direction: column;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }
  .page-header h1 {
    font-size: 2.6rem;
  }
}
