/* =====================================================
   ALL EVENTS & NEWS PAGE DEDICATED STYLESHEET
   Jagadguru Kripalu University
   (Fully Independent — No Impact on Homepage)
   ===================================================== */

@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

/* Whole page background: #FFF4EA */
.jku-all-events-page {
  font-family: "Source Sans 3", sans-serif;
  color: #262626;
  background-color: #FFF4EA !important;
  min-height: 100vh;
}

/* ---------------------------------------------
   1. BREADCRUMB / HERO BANNER
   --------------------------------------------- */
.jku-all-events-page .breadcrumb {
  background: url("../img/breadcrumb-bg.jpg") no-repeat center center;
  background-size: cover;
  padding: 85px 0;
  margin-bottom: 0;
  position: relative;
}

.jku-all-events-page .breadcrumb h1 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
  .jku-all-events-page .breadcrumb {
    padding: 50px 15px;
  }
  .jku-all-events-page .breadcrumb h1 {
    font-size: 26px;
  }
}

/* ---------------------------------------------
   2. INAUGURATION HERO SECTION
   --------------------------------------------- */
.jku-all-events-page .jku-inauguration-section {
  background-color: #FFF4EA !important;
  padding: 35px 0 20px;
  position: relative;
  overflow: hidden;
  font-family: "Source Sans 3", sans-serif;
}

/* University Architectural Watermark */
.jku-all-events-page .jku-inauguration-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  max-width: 50%;
  height: 100%;
  background-image: url('../img/news_left_bg.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  mix-blend-mode: multiply;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

/* Right Top Dot Matrix */
.jku-all-events-page .jku-inauguration-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 290px;
  height: 340px;
  background-image: radial-gradient(#B84110 1.2px, transparent 1.2px);
  background-size: 8px 8px;
  opacity: 0.24;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 25%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, black 25%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Spread Container */
.jku-all-events-page .jku-ae-hero-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

/* Inauguration Card — Clean & Transparent */
.jku-all-events-page .jku-inaug-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: relative;
}

.jku-all-events-page .jku-inaug-card::before,
.jku-all-events-page .jku-inaug-card::after {
  display: none !important;
}

/* Left Content Column: Balanced vertical flex container */
.jku-all-events-page .jku-inaug-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Eyebrow Badge */
.jku-all-events-page .jku-inaug-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFEAD8;
  border: 1px solid #FCD4C5;
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 12px;
}

.jku-all-events-page .jku-inaug-badge-icon {
  color: #C8461E;
  display: flex;
  align-items: center;
}

.jku-all-events-page .jku-inaug-badge-text {
  color: #C8461E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* Title — Snug margin with no unnecessary space */
.jku-all-events-page .jku-inaug-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  color: #034B9F;
  margin-top: 0;
  margin-bottom: 16px !important;
  letter-spacing: -0.3px;
}

.jku-all-events-page .jku-inaug-title-accent {
  color: #C8461E;
  display: inline;
}

/* Paragraph text — Balanced spacing */
.jku-all-events-page .jku-inaug-paragraphs {
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jku-all-events-page .jku-inaug-text {
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px !important;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 0;
}

.jku-all-events-page .jku-inaug-text strong {
  color: #1E293B;
  font-weight: 700;
}

/* Right Grid Container */
.jku-all-events-page .jku-inaug-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

/* Featured Photo Card */
.jku-all-events-page .jku-inaug-img-card--featured {
  flex: 1 1 0px;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #F1F5F9;
  position: relative;
  cursor: pointer;
}

.jku-all-events-page .jku-inaug-img-card--featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jku-all-events-page .jku-inaug-img-card--featured:hover img {
  transform: scale(1.04);
}

/* Watch Video Corner Trigger Badge */
.jku-all-events-page .jku-watch-video-photo-corner {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 2;
  cursor: pointer;
}

.jku-all-events-page .jku-watch-video-photo-corner:hover {
  transform: scale(1.05);
  background: #ffffff;
}

.jku-all-events-page .jku-watch-video-btn {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jku-all-events-page .jku-watch-video-icon-inner {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: #C8461E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(200, 70, 30, 0.4);
}

.jku-all-events-page .jku-watch-video-icon-inner svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

/* Concentric Ripple Animation Rings */
.jku-all-events-page .jku-watch-video-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(200, 70, 30, 0.45);
  animation: jkuWatchVideoPulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

.jku-all-events-page .jku-watch-video-ripple--delay {
  animation-delay: 1.1s;
}

@keyframes jkuWatchVideoPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.65);
    opacity: 0.35;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.jku-all-events-page .jku-watch-video-photo-text {
  font-size: 13px;
  font-weight: 700;
  color: #034B9F;
}

/* Subgrid Slider Wrapper & Navigation Arrows */
.jku-all-events-page .jku-subgrid-slider-wrapper {
  position: relative;
  width: 100%;
  flex: 0 0 115px;
  height: 115px;
}

.jku-all-events-page .jku-inaug-subgrid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  height: 100%;
}

