@import url('https://fonts.googleapis.com/css2?family=Sorts+Mill+Goudy&display=swap');
:root {
  --font-family: "Sorts Mill Goudy", serif;
  --bg: #0e0f1a;
  --text: #e9e9ef;
  --muted: #b7b8c5;
  --accent-1: #ff7a59; /* orange */
  --accent-2: #ff3d7f; /* pink */
  --accent-3: #7b61ff; /* violet */
  --accent-4: #3f9cff; /* blue */
  --gradient-primary: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 45%, var(--accent-3) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-4) 0%, var(--accent-3) 100%);
  --card: #16172a;
  --border: #262742;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1000px 500px at 10% 10%, rgba(255,122,89,0.07), transparent 60%),
              radial-gradient(800px 400px at 90% 30%, rgba(123,97,255,0.08), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

a { color: #fff; text-decoration: none; }
a:hover { opacity: 0.9; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 14px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; padding: 12px 18px; border-radius: 12px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(0,0,0,0.45); }
.btn i { font-size: 20px; }

/* Cards */
/* Add pointer cursor & transition for card */
.card {
  position: relative;
  background: var(--card) center/cover no-repeat; /* default solid dark, overridden by JS */
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Dark overlay to ensure text contrast over background images */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  pointer-events: none;
}
/* Ensure card inner content above overlay */
.card > * {
  position: relative;
  z-index: 1;
}

/* Header & footer accents */
.accent-line {
  height: 3px; background: var(--gradient-secondary);
}

/* Hero */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(1200px 600px at 10% 20%, rgba(255,61,127,0.10), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(123,97,255,0.10), transparent 60%);
}
.hero .inner {
  padding: 80px 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
}
.hero .title { font-size: 48px; }
.hero .subtitle { font-size: 18px; }
.hero-blob {
  width: 100%; height: 320px; border-radius: 24px;
  background: var(--gradient-primary);
  filter: saturate(120%) contrast(105%);
  box-shadow: var(--shadow);
}

/* Grid */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Section */
.section { padding: 64px 0; }
.section .section-title { font-size: 28px; }
.section .section-desc { margin-bottom: 18px; }

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Icon color utility */
.icon-primary { color: var(--accent-2); }
.icon-secondary { color: var(--accent-4); }

/* Footer utility */
.footer-columns { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 24px; }

@media (max-width: 960px) {
  .hero .inner { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
}

/* Page Banner */
.page-banner {
  position: relative;
  height: 50vh;
  min-height: 320px;
  background: url("/project/assets/images/banner.webp.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: brightness(0.6);
}

.page-banner h1 {
  position: relative;
  font-size: 3rem;
  font-weight: 800;
  z-index: 2;
  line-height: 1.2;
}

/* Lock body scroll when a card is enlarged */
body.card-open {
  overflow: hidden;
}
/* Enlarged state */
.card.enlarged {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.05);
  width: 80vw;
  max-height: 90vh;
  overflow: auto;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
  font-size: 1.1em;
}

.card.enlarged .card-content,
.card.enlarged h3,
.card.enlarged p {
  font-size: 1.2em;
}

/* FAQ Home Section */
.faq-home .faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-home details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px 24px;
  margin-bottom: 16px;
  position: relative;
  color: #fff;
}
.faq-home summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
  list-style: none;
}
.faq-home summary::-webkit-details-marker {
  display: none;
}
.faq-home details[open] {
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.faq-home details p {
  margin-top: 12px;
  line-height: 1.6;
}