/* Participant Filter Card Styles */
.participant-filter-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--light-bg);
  padding: 32px 0 0 0;
}

/* Download section styles */
.download-section {
  padding: 3.5rem 0 4rem 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(245, 247, 250, 1)
  );
}

.download-section .container {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.download-section .section-title {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.download-section p {
  color: #5b6b78;
  margin-bottom: 1.25rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.download-btn {
  display: flex;
  /* About Page Styles */
  .about-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: "Segoe UI", Arial, sans-serif;
  }

  .about-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #253858;
    margin-bottom: 24px;
  }
  /* Enhanced About Content Card */
  .about-content .container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(60, 72, 88, 0.08);
    padding: 40px 32px;
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
  }

  .about-text {
    flex: 2;
  }
  .about-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-text h2,
  .about-text h3 {
    color: #253858;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
  }
  .about-text h2 {
    font-size: 2rem;
  }
  .about-text h3 {
    font-size: 1.3rem;
  }
  .about-text p {
    font-size: 1.08rem;
    color: #444;
    margin-bottom: 16px;
  }
  .about-image img {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(60, 72, 88, 0.1);
    max-width: 320px;
  }

  .about-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #253858;
    margin-top: 40px;
    margin-bottom: 12px;
  }

  .about-container p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 18px;
  }
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(97, 130, 200, 0.06);
  text-decoration: none;
  color: #1f2d3d;
  min-width: 220px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download-btn i {
  font-size: 1.6rem;
  color: #0b76f4;
  display: inline-block;
}

.download-btn div span {
  display: block;
  font-size: 0.75rem;
  color: #7a8a96;
}
.download-btn div strong {
  display: block;
  font-size: 1rem;
  color: #16324b;
}

.download-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 76, 160, 0.12);
}

@media (max-width: 600px) {
  .download-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  .download-btn {
    min-width: 220px;
    width: 90%;
    max-width: 320px;
  }
}
/* FILTER CARD */
.filter-card {
  background: #ffffff; /* Clean premium white */
  backdrop-filter: blur(6px); /* Soft glass effect */
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  padding: 28px 26px 24px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* HEADER */
.filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827; /* Rich dark */
}

.filter-icon {
  color: #2563eb;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
}

/* SEARCH BOX */
.filter-search {
  position: relative;
  margin-bottom: 8px;
}

.filter-search-input {
  width: 100%;
  padding: 12px 46px 12px 16px;
  border: 1.4px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  background: #f9fafb;
  transition: 0.25s ease;
}

.filter-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #ffffff;
}

.filter-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.25rem;
}

/* CATEGORY LABEL */
.filter-category-label {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* CATEGORY BUTTONS */
.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-category-btn {
  background: #eef1f4; /* Premium soft grey */
  border: 1px solid #d1d5db;
  color: #1f2937;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: 0.28s ease;
}

/* HOVER */
.filter-category-btn:hover {
  background: #d8dce0;
  transform: translateY(-2px);
}

/* ACTIVE */
.filter-category-btn.active {
  background: #2563eb;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.33);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .filter-card {
    padding: 18px 8px 16px 8px;
    max-width: 98vw;
  }
  .participant-filter-section {
    padding: 18px 0 0 0;
  }
  .filter-header {
    font-size: 1.1rem;
  }
  .filter-title {
    font-size: 1rem;
  }
  .filter-category-btn {
    font-size: 0.95rem;
    padding: 7px 14px;
  }
}
/* Apps grid: 2-column layout */
/* Bootstrap-like grid for apps section */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}
.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 12px;
  padding-left: 12px;
  box-sizing: border-box;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* Footer grid section for cards */
.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .footer-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* Responsive footer banner image */
@media (max-width: 768px) {
  img[alt="Footer Banner"] {
    max-width: 100vw;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  img[alt="Footer Banner"] {
    max-width: 98vw;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
  }
}
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Media scale safely (avoid constraining all elements) */
img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
  /* estimated offset to account for fixed header; adjusted per breakpoint below */
  --header-offset-desktop: 88px;
  --header-offset-mobile: 72px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  min-width: 320px;
}

/* Lock page scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  /* fully lock page scrolling */
  width: 100%;
}

html {
  width: 100%;
  overflow-x: hidden;
  /* belt-and-suspenders to avoid mobile sideways scroll */
}

