/* ============================================================
   PEDU PAGE — Modern CSS
   Compatible with existing Clean theme variables
   ============================================================ */

/* --- CSS Variables (consistent with existing theme) --- */
:root {
  --blue-primary:   #3A81C0;
  --blue-dark:      #0D5794;
  --blue-light:     #EBF3FB;
  --text-dark:      #2C2C2C;
  --text-mid:       #4C4C4C;
  --text-muted:     #9AACBA;
  --bg-page:        #F4F7FA;
  --bg-card:        #ffffff;
  --radius-card:    18px;
  --radius-pill:    50px;
  --shadow-card:    0 2px 12px rgba(58, 129, 192, 0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover:   0 12px 36px rgba(58, 129, 192, 0.18), 0 4px 12px rgba(0,0,0,0.08);
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Page background --- */
.content_right {
  background-color: var(--bg-page) !important;
}

/* --- Breadcrumbs --- */
.infobar {
  background: transparent !important;
  border: none !important;
  padding: 18px 0 0 0 !important;
  height: auto !important;
}

#breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#breadcrumbs li {
  font-size: 13px !important;
  letter-spacing: 0.4px;
  margin-right: 0 !important;
}

#breadcrumbs a {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  font-family: 'Quicksand-Regular', sans-serif !important;
  transition: var(--transition);
}

#breadcrumbs a:hover {
  color: var(--blue-primary) !important;
}

#breadcrumbs .separator {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  opacity: 0.5;
}

#breadcrumbs .item-current strong {
  color: var(--blue-dark) !important;
  font-size: 13px;
  font-family: 'Quicksand-Bold', sans-serif;
}

/* --- Page title --- */
h1.page-title {
  font-family: 'Quicksand-Bold', sans-serif !important;
  font-size: clamp(36px, 5vw, 56px) !important;
  color: var(--text-dark) !important;
  letter-spacing: -1.5px;
  line-height: 1 !important;
  margin-bottom: 8px !important;
  position: relative;
  display: inline-block;
}

/* Accent underline on title */
h1.page-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--blue-primary);
  border-radius: 4px;
  margin-top: 12px;
}

/* --- Layout wrapper --- */
.layout_2.padding-horizontal.mt-5 {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* --- Cards grid --- */
.layout_2 .row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin: 0 !important;
}

/* Override Bootstrap col on cards */
.layout_2 .row > .col-md-4 {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  flex: unset !important;
  width: auto !important;
}

/* --- Card --- */
.col-md-4.mt-4 a {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  text-decoration: none !important;
  height: 100%;
  position: relative;
}

.col-md-4.mt-4 a:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

/* --- Card image wrapper --- */
.col-md-4 .details_box {
  width: 100% !important;
  height: 210px !important;
  float: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
}

.col-md-4 .details_box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(13, 87, 148, 0.25) 100%
  );
  pointer-events: none;
}

.col-md-4 .details_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.col-md-4 a:hover .details_box img {
  transform: scale(1.06);
}

/* --- Card caption --- */
.col-md-4 .caption {
  padding: 20px 22px 24px !important;
  display: block;
}

/* Date / metadata */
.col-md-4 .caption h4 {
  font-family: 'Quicksand-Bold', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 1.2px;
  text-transform: uppercase !important;
  color: var(--blue-primary) !important;
  background: var(--blue-light);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin: 0 0 12px 0 !important;
  line-height: 1.6 !important;
}

/* Card title */
.col-md-4 .caption p {
  font-family: 'Quicksand-Bold', sans-serif !important;
  font-size: 16px !important;
  color: var(--text-dark) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.col-md-4 a:hover .caption p {
  color: var(--blue-dark) !important;
}

/* Arrow indicator on hover */
.col-md-4 .caption::after {
  content: '→';
  display: block;
  font-size: 18px;
  color: var(--blue-primary);
  margin-top: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition);
}

.col-md-4 a:hover .caption::after {
  opacity: 1;
  transform: translateX(0);
}

/* --- Pagination --- */
.text-right.mt-5.mb-3 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.button_banner.owl-next {
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(58, 129, 192, 0.25) !important;
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 !important;
}

.button_banner.owl-next:hover {
  background: var(--blue-primary) !important;
  border-color: var(--blue-primary) !important;
  box-shadow: 0 4px 16px rgba(58, 129, 192, 0.35);
  transform: translateY(-2px);
}

.button_banner.owl-next:hover img {
  filter: brightness(0) invert(1);
}

.button_banner.owl-next img {
  width: 18px;
  height: 18px;
  transition: filter 0.2s ease;
}

/* --- Card entrance animation --- */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.col-md-4.mt-4:nth-child(1) { animation: cardFadeUp 0.45s ease both 0.05s; }
.col-md-4.mt-4:nth-child(2) { animation: cardFadeUp 0.45s ease both 0.12s; }
.col-md-4.mt-4:nth-child(3) { animation: cardFadeUp 0.45s ease both 0.19s; }
.col-md-4.mt-4:nth-child(4) { animation: cardFadeUp 0.45s ease both 0.26s; }
.col-md-4.mt-4:nth-child(5) { animation: cardFadeUp 0.45s ease both 0.33s; }
.col-md-4.mt-4:nth-child(6) { animation: cardFadeUp 0.45s ease both 0.40s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .layout_2 .row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  h1.page-title {
    font-size: 32px !important;
  }

  .col-md-4 .details_box {
    height: 200px !important;
  }

  .text-right.mt-5.mb-3 {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .layout_2 .row {
    grid-template-columns: repeat(2, 1fr);
  }
}