/* =========================================================
   REKHATAMA TRAINING SCHEDULE VIEW - FINAL 4 COLUMNS
   View CSS class: rk-training-schedule-view
   ========================================================= */


/* =========================================================
   1. MAIN VIEW CONTAINER
   ========================================================= */

.rk-training-schedule-view {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto 72px;
}


/* =========================================================
   2. VIEW HEADER
   ========================================================= */

.rk-training-schedule-view .rk-schedule-view-header {
  max-width: 860px;
  margin: 30px 0 24px;
}

.rk-training-schedule-view .rk-schedule-view-header .rk-eyebrow,
.rk-training-schedule-view .rk-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 20px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #435b7d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rk-training-schedule-view .rk-schedule-view-header h2 {
  margin: 0 0 12px;
  color: #10234d;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.rk-training-schedule-view .rk-schedule-view-header p {
  margin: 0;
  max-width: 850px;
  color: #5b6878;
  font-size: 1rem;
  line-height: 1.7;
}


/* =========================================================
   3. EXPOSED FILTER
   ========================================================= */

.rk-training-schedule-view .view-filters {
  margin: 26px 0 34px;
}

.rk-training-schedule-view .views-exposed-form {
  padding: 22px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e3ebf5;
  box-shadow: 0 18px 42px rgba(16, 35, 77, 0.08);
}

.rk-training-schedule-view .views-exposed-form .form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
}

.rk-training-schedule-view .views-exposed-form .form-item {
  margin: 0;
  min-width: 260px;
  flex: 1 1 260px;
}

.rk-training-schedule-view .views-exposed-form label {
  display: block;
  margin-bottom: 8px;
  color: #10234d;
  font-size: 0.92rem;
  font-weight: 700;
}

.rk-training-schedule-view .views-exposed-form input[type="text"],
.rk-training-schedule-view .views-exposed-form input[type="search"],
.rk-training-schedule-view .views-exposed-form input[type="date"],
.rk-training-schedule-view .views-exposed-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #d7e1ee;
  background: #ffffff;
  color: #10234d;
  font-size: 0.96rem;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rk-training-schedule-view .views-exposed-form input[type="text"]:focus,
.rk-training-schedule-view .views-exposed-form input[type="search"]:focus,
.rk-training-schedule-view .views-exposed-form input[type="date"]:focus,
.rk-training-schedule-view .views-exposed-form select:focus {
  outline: none;
  border-color: #1f3c88;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 60, 136, 0.1);
}

.rk-training-schedule-view .views-exposed-form .form-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}

.rk-training-schedule-view .views-exposed-form .form-actions input,
.rk-training-schedule-view .views-exposed-form .form-actions button,
.rk-training-schedule-view .views-exposed-form .form-actions .button,
.rk-training-schedule-view .views-exposed-form .form-actions .btn {
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #1f3c88;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(31, 60, 136, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rk-training-schedule-view .views-exposed-form .form-actions input:hover,
.rk-training-schedule-view .views-exposed-form .form-actions button:hover,
.rk-training-schedule-view .views-exposed-form .form-actions .button:hover,
.rk-training-schedule-view .views-exposed-form .form-actions .btn:hover {
  background: #17306f;
  transform: translateY(-1px);
}


/* =========================================================
   4. RESULT GRID - 4 COLUMNS DESKTOP
   ========================================================= */

.rk-training-schedule-view .view-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}


/* =========================================================
   5. NEUTRALIZE VIEWS DEFAULT ROW WRAPPER
   Prevent double card / double border / double blue line.
   ========================================================= */

.rk-training-schedule-view .views-row {
  position: static !important;
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: none !important;
}

.rk-training-schedule-view .views-row::before,
.rk-training-schedule-view .views-row::after {
  display: none !important;
  content: none !important;
}

.rk-training-schedule-view .views-row .views-field,
.rk-training-schedule-view .views-row .field-content {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}


/* =========================================================
   6. SCHEDULE CARD - COMPACT FOR 4 COLUMNS
   ========================================================= */

