/* ==========================================================================
   EDU-NU 14th Conference — Microsoft Events Floating Pill + Blue Fluent AI Theme
   Thai-friendly typography (Prompt / Sarabun), Animated Space-Blue Background,
   Elevated Glassmorphism, Full Mobile Responsiveness
   ========================================================================== */

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

:root {
  --font-heading: 'Prompt', 'Noto Sans Thai', 'Sarabun', 'Leelawadee UI', sans-serif;
  --font-body: 'Prompt', 'Noto Sans Thai', 'Sarabun', 'Leelawadee UI', sans-serif;
  --bs-font-sans-serif: 'Prompt', 'Noto Sans Thai', 'Sarabun', 'Leelawadee UI', sans-serif;
  --bs-body-font-family: var(--font-body);

  /* Blue Fluent Palette */
  --primary: #0067b8;
  --primary-bright: #0ea5e9;
  --primary-deep: #0b2545;
  --primary-soft: rgba(0, 103, 184, 0.10);
  --accent-cyan: #38bdf8;
  --accent-indigo: #3b82f6;

  /* Surfaces & Text */
  --canvas-bg: #f3f7fd;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text-main: #1e293b;
  --text-muted: #52627a;
  --heading-color: #0f2544;

  /* Borders & Elevation */
  --border-glass: 1px solid rgba(255, 255, 255, 0.85);
  --border-subtle: 1px solid rgba(15, 37, 68, 0.08);
  --shadow-pill: 0 12px 34px -6px rgba(15, 23, 42, 0.12),
                 0 4px 14px -2px rgba(0, 103, 184, 0.10),
                 inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-pill-scrolled: 0 16px 40px -6px rgba(15, 23, 42, 0.16),
                          0 6px 18px -2px rgba(0, 103, 184, 0.14),
                          inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-card: 0 10px 30px -8px rgba(15, 37, 68, 0.08),
                 0 2px 8px -2px rgba(0, 103, 184, 0.05);
  --shadow-card-hover: 0 20px 44px -10px rgba(0, 103, 184, 0.18),
                       0 6px 16px -4px rgba(15, 37, 68, 0.08);

  --radius-pill: 18px;
  --radius-card: 22px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Global Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body) !important;
  color: var(--text-main);
  background-color: var(--canvas-bg);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
