/* ===== Beelinger — Homepage Styles (v1.1.1) ===== */
/* This file only styles the FRONT PAGE. 
   Global tokens, buttons, grids, cards, footer, etc. live in beelinger-optimized.css */

/* ----------------------------------------------
   HERO (above-the-fold) 
---------------------------------------------- */
.b-hero {
  /* soft light hero that plays nice with the brand */
  background: radial-gradient(1200px 300px at 50% -100px, #f0f4ff 0%, #ffffff 60%, #ffffff 100%);
}

.b-subtitle {
  font-size: 1.1rem; /* fallback */
  font-size: clamp(1rem, 1rem + .2vw, 1.1rem);
}

/* Email opt-in card */
.b-email-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(45,108,223,.08);
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 700px;
  margin: 18px auto 0;
}

/* Inline email form */
.b-inline-form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.b-inline-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  background: #fff;
  color: #1A1A1A;
}

.b-note { color: #6b7280; }

/* ----------------------------------------------
   SECTION HEAD (title + “see all” link)
---------------------------------------------- */
.b-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.b-head h2 { margin: 0; }
.b-head .b-link { white-space: nowrap; }

/* ----------------------------------------------
   TOPICS & TOOLS VARIANTS
---------------------------------------------- */
.b-grid--topics .b-card--topic h3 { margin-bottom: .25rem; }
.b-grid--topics .b-card--topic p { margin: 0; }

.b-grid--tools .b-card { text-align: center; padding: 18px; }

/* Square thumb with safe fallback */
.b-grid--tools .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
}
.b-grid--tools .thumb::before { content:""; display:block; padding-top:100%; } /* 1:1 fallback */
.b-grid--tools .thumb > img {
  position: absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
}
@supports (aspect-ratio: 1 / 1) {
  .b-grid--tools .thumb { aspect-ratio: 1 / 1; }
  .b-grid--tools .thumb::before { content:none; }
  .b-grid--tools .thumb > img { position: static; }
}

/* ----------------------------------------------
   POST CARD MINOR POLISH (home contexts)
---------------------------------------------- */
.b-card--post { padding: 0; overflow: hidden; } /* image flush to card edges */

/* ----------------------------------------------
   CTA section (fine-tuning on top of global shell)
---------------------------------------------- */
.b-section--cta .b-cta-inner h2 { margin: 0 0 10px; font-weight: 800; }
.b-section--cta .b-cta-inner p { margin: 0 0 16px; color: #475569; }

/* ----------------------------------------------
   ACCESSIBILITY (helpers used by front page)
---------------------------------------------- */
.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;
}

/* ----------------------------------------------
   MOBILE TWEAKS
---------------------------------------------- */
@media (max-width: 640px) {
  .b-inline-form { grid-template-columns: 1fr; }
  /* give first light section extra breathing room on phones */
  .b-section--light:first-of-type { padding-top: 48px; padding-bottom: 40px; }
}

/* ----------------------------------------------
   FEATURED TOOLS CAROUSEL (scoped styles)
---------------------------------------------- */
.featured-tools .tool-card { text-align: left; }
.featured-tools .tool-card__title { margin: 0 0 .4rem; color: var(--b-text); }
.featured-tools .tool-card__desc { margin: 0 0 .8rem; color: var(--b-muted); }
.featured-tools .tool-card__cta { white-space: nowrap; }

.bl-carousel #tools-swiper .swiper-slide .tool-card {
  height: auto;
  display: flex;
  width: 100%;
}
/* Cursor hint while dragging */
#tools-swiper { cursor: grab; }
#tools-swiper:active { cursor: grabbing; }