.rk-training-schedule-view .rk-schedule-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e3ebf5;
  box-shadow: 0 14px 34px rgba(16, 35, 77, 0.07);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.rk-training-schedule-view .rk-schedule-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #1f3c88 0%, #00c2ff 100%);
}

.rk-training-schedule-view .rk-schedule-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 60, 136, 0.28);
  box-shadow: 0 22px 48px rgba(16, 35, 77, 0.13);
}


/* =========================================================
   7. BADGES
   ========================================================= */

.rk-training-schedule-view .rk-schedule-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.rk-training-schedule-view .rk-schedule-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f3c88;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rk-training-schedule-view .rk-schedule-badge--status {
  background: #eef5ff;
  color: #1f3c88;
}

.rk-training-schedule-view .rk-schedule-badge--mode {
  background: #f4f8ff;
  color: #17306f;
}

.rk-training-schedule-view .rk-schedule-badge:empty {
  display: none;
}


/* =========================================================
   8. CARD TITLE - COMPACT
   ========================================================= */

.rk-training-schedule-view .rk-schedule-card__title {
  margin: 0 0 14px;
  color: #10234d;
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.rk-training-schedule-view .rk-schedule-card__title a {
  color: #10234d;
  text-decoration: none;
}

.rk-training-schedule-view .rk-schedule-card__title a:hover {
  color: #1f3c88;
}


/* =========================================================
   9. META INFORMATION - COMPACT
   ========================================================= */

.rk-training-schedule-view .rk-schedule-card__meta {
  display: grid;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid #edf2f7;
}

.rk-training-schedule-view .rk-schedule-card__meta-item {
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.rk-training-schedule-view .rk-schedule-card__meta-item span {
  display: block;
  margin-bottom: 5px;
  color: #1f3c88;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rk-training-schedule-view .rk-schedule-card__meta-item strong {
  display: block;
  color: #10234d;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 600;
}

.rk-training-schedule-view .rk-schedule-card__meta-item a {
  color: #10234d;
  text-decoration: none;
}

.rk-training-schedule-view .rk-schedule-card__meta-item a:hover {
  color: #1f3c88;
  text-decoration: underline;
}


/* =========================================================
   10. ACTION BUTTONS
   Booking Seat uses Related Product original link.
   Minta Proposal links to /request-proposal.
   ========================================================= */

.rk-training-schedule-view .rk-schedule-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  align-items: center;
}

/* Related product wrapper */
.rk-training-schedule-view .rk-schedule-product-link {
  display: inline-flex;
}

/* Keep original href, hide original product title */
.rk-training-schedule-view .rk-schedule-product-link a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  color: transparent !important;
  background: #1f3c88;
  border: 1px solid #1f3c88;
  text-decoration: none !important;
  font-size: 0 !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 9px 18px rgba(31, 60, 136, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* If link contains inner markup */
.rk-training-schedule-view .rk-schedule-product-link a * {
  color: transparent !important;
  font-size: 0 !important;
}

/* Visible replacement label */
.rk-training-schedule-view .rk-schedule-product-link a::after {
  content: "Booking Seat";
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700;
}

.rk-training-schedule-view .rk-schedule-product-link a:hover {
  background: #17306f;
  border-color: #17306f;
  transform: translateY(-1px);
}

/* Static button */
.rk-training-schedule-view .rk-schedule-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rk-training-schedule-view .rk-schedule-btn--secondary {
  color: #1f3c88 !important;
  background: #ffffff;
  border: 1px solid #cfdaea;
}

.rk-training-schedule-view .rk-schedule-btn--secondary:hover {
  color: #1f3c88 !important;
  background: #f4f8ff;
  border-color: #b8c8dd;
  transform: translateY(-1px);
}

.rk-training-schedule-view .rk-schedule-btn--primary {
  color: #ffffff !important;
  background: #1f3c88;
  border: 1px solid #1f3c88;
  box-shadow: 0 9px 18px rgba(31, 60, 136, 0.18);
}

.rk-training-schedule-view .rk-schedule-btn--primary:hover {
  color: #ffffff !important;
  background: #17306f;
  border-color: #17306f;
  transform: translateY(-1px);
}


/* =========================================================
   11. EMPTY RESULT
   ========================================================= */

.rk-training-schedule-view .rk-schedule-empty,
.rk-training-schedule-view .view-empty {
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px dashed #cfd9e8;
  text-align: center;
  color: #5b6878;
}

.rk-training-schedule-view .rk-schedule-empty h3 {
  margin: 0 0 10px;
  color: #10234d;
  font-size: 1.4rem;
  font-weight: 700;
}

.rk-training-schedule-view .rk-schedule-empty p {
  margin: 0 auto 18px;
  max-width: 640px;
  color: #5b6878;
  line-height: 1.7;
}


/* =========================================================
   12. VIEW FOOTER CTA
   ========================================================= */

.rk-training-schedule-view .rk-schedule-view-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #1f3c88 0%, #10234d 100%);
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(31, 60, 136, 0.22);
}

.rk-training-schedule-view .rk-schedule-view-footer h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
}