/* Header Styles */
.header {
  background: linear-gradient(90deg, #ff7e5f, #7a3dcc);
  color: white;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow-x: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure the page header is visible below the fixed header */
.page-header {
  padding-top: var(--header-offset-desktop);
  padding-bottom: 2.25rem;
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  /* large visible hero area with a colorful gradient like the attached design */
  min-height: calc(50vh + var(--header-offset-desktop));
  width: 100%;
  background: linear-gradient(90deg, #ff7e5f 0%, #7a3dcc 55%, #4b6cb7 100%);
  color: #fff; /* default text color in hero */
  position: relative;
  overflow: hidden;
}

/* subtle translucent overlay for better text contrast */
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 10% 10%,
    rgba(255, 255, 255, 0.03),
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

.page-header .typewriter-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 0.6rem 0;
  color: #ffffff; /* strong white title */
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.page-header .subtitle-fade {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  max-width: 900px;
}

.page-header .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 0; /* container padding handled by section */
  padding-bottom: 0;
  z-index: 2; /* keep text above overlay */
}

/* Word-by-word reveal animation */
.typewriter-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.typewriter-title .word.show {
  animation: wordIn 420ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes wordIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* small spacing tweak between words */
.typewriter-title .word + .word {
  margin-left: 0.45rem;
}

/* When header shrinks on scroll, reduce header offset so page-header moves up */
.page-header.header-small {
  padding-top: calc(var(--header-offset-desktop) - 30px);
}

@media (max-width: 768px) {
  .page-header.header-small {
    padding-top: calc(var(--header-offset-mobile) - 18px);
  }
}

@media (max-width: 768px) {
  .page-header {
    /* on smaller screens, reduce height but keep centered */
    min-height: calc(32vh + var(--header-offset-mobile));
    padding-top: var(--header-offset-mobile);
    padding-bottom: 1.2rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding-top: var(--header-offset-mobile);
  }
}

header.scrolled {
  padding: 0.7rem 0;
  background: linear-gradient(
    90deg,
    rgba(90, 96, 228, 1),
    rgba(122, 61, 204, 1)
  );
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
  /* allow dropdowns but not cause horizontal scroll */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  gap: 0.75rem;
  /* safer spacing so items don't push outside */
}

/* allow flex children to shrink instead of forcing overflow */
.header-content > * {
  min-width: 0;
}

/* prevent nav items from forcing header width */
.nav,
.nav * {
  min-width: 0;
}

.logo-container {
  flex: 0 0 auto;
  /* don't let logo shrink too small or grow too big */
}

.logo {
  height: clamp(40px, 7vw, 60px);
  width: auto;
  transition: transform 0.3s ease;
  max-width: 100%;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation */
.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-left: auto;
  /* always stick to the far right */
  z-index: 10003;
  /* above overlay */
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu Animation */
.mobile-menu-toggle i {
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active i {
  transform: rotate(90deg);
}

/* Custom Hamburger Lines */
.hamburger-lines {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #ffffff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-25px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #ffffff;
}

/* Pulsing animation when active */
.mobile-menu-toggle.active {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  /* don’t block interactions */
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInUp 1s ease-out 0.2s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Info */
.contact-info {
  background: var(--white);
  padding: 3rem 0;
  box-shadow: var(--shadow);
}

/* Contact Methods Grid */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 2rem;
  align-items: start;
}

.contact-method {
  background: #fff;
  padding: 20px 22px;
  border-radius: 12px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 18px 40px rgba(20, 30, 60, 0.06);
  position: relative;
  overflow: visible;
  border-left: 6px solid #39a1ff; /* left accent */
}

/* slight rounded effect on left border */
.contact-method::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 6px;
  pointer-events: none;
}

.method-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(90deg, #6a57f9, #ff7e5f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex: 0 0 auto;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.method-content {
  flex: 1 1 auto;
  min-width: 0;
}
.method-content h3 {
  margin: 0 0 6px 0;
  font-size: 1.02rem;
  color: #0f1724;
  font-weight: 800;
}
.method-content p {
  margin: 0 0 10px 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-link {
  color: #1e88ff;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}
.contact-link:hover {
  text-decoration: underline;
}

.contact-method:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(20, 30, 60, 0.1);
}

@media (max-width: 1024px) {
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-method {
    padding: 16px;
  }
  .method-icon {
    width: 48px;
    height: 48px;
  }
}

/* Apps Section */
.apps-section {
  background: var(--light-bg);
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  justify-items: stretch;
  gap: 1rem;
  align-items: stretch;
  margin-top: 3rem;
}

/* Safety rules to prevent content from forcing uneven column widths */
.apps-grid > .app-card {
  margin-left: 0;
  margin-right: 0;

  /* Our Impact / Stats Section - purple hero style */
  .stats-section {
    padding: 3.5rem 0;
    background: linear-gradient(90deg, #6a7be8 0%, #7a3dcc 55%, #6a57f9 100%);
    color: #fff;
  }
  .stats-section .section-title {
    text-align: center;
    color: #0f1724; /* slightly dark heading as in reference */
    margin-bottom: 0.6rem;
  }
  .stats-section .section-title::after {
    content: "";
    display: block;
    width: 76px;
    height: 6px;
    margin: 10px auto 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff8bd3, #ff7e5f);
  }
  .stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 1.25rem auto 0;
    align-items: center;
  }
  .stats-section .stat-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: 0 18px 40px rgba(12, 20, 40, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    backdrop-filter: blur(6px);
  }
  .stats-section .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  }
  .stats-section .stat-label {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
  }

  @media (max-width: 900px) {
    .stats-section .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .stats-section {
      padding: 2rem 0;
    }
    .stats-section .section-title {
      font-size: 1.8rem;
    }
    /* Make the stats grid horizontally scrollable on small screens */
    .stats-section .stats-grid {
      display: flex;
      flex-wrap: nowrap;
      gap: 12px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0 12px;
      align-items: stretch;
    }
    .stats-section .stats-grid::-webkit-scrollbar {
      height: 8px;
    }
    .stats-section .stats-grid::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.08);
      border-radius: 6px;
    }
    .stats-section .stat-item {
      flex: 0 0 auto;
      min-width: 220px;
      padding: 20px;
    }
    .stats-section .stat-number {
      font-size: 1.6rem;
    }
  }
  justify-self: stretch;
}

.app-card,
.app-card * {
  min-width: 0; /* allow children to shrink inside grid cells */
}

/* Ensure cards stretch to fill the grid cell and can flex/shrink */
.apps-grid > .app-card {
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  flex: 1 1 0;
  box-sizing: border-box;
}

/* Make logos/images fully responsive and not force width */
.app-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.app-card .app-url,
.app-card .app-title {
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (min-width: 769px) {
  .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
}

.app-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.7rem 1.2rem 1.2rem 1.2rem;
  text-align: center;
  box-shadow: 0 6px 32px rgba(33, 150, 243, 0.1),
    0 1.5px 6px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #f0f4fa;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-height: 360px;
  height: 100%;
  width: 100%;
  min-width: 0; /* allow flex children to shrink inside grid cells */
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.08;
  transition: left 0.5s ease;
}

.app-card:hover::before {
  left: 0;
}

.app-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.07);
  border-color: #2196f3;
}