p, a, li, button, input, select, textarea {
  font-family: var(--font-heading);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

a:hover {
  color: var(--primary-bright);
}

section {
  position: relative;
  padding: 72px 0;
  scroll-margin-top: 96px;
}

/* --------------------------------------------------------------------------
   Animated Space-Blue IT Ambient Background
   -------------------------------------------------------------------------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(160deg, #f0f6ff 0%, #f8fbff 48%, #eaf3ff 100%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0, 103, 184, 0.13) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 103, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 103, 184, 0.03) 1px, transparent 1px);
  background-size: 36px 36px, 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 100%);
  animation: gridPulse 12s ease-in-out infinite;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  will-change: transform;
}

.ambient-orb.orb-1 {
  width: 540px;
  height: 540px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.42), rgba(0, 103, 184, 0.08) 70%);
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-2 {
  width: 580px;
  height: 580px;
  top: 18%;
  right: -140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.34), rgba(56, 189, 248, 0.06) 70%);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.ambient-orb.orb-3 {
  width: 480px;
  height: 480px;
  bottom: -120px;
  left: 32%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.30), rgba(0, 103, 184, 0.05) 70%);
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(90px, 60px) scale(1.12); }
  100% { transform: translate(30px, 120px) scale(0.96); }
}

@keyframes floatOrb2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-110px, 75px) scale(1.1); }
  100% { transform: translate(-40px, -60px) scale(1.04); }
}

@keyframes floatOrb3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, -70px) scale(1.15); }
  100% { transform: translate(-70px, -30px) scale(0.95); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Floating Pill Header (Microsoft Events Style)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0 16px;
  background: transparent !important;
  pointer-events: none;
  transition: top var(--transition);
}

body.scrolled .header {
  top: 10px;
}

.header-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: var(--border-glass);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  animation: headerSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.scrolled .header-pill {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-pill-scrolled);
  padding: 8px 20px;
}

@keyframes headerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand Logo */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header .logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.header .logo:hover img {
  transform: scale(1.06);
}

.header .logo .sitename {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0b2545 0%, #0067b8 65%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Desktop Navigation */
.navmenu {
  display: flex;
  align-items: center;
}

.navmenu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.navmenu > ul > li {
  position: relative;
}

.navmenu > ul > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c3e55;
  border-radius: 10px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.navmenu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.navmenu > ul > li > a:hover,
.navmenu > ul > li > a.active {
  color: var(--primary);
  background: rgba(0, 103, 184, 0.06);
}

.navmenu > ul > li > a:hover::after,
.navmenu > ul > li > a.active::after {
  transform: scaleX(1);
}

.navmenu > ul > li > a i.toggle-dropdown {
  font-size: 0.72rem;
  transition: transform var(--transition);
}

.navmenu > ul > li.dropdown:hover > a i.toggle-dropdown {
  transform: rotate(180deg);
}

/* Desktop Dropdown Panel */
@media (min-width: 1200px) {
  .navmenu .dropdown ul {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 103, 184, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 36px -8px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1060;
  }

  /* Invisible hover bridge so menu doesn't close when moving mouse down */
  .navmenu .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navmenu .dropdown ul li a {
    display: block;
    padding: 9px 14px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    color: #2c3e55;
    border-radius: 9px;
    transition: var(--transition);
  }

  .navmenu .dropdown ul li a:hover {
    color: var(--primary);
    background: rgba(0, 103, 184, 0.08);
    padding-left: 18px;
  }
}

/* Right Action Area: CTA Pill Button + Social Icons */
.header-actions {
  gap: 10px;
  flex-shrink: 0;
}

.btn-nav-cta {
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0067b8 0%, #0ea5e9 100%);
  border-radius: 11px;
  box-shadow: 0 6px 16px -4px rgba(0, 103, 184, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(0, 103, 184, 0.55);
  filter: brightness(1.06);
  color: #ffffff !important;
}

.btn-nav-cta i {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform var(--transition);
}

.btn-nav-cta:hover i {
  transform: translateX(3px);
}

.header-social-links {
  gap: 6px;
}

.header-social-links a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #475569;
  background: rgba(0, 103, 184, 0.06);
  font-size: 0.95rem;
  transition: var(--transition);
}

.header-social-links a:hover {
  color: #ffffff;
  background: var(--primary);
  transform: translateY(-2px);
}

/* Mobile Nav Toggle & Drawer (< 1200px) */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(0, 103, 184, 0.09);
  color: var(--primary);
  font-size: 1.45rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-toggle:hover {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 1199px) {
  .header {
    top: 12px;
    padding: 0 12px;
  }

  .header-pill {
    padding: 9px 14px;
    border-radius: 16px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .navmenu {
    order: 3;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .navmenu > ul {
    display: none;
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 103, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22);
    z-index: 1049;
  }

  body.mobile-nav-active .navmenu > ul {
    display: flex;
    animation: mobileDrawerIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes mobileDrawerIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  .navmenu > ul > li > a {
    width: 100%;
    justify-content: space-between;
    padding: 11px 14px;
    font-size: 0.98rem;
  }

  .navmenu > ul > li > a::after {
    display: none;
  }

  .navmenu .dropdown ul {
    display: none;
    list-style: none;
    padding: 4px 0 6px 14px;
    margin: 4px 0 6px 10px;
    border-left: 2px solid rgba(0, 103, 184, 0.22);
  }

  .navmenu .dropdown ul.dropdown-active {
    display: block;
  }

  .navmenu .dropdown ul li a {
    display: block;
    padding: 9px 12px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: #334155;
    border-radius: 8px;
  }

  .navmenu .dropdown ul li a:hover {
    background: rgba(0, 103, 184, 0.08);
    color: var(--primary);
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 150px 0 90px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero .container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: var(--border-glass);
  border-radius: 28px;
  padding: 64px 36px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0067b8, #0ea5e9, #38bdf8, #0067b8);
  background-size: 200% 100%;
  animation: shimmerLine 5s linear infinite;
}

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

.hero h1,
.hero h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.hero h3 font {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0067b8 0%, #0ea5e9 100%);
  color: #ffffff !important;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  box-shadow: 0 8px 20px -6px rgba(0, 103, 184, 0.45);
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0067b8 0%, #0ea5e9 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px -6px rgba(0, 103, 184, 0.48);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -6px rgba(0, 103, 184, 0.58);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Section Titles & Elevated Fluent Cards (About, Poster, etc.)
   -------------------------------------------------------------------------- */
.section-title {
  text-align: center;
  margin-bottom: 42px;
}

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

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

.section-title p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 10px;
}

/* About Section styled as Microsoft Events Featured Card */
.about .section-title {
  background: var(--surface-solid);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 48px 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

.about .section-title p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.about .section-title font {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary) !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FAQ Section (Compatible with main.js .faq-active toggle)
   -------------------------------------------------------------------------- */
.faq .faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq .faq-item {
  position: relative;
  background: var(--surface-solid);
  border: var(--border-subtle);
  border-radius: 18px;
  padding: 20px 52px 20px 56px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.faq .faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 103, 184, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.faq .faq-item.faq-active {
  border-color: rgba(0, 103, 184, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.faq .faq-item .faq-icon {
  position: absolute;
  left: 20px;
  top: 21px;
  font-size: 1.35rem;
  color: var(--primary);
}

.faq .faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
  color: var(--heading-color);
  transition: color var(--transition);
}

.faq .faq-item.faq-active h3,
.faq .faq-item h3:hover {
  color: var(--primary);
}

.faq .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease, opacity 0.32s ease, padding-top 0.32s ease;
  opacity: 0;
}

.faq .faq-item .faq-content > p {
  overflow: hidden;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq .faq-item.faq-active .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 12px;
}

.faq .faq-item a,
.faq .faq-item a font {
  color: var(--primary) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq .faq-item .faq-toggle {
  position: absolute;
  right: 20px;
  top: 22px;
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.faq .faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact.light-background {
  background: transparent;
}

.contact .info-item {
  background: var(--surface-solid);
  border: var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact .info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.contact .info-item i {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(0, 103, 184, 0.12), rgba(14, 165, 233, 0.16));
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 16px;
}

.contact .info-item h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.contact .info-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact img[src*="qr-official"] {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: linear-gradient(135deg, #071933 0%, #0d2c54 60%, #0a3a70 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 30px;
  margin-top: 40px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0067b8, #38bdf8, #0067b8);
}

.footer .sitename,
.footer h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 6px 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
}

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

.footer .social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  margin-right: 8px;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background: var(--primary-bright);
  transform: translateY(-2px);
}

.footer iframe {
  border-radius: 16px;
  min-height: 220px;
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.70);
}

/* --------------------------------------------------------------------------
   Scroll Top & Preloader
   -------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #ffffff;
  box-shadow: 0 10px 24px -4px rgba(0, 103, 184, 0.5);
  transition: var(--transition);
}

.scroll-top i {
  font-size: 1.5rem;
  line-height: 0;
}

.scroll-top:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #f3f7fd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#preloader::before {
  content: "";
  width: 46px;
  height: 46px;
  border: 4px solid rgba(0, 103, 184, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Responsive Refinements
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero {
    padding: 118px 0 56px;
    min-height: auto;
  }

  .hero .container {
    padding: 36px 20px;
    border-radius: 22px;
  }

  section {
    padding: 48px 0;
  }

  .about .section-title {
    padding: 32px 20px;
  }

  .faq .faq-item {
    padding: 18px 44px 18px 46px;
  }

  .header .logo .sitename {
    font-size: 1rem;
  }
}