.jku-all-events-page .jku-inaug-subgrid::-webkit-scrollbar {
  display: none;
}

.jku-all-events-page .jku-inaug-subgrid .jku-inaug-img-card {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: calc((100% - 24px) / 3);
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #F1F5F9;
}

.jku-all-events-page .jku-inaug-subgrid .jku-inaug-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.jku-all-events-page .jku-inaug-subgrid .jku-inaug-img-card:hover img {
  transform: scale(1.06);
}

@keyframes subgridArrowNextBounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
}

@keyframes subgridArrowPrevBounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-6px); }
}

@keyframes cardArrowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.jku-all-events-page .jku-subgrid-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.jku-all-events-page .jku-subgrid-prev {
  left: -14px;
}

.jku-all-events-page .jku-subgrid-next {
  right: -14px;
}

.jku-all-events-page .jku-subgrid-prev:hover {
  cursor: pointer;
  background: #C8461E;
  color: #FFFFFF;
  border-color: #C8461E;
  animation: subgridArrowPrevBounce 0.75s ease-in-out infinite;
}

.jku-all-events-page .jku-subgrid-next:hover {
  cursor: pointer;
  background: #C8461E;
  color: #FFFFFF;
  border-color: #C8461E;
  animation: subgridArrowNextBounce 0.75s ease-in-out infinite;
}

@media (max-width: 991.98px) {
  .jku-all-events-page .jku-inauguration-section::before {
    width: 360px;
    max-width: 85%;
    opacity: 0.35;
    background-position: left top;
  }
  .jku-all-events-page .jku-inaug-title {
    font-size: 28px;
  }
  .jku-all-events-page .jku-inaug-grid {
    height: auto !important;
  }
  .jku-all-events-page .jku-inaug-img-card--featured {
    flex: none !important;
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 16 / 10.5 !important;
    width: 100% !important;
  }
  .jku-all-events-page .jku-inaug-img-card--featured img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .jku-all-events-page .jku-subgrid-slider-wrapper {
    flex: 0 0 100px;
    height: 100px;
  }
  .jku-all-events-page .jku-inaug-subgrid .jku-inaug-img-card {
    flex: 0 0 140px;
    min-width: 140px;
  }
}

/* ---------------------------------------------
   3. ALL EVENTS 3-COLUMN GRID SECTION (#FFF4EA BG)
   --------------------------------------------- */
.jku-all-events-grid-section {
  background-color: #FFF4EA !important;
  padding: 10px 0 75px;
  position: relative;
}

.jku-ae-grid-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header Row — Clean subtle gap under section title */
.jku-ae-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px !important;
  padding-bottom: 6px !important;
  border-bottom: 2px solid rgba(184, 65, 16, 0.15);
}

.jku-ae-section-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #B84110;
  margin: 0;
  line-height: 1.1;
}

.jku-ae-title-bar {
  width: 48px;
  height: 3px;
  background: #B84110;
  border-radius: 2px;
  margin-top: 4px;
}

/* 4-Column Flex Layout (4 boxes per row on desktop, centered remaining items) */
.jku-ae-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 0px !important;
  padding-top: 0px !important;
}

