/* =========================================================
   Original stylesheet — no third-party template code
   ========================================================= */

:root {
  --accent: #1e88e5;
  --accent-2: #42a5f5;
  --accent-3: #0d47a1;
  --ink: #0b1b23;
  --heading: #10263c;
  --muted: #5b6b73;
  --surface: #ffffff;
  --bg: #f4f9ff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 30, 40, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 30, 40, 0.18);
  --font: "Sarabun", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

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

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 90px 0; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--heading);
  padding-bottom: 16px;
  margin: 0;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(14, 162, 189, 0.12);
  box-shadow: 0 4px 24px rgba(10, 30, 40, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2), var(--accent-3));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6s linear infinite;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--heading);
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width 0.25s ease;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--heading);
  cursor: pointer;
  padding: 4px;
}

.badge-icon svg,
.scroll-top svg {
  display: block;
}

.btn-cta {
  display: inline-block;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 162, 189, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(14, 162, 189, 0.45);
}

@media (max-width: 900px) {
  .site-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 20px;
    box-shadow: var(--shadow);
    display: none;
    gap: 14px;
  }
  .site-nav.open ul { display: flex; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(-45deg, #0d47a1, #1e88e5, #64b5f6, #e3f2fd);
  background-size: 400% 400%;
  animation: gradientShift 16s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.10), transparent 45%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .hero-logo {
  max-width: 200px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  padding: 18px;
  backdrop-filter: blur(6px);
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.35));
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero h1 {
  margin-top: 30px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.hero h1 span {
  background: linear-gradient(90deg, #ffffff, #bbdefb, #64b5f6, #e3f2fd, #ffffff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6s linear infinite;
}

@keyframes titleShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ---------- Fund grid ---------- */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.fund-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 162, 189, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fund-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.fund-card .icon img {
  width: 130px;
  margin: 0 auto;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.fund-card:hover .icon img {
  transform: scale(1.06) rotate(-1deg);
}

.fund-card h4 {
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--heading);
  font-size: 1.05rem;
}

.fund-card .links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fund-card .links a {
  font-weight: 600;
  color: var(--accent);
}

.fund-card .links a:hover {
  color: var(--accent-3);
}

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: center;
}

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

.team-card .member-img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.team-card .member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.team-card:hover .member-img img {
  transform: scale(1.08);
}

.team-card .member-info {
  padding: 18px 16px 26px;
}

.team-card .member-info h4 {
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 4px;
}

.team-card .member-info span {
  display: block;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 50px;
}

.map-frame iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.contact-card h3 {
  font-weight: 800;
  color: var(--heading);
  margin-top: 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
}

.info-item .badge-icon {
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h4 {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--heading);
  font-size: 1rem;
}

.info-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, #0b1c33, #0d47a1);
  color: rgba(255,255,255,0.85);
  padding: 30px 0;
  text-align: center;
}

.site-footer strong { color: #fff; }

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 8px 20px rgba(14, 162, 189, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