.rk-training-schedule-view .rk-schedule-view-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.rk-training-schedule-view .rk-schedule-view-footer .rk-schedule-btn--primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #1f3c88 !important;
  box-shadow: none;
}

.rk-training-schedule-view .rk-schedule-view-footer .rk-schedule-btn--primary:hover {
  background: #eef4ff;
  border-color: #eef4ff;
  color: #1f3c88 !important;
}


/* =========================================================
   13. PAGER
   ========================================================= */

.rk-training-schedule-view .pager {
  margin-top: 30px;
}

.rk-training-schedule-view .pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.rk-training-schedule-view .pager__item {
  margin: 0;
}

.rk-training-schedule-view .pager__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d5dfec;
  color: #10234d;
  text-decoration: none;
  font-weight: 700;
}

.rk-training-schedule-view .pager__item a:hover {
  background: #f4f8ff;
  color: #1f3c88;
}

.rk-training-schedule-view .pager__item.is-active a {
  background: #1f3c88;
  border-color: #1f3c88;
  color: #ffffff;
}


/* =========================================================
   14. SAFETY FIXES
   ========================================================= */

.rk-training-schedule-view .views-field-field-related-product > .field-content > article,
.rk-training-schedule-view .views-field-field-related-product > .field-content > div:not(.rk-schedule-card) {
  display: none;
}

.rk-training-schedule-view a:empty,
.rk-training-schedule-view .rk-schedule-card a:empty {
  display: none !important;
}


/* =========================================================
   15. RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Medium desktop / laptop: 3 columns */