.app-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 2rem;
  color: var(--white);
  padding: 6px;
}

.app-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  color: #222;
  font-weight: 600;
}

.app-card p {
  color: #5a6a85;
  margin-bottom: 1.1rem;
  line-height: 1.5;
  font-size: 1rem;
}
/* Happy Stories page styles ------------------------------------------------- */
/* These selectors are used by happy-stories.html. Updated to match the pink
   gradient hero and large stat cards with entrance animations. */
.happy-stories-hero {
  position: relative;
  /* strong pink-to-magenta gradient matching the attachment */
  background: linear-gradient(90deg, #f25a76 0%, #ff7e9a 45%, #ffb3d1 100%);
  padding-top: calc(var(--header-offset-desktop) + 50px);
  padding-bottom: 3.5rem;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.happy-stories-hero .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* soft glossy overlay for depth */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.03)
  );
}
.happy-stories-hero .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.happy-stories-hero .hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.6px;
  transform-origin: center;
  animation: heroTitleIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.happy-stories-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.9rem;
  max-width: 900px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero-stats {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.stat-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 22px 34px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 200px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.36s;
  transform-origin: center;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  /* control entrance delay via CSS variable */
  animation: statIn 600ms cubic-bezier(0.2, 0.9, 0.2, 1) var(--delay, 0s) both;
}
.hero-stats .stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.18);
}
.stat-number {
  display: block;
  font-weight: 800;
  color: #ffffff;
  font-size: 2.1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.stat-label {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
  font-weight: 600;
}
.hero-stats .stat-item:nth-child(1) {
  --delay: 0.08s;
}
.hero-stats .stat-item:nth-child(2) {
  --delay: 0.18s;
}
.hero-stats .stat-item:nth-child(3) {
  --delay: 0.28s;
}

.floating-hearts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  z-index: 1;
}
.floating-hearts i {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  opacity: 0.95;
  animation: floatUp 5.6s ease-in-out infinite;
  position: relative;
}
@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0.85;
  }
  45% {
    transform: translateY(-18px) rotate(-6deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Filter / search on stories page */
.filter-content h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: #1f2937;
  margin-bottom: 12px;
  font-weight: 800;
  text-align: center;
}
.filter-tabs {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(17, 24, 39, 0.06);
  color: #374151;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
  transition: all 0.28s ease;
}
.filter-btn.active {
  background: linear-gradient(180deg, #263244, #2f3b49);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.18);
  transform: translateY(-4px);
}
.search-bar-stories {
  max-width: 760px;
  margin: 22px auto 0;
  position: relative;
}
.search-bar-stories input {
  width: 100%;
  padding: 18px 52px 18px 26px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  outline: none;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  font-size: 1rem;
  color: #334155;
}
.search-bar-stories i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.05rem;
}

/* give the search input a subtle inner shadow and larger rounded shape on desktop */
@media (min-width: 900px) {
  .search-bar-stories input {
    padding: 20px 56px 20px 32px;
    font-size: 1.05rem;
  }
}

/* Stories grid and cards */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.story-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(10px);
}
.story-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}
.story-image {
  position: relative;
  overflow: visible;
  display: block;
}
.story-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px 8px 0 0;
}
.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.22) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.story-card:hover .story-overlay {
  opacity: 1;
}
.story-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.couple-names {
  display: flex;
  justify-content: center;
  width: 100%;
}
.couple-names h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #111827;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.couple-names span {
  margin: 0 6px;
  color: #ff6b9a;
}
.story-tags {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.story-preview {
  color: #57606a;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Story modal */
.story-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.story-modal .modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.story-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
}
.close-modal {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: #374151;
}

@media (max-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .happy-stories-hero {
    padding-top: calc(var(--header-offset-mobile) + 24px);
    padding-bottom: 2rem;
  }
  /* make the hero stats horizontally scrollable on small screens */
  .hero-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px;
    scroll-snap-type: x proximity;
    justify-content: flex-start;
  }
  .hero-stats .stat-item {
    flex: 0 0 auto;
    min-width: 200px;
    scroll-snap-align: start;
    padding: 8px 10px;
  }
  .filter-btn {
    padding: 7px 12px;
  }
}

/* Extra small screens: make the hero closely match the mobile screenshot
   - smaller title/subtitle, centered
   - three compact rounded stat chips (white pills with accent text)
   - ensure mobile hamburger stays visible at top-right */
