/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ============================================================
   KEHILAT BEN DAVID — Mobile & Responsive CSS  v2.0
   Clean class-based selectors only. No attribute selectors.
   June 2026 | Design WWS
   ============================================================

   HOW TO ADD TO WORDPRESS:
   Elementor → Site Settings → Custom CSS → paste this file
   OR Appearance → Customize → Additional CSS

   ============================================================
   HOW THESE CLASSES WORK:
   In each Elementor HTML widget, find the outer grid/flex div
   and replace its inline style with a CSS class. Example:

   BEFORE (inline, not responsive):
     <div style="display:grid;grid-template-columns:repeat(3,1fr);gap:24px;">

   AFTER (class-based, fully responsive):
     <div class="kbd-grid-3">

   The class handles display, columns, gap, AND responsive
   breakpoints all in one place — no inline style needed.

   For Elementor native widgets (heading, button, image, posts)
   use the widget's built-in Responsive controls in the editor
   panel instead of CSS classes.
   ============================================================

   CLASS REFERENCE — where to apply each class:

   LAYOUT
   .kbd-grid-2        2-col grid  → 1-col on mobile
   .kbd-grid-3        3-col grid  → 1-col on mobile
   .kbd-grid-4        4-col grid  → 2-col tablet / 1-col mobile
   .kbd-flex-bar      4-item horizontal bar (service/info bars)
   .kbd-flex-2        2-item horizontal row
   .kbd-belief-card   Horizontal number-circle + text card
   .kbd-two-col       Image+text or form+sidebar 2-col layout
   .kbd-spec-grid     2-col spec/detail grid
   .kbd-btn-group     Horizontal button row

   TYPOGRAPHY
   .kbd-hero-heading  Main hero h1 text
   .kbd-section-heading  Section h2 heading
   .kbd-eyebrow       Small uppercase label above a heading
   .kbd-card-title    Card h3 heading
   .kbd-body-lg       Large body text (17–18px)
   .kbd-scripture     Scripture quote block

   COMPONENTS
   .kbd-service-card  Service detail card (navy gradient)
   .kbd-card          Generic white rounded card
   .kbd-card-dark     Dark navy card
   .kbd-quote-card    Full-width scripture/quote highlight card
   .kbd-author-bio    Author bio card (single post)
   .kbd-event-bar     Event details sidebar card
   .kbd-calendar-add  Add-to-calendar link block
   .kbd-cat-bar       Category filter navigation bar

   VISIBILITY
   .kbd-hide-mobile   Hides element on mobile (< 767px)
   .kbd-hide-tablet   Hides element on tablet (< 1024px)
   .kbd-show-mobile   Shows only on mobile
   ============================================================ */


/* ============================================================
   BREAKPOINTS
   Tablet : 1024px
   Mobile :  767px
   Mobile S: 480px
   ============================================================ */


/* ============================================================
   1. GRID LAYOUTS
   ============================================================ */

