/* =========================
  ROOT & GLOBAL
  ========================= */

:root {
  --primary: #ff6f91;       /* soft pink */
  --secondary: #c72c48;     /* deep pink */
  --bg1: #fff8f8;           /* very light pink */
  --bg2: #ffe6ea;           /* soft gradient pink */
  --card-bg: #ffffff;
  --card-bg-soft: #ffeef2;
  --text-main: #333333;
  --text-muted: #666666;
  --border-soft: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 10px 30px rgba(255, 155, 175, 0.3);
  --shadow-subtle: 0 6px 18px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top left, var(--bg1), var(--bg2));
  color: var(--text-main);
  min-height: 100vh;
  /* Prevent layout shifts when modal/menu open */
  overflow-y: scroll; 
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Helper class to hide sections for multi-page sim */
.page-section {
  display: none; /* Hidden by default */
}
.page-section.active {
  display: block; /* Shown when active */
}


/* =========================
  BACKGROUND GLOW HEART
  ========================= */

.background-heart {
  position: fixed;
  width: 320px;
  height: 320px;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 170, 185, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

/* =========================
  HEADER & NAVBAR
  ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 248, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  cursor: pointer; /* Make logo clickable */
}

.logo-small {
  width: auto;
  height: 40px;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  margin: 0 2rem;
  overflow: hidden;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  transition: 0.25s ease;
  white-space: nowrap;
  cursor: pointer; /* Make links clickable */
  padding: 5px 10px; /* Add some padding for easier clicking */
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px; /* Match padding */
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 20px); /* Adjust width based on padding */
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-cta a {
  margin-left: 0;
}

/* =========================
  BUTTONS
  ========================= */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(255, 111, 145, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 111, 145, 0.6);
}

.btn-outline {
  background: #ffffff;
  color: var(--secondary);
  border-color: rgba(199, 44, 72, 0.4);
  box-shadow: 0 4px 12px rgba(199, 44, 72, 0.12);
}

.btn-outline:hover {
  background: #ffe6ea;
  border-color: rgba(199, 44, 72, 0.7);
}

.large-btn {
  padding: 12px 26px;
}

.full-btn {
  width: 100%;
  justify-content: center;
}

/* Button for page navigation */
.btn-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card-bg-soft);
  border: 1px solid var(--border-soft);
}

.btn-page-nav:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.view-all-container {
  text-align: center;
  margin-top: 2rem;
}

/* =========================
  MOBILE MENU + HAMBURGER
  ========================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--secondary);
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.1rem 1.6rem 1.4rem;
  background: rgba(255, 248, 248, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  transform: translateY(-10px);
  
  /* Make it scrollable on small screens if many links */
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-menu a {
  padding: 0.7rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-menu a.active {
  color: var(--secondary);
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--secondary);
}

.mobile-btn {
  margin-top: 0.9rem;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(199, 44, 72, 0.35);
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary);
  background: #ffffff;
}

.mobile-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #ffffff;
}

.mobile-menu.show {
  display: flex;
  transform: translateY(0);
}

/* =========================
  HERO
  ========================= */

#hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-top-centered {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.hero-logo {
  width: 220px;
  height: auto;
  animation: float 4s ease-in-out infinite, fadeIn 1.4s ease-out;
  filter: drop-shadow(0 12px 28px rgba(255, 111, 145, 0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.hero-title span {
  display: block;
  color: var(--secondary);
}

.hero-subtext {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}

.hero-btn-center {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* =========================
  SECTIONS
  ========================= */

section {
  padding: 2.8rem 0 2.4rem;
}

/* Homepage Snippet Wrapper */
.homepage-snippet {
  padding: 2.8rem 0 2.4rem;
  /* Special styling to denote a snippet */
  border-bottom: 1px dashed rgba(199, 44, 72, 0.15);
}

.section-header-light {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.section-desc-light {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* =========================
  SCROLLING MARQUEE (NEW)
  ========================= */

.marquee-container {
  padding: 2.5rem 0;
  /* Glassmorphism & Transparency */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  /* Changed to full border for rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.6);
  /* Added rounded corners */
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-top: 1rem;
}

.marquee-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary); /* Changed to secondary for better contrast on glass */
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.marquee-track-wrapper {
  overflow: hidden;
  width: 100%;
  /* Fade effect on sides */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite; /* Slowed down slightly for elegance */
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 3.5rem; /* Increased spacing */
  opacity: 0.85;
  transition: all 0.3s ease;
  min-width: 140px;
}

.marquee-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Logo placeholders styling */
.logo-placeholder {
  height: 90px; /* Increased from 65px to 90px as requested */
  width: auto;
  object-fit: contain;
  /* Removed grayscale to make them pop more on glass, or you can keep it if preferred */
  /* filter: grayscale(100%); */ 
  transition: filter 0.3s;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.marquee-item:hover .logo-placeholder {
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.1));
}

.marquee-label {
  font-size: 0.7rem;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
  ABOUT & TIMELINE (New)
  ========================= */

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.mission-card {
  text-align: center;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-soft);
}

.mission-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.mission-card h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.mission-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Shayna Section */
.shayna-container {
  background: linear-gradient(135deg, #fff0f3, #fff);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-subtle);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.shayna-image {
  width: 250px;
  height: 300px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  background-color: #e0e0e0; /* Placeholder color */
}

.shayna-content {
  flex-grow: 1;
}

.shayna-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.shayna-quote {
  font-style: italic;
  color: var(--secondary);
  font-size: 1.1rem;
  margin: 1rem 0;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.shayna-full-text {
  display: none; /* Hidden initially */
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-soft);
}

.shayna-full-text p {
  margin-bottom: 0.8rem;
}

.read-more-btn {
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-block;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* =========================
   MODERN TIMELINE 2.0
   ========================= */

.timeline-section {
  position: relative;
  padding: 3rem 0;
}

.modern-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* The Central Line */
.modern-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  transform: translateX(-50%);
  border-radius: 4px;
  opacity: 0.8;
}

.timeline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px; /* Spacing between rows */
  position: relative;
}

/* Icons on the line */
.timeline-icon-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.8); /* White ring around */
  color: var(--secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.timeline-row:hover .timeline-icon-container {
  background: var(--secondary);
  color: white;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 0 8px rgba(255, 111, 145, 0.2);
}

.timeline-content-wrapper {
  width: 50%;
  padding: 0 50px;
  position: relative;
}

.timeline-row:nth-child(odd) .timeline-content-wrapper {
  margin-left: auto; /* Push to right */
  text-align: left;
}

.timeline-row:nth-child(even) .timeline-content-wrapper {
  margin-right: auto; /* Push to left */
  text-align: right;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 5px solid var(--primary); /* Accent border */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.timeline-row:nth-child(even) .timeline-card {
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-right: 5px solid var(--secondary);
}

.timeline-row:hover .timeline-card {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(199, 44, 72, 0.15);
}

/* Arrows pointing to the line */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Right side items (Odd rows) -> Arrow on left */
.timeline-row:nth-child(odd) .timeline-card::before {
  left: -15px;
  border-width: 10px 15px 10px 0;
  border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
}

/* Left side items (Even rows) -> Arrow on right */
.timeline-row:nth-child(even) .timeline-card::before {
  right: -15px;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

.t-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(255, 111, 145, 0.3);
}

.t-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.t-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.t-tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-row:nth-child(even) .t-tags {
  justify-content: flex-end;
}

.t-tag {
  background: var(--bg1);
  color: var(--secondary);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid rgba(199, 44, 72, 0.1);
}

/* Responsive for Timeline */
@media (max-width: 768px) {
  .modern-timeline::before {
    left: 30px; /* Move line to left */
  }
  
  .timeline-row {
    justify-content: flex-start;
    margin-bottom: 40px;
  }
  
  .timeline-icon-container {
    left: 30px; /* Align icon with line */
  }
  
  .timeline-content-wrapper {
    width: 100%;
    padding-left: 80px; /* Space for icon */
    padding-right: 0;
  }
  
  /* Reset alignment for all cards to left */
  .timeline-row:nth-child(odd) .timeline-content-wrapper,
  .timeline-row:nth-child(even) .timeline-content-wrapper {
    margin: 0;
    text-align: left;
  }
  
  /* Reset borders and arrows */
  .timeline-card, .timeline-row:nth-child(even) .timeline-card {
    border-left: 5px solid var(--primary);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
  }
  
  .timeline-row:nth-child(odd) .timeline-card::before,
  .timeline-row:nth-child(even) .timeline-card::before {
    left: -15px;
    right: auto;
    border-width: 10px 15px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
  }
  
  .timeline-row:nth-child(even) .t-tags {
    justify-content: flex-start;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-card {
  text-align: center;
}

.pastel-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.pastel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--secondary);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================
  HOW IT WORKS (Snippet)
  ========================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--secondary);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================
  SERVICES
  ========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  text-align: left;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe1ea, #ffd1de);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  color: var(--secondary);
  box-shadow: 0 8px 18px rgba(255, 165, 185, 0.4);
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--secondary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================
  EXPERTS
  ========================= */

.experts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.expert-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  
  flex-grow: 1;
  flex-basis: 320px; 
  max-width: 380px; 
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.expert-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.9rem;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.expert-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--secondary);
}

.expert-card .expertise {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.expert-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* NEW: Expert Table Styles */
.expert-table-container {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-soft);
  overflow-x: auto; 
  margin: 0 auto;
  max-width: 900px;
}

.expert-table {
  width: 100%;
  border-collapse: collapse;
}

.expert-table th,
.expert-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.expert-table th {
  background: var(--card-bg-soft);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.expert-table td {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.expert-table td:first-child { 
  font-weight: 500;
  color: var(--text-main);
  min-width: 250px;
}

.expert-table td:last-child { 
    white-space: nowrap;
}

.expert-table tr:last-child td {
  border-bottom: none;
}

/* =========================
  TESTIMONIALS
  ========================= */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card-bg-soft);
  border-radius: 18px;
  padding: 1.8rem 1.6rem 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.testimonial-card::before {
  content: '\f10d';
  font-family: 'FontAwesome';
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  font-size: 1.8rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: right;
}

/* =========================
  FAQ
  ========================= */
.faq-container {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: 0.3s ease; /* For smooth active state */
}

.faq-item.active {
  box-shadow: var(--shadow-soft);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.05rem;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}

.faq-question:hover {
  background: var(--card-bg-soft);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
  padding: 0 1.4rem 0rem; /* Start with no bottom padding */
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.2rem; /* Add padding when active */
}

.faq-item.active .faq-answer p {
    padding-bottom: 0; /* Remove padding from p to use parent's */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Style for links inside FAQ answers */
.faq-link {
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-link:hover {
  color: var(--primary);
}

/* =========================
  SOCIAL MEDIA SECTION
  ========================= */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.social-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-subtle);
  display: block;
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1; /* Make cards square */
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.social-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-card-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 1.4rem;
  color: #e4405f;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.social-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover .social-card-overlay {
  opacity: 1;
}

.social-card-caption {
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.4;
}

/* =========================
  BLOG
  ========================= */
  
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  overflow: hidden; /* Ensure image corners are rounded */
  cursor: pointer; /* Show it's clickable */
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.4rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  line-height: 1.4;
  /* Truncate long titles */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Added for standard compatibility */
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  /* Truncate long descriptions */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3; /* Added for standard compatibility */
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.blog-card-readmore {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}

.blog-card-readmore i {
  margin-left: 4px;
  transition: 0.2s ease;
}

.blog-card:hover .blog-card-readmore i {
  margin-left: 8px;
}

/* Hidden elements to store full blog content */
.blog-card .blog-full-image-src,
.blog-card .blog-full-title,
.blog-card .blog-full-meta,
.blog-card .blog-full-content {
  display: none;
}

/* =========================
  SINGLE BLOG POST VIEW (NEW)
  ========================= */
  
.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  overflow: hidden; /* To round image corners */
}

#blog-post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.blog-post-content {
  padding: 2rem 2.5rem 2.5rem;
}

#blog-post-meta {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

#blog-post-title {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

#blog-post-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

#blog-post-body p {
  margin-bottom: 1rem;
}