@media (max-width: 480px) {
  .happy-stories-hero {
    padding-top: calc(var(--header-offset-mobile) + 8px);
    padding-bottom: 1.25rem;
    text-align: center;
  }

  .happy-stories-hero .hero-title {
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 0.2rem;
    letter-spacing: 0.2px;
    padding: 0 8px;
  }

  .happy-stories-hero .hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.6rem;
    padding: 0 14px;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none; /* hide scrollbar in IE/Edge */
  }

  .hero-stats::-webkit-scrollbar {
    height: 6px;
  }
  .hero-stats::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
  }

  .hero-stats .stat-item {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #f25a76; /* pink accent for numbers */
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    text-align: center;
    scroll-snap-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .hero-stats .stat-number {
    font-size: 1.05rem;
    color: #f25a76;
    font-weight: 800;
    text-shadow: none;
  }

  .hero-stats .stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 700;
  }

  /* small spacing at ends for better centering when not full width */
  .hero-stats .stat-item:first-child {
    margin-left: 6px;
  }
  .hero-stats .stat-item:last-child {
    margin-right: 6px;
  }

  /* Ensure mobile hamburger toggle stays visible and accessible */
  .mobile-menu-toggle {
    position: fixed;
    right: 12px;
    top: 8px;
    z-index: 10005;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  /* Reduce floating hearts footprint so they don't clash with chips */
  .floating-hearts {
    bottom: 2px;
    gap: 0.5rem;
  }
  .floating-hearts i {
    font-size: 0.95rem;
    opacity: 0.9;
  }
}

/* Social Media hero - small screen adjustments */
@media (max-width: 480px) {
  .social-hero {
    padding-top: calc(var(--header-offset-mobile) + 8px);
    padding-bottom: 1.2rem;
    text-align: center;
  }

  .social-hero .social-hero-title {
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 0.2rem;
    padding: 0 8px;
  }

  .social-hero .social-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.6rem;
    padding: 0 14px;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Make the stat cards compact and wrap into multiple rows on small screens
       — avoid horizontal scrollbars and keep everything centered */
  .hero-social-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 6px 8px;
    flex-wrap: wrap; /* allow chips to wrap into rows */
    overflow: visible; /* no horizontal scrollbar */
    align-items: center;
  }

  .hero-social-stats .social-stat {
    flex: 1 1 calc(33% - 12px);
    min-width: 100px;
    max-width: 160px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 8px 22px rgba(8, 12, 30, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .hero-social-stats .social-stat i {
    font-size: 1.05rem;
    opacity: 0.95;
  }

  .hero-social-stats .stat-number {
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
    text-shadow: none;
  }

  .hero-social-stats .stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
  }

  /* Remove first/last extra margins (wrapping handles spacing) */
  .hero-social-stats .social-stat:first-child,
  .hero-social-stats .social-stat:last-child {
    margin: 0;
  }

  /* Hide decorative floating icons to reduce clutter */
  .social-background-animation {
    display: none;
  }

  /* Ensure the mobile menu toggle remains accessible */
  .mobile-menu-toggle {
    position: fixed;
    right: 12px;
    top: 8px;
    z-index: 10005;
  }
}

/* App Card Buttons */
.app-buttons {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 0.2rem;
}

/* Social Media page styles -------------------------------------------------- */
.social-hero {
  padding-top: calc(var(--header-offset-desktop) + 36px);
  padding-bottom: 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #6a7be8 0%, #7a3dcc 55%, #6a57f9 100%);
  position: relative;
  display: flex;
  flex-direction: row !important;
  justify-content: center;
  align-items: stretch;
  padding: 100px 5px;
  gap: 10px;
  pointer-events: none;
  z-index: 0;
}
.floating-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  opacity: 0.95;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
}
.floating-icon.facebook {
  background: #1877f2;
  left: 12px;
  top: 12px;
}
.floating-icon.instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #515bd4);
  left: 72px;
  top: 30px;
}
.floating-icon.twitter {
  background: #1da1f2;
  right: 72px;
  top: 18px;
}
.floating-icon.youtube {
  background: #ff0000;
  right: 20px;
  top: 60px;
}
.floating-icon.linkedin {
  background: #0a66c2;
  left: 20px;
  bottom: 28px;
}
.floating-icon.whatsapp {
  background: #25d366;
  right: 28px;
  bottom: 20px;
}

.social-hero .social-hero-content {
  position: relative;
  z-index: 2;
}
.social-hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 0.6rem;
  font-weight: 800;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.social-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.2rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.hero-social-stats {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.4rem;
}
.social-stat {
  background: rgba(255, 255, 255, 0.08);
  padding: 28px 36px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  min-width: 210px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.social-stat .stat-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
  opacity: 0.95;
}
.social-stat .stat-number {
  display: block;
  font-weight: 800;
  color: #fff;
  font-size: 1.9rem;
  margin-top: 6px;
}
.social-stat .stat-label {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  font-weight: 700;
}

/* subtle floating animation for the stat cards */
.social-stat {
  transform: translateY(6px);
  opacity: 0;
  animation: statFloatIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
.social-stat:nth-child(1) {
  animation-delay: 0.12s;
}
.social-stat:nth-child(2) {
  animation-delay: 0.22s;
}
.social-stat:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes statFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.social-platforms {
  padding: 2.5rem 0;
  background: transparent;
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 1.5rem;
}
.platform-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 28px 60px rgba(23, 35, 63, 0.08);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.32s;
  position: relative;
  overflow: visible;
  min-height: 280px;
  min-width: 0;
}
.platform-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 10px;
  height: 6px;
  border-radius: 6px 6px 0 0;
  background: transparent;
}
.platform-card.animate-in {
  transform: translateY(0);
  opacity: 1;
}
.platform-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 100px rgba(23, 35, 63, 0.12);
}
.platform-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
  margin-top: 6px;
}