/* === Testimonial Card Styles === */
.testimonial-card {
  background-color: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-card h2 {
  color: #2D6CDF;
  font-size: 1.5rem;
  margin-top: 0;
}

.testimonial-card p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.testimonial-card a {
  color: #2D6CDF;
  font-weight: 600;
  text-decoration: none;
}

.testimonial-card a:hover {
  text-decoration: underline;
}

/* Share Buttons inside testimonial */
.testimonial-card .share-buttons {
  margin-top: 15px;
}

.testimonial-card .share-buttons span {
  font-size: 0.875rem;
  color: #888;
}

.testimonial-card .share-buttons a {
  margin-left: 10px;
  font-size: 0.9rem;
  color: #2D6CDF;
}


.testimonial-form-wrapper {
  background-color: #f8f9fb;
  border: 1px solid #e1e4e8;
  padding: 30px;
  max-width: 600px;
  margin: 40px auto;
  border-radius: 8px;
  text-align: center;
}
.testimonial-form-wrapper .form-title {
  color: #2D6CDF;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.testimonial-form-wrapper .form-subtitle {
  color: #444;
  font-size: 1rem;
  margin-bottom: 20px;
}
.styled-testimony-form input[type="text"],
.styled-testimony-form input[type="email"],
.styled-testimony-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.styled-testimony-form textarea {
  min-height: 120px;
  resize: vertical;
}
.styled-testimony-form label.checkbox-inline {
  display: block;
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #333;
}
.styled-testimony-form button {
  background-color: #2D6CDF;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}
.styled-testimony-form button:hover {
  background-color: #1a4c9e;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  color: #1A1A1A;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.testimonial-card h3 {
  color: #2D6CDF;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.testimonial-card .read-more {
  display: inline-block;
  margin-top: 10px;
  color: #2D6CDF;
  text-decoration: none;
  font-weight: bold;
}
.testimonial-card .read-more:hover {
  text-decoration: underline;
}
#mlb2-123456 input[type="email"],
#mlb2-123456 input[type="text"] {
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  margin-bottom: 10px;
}
#mlb2-123456 button {
  background: #2D6CDF;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
#mlb2-123456 button:hover {
  background: #1b50b0;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #1A1A1A;
}

.share-testimony {
  background: #e6f0ff;
  padding: 40px;
  border-radius: 8px;
  margin-top: 50px;
  text-align: center;
  color: #1A1A1A;
}

.styled-testimony-form input,
.styled-testimony-form textarea {
  padding: 12px;
  width: 90%;
  max-width: 400px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.styled-testimony-form button {
  padding: 12px 24px;
  background: #2D6CDF;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}


.testimonial-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.testimonial-card p {
  margin-bottom: 10px;
  color: #333;
}
.testimonial-author {
  font-weight: bold;
  color: #2D6CDF;
}
.read-story-link {
  display: inline-block;
  margin-top: 10px;
  color: #2D6CDF;
  font-weight: 600;
  text-decoration: none;
}
.read-story-link:hover {
  text-decoration: underline;
}
.share-testimony {
  margin-top: 60px;
  background: #2D6CDF;
  padding: 30px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
}
.share-testimony h2 {
  margin-top: 0;
}
.styled-testimony-form {
  max-width: 600px;
  margin: 0 auto;
}
.styled-testimony-form input,
.styled-testimony-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: none;
  border-radius: 6px;
}
.styled-testimony-form button {
  padding: 12px 20px;
  background: #fff;
  color: #2D6CDF;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}


/* custom-testimony.css */

.testimonial-section {
  background-color: #f8f9fb;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #1A1A1A;
}

.testimonial-section h2 {
  font-size: 2.25rem;
  text-align: center;
  color: #2D6CDF;
  margin-bottom: 40px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: bold;
  margin-top: 10px;
  color: #2D6CDF;
}

.testimonial-card .story-link {
  margin-top: auto;
  text-align: right;
}

.testimonial-card .story-link a {
  font-weight: 600;
  color: #2D6CDF;
  text-decoration: none;
}

.testimonial-card .story-link a:hover {
  text-decoration: underline;
}

.styled-testimony-form {
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
}

.styled-testimony-form input[type="email"],
.styled-testimony-form input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.styled-testimony-form button {
  background-color: #2D6CDF;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.styled-testimony-form button:hover {
  background-color: #1f49b5;
}
