/**
 * Rabindranath World School - Dynamic Events & Gallery Stylesheet
 * Responsive, elegant styling for JSON-driven Events, Gallery, and Home components
 */

/* ==========================================================================
   Global Filter & Search Controls
   ========================================================================== */
.rws-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.rws-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rws-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.rws-filter-btn:hover {
  background: #f1f5f9;
  border-color: #6caf38;
  color: #2e5c00;
}

.rws-filter-btn.active {
  background: #6caf38;
  border-color: #6caf38;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(108, 175, 56, 0.35);
}

.rws-search-box {
  position: relative;
  min-width: 200px;
  flex-grow: 1;
  max-width: 320px;
}

.rws-search-box input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rws-search-box input:focus {
  border-color: #6caf38;
  box-shadow: 0 0 0 3px rgba(108, 175, 56, 0.2);
}

.rws-search-box .fa-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================================
   Events List (Accordion & Details)
   ========================================================================== */
.rws-events-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.rws-event-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rws-event-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.rws-event-card.open {
  border-color: #6caf38;
  box-shadow: 0 4px 16px rgba(108, 175, 56, 0.12);
}

.rws-event-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: background 0.2s ease;
}

.rws-event-card.open .rws-event-header {
  background: #fcfdfa;
  border-bottom: 1px solid #f1f5f9;
}

.rws-event-date-badge {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.rws-event-date-day {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.1;
  padding-top: 3px;
}

.rws-event-date-month {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background: #6caf38;
  text-align: center;
  padding: 2px 0;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.rws-event-info {
  flex-grow: 1;
  padding-right: 15px;
}

.rws-event-title {
  font-size: 17px;
  font-weight: 700;
  color: #1c3700;
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.rws-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #64748b;
}

.rws-event-category-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rws-event-category-tag.upcoming {
  background: #dcfce7;
  color: #15803d;
}

.rws-event-category-tag.past {
  background: #f1f5f9;
  color: #475569;
}

.rws-event-toggle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.rws-event-card.open .rws-event-toggle-icon {
  transform: rotate(180deg);
  background: #6caf38;
  color: #ffffff;
}

.rws-event-body {
  display: none;
  padding: 20px 22px;
  border-top: 1px solid #f1f5f9;
}

.rws-event-card.open .rws-event-body {
  display: block;
  animation: rwsFadeIn 0.3s ease forwards;
}

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

/* Event Gallery / Slideshow inside accordion */
.rws-event-slider-wrap {
  position: relative;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rws-event-slide-main {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rws-event-slide-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.rws-event-slide-main img:hover {
  transform: scale(1.02);
}

.rws-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
  z-index: 5;
}

.rws-slider-arrow:hover {
  background: #6caf38;
  transform: translateY(-50%) scale(1.1);
}

.rws-slider-prev { left: 12px; }
.rws-slider-next { right: 12px; }

.rws-event-thumbnails-strip {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #1e293b;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rws-event-thumb-item {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.rws-event-thumb-item.active,
.rws-event-thumb-item:hover {
  opacity: 1;
  border-color: #6caf38;
}

.rws-event-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rws-event-description {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 18px;
}

.rws-event-description p {
  margin-bottom: 10px;
}

/* Attachments (PDFs & Documents) */
.rws-attachments-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.rws-attachments-heading {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rws-attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rws-attachment-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #2e5c00;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rws-attachment-item:hover {
  background: #6caf38;
  color: #ffffff;
  border-color: #6caf38;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(108, 175, 56, 0.25);
}

.rws-attachment-item .fa-file-pdf-o,
.rws-attachment-item .fa-download {
  color: #ef4444;
  font-size: 16px;
  transition: color 0.2s;
}

.rws-attachment-item:hover .fa-file-pdf-o,
.rws-attachment-item:hover .fa-download {
  color: #ffffff;
}

.rws-attachment-size {
  font-size: 11px;
  opacity: 0.8;
  font-weight: normal;
}

/* Correlated Gallery Link button */
.rws-btn-view-gallery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.rws-btn-view-gallery:hover {
  background: #2e5c00;
  color: #ffffff;
  border-color: #2e5c00;
  text-decoration: none;
}

/* ==========================================================================
   Photo Gallery Grid
   ========================================================================== */
.rws-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 15px;
}

.rws-album-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.rws-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  border-color: #6caf38;
}

.rws-album-cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 ratio */
  background: #0f172a;
  overflow: hidden;
}

.rws-album-cover-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rws-album-card:hover .rws-album-cover-wrap img {
  transform: scale(1.06);
}

.rws-album-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 55, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rws-album-card:hover .rws-album-overlay {
  opacity: 1;
}

.rws-album-overlay-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #2e5c00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.rws-album-card:hover .rws-album-overlay-icon {
  transform: scale(1);
}