@media (max-width: 1399px) {
  .rk-training-schedule-view {
    width: min(1180px, calc(100% - 32px));
  }

  .rk-training-schedule-view .view-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Small laptop / tablet landscape: 2 columns */
@media (max-width: 1099px) {
  .rk-training-schedule-view .view-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet and mobile form */
@media (max-width: 991px) {
  .rk-training-schedule-view .views-exposed-form .form--inline {
    flex-direction: column;
    align-items: stretch;
  }

  .rk-training-schedule-view .views-exposed-form .form-item,
  .rk-training-schedule-view .views-exposed-form .form-actions {
    width: 100%;
  }

  .rk-training-schedule-view .views-exposed-form .form-actions input,
  .rk-training-schedule-view .views-exposed-form .form-actions button,
  .rk-training-schedule-view .views-exposed-form .form-actions .button,
  .rk-training-schedule-view .views-exposed-form .form-actions .btn {
    width: 100%;
  }

  .rk-training-schedule-view .rk-schedule-view-footer {
    grid-template-columns: 1fr;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .rk-training-schedule-view {
    width: min(100% - 24px, 1180px);
    margin-bottom: 56px;
  }

  .rk-training-schedule-view .view-content {
    grid-template-columns: 1fr;
  }

  .rk-training-schedule-view .rk-schedule-view-header h2 {
    font-size: 2rem;
  }

  .rk-training-schedule-view .views-exposed-form {
    padding: 20px;
    border-radius: 22px;
  }

  .rk-training-schedule-view .rk-schedule-card {
    padding: 22px;
    border-radius: 22px;
  }

  .rk-training-schedule-view .rk-schedule-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rk-training-schedule-view .rk-schedule-product-link,
  .rk-training-schedule-view .rk-schedule-product-link a,
  .rk-training-schedule-view .rk-schedule-btn {
    width: 100%;
  }

  .rk-training-schedule-view .rk-schedule-view-footer {
    padding: 24px;
    border-radius: 22px;
  }
}

/* =========================================================
   REKHATAMA TRAINING CALENDAR
   Route: /training/calendar
========================================================= */

.page-route-view-training-calendar-grid-page-1 {
  background: #f5f8fc;
}

.page-route-view-training-calendar-grid-page-1 main > .container {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.page-route-view-training-calendar-grid-page-1 .region-content {
  padding-right: 0;
  padding-left: 0;
}

.page-route-view-training-calendar-grid-page-1
.rk-training-schedule-view {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 56px !important;
  padding: 36px clamp(24px, 4vw, 64px) 0;
}

/* =========================================================
   HERO
========================================================= */

.page-route-view-training-calendar-grid-page-1 .view-header {
  margin: 0 0 26px;
}

.rk-calendar-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;
  padding: 48px 52px;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(15, 129, 241, 0.15),
      transparent 34%
    ),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
  border: 1px solid #d6e4f4;
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(15, 40, 80, 0.08);
}

.rk-calendar-hero::after {
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: -170px;
  width: 380px;
  height: 380px;
  content: "";
  border: 60px solid rgba(4, 108, 220, 0.04);
  border-radius: 50%;
}

.rk-calendar-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 17px;
  padding: 9px 15px;
  color: #075abf;
  background: #e3f0ff;
  border: 1px solid #c8e0fc;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rk-calendar-hero h1 {
  max-width: 800px;
  margin: 0 0 15px;
  color: #102d62;
  font-family: "Poppins", sans-serif;
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 1.15;
  font-weight: 700;
}

.rk-calendar-hero__content > p {
  max-width: 760px;
  margin: 0;
  color: #526987;
  font-size: 17px;
  line-height: 1.7;
}

.rk-calendar-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.rk-calendar-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.rk-calendar-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #0868e4, #079eef);
  border: 1px solid #0868e4;
  box-shadow: 0 10px 22px rgba(0, 104, 228, 0.2);
}

.rk-calendar-button--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 104, 228, 0.27);
}

.rk-calendar-button--outline {
  color: #0a61ca;
  background: #fff;
  border: 1px solid #c8dcf3;
}

.rk-calendar-button--outline:hover {
  color: #fff;
  background: #102d62;
  border-color: #102d62;
}

.rk-calendar-hero__info {
  display: grid;
  gap: 10px;
  padding: 13px;
  color: #fff;
  background: linear-gradient(145deg, #173f78, #09244e);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(9, 36, 78, 0.22);
}

.rk-calendar-hero__info-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
}

.rk-calendar-hero__info-item > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #8bd0ff;
  background: rgba(98, 190, 255, 0.12);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.rk-calendar-hero__info-item strong,
.rk-calendar-hero__info-item small {
  display: block;
}

.rk-calendar-hero__info-item strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.rk-calendar-hero__info-item small {
  color: #c9dcf5;
  font-size: 11px;
  line-height: 1.45;
}

/* =========================================================
   FILTER
========================================================= */