.kbd-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.kbd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kbd-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kbd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Tablet */
@media (max-width: 1024px) {
  .kbd-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .kbd-grid-2,
  .kbd-kbd-spec-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kbd-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile S */
@media (max-width: 480px) {
  .kbd-grid-4 {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   2. FLEX BAR — SERVICE / INFO BARS
   4-item horizontal bars used as service times bars,
   info strips at the top of pages, etc.
   ============================================================ */

.kbd-flex-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.kbd-flex-bar__item {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kbd-flex-bar__item:last-child {
  border-right: none;
}

.kbd-flex-bar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a227;
  margin-bottom: 4px;
}

.kbd-flex-bar__value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.kbd-flex-bar__sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Tablet — 2 per row */
@media (max-width: 1024px) and (min-width: 768px) {
  .kbd-flex-bar__item {
    flex: 0 0 50%;
    min-width: 50%;
  }

  .kbd-flex-bar__item:nth-child(2) {
    border-right: none;
  }

  .kbd-flex-bar__item:nth-child(1),
  .kbd-flex-bar__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Mobile — 1 per row */
@media (max-width: 767px) {
  .kbd-flex-bar__item {
    flex: 0 0 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
  }

  .kbd-flex-bar__item:last-child {
    border-bottom: none;
  }
}

/* 2-item flex row */
.kbd-flex-2 {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .kbd-flex-2 {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ============================================================
   3. BELIEF CARDS — HORIZONTAL NUMBER + TEXT LAYOUT
   Used in Statement of Beliefs page.
   Structure: .kbd-belief-card wraps the whole card.
   Inside: .kbd-belief-card__num + .kbd-belief-card__body
   ============================================================ */

.kbd-belief-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 48px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.kbd-belief-card--gold { border-left: 5px solid #c9a227; }
.kbd-belief-card--navy { border-left: 5px solid #1a3a6b; }

.kbd-belief-card__num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #1a3a6b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: #c9a227;
}

.kbd-belief-card__article {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c9a227;
  margin-bottom: 8px;
}

.kbd-belief-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: #1a3a6b;
  margin: 0 0 16px;
  line-height: 1.2;
}

.kbd-belief-card__body {
  flex: 1;
}

.kbd-belief-card__text {
  font-size: 16px;
  color: #374151;
  line-height: 1.85;
  margin: 0 0 20px;
}

.kbd-belief-card__refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kbd-ref-pill {
  display: inline-block;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Sub-grids inside belief cards (Article V 4-col, Article VIII 3-col) */
.kbd-belief-card .kbd-sub-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kbd-belief-card .kbd-sub-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Tablet */
@media (max-width: 1024px) {
  .kbd-belief-card {
    padding: 36px 32px;
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .kbd-belief-card {
    flex-direction: column;
    padding: 28px 20px;
    gap: 18px;
  }

  .kbd-belief-card__num {
    margin: 0 auto;
  }

  .kbd-belief-card__title {
    font-size: 20px;
  }

  .kbd-belief-card__text {
    font-size: 15px;
  }

  .kbd-belief-card .kbd-sub-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .kbd-belief-card .kbd-sub-grid-3 {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   4. BUTTON GROUP — HORIZONTAL BUTTON ROWS
   ============================================================ */

.kbd-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .kbd-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .kbd-btn-group a,
  .kbd-btn-group button {
    text-align: center !important;
    margin-right: 0 !important;
  }
}


/* ============================================================
   5. CARDS — REUSABLE CARD COMPONENTS
   ============================================================ */

/* Generic white card */
.kbd-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Dark navy card */
.kbd-card-dark {
  background: linear-gradient(135deg, #1a3a6b, #2d5fa6);
  border-radius: 20px;
  padding: 36px 32px;
  color: #fff;
}

/* Gray card */
.kbd-card-gray {
  background: #f8f7f4;
  border-radius: 16px;
  padding: 32px;
}

@media (max-width: 767px) {
  .kbd-card,
  .kbd-card-dark,
  .kbd-card-gray {
    padding: 22px 18px;
  }
}

/* Service detail card (navy gradient, used in services page) */
.kbd-service-card {
  background: linear-gradient(135deg, #1a3a6b, #2d5fa6);
  border-radius: 20px;
  padding: 48px 40px;
  color: #fff;
}

.kbd-service-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a227;
  margin-bottom: 6px;
}

.kbd-service-card__value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.kbd-service-card__row {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.kbd-service-card__row:last-of-type {
  border-bottom: none;
}

@media (max-width: 767px) {
  .kbd-service-card {
    padding: 28px 22px;
  }
}


/* ============================================================
   6. SCRIPTURE / QUOTE CARDS
   ============================================================ */

.kbd-quote-card {
  background: linear-gradient(135deg, #1a3a6b, #2d5fa6);
  border-radius: 20px;
  padding: 48px 52px;
  text-align: center;
}

.kbd-quote-card__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c9a227;
  margin-bottom: 20px;
}

.kbd-quote-card__hebrew {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.kbd-quote-card__text {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-style: italic;
  color: #e8d5a0;
  line-height: 1.6;
  margin: 0 0 16px;
}

.kbd-quote-card__ref {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 767px) {
  .kbd-quote-card {
    padding: 32px 22px;
  }

  .kbd-quote-card__text {
    font-size: 18px;
  }
}


/* ============================================================
   7. HERO SECTIONS — TYPOGRAPHY
   ============================================================ */

.kbd-hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 18px;
}

.kbd-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 800;
  color: #1a3a6b;
  line-height: 1.2;
  margin: 0 0 16px;
}

.kbd-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c9a227;
  margin-bottom: 12px;
}

.kbd-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a3a6b;
  margin: 0 0 12px;
}

.kbd-body-lg {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.kbd-scripture {
  background: linear-gradient(135deg, #1a3a6b, #2d5fa6);
  border-radius: 14px;
  padding: 28px 32px;
}

.kbd-scripture__text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  color: #e8d5a0;
  line-height: 1.6;
  margin: 0 0 10px;
}

.kbd-scripture__ref {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .kbd-hero-heading { font-size: 38px; }
  .kbd-section-heading { font-size: 30px; }
}

/* Mobile */
@media (max-width: 767px) {
  .kbd-hero-heading { font-size: 30px; }
  .kbd-section-heading { font-size: 26px; }
  .kbd-card-title { font-size: 17px; }
  .kbd-body-lg { font-size: 15px; }
  .kbd-scripture { padding: 20px 18px; }
  .kbd-scripture__text { font-size: 16px; }
}


/* ============================================================
   8. AUTHOR BIO CARD (Single Post)
   ============================================================ */

.kbd-author-bio {
  background: #f8f7f4;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.kbd-author-bio__avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1a3a6b, #2d5fa6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kbd-author-bio__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a227;
  margin-bottom: 4px;
}

.kbd-author-bio__name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .kbd-author-bio {
    flex-direction: column;
    padding: 22px 18px;
    gap: 14px;
  }
}


/* ============================================================
   9. EVENT SIDEBAR CARD
   ============================================================ */

.kbd-event-bar {
  background: #f8f7f4;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.kbd-event-bar__header {
  background: #1a3a6b;
  padding: 18px 24px;
}

.kbd-event-bar__body {
  padding: 24px;
}

.kbd-event-bar__row {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.kbd-event-bar__row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.kbd-event-bar__row-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 5px;
}

.kbd-event-bar__row-value {
  font-size: 15px;
  font-weight: 600;
  color: #1a3a6b;
}

.kbd-event-bar__row-sub {
  font-size: 13px;
  color: #6b7280;
}

/* Calendar links */
.kbd-calendar-add {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}

.kbd-calendar-add__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a227;
  margin-bottom: 14px;
}

.kbd-calendar-add__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8f7f4;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a3a6b;
}

.kbd-calendar-add__link:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .kbd-event-bar__body {
    padding: 18px 16px;
  }

  .kbd-calendar-add {
    padding: 18px;
  }
}


/* ============================================================
   10. CATEGORY FILTER BAR (Blog)
   ============================================================ */

.kbd-cat-bar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kbd-cat-bar::-webkit-scrollbar {
  display: none;
}

.kbd-cat-bar__link {
  display: block;
  padding: 18px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.kbd-cat-bar__link:hover,
.kbd-cat-bar__link--active {
  color: #1a3a6b;
  border-bottom-color: #c9a227;
}


/* ============================================================
   11. ELEMENTOR NATIVE WIDGET RESPONSIVE OVERRIDES
   Elementor's built-in widgets that need mobile tweaks
   beyond what the editor's responsive controls handle.
   ============================================================ */

/* Heading widget */
@media (max-width: 767px) {
  .elementor-widget-heading .elementor-heading-title {
    word-break: break-word;
  }
}

/* Posts widget — card images */
@media (max-width: 767px) {
  .elementor-posts-container .elementor-post__thumbnail img {
    height: 200px;
    object-fit: cover;
  }

  .elementor-posts-container .elementor-post__title {
    font-size: 18px !important;
  }
}

/* Google Maps widget */
@media (max-width: 767px) {
  .elementor-widget-google_maps iframe {
    height: 260px !important;
  }
}

/* Form widget */
@media (max-width: 767px) {
  .elementor-field-group.elementor-col-50 {
    width: 100% !important;
  }

  .elementor-button.elementor-size-md {
    width: 100% !important;
  }
}

/* Accordion widget */
@media (max-width: 767px) {
  .elementor-accordion .elementor-tab-title {
    padding: 16px 18px !important;
    font-size: 14px !important;
  }

  .elementor-accordion .elementor-tab-content {
    padding: 6px 18px 18px !important;
    font-size: 14px !important;
  }
}

/* Share buttons */
@media (max-width: 767px) {
  .elementor-share-buttons {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

/* Nav menu — mobile hamburger */
@media (max-width: 767px) {
  .elementor-nav-menu--main.elementor-nav-menu__container {
    display: none;
  }

  .elementor-menu-toggle {
    display: flex !important;
  }
}

/* Post info meta */
@media (max-width: 767px) {
  .elementor-widget-post-info .elementor-post-info {
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 12px !important;
  }
}

/* Announcement bar */
@media (max-width: 767px) {
  .elementor-widget-text-editor p {
    font-size: 13px;
    line-height: 1.6;
  }
}


/* ============================================================
   12. ELEMENTOR SECTION / COLUMN STRUCTURE
   ============================================================ */

/* Remove horizontal padding on mobile */
@media (max-width: 767px) {
  .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Column gap reduction */
  .elementor-column-gap-default > .elementor-row {
    margin-right: -8px !important;
    margin-left: -8px !important;
  }

  .elementor-column-gap-default > .elementor-row > .elementor-column {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
}


/* ============================================================
   13. VISIBILITY UTILITIES
   ============================================================ */

.kbd-hide-mobile { }
.kbd-hide-tablet { }
.kbd-show-mobile { display: none; }

@media (max-width: 767px) {
  .kbd-hide-mobile { display: none !important; }
  .kbd-show-mobile { display: block !important; }
}

@media (max-width: 1024px) {
  .kbd-hide-tablet { display: none !important; }
}

@media (min-width: 1025px) {
  .kbd-hide-desktop { display: none !important; }
}


/* ============================================================
   14. GLOBAL TYPOGRAPHY SCALE
   Applied to .kbd-* text classes — size steps at breakpoints
   ============================================================ */

/* Hero headings */
@media (max-width: 1024px) {
  .kbd-hero-heading { font-size: 38px; }
}
@media (max-width: 767px) {
  .kbd-hero-heading { font-size: 30px; line-height: 1.2; }
}

/* Section headings */
@media (max-width: 1024px) {
  .kbd-section-heading { font-size: 30px; }
}
@media (max-width: 767px) {
  .kbd-section-heading { font-size: 26px; }
}

/* Body text */
@media (max-width: 767px) {
  .kbd-body-lg { font-size: 15px; }
}


/* ============================================================
   15. SPACING — SECTION PADDING SCALE
   Applied to .elementor-section when you add these classes
   via the section's Advanced → CSS Classes field
   ============================================================ */

.kbd-section-lg  { padding-top: 90px !important; padding-bottom: 90px !important; }
.kbd-section-md  { padding-top: 72px !important; padding-bottom: 72px !important; }
.kbd-section-sm  { padding-top: 48px !important; padding-bottom: 48px !important; }

@media (max-width: 1024px) {
  .kbd-section-lg { padding-top: 72px !important; padding-bottom: 72px !important; }
  .kbd-section-md { padding-top: 56px !important; padding-bottom: 56px !important; }
  .kbd-section-sm { padding-top: 36px !important; padding-bottom: 36px !important; }
}

@media (max-width: 767px) {
  .kbd-section-lg { padding-top: 52px !important; padding-bottom: 52px !important; }
  .kbd-section-md { padding-top: 44px !important; padding-bottom: 44px !important; }
  .kbd-section-sm { padding-top: 28px !important; padding-bottom: 28px !important; }
}


/* ============================================================
   16. IMAGE SIZING
   ============================================================ */

@media (max-width: 767px) {
  /*.elementor-widget-image img {*/
  /*  height: 260px !important;*/
  /*  object-fit: cover !important;*/
  /*  width: 100% !important;*/
  /*}*/

  /* Est. 2015 badge — reposition on mobile */
  .kbd-est-badge {
    bottom: -12px !important;
    right: -12px !important;
    padding: 12px 16px !important;
  }
}


/* ============================================================
   17. FOOTER UTILITIES
   ============================================================ */

@media (max-width: 767px) {
  /* Footer bottom bar — stack copyright + credit */
  .kbd-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  /* Footer brand description */
  .kbd-footer-desc {
    max-width: 100% !important;
  }
}


/* ============================================================
   END OF FILE
   ============================================================

   IMPLEMENTATION GUIDE — 3 steps:

   STEP 1: Add this CSS file
   Elementor → Site Settings → Custom CSS → paste

   STEP 2: In HTML widget content, replace inline grid styles
   with CSS classes. Example:

   Old:  <div style="display:grid;grid-template-columns:repeat(3,1fr);gap:24px;">
   New:  <div class="kbd-grid-3">

   Old:  <div style="display:flex;align-items:stretch;flex-wrap:wrap;">
           <div style="flex:1;min-width:200px;padding:28px 32px;...">
   New:  <div class="kbd-flex-bar">
           <div class="kbd-flex-bar__item">

   STEP 3: For Elementor native widgets (Heading, Button, Image,
   Posts), use the widget's Responsive controls in the editor
   panel to set tablet/mobile font sizes and column counts.
   These don't need CSS — Elementor handles them natively.

   TEST AT:
   375px  — iPhone SE
   390px  — iPhone 14 / 15
   430px  — iPhone 14 Pro Max
   768px  — iPad portrait
   1024px — iPad landscape / iPad Pro portrait

   ============================================================ */


/* ============================================================
   30. VIDEO CARD COMPONENTS
   Used on the Videos to Watch page
   ============================================================ */

/* Video card wrapper */
.kbd-video-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.kbd-video-card:hover {
  box-shadow: 0 8px 32px rgba(26, 58, 107, 0.15);
  transform: translateY(-2px);
}

/* Thumbnail container — 16:9 aspect ratio */
.kbd-video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: #1a3a6b;
  overflow: hidden;
  flex-shrink: 0;
}

.kbd-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play button overlay */
.kbd-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s;
  text-decoration: none;
}

.kbd-video-play:hover {
  background: rgba(0, 0, 0, 0.2);
}

.kbd-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.kbd-video-play:hover .kbd-play-btn {
  transform: scale(1.08);
  background: rgba(220, 38, 38, 1);
}

.kbd-play-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* Video info area */
.kbd-video-info {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category badge */
.kbd-video-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  width: fit-content;
}

.kbd-video-badge--teal    { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.kbd-video-badge--gold    { background: #fefce8; color: #92400e; border: 1px solid #fde68a; }
.kbd-video-badge--navy    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.kbd-video-badge--green   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.kbd-video-badge--red     { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.kbd-video-badge--blue    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Video title */
.kbd-video-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: #1a3a6b;
  margin: 0 0 8px;
  line-height: 1.35;
}

/* Video description */
.kbd-video-desc {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 0 14px;
  flex: 1;
}

/* Watch link */
.kbd-video-link {
  font-size: 13px;
  font-weight: 700;
  color: #c9a227;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  margin-top: auto;
  display: inline-block;
}

.kbd-video-link:hover {
  color: #1a3a6b;
}

/* Section intro row (icon + heading) */
.kbd-section-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.kbd-section-intro__icon {
  width: 48px;
  height: 48px;
  background: #1a3a6b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

/* ---- Mobile overrides ---- */

@media (max-width: 1024px) {
  /* Holidays 4-col → 2-col already handled by kbd-grid-4 */
  .kbd-play-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 767px) {
  /* Video cards — full width on mobile, grid already collapses */
  .kbd-video-info {
    padding: 16px 18px 18px;
  }

  .kbd-video-title {
    font-size: 16px;
  }

  .kbd-video-desc {
    font-size: 13px;
  }

  /* Play button size */
  .kbd-play-btn {
    width: 44px;
    height: 44px;
  }

  .kbd-play-arrow {
    border-width: 8px 0 8px 14px;
    margin-left: 3px;
  }

  /* Ministry resource cards — stack icon above text */
  .kbd-ministry-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* ── SHABBAT SCHEDULE CARD LAYOUT ── -----*/
.elementor-element-7dee095,
.elementor-element-16da546 {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

/* Icon column — fixed width */
.elementor-element-d3f2e88,
.elementor-element-bc174d0 {
    flex: 0 0 80px !important;
    width: 80px !important;
    min-width: 80px !important;
}

/* Text column — fill remaining space */
.elementor-element-3d9bb7f,
.elementor-element-c232301 {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

/* ── INFO BAR (kbd-flex-bar) ── */
.kbd-flex-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: #1a3a6b;
    border-radius: 12px;
    overflow: hidden;
}

.kbd-flex-bar__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    flex: 1;
    min-width: 200px;
}

.kbd-flex-bar__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #93c5fd;
    margin-bottom: 4px;
}

.kbd-flex-bar__value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* ── HOLIDAYS GRID (kbd-grid-4) ── */
.kbd-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .kbd-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .kbd-flex-bar {
        flex-direction: column;
    }
    .kbd-flex-bar__item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .kbd-grid-4 {
        grid-template-columns: 1fr;
    }
    .elementor-element-7dee095,
    .elementor-element-16da546 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}