#blog-post-body h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#blog-post-body ul {
  list-style-position: inside;
  padding-left: 10px;
  margin-bottom: 1rem;
}

#blog-post-body li {
  margin-bottom: 0.5rem;
}

.blog-back-button-container {
  margin-bottom: 1.5rem;
}

.blog-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
}

.blog-back-button i {
  transition: 0.2s ease;
}

.blog-back-button:hover i {
  margin-left: -4px;
}

/* =========================
  CONTACT FORM
  ========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
}

.contact-info-card {
    padding: 1.8rem;
    text-align: center; /* Center text */
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.contact-row i {
  color: var(--secondary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Center the flex rows inside the contact card specifically */
.contact-info-card .contact-row {
    justify-content: center;
}

/* Center the social links in the card */
.contact-info-card .social-links {
    justify-content: center;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Container for multiple numbers */
.contact-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-links .fa {
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links .fa-facebook { background: #3b5998; }
.social-links .fa-linkedin { background: #007bb5; }
.social-links .fa-instagram { background: #e4405f; }

.social-links .fa:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.contact-form {
    padding: 1.8rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--bg1);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 111, 145, 0.18);
  outline: none;
  background: #fff;
}

.contact-form input:invalid {
  border-color: #e53e3e;
}

.form-error {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-top: 4px;
  display: none; /* Hidden by default */
}

#formSuccess {
  color: #276749;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  display: none; /* Hidden by default */
}

/* =========================
  TERMS & CONDITIONS PAGE
  ========================= */

.terms-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
}

.terms-container p, .terms-container li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.terms-container ol {
  padding-left: 20px;
}

/* =========================
  FOOTER WAVE
  ========================= */

.footer-wave {
  margin-top: 3rem;
  line-height: 0;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
  FOOTER
  ========================= */

footer {
  padding: 3rem 0 1.5rem;
  background: #fff5f7;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1120px;
  margin: auto;
  padding: 0 1.5rem;
}

.footer-column {
  /* Default to left-align for desktop */
  text-align: left;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: 0.2s ease;
  cursor: pointer;
}

.footer-column ul li a:hover {
  color: var(--secondary);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-contact-row i {
  color: var(--secondary);
}

.footer-social .fa {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.footer-grid .footer-column:first-child p {
  margin-top: 8px;
  max-width: 450px;
}


footer .nav-logo {
  flex-direction: column;
  align-items: flex-start; /* Align logo to the left */
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  display: inline-flex;
}

footer .logo-small {
  width: auto;
  max-width: 150px;
  height: auto;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

/* =========================
  ANIMATIONS HELPERS
  ========================= */

.fade-in {
  animation: fadeIn 0.9s ease both;
}

.fade-in-up {
  animation: fadeInUp 0.9s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
  RESPONSIVE
  ========================= */

@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .about-grid,
  .about-hero-grid,
  .mission-cards,
  .steps-grid,
  .services-grid,
  .testimonial-grid,
  .social-grid,
  .contact-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .shayna-container {
    flex-direction: column;
    text-align: center;
  }
  
  .shayna-image {
    margin: 0 auto;
  }
  
  .shayna-quote {
    border-left: none;
    border-top: 3px solid var(--primary);
    padding-top: 1rem;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center; /* Center align all footer columns on mobile */
  }
  
  .footer-column {
    text-align: center;
  }
  
  footer .nav-logo {
    align-items: center; /* Center logo on mobile */
  }

  .footer-contact-row,
  .social-links {
    justify-content: center;
  }
  
  .footer-grid .footer-column:first-child p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .terms-container {
    padding: 1.5rem 1rem;
  }
  
  .blog-post-content {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (max-width: 600px) {
  .hero-logo {
    width: 170px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .pastel-card,
  .contact-form,
  .contact-info-card {
    padding: 1.2rem 1.3rem;
  }
  
  .blog-post-content {
    padding: 1.5rem 1rem 2rem;
  }
  
  #blog-post-title {
    font-size: 1.5rem;
  }
}

/* =========================
  RESOURCE LINKS (New for FAQ)
  ========================= */

.resource-category-title {
  font-size: 1.1rem;
  color: var(--secondary);
  margin: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.5rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.resource-link {
  display: flex;
  align-items: flex-start; /* Align top for multi-line titles */
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition: all 0.25s ease;
  color: var(--text-main);
}

.resource-link i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 3px; /* Visual alignment */
  flex-shrink: 0;
}

.resource-link span {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 500;
}

.resource-link:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-subtle);
  color: var(--secondary);
}

@media (max-width: 768px) {
  .resource-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
}

/* =========================
  404 ERROR PAGE
  ========================= */

.error-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  /* Keep the global background */
  background: radial-gradient(circle at top left, var(--bg1), var(--bg2));
  overflow: hidden; /* Prevent scrollbars on the error page */
}

.error-container {
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.error-logo {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15; /* Very subtle watermark effect */
  margin-bottom: -2rem; /* Overlap with the text slightly */
  user-select: none;
}

.error-title {
  font-size: 1.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
}

.error-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .error-code {
    font-size: 6rem;
    margin-bottom: -1.5rem;
  }
  .error-title {
    font-size: 1.4rem;
  }
}

/* =========================
   4-COLUMN GRID OVERRIDE
   ========================= */
@media (min-width: 1100px) {
  .services-grid.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Adjust font size slightly for 4-column layout to prevent crowding */
.services-grid.four-up .service-card h3 {
  font-size: 0.95rem; 
}
.services-grid.four-up .service-card p {
  font-size: 0.85rem;
}

/* =========================
   MOBILE-ONLY BUTTON UTILITY
   ========================= */

/* Hidden by default (Desktop) */
.mobile-only-btn {
  display: none !important; 
}

/* Visible only on screens smaller than 960px (Mobile/Tablet) */
@media (max-width: 960px) {
  .mobile-only-btn {
    display: inline-flex !important;
  }
}