.rws-album-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.rws-album-info {
  padding: 14px 16px;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rws-album-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rws-album-session {
  font-size: 12px;
  color: #6caf38;
  font-weight: 600;
}

/* ==========================================================================
   Full Screen Lightbox Modal
   ========================================================================== */
.rws-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 29, 0.94);
  z-index: 999999;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.rws-lightbox-modal.active {
  display: flex;
  animation: rwsFadeIn 0.25s ease forwards;
}

.rws-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  z-index: 10;
}

.rws-lightbox-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70vw;
}

.rws-lightbox-counter {
  font-size: 13.5px;
  color: #94a3b8;
  margin-left: 12px;
}

.rws-lightbox-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.rws-lightbox-close-btn:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

.rws-lightbox-stage {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  overflow: hidden;
}

.rws-lightbox-stage img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  transition: opacity 0.2s ease;
}

.rws-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.rws-lightbox-arrow:hover {
  background: #6caf38;
  transform: translateY(-50%) scale(1.1);
}

.rws-lightbox-arrow.prev { left: 24px; }
.rws-lightbox-arrow.next { right: 24px; }

.rws-lightbox-bottombar {
  padding: 10px 20px 16px 20px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rws-lightbox-thumb {
  width: 54px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}

.rws-lightbox-thumb.active,
.rws-lightbox-thumb:hover {
  opacity: 1;
  border-color: #6caf38;
}

.rws-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Home Page Dynamic Events - Circular Avatar & Pill Card UI
   ========================================================================== */
.wpb_events_listing .vc-custom-inner-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.wpb_events_listing .post-event-item {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.wpb_events_listing .post-event-item .item-inner.layout-simplify {
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  padding: 6px 28px 6px 8px !important;
  margin-bottom: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  min-height: 106px !important;
}

.wpb_events_listing .post-event-item:hover .item-inner.layout-simplify {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 32px rgba(108, 175, 56, 0.18) !important;
  border-color: rgba(108, 175, 56, 0.4) !important;
}

.wpb_events_listing .post-event-item .bg-event-list {
  display: none !important;
}

.wpb_events_listing .post-event-item .event-featured-image-wrap {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  width: auto !important;
  float: none !important;
}

.wpb_events_listing .post-event-item .event-thumbnail,
.wpb_events_listing .post-event-item .rws-home-event-thumb {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3.5px solid #6caf38 !important;
  box-shadow: 0 4px 16px rgba(108, 175, 56, 0.3) !important;
  background: #f8fafc !important;
  position: relative !important;
  margin: 2px 14px 2px 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wpb_events_listing .post-event-item .event-thumbnail img,
.wpb_events_listing .post-event-item .rws-home-event-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  display: block !important;
}

.wpb_events_listing .post-event-item:hover .event-thumbnail img,
.wpb_events_listing .post-event-item:hover .rws-home-event-thumb img {
  transform: scale(1.12) !important;
}

.wpb_events_listing .post-event-item .edu-event-date {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 20px 0 10px !important;
  white-space: nowrap !important;
  float: none !important;
  border-right: 2px solid #e2e8f0 !important;
  flex: 0 0 auto !important;
}

.wpb_events_listing .post-event-item .edu-event-date .edu-event-day {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wpb_events_listing .post-event-item .edu-event-date .edu-event-day span {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #6caf38 !important;
  line-height: 1 !important;
  font-family: inherit !important;
}

.wpb_events_listing .post-event-item .content-entry {
  flex: 1 1 auto !important;
  padding: 0 24px !important;
  margin: 0 !important;
  border: none !important;
  text-align: left !important;
  float: none !important;
}

.wpb_events_listing .post-event-item .content-entry .title-link {
  text-decoration: none !important;
  display: inline-block !important;
}

.wpb_events_listing .post-event-item .content-entry .title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  transition: color 0.25s ease !important;
}

.wpb_events_listing .post-event-item:hover .content-entry .title {
  color: #6caf38 !important;
}

.wpb_events_listing .post-event-item a.readmore-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #6caf38 0%, #57922d 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 13px 30px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(108, 175, 56, 0.35) !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  margin-left: auto !important;
  float: none !important;
  flex: 0 0 auto !important;
}

.wpb_events_listing .post-event-item a.readmore-link:hover {
  background: linear-gradient(135deg, #57922d 0%, #467623 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(108, 175, 56, 0.48) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Dynamic Marquee Ticker UI
   ========================================================================== */
.marqueeandlinks ul li.marquee {
  width: 100% !important;
  display: block !important;
}

marquee.rws-dynamic-marquee,
.marqueeandlinks marquee {
  display: block !important;
  width: 100% !important;
  line-height: 28px !important;
  padding: 3px 0 !important;
}

.MarqueeText a {
  color: #ffff00 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
  transition: color 0.2s ease !important;
}

.MarqueeText a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.divMarqueeNew {
  display: inline-block !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  padding: 2px 10px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  margin-left: 8px !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
  animation: rwsPulseBadge 2s infinite !important;
  vertical-align: middle !important;
  line-height: 16px !important;
}

@keyframes rwsPulseBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .wpb_events_listing .post-event-item .item-inner.layout-simplify {
    border-radius: 30px !important;
    padding: 14px 20px !important;
    flex-wrap: wrap !important;
  }
  .wpb_events_listing .post-event-item .content-entry {
    padding: 10px 15px !important;
  }
}

@media (max-width: 767px) {
  .wpb_events_listing .post-event-item .item-inner.layout-simplify {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    border-radius: 24px !important;
    padding: 18px 16px !important;
    gap: 12px !important;
  }
  .wpb_events_listing .post-event-item .event-thumbnail,
  .wpb_events_listing .post-event-item .rws-home-event-thumb {
    margin: 0 auto 6px auto !important;
  }
  .wpb_events_listing .post-event-item .edu-event-date {
    border-right: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
  }
  .wpb_events_listing .post-event-item .content-entry {
    padding: 0 !important;
    text-align: center !important;
  }
  .wpb_events_listing .post-event-item a.readmore-link {
    margin: 8px auto 0 auto !important;
    width: 100% !important;
    max-width: 220px !important;
  }
  .rws-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .rws-search-box {
    max-width: 100%;
  }
  .rws-event-slide-main {
    height: 240px;
  }
  .rws-lightbox-arrow.prev { left: 10px; }
  .rws-lightbox-arrow.next { right: 10px; }
  .rws-lightbox-stage { padding: 10px 15px; }
}

/* ==========================================================================
   DYNAMIC TESTIMONIALS & VIDEO GALLERY RESPONSIVE GRID (MULTI-COLUMN)
   ========================================================================== */
.rws-testimonial-grid,
#rwsDynamicVideosContainer,
#ContentPlaceHolder1_div7 .rws-testimonial-grid,
#ContentPlaceHolder1_div7 #rwsDynamicVideosContainer {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px 18px !important;
  width: 100% !important;
  grid-column: 1 / -1 !important;
  margin-top: 15px !important;
  margin-bottom: 35px !important;
}

@media (min-width: 1400px) {
  .rws-testimonial-grid,
  #rwsDynamicVideosContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) and (min-width: 601px) {
  .rws-testimonial-grid,
  #rwsDynamicVideosContainer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 15px !important;
  }
}

@media (max-width: 600px) {
  .rws-testimonial-grid,
  #rwsDynamicVideosContainer {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.rws-testimonial-card {
  background: #ffffff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.rws-testimonial-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

.rws-testimonial-video-wrap {
  position: relative !important;
  width: 100% !important;
  padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
  height: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.rws-testimonial-video-wrap iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.rws-testimonial-info {
  padding: 12px 14px !important;
  background: #ffffff !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.rws-testimonial-badge {
  display: inline-block !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  align-self: flex-start !important;
}

.rws-testimonial-title {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
}