.page-route-view-training-calendar-grid-page-1 .view-filters {
  margin: 0 0 28px;
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form {
  margin: 0 !important;
  padding: 22px 24px !important;
  background: #fff !important;
  border: 1px solid #d8e3f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(15, 40, 80, 0.07);
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form .form--inline {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(210px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form .form-item,
.page-route-view-training-calendar-grid-page-1
.views-exposed-form .form-actions {
  width: 100%;
  margin: 0;
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form label {
  display: block;
  margin-bottom: 7px;
  color: #17365e;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form input[type="text"],
.page-route-view-training-calendar-grid-page-1
.views-exposed-form select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 13px;
  color: #183455;
  background-color: #fbfdff;
  border: 1px solid #cbd9e9;
  border-radius: 11px;
  font-size: 13px;
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form input:focus,
.page-route-view-training-calendar-grid-page-1
.views-exposed-form select:focus {
  border-color: #0875e8;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(8, 117, 232, 0.12);
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form .form-submit {
  min-width: 130px;
  min-height: 48px;
  margin: 0;
  padding: 11px 21px;
  color: #fff;
  background: linear-gradient(135deg, #0868e4, #079eef);
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(0, 104, 228, 0.18);
}

.page-route-view-training-calendar-grid-page-1
.views-exposed-form .form-submit:hover {
  background: linear-gradient(135deg, #075ac9, #087fca);
  transform: translateY(-1px);
}

/* =========================================================
   SCHEDULE GRID
========================================================= */

.page-route-view-training-calendar-grid-page-1 .view-content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}

/* Menghapus efek card pada row luar yang lama */
.page-route-view-training-calendar-grid-page-1
.view-content > .views-row.rk-schedule-card,
.page-route-view-training-calendar-grid-page-1
.view-content > .rk-schedule-row {
  display: block;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Kartu yang sebenarnya */
.page-route-view-training-calendar-grid-page-1
.views-field-nothing article.rk-schedule-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 270px;
  flex-direction: column;
  overflow: hidden;
  padding: 23px;
  background: #fff;
  border: 1px solid #d8e3f0;
  border-radius: 18px;
  box-shadow: 0 11px 28px rgba(15, 40, 80, 0.065);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.page-route-view-training-calendar-grid-page-1
.views-field-nothing article.rk-schedule-card::before {
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 18px;
  content: "";
  background: linear-gradient(90deg, #0868e4, #09a9ee);
  border-radius: 999px;
}

.page-route-view-training-calendar-grid-page-1
.views-field-nothing article.rk-schedule-card:hover {
  transform: translateY(-4px);
  border-color: #b7d2f1;
  box-shadow: 0 18px 38px rgba(15, 40, 80, 0.12);
}

/* Badge kosong jangan menyisakan ruang */
.page-route-view-training-calendar-grid-page-1
.rk-schedule-badge:empty {
  display: none;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__badges {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__badges:has(.rk-schedule-badge:not(:empty)) {
  margin-bottom: 12px;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-badge {
  display: inline-flex;
  padding: 6px 9px;
  color: #0860c4;
  background: #eaf4ff;
  border: 1px solid #cfe4fa;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__title {
  min-height: 56px;
  margin: 0 0 17px;
  color: #102a52;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__meta {
  margin-bottom: 18px;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__meta-item {
  position: relative;
  padding: 14px 15px 14px 47px;
  color: #24456f;
  background: #f1f7ff;
  border: 1px solid #d9e9fa;
  border-radius: 12px;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__meta-item::before {
  position: absolute;
  top: 14px;
  left: 15px;
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  content: "●";
  color: #0874e5;
  background: #dcebff;
  border-radius: 7px;
  font-size: 8px;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__meta-item > span {
  display: block;
  margin-bottom: 5px;
  color: #66809f;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__meta-item small {
  color: #193d68;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto;
}

/* Product link */
.page-route-view-training-calendar-grid-page-1
.rk-schedule-product-link {
  display: block;
  min-width: 0;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-product-link a,
.page-route-view-training-calendar-grid-page-1
.rk-schedule-btn {
  display: inline-flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-product-link a {
  color: #fff;
  background: linear-gradient(135deg, #0768e5, #079fee);
  border: 1px solid #0768e5;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-product-link a:hover {
  color: #fff;
  background: linear-gradient(135deg, #0759c7, #087dca);
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-btn--secondary {
  color: #095fc7;
  background: #eff6ff;
  border: 1px solid #c9def5;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-btn--secondary:hover {
  color: #fff;
  background: #102d62;
  border-color: #102d62;
}

/* =========================================================
   PAGER
========================================================= */

.page-route-view-training-calendar-grid-page-1 .pager {
  margin: 30px 0;
}

.page-route-view-training-calendar-grid-page-1
.pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 0;
}

.page-route-view-training-calendar-grid-page-1
.pager__item a,
.page-route-view-training-calendar-grid-page-1
.pager__item.is-active {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: #16416f;
  background: #fff;
  border: 1px solid #d4e1ef;
  border-radius: 10px;
  text-decoration: none;
}

.page-route-view-training-calendar-grid-page-1
.pager__item a:hover,
.page-route-view-training-calendar-grid-page-1
.pager__item.is-active {
  color: #fff;
  background: #0872e7;
  border-color: #0872e7;
}

/* =========================================================
   CORPORATE CTA
========================================================= */

.page-route-view-training-calendar-grid-page-1 .view-footer {
  margin-top: 30px;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-view-footer {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 30px 34px;
  color: #fff;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(22, 153, 255, 0.2),
      transparent 32%
    ),
    linear-gradient(135deg, #102e61, #071d41);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(7, 29, 65, 0.18);
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-view-footer h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-view-footer p {
  max-width: 790px;
  margin: 0;
  color: #c8daef;
  font-size: 14px;
  line-height: 1.65;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-view-footer .rk-schedule-btn--primary {
  width: auto;
  min-width: 210px;
  color: #102d62;
  background: #fff;
  border: 1px solid #fff;
}

.page-route-view-training-calendar-grid-page-1
.rk-schedule-view-footer .rk-schedule-btn--primary:hover {
  color: #fff;
  background: #0878e8;
  border-color: #0878e8;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
  .rk-calendar-hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    padding: 42px;
  }

  .page-route-view-training-calendar-grid-page-1
  .view-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 899.98px) {
  .rk-calendar-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rk-calendar-hero__info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rk-calendar-hero__info-item {
    grid-template-columns: 1fr;
  }

  .page-route-view-training-calendar-grid-page-1
  .views-exposed-form .form--inline {
    grid-template-columns: 1fr 1fr;
  }

  .page-route-view-training-calendar-grid-page-1
  .views-exposed-form .form-actions {
    grid-column: 1 / -1;
  }

  .page-route-view-training-calendar-grid-page-1
  .views-exposed-form .form-submit {
    width: 100%;
  }
}

@media (max-width: 639.98px) {
  .page-route-view-training-calendar-grid-page-1
  .rk-training-schedule-view {
    padding: 20px 16px 0;
  }

  .rk-calendar-hero {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .rk-calendar-hero h1 {
    font-size: 31px;
  }

  .rk-calendar-hero__content > p {
    font-size: 15px;
  }

  .rk-calendar-hero__actions,
  .rk-calendar-hero__info {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-route-view-training-calendar-grid-page-1
  .views-exposed-form .form--inline,
  .page-route-view-training-calendar-grid-page-1
  .view-content {
    grid-template-columns: 1fr !important;
  }

  .page-route-view-training-calendar-grid-page-1
  .views-exposed-form .form-actions {
    grid-column: auto;
  }

  .page-route-view-training-calendar-grid-page-1
  .rk-schedule-card__title {
    min-height: 0;
  }

  .page-route-view-training-calendar-grid-page-1
  .rk-schedule-view-footer {
    display: grid;
    padding: 27px 23px;
  }

  .page-route-view-training-calendar-grid-page-1
  .rk-schedule-view-footer .rk-schedule-btn--primary {
    width: 100%;
    min-width: 0;
  }
}