/* per-platform top accent colors */
.facebook-card::before {
  background: linear-gradient(90deg, #1e66d6, #1a4fc0);
}
.instagram-card::before {
  background: linear-gradient(90deg, #feda75, #d62976, #515bd4);
}
.youtube-card::before {
  background: linear-gradient(90deg, #ff3b30, #ff0000);
}
.whatsapp-card::before {
  background: linear-gradient(90deg, #1db954, #25d366);
}

/* content layout inside card */
.platform-body {
  display: flex;
  gap: 18px;
  width: 100%;
}
.platform-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0b1724;
  font-weight: 700;
}
.platform-content p {
  margin: 0;
  color: #64707a;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* stats: larger numbers with label under each number */
.platform-stats {
  display: flex;
  gap: 22px;
  margin-top: 4px;
  align-items: flex-start;
}
.platform-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.platform-stats .stat .number {
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f1724;
}
.platform-stats .stat .label {
  font-size: 0.85rem;
  color: #6b7280;
}

/* actions moved to bottom-left and sit inline */
.platform-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}
.btn-platform {
  background: linear-gradient(90deg, #6a57f9, #ff7e5f);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(122, 61, 204, 0.08);
  border: none;
}
.btn-platform i {
  font-size: 0.95rem;
}
.btn-share {
  background: #fff;
  border: 1px solid #eef2f6;
  color: #374151;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
}

/* adjust icon placement to left top area */
.platform-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
}
.platform-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.facebook-card .platform-icon {
  background: #1877f2;
}
.instagram-card .platform-icon {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #515bd4);
}
.youtube-card .platform-icon {
  background: #ff0000;
}
.whatsapp-card .platform-icon {
  background: #25d366;
}
.platform-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.platform-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  color: #0f1724;
  line-height: 1.1;
  font-weight: 700;
}
.platform-content p {
  margin: 0 0 12px 0;
  color: #556272;
  font-size: 0.95rem;
  line-height: 1.45;
}
.platform-stats {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.platform-stats .stat {
  background: #f7f8fa;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #374151;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.platform-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  flex: 0 0 auto;
  margin-left: 12px;
}
.btn-platform {
  background: linear-gradient(90deg, #ff7e5f, #7a3dcc);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(122, 61, 204, 0.08);
  border: none;
}
.btn-platform i {
  font-size: 0.95rem;
}
.btn-share {
  background: #fff;
  border: 1px solid #eef2f6;
  color: #374151;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

/* Make share button visually smaller on desktop and align nicely */
.platform-actions .btn-share {
  font-weight: 600;
}

.social-feed {
  padding: 2.5rem 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(250, 250, 255, 1)
  );
}
.feed-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.feed-tab {
  background: #fff;
  border: 1px solid #e8e8ef;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.feed-tab.active {
  background: var(--gradient-secondary);
  color: #fff;
  border-color: transparent;
}
.social-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.social-post {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  min-width: 0;
}
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.post-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-weight: 700;
}
.post-platform i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.post-platform .fa-facebook-f {
  background: #1877f2;
  padding: 8px;
}
.post-platform .fa-instagram {
  background: linear-gradient(45deg, #feda75, #d62976, #515bd4);
  padding: 8px;
}
.post-content p {
  margin: 0;
  color: #525f6b;
}
.post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 8px;
  max-width: 100%;
}
.post-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}
.post-action {
  background: transparent;
  border: 1px solid #e6e7eb;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.social-contest,
.social-newsletter {
  padding: 2rem 0;
}
.contest-hashtags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.hashtag {
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #eef2f7;
}
.newsletter-content {
  background: linear-gradient(180deg, #fff, #fbfbff);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.newsletter-form .form-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.newsletter-form input[type="email"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e6e7eb;
  min-width: 220px;
}
.btn-subscribe {
  background: linear-gradient(90deg, #ff7e5f, #7a3dcc);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

/* Submission modal */
.submission-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.submission-modal .modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.submission-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #eef2f7;
}
.submission-modal .close-modal {
  background: none;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .social-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop card grid polishing: keep mobile intact, improve desktop card layout */
@media (min-width: 1100px) {
  .platforms-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 32px;
    align-items: start; /* ensure cards align to top */
  }

  .platform-card {
    min-height: 340px; /* slightly taller cards on desktop */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* push actions to the bottom */
    padding: 24px;
  }

  .platform-actions {
    flex-direction: row;
    align-items: center;
  }

  .platform-qr {
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .social-hero {
    padding-top: calc(var(--header-offset-mobile) + 14px);
  }
  .floating-icon {
    display: none;
  }
  .platform-card {
    padding: 16px;
    align-items: flex-start;
  }
  .platform-row {
    flex-direction: row;
  }
  .platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 1.25rem;
  }
  .platform-actions {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 12px;
  }
  .btn-platform,
  .btn-share {
    width: auto;
    padding: 9px 12px;
  }
  .platform-stats {
    gap: 14px;
  }
  .platform-content p {
    font-size: 0.95rem;
  }
}
.btn-download,
.btn-open {
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-download:hover,
.btn-open:hover {
  background: #1769aa;
  color: #fff;
  box-shadow: 0 4px 16px rgba(33, 150, 243, 0.16);
}
@media (max-width: 768px) {
  /* Use flex for mobile to guarantee equal two-column widths */
  .apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    margin-top: 1.5rem;
  }
  .apps-grid > .app-card {
    /* exact two equal columns; subtract half the gap so two cards + gap fit */
    flex: 0 0 calc(50% - 0.5rem);
    width: calc(50% - 0.5rem);
    box-sizing: border-box;
    margin: 0;
    min-height: 300px;
    display: flex; /* ensure internal flex behavior continues */
    flex-direction: column;
  }
  .app-card {
    padding: 0.9rem;
    border-radius: 12px;
  }
  /* Reduce font sizes so content is less likely to push layout */
  .app-card {
    font-size: 13px;
  }
  .app-card .app-title {
    font-size: 0.95rem;
  }
  .app-card .app-url {
    font-size: 0.78rem;
  }
  .app-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
  }
  .app-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }
  .app-card p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  .btn-download,
  .btn-open {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  .container {
    padding: 0 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-secondary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;

  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: var(--gradient-primary);
}

.btn-secondary {
  background: var(--gradient-secondary);
}

/* Search Section */
.search-section {
  background: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1.1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer p {
  margin-bottom: 0;
}

/* Colored band footer layout (three full-width stacked bands) */
.footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.footer .footer-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.footer .office-box {
  width: 100%;
  padding: 16px 18px;
  border-radius: 4px;
  text-align: center;
  box-shadow: none;
  color: #fff;
}

.footer .office-box .office-header {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.footer .office-box .office-header hr {
  border: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  width: 60%;
  margin: 8px auto 0;
}

.footer .office-box .office-details {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: inherit;
}

/* Per-office band colors (keeps contrast readable) */
.footer .office-box.vadodara-office {
  background: linear-gradient(90deg, #3fc7ff, #1aa9ff);
  color: #fff;
}
.footer .office-box.amdavad-office {
  background: linear-gradient(90deg, #f7df6a, #f2c400);
  color: #0f1724;
}
.footer .office-box.maninagar-office {
  background: linear-gradient(90deg, #ff89b8, #f06aa5);
  color: #fff;
}

/* Footer links centered under the bands */
.footer .footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.footer .footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer .office-box {
    padding: 12px 10px;
  }
  .footer .office-box .office-header {
    font-size: 1rem;
  }
  .footer .office-box .office-details {
    font-size: 0.88rem;
  }
  .footer .footer-links {
    gap: 10px;
    font-size: 0.92rem;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
}

/* QR code UI for social platform cards */
.btn-qr {
  background: #f3f4f6;
  color: #0b1724;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  margin-left: 8px;
}
.btn-qr[aria-expanded="true"] {
  background: #e6eef8;
  box-shadow: 0 6px 18px rgba(6, 22, 46, 0.08);
}
.platform-qr {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.platform-qr .qr-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .platform-qr .qr-img {
    width: 100px;
    height: 100px;
  }
}

/* Modern footer enhancements */
.footer-modern {
  background: linear-gradient(180deg, #0f1724 0%, #1b2430 100%);
  color: #e6eef8;
  padding: 48px 0 28px 0;
}
.footer-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 220px 320px;
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo {
  max-width: 140px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}
.footer-brand .lead {
  color: #cfdaf0;
  margin-top: 6px;
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-social {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.footer-social .social-link {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.footer-offices h4,
.footer-links-col h4,
.footer-contact h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.office-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.office-list li {
  text-align: left;
  color: #d6e2f3;
  font-size: 0.95rem;
  line-height: 1.35;
}
.office-list li strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}
.office-list li a {
  color: #9ecbff;
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  font-weight: 700;
}
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-col a {
  color: #cfe6ff;
  text-decoration: none;
  font-weight: 600;
}
.footer-contact {
  text-align: left;
}
.footer-contact .muted {
  color: #a9b9d1;
  margin-bottom: 8px;
}
.footer-contact a.contact-phone,
.footer-contact a.contact-email {
  display: block;
  color: #9ecbff;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 8px;
}
.newsletter-form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.newsletter-form input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eaf4ff;
  min-width: 180px;
}
.btn-subscribe {
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff7e5f, #7a3dcc);
  border: none;
  color: #fff;
  cursor: pointer;
}
.footer-bottom {
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom p {
  margin: 0;
  color: #9fb6d9;
  font-size: 0.95rem;
}
.footer-legal a {
  color: #cfe6ff;
  text-decoration: none;
  margin-left: 12px;
  font-weight: 700;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 992px) {
  .footer-grid-wrapper {
    grid-template-columns: 1fr 1fr;
  }
  .footer-contact {
    order: 3;
  }
}

@media (max-width: 600px) {
  .footer-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .footer-legal a {
    margin-left: 8px;
  }
  .newsletter-form {
    justify-content: center;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header {
    padding: 0.8rem 0;
    overflow: visible;
    /* allow fixed children to escape */
    backdrop-filter: none;
    /* avoid fixed-position containment on some mobiles */
  }

  .logo {
    height: 45px;
  }

  /* Mobile backdrop */
  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .nav {
    display: none;
    position: fixed;
    /* full-screen overlay */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* fill entire viewport */
    width: 100%;
    background: linear-gradient(
      135deg,
      rgba(44, 62, 80, 0.98) 0%,
      rgba(52, 73, 94, 0.98) 100%
    );
    flex-direction: column;
    justify-content: center;
    /* center items vertically */
    align-items: center;
    /* center items horizontally */
    gap: 0.75rem;
    padding: 2rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0;
    backdrop-filter: blur(15px);
    border-top: none;
    z-index: 10000;
    /* ensure above header on all devices */
    box-sizing: border-box;
    overflow-y: auto;
    /* internal scroll if needed */
    -webkit-overflow-scrolling: touch;
    /* smooth iOS */
    overscroll-behavior: contain;
    /* prevent bounce to body */
    /* Hide scrollbars visually */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/legacy Edge */
  }

  .nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    padding: 1rem 1.25rem;
    margin: 0.2rem 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    transform: none;
    /* keep centered without slide offset */
    opacity: 0;
    animation: slideInLeft 0.4s ease-out forwards;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Ensure li wrappers center their content */
  .nav > li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    transition: left 0.5s ease;
  }

  .nav-link:hover::before {
    left: 100%;
  }

  .nav.active .nav-link:nth-child(1) {
    animation-delay: 0.1s;
  }

  .nav.active .nav-link:nth-child(2) {
    animation-delay: 0.15s;
  }

  .nav.active .nav-link:nth-child(3) {
    animation-delay: 0.2s;
  }

  .nav.active .nav-link:nth-child(4) {
    animation-delay: 0.25s;
  }

  .nav.active .nav-link:nth-child(5) {
    animation-delay: 0.3s;
  }

  @keyframes slideInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 10003;
    /* keep toggle above overlay for close */
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
    align-items: stretch;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* About Page Responsive Styles */
  .about-content {
    padding: 3rem 0;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .about-text h3 {
    font-size: 1.3rem;
    margin: 1.2rem 0 0.6rem;
  }

  .about-text p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .about-image {
    margin-top: 0.5rem;
  }

  .about-image .image-placeholder {
    padding: 1.5rem;
    max-width: 300px;
  }

  .about-image .image-placeholder i {
    font-size: 2.5rem;
  }

  .about-image .image-placeholder p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  /* About page additional styles */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
  }

  .values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
  }

  .value-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .value-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #ff7e5f, #7a3dcc);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(122, 61, 204, 0.08);
  }

  .values-grid h3 {
    margin: 0;
    font-size: 1.05rem;
  }

  /* Team grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  .team-member {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .member-photo {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #374151;
    margin-bottom: 6px;
  }

  .member-role {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 600;
  }

  /* Stats grid */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 1rem;
  }

  .stats-grid .stat-item {
    background: linear-gradient(180deg, #fff, #fbfbff);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
  }

  .stats-grid .stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
  }

  @media (max-width: 1024px) {
    .about-grid {
      grid-template-columns: 1fr;
    }
    .values-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .values-grid {
      grid-template-columns: 1fr;
    }
    .team-grid {
      grid-template-columns: 1fr;
    }
    .stats-grid {
      grid-template-columns: 1fr;
    }
    .about-content {
      padding: 1.25rem 0;
    }
    .about-text h2 {
      font-size: 1.6rem;
    }
  }

  /* Contact page styles -------------------------------------------------- */
  .contact-info-detailed {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #fff, #fbfbff);
  }
  .contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .contact-method {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow);
  }
  .method-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(90deg, #ff7e5f, #7a3dcc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
  }
  .method-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
  }
  .contact-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
  }

  .contact-form-section .form-container {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .contact-form .form-row {
    display: flex;
    gap: 12px;
  }
  .contact-form .form-group {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6e7eb;
    font-size: 1rem;
  }
  .submit-btn {
    margin-top: 12px;
  }

  .hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 12px;
  }
  .hours-item {
    background: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    align-items: center;
    border-left: 6px solid rgba(33, 150, 243, 0.14);
  }
  .hours-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #6a57f9, #ff7e5f);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
    flex: 0 0 auto;
  }
  .hours-item .day {
    font-weight: 800;
    color: #0f1724;
    font-size: 1rem;
  }
  .hours-item .time {
    color: #6b7280;
    font-size: 0.95rem;
  }
  .hours-item .note {
    display: block;
    font-size: 0.85rem;
    color: #9aa6b2;
    margin-top: 4px;
  }

  /* FAQ accordion (stacked card design like attachment)
       - Narrow centered column
       - White rounded cards with soft shadow
       - Right-aligned small chevron pill
       - Hover lift and clear spacing
    */
  /* .faq-section .section-title { text-align: center; margin-bottom: 1.5rem; }
    .faq-section .section-title::after { content: ''; display:block; width: 60px; height:4px; margin: 10px auto 0; border-radius:4px; background: linear-gradient(90deg,#ff8bd3,#ff7e5f); } */

  .faq-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
  }

  .faq-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(12, 20, 40, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }

  .faq-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 46px rgba(12, 20, 40, 0.08);
  }

  .faq-question {
    display: block;
  }
  .faq-toggle {
    box-sizing: border-box;
    display: inline-flex !important;
    width: 100% !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #0f1724;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    min-height: 56px;
    line-height: 1.2;
    align-self: stretch;
  }

  .faq-toggle:hover {
    background: rgba(15, 23, 42, 0.02);
  }
  .faq-toggle:active {
    transform: translateY(0);
  }

  /* normalize button appearance */
  .faq-toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .faq-toggle::-moz-focus-inner {
    border: 0;
  }
  .faq-toggle:focus {
    outline: 3px solid rgba(106, 87, 233, 0.12);
    border-radius: 8px;
  }

  .faq-title {
    display: inline-block;
    margin-right: auto;
  }
  .faq-question i {
    color: #4b5563;
    transition: transform 0.28s ease;
  }
  .faq-item.active .chev i {
    transform: rotate(180deg);
  }

  /* Smooth rotation for chevron pill and ensure it transitions with the item */
  .faq-question .chev {
    transition: transform 0.32s ease, box-shadow 0.28s ease;
  }
  .faq-item.active .faq-question .chev {
    transform: rotate(180deg);
  }

  /* answer area uses hidden/default display; transitions managed inline by JS */
  /* ensure answers with the hidden attribute are completely hidden before JS runs
       but avoid !important/display:none so JS can animate max-height.
       JS will toggle the hidden attribute and set inline maxHeight to animate. */
  .faq-answer[hidden] {
    /* keep visually hidden when hidden, but allow JS to compute dimensions */
    visibility: hidden;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
  }

  .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    visibility: visible;
    display: block;
    transition: max-height 0.36s cubic-bezier(0.2, 0.9, 0.2, 1),
      padding 0.28s ease;
    background: linear-gradient(180deg, #ffffff, #fbfbff);
  }

  .faq-item.active .faq-answer {
    padding: 14px 20px 18px 20px;
    /* JS will set an inline max-height to the scrollHeight for the animation;
           this rule provides a safe upper bound for accessibility */
    max-height: 700px;
    visibility: visible;
    display: block;
    transition: max-height 0.36s cubic-bezier(0.2, 0.9, 0.2, 1),
      padding 0.28s ease;
    overflow-y: auto;
    /* Custom scrollbar for Webkit browsers */
    /* Chrome, Edge, Safari */
    &::-webkit-scrollbar {
      width: 8px;
      background: #f1f1f1;
      border-radius: 8px;
    }
    &::-webkit-scrollbar-thumb {
      background: #6a5acd;
      border-radius: 8px;
    }
  }

  /* spacing between stacked cards (visual only) */
  .faq-item + .faq-item {
    margin-top: 0;
  }

  /* Right chevron pill */
  .faq-question .chev {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fbfbff);
    box-shadow: 0 6px 18px rgba(12, 20, 40, 0.04);
    flex: 0 0 auto;
  }
  .faq-question .chev i {
    color: #2f3b49;
    font-size: 1rem;
  }
  /* ensure the title wraps cleanly and doesn't push the chevron out */
  .faq-title {
    display: inline-block;
    max-width: calc(100% - 100px);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  @media (max-width: 1024px) {
    .contact-methods {
      grid-template-columns: repeat(2, 1fr);
    }
    .hours-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }
    .faq-list {
      max-width: 720px;
      padding: 0 8px;
    }
  }

  @media (max-width: 600px) {
    .contact-methods {
      grid-template-columns: 1fr;
    }
    .contact-method {
      align-items: flex-start;
    }
    .method-icon {
      width: 48px;
      height: 48px;
    }
    .contact-form .form-row {
      flex-direction: column;
    }
    .hours-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .hours-item {
      padding: 12px;
    }
    .hours-item .icon {
      width: 44px;
      height: 44px;
    }
    .faq-list {
      max-width: 100%;
      padding: 0 6px;
    }
    .faq-toggle {
      padding: 14px 12px;
      min-height: 52px;
    }
    .faq-item.active .faq-answer {
      padding: 12px 12px 16px 12px;
    }
  }

  /* Mobile footer improvements */
  .footer {
    padding: 2rem 0 3rem 0;
    text-align: center;
  }

  .footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  .office-box {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .office-header {
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 0.4rem;
  }

  .office-details {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #dbe7f2;
  }

  .footer-links {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .footer-links a {
    color: #91b4d6;
    text-decoration: none;
    font-weight: 600;
  }

  .footer-text p {
    font-size: 0.95rem;
  }
}

/* FAQ Styles */
.faq-section {
  background: var(--light-bg);
  padding: 4rem 0 6rem 0;
}

.faq-section .section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f1724;
  margin-bottom: 0.5rem;
}
.faq-section .section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 12px auto 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff8bd3, #ff7e5f);
}

.faq-list {
  max-width: 760px;
  margin: 2.25rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 12px;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 12px 28px rgba(12, 20, 40, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(12, 20, 40, 0.08);
}

/* .faq-question kept for backward compatibility in markup; styles are applied to `.faq-toggle` */

.faq-toggle {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #0f1724;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  user-select: none;
  min-height: 56px;
}
.faq-toggle:focus {
  outline: 3px solid rgba(106, 87, 233, 0.12);
  border-radius: 8px;
}

.faq-title {
  display: inline-block;
  max-width: calc(100% - 92px);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* chevron pill */
.chev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  box-shadow: 0 6px 18px rgba(12, 20, 40, 0.04);
  transition: transform 0.32s ease, box-shadow 0.28s ease;
  flex: 0 0 auto;
}
.chev i {
  color: #2f3b49;
  font-size: 1rem;
  transition: transform 0.32s ease;
}
.faq-item.active .chev i {
  transform: rotate(180deg);
}
.faq-item.active .chev {
  transform: rotate(180deg);
}

/* answer area — JS manages max-height; keep hidden by the [hidden] attribute */
.faq-answer[hidden] {
  display: none !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  display: block; /* visible when not hidden; JS will remove [hidden] and animate max-height */
  transition: max-height 0.36s cubic-bezier(0.2, 0.9, 0.2, 1),
    padding 0.28s ease;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
}

.faq-item.active .faq-answer {
  padding: 14px 20px 18px 20px;
  /* no hard max-height cap here — JS will set inline maxHeight to the measured content height */
  max-height: none;
  display: block;
}

@media (max-width: 900px) {
  .faq-list {
    max-width: 90%;
    padding: 0 8px;
  }
  .faq-toggle {
    padding: 14px 12px;
    min-height: 52px;
  }
  .chev {
    width: 40px;
    height: 40px;
  }
}

/* Mobile responsive styles for stats section */
@media (max-width: 600px) {
  .stats-section {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    padding: 20px 10px;
  }
  .stat-box {
    width: 90% !important;
    margin: 0 !important;
    font-size: 1em !important;
    padding: 15px 5px !important;
    box-sizing: border-box;
  }
  .stat-box h2,
  .stat-box h3 {
    font-size: 1.3em !important;
  }
  .stat-box p {
    font-size: 0.95em !important;
  }
  .stats-section .hearts {
    margin: 10px 0 !important;
  }
}