/* Event Card — White Card on #FFF4EA Background */
.jku-ae-card {
  flex: 0 0 calc((100% - (22px * 3)) / 4);
  max-width: calc((100% - (22px * 3)) / 4);
  width: calc((100% - (22px * 3)) / 4);
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(3, 75, 159, 0.07);
  border: 1px solid rgba(184, 65, 16, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

.jku-ae-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(3, 75, 159, 0.14);
  border-color: rgba(184, 65, 16, 0.35);
}

/* Clean Photo on Top */
.jku-ae-card-img-wrap {
  width: 100%;
  height: 205px;
  overflow: hidden;
  background: #E2E8F0;
  position: relative;
}

.jku-ae-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jku-ae-card:hover .jku-ae-card-img {
  transform: scale(1.08);
}

/* Card Body Content */
.jku-ae-card-body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Top Meta Header: Date Tag & Category Pill */
.jku-ae-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Date Tag (e.g. 28 JUL 2026) */
.jku-ae-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #B84110;
  background: #FFF4EA;
  border: 1px solid rgba(184, 65, 16, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.jku-ae-date-tag svg {
  color: #B84110;
}

/* Category Pill */
.jku-ae-cat-pill {
  font-size: 11px;
  font-weight: 700;
  color: #034B9F;
  background: #F0F5FC;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Title — Snug, natural height without artificial gaps */
.jku-ae-card-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #034B9F;
  line-height: 1.35;
  margin: 0 0 8px;
  transition: color 0.25s ease;
}

.jku-ae-card-title a {
  color: inherit;
  text-decoration: none;
}

.jku-ae-card:hover .jku-ae-card-title {
  color: #B84110;
}

/* Card Description — 15px */
.jku-ae-card-desc {
  font-size: 15px !important;
  color: #5A6A7E;
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Footer with Read More and Circular Arrow */
.jku-ae-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F5EFEB;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jku-ae-card-link {
  font-size: 14px;
  font-weight: 700;
  color: #034B9F;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.jku-ae-card:hover .jku-ae-card-link {
  color: #B84110;
}

/* Arrow Circle Button with Continuous Bounce */
.jku-ae-arrow-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F0F5FC;
  color: #034B9F;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.jku-ae-card:hover .jku-ae-arrow-circle {
  background: #B84110;
  color: #FFFFFF;
  cursor: pointer;
  animation: cardArrowPulse 0.7s ease-in-out infinite;
}

/* ---------------------------------------------
   RESPONSIVE BREAKPOINTS (4 Columns -> 3 Columns -> 2 Columns -> 1 Column)
   --------------------------------------------- */
@media (max-width: 1200px) {
  .jku-ae-grid {
    gap: 20px;
  }
  .jku-ae-card {
    flex: 0 0 calc((100% - (20px * 2)) / 3);
    max-width: calc((100% - (20px * 2)) / 3);
    width: calc((100% - (20px * 2)) / 3);
  }
}

@media (max-width: 900px) {
  .jku-ae-grid {
    gap: 18px;
  }
  .jku-ae-card {
    flex: 0 0 calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
    width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 575.98px) {
  /* 1. Badge on single line */
  .jku-all-events-page .jku-inaug-badge {
    padding: 4px 12px !important;
    gap: 6px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
  }
  .jku-all-events-page .jku-inaug-badge-text {
    font-size: 11px !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
  }

  /* 2. Inauguration featured image not cut off */
  .jku-all-events-page .jku-inaug-img-card--featured {
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 16 / 10.5 !important;
    width: 100% !important;
    border-radius: 12px !important;
  }
  .jku-all-events-page .jku-inaug-img-card--featured img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .jku-ae-grid {
    gap: 16px;
  }
  .jku-ae-card {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
  .jku-ae-section-title {
    font-size: 26px;
  }
  .jku-ae-card-img-wrap {
    height: 185px;
  }
}

/* ---------------------------------------------
   VIDEO MODAL POPUP
   --------------------------------------------- */
.jku-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jku-video-modal.show,
.jku-video-modal.is-active {
  display: flex !important;
}

.jku-video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 15, 30, 0.75);
  backdrop-filter: blur(8px);
}

.jku-video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  background: #000;
}

.jku-video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.jku-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.jku-video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.jku-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
