/* ================================================
   HIKE EDUCATION - PREMIUM CUSTOM HEADER CSS
   Child Theme: hike-child
   File: assets/css/university.css
================================================ */

/* ============================================
   GENERIC COURSES PAGE — BCA Hero Banner
   Paste into: Elementor > Custom CSS or style.css
   ============================================ */
   /* ============================================
   UNIVERSITY PAGE — Hero Banner
   File: university.css (child theme)
   Prefix: univ-hero__
   No conflicts with generic-courses-page or
   any other existing class
   ============================================ */

/* ---------- Keyframes ---------- */
@keyframes univFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes univBadgePop {
  0%   { opacity: 0; transform: scale(0.75) translateY(8px); }
  70%  { transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes univPulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.50); }
  50%       { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

@keyframes univOverlaySlide {
  from { transform: translateX(-8%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ---------- Section ---------- */
.univ-hero {
  position: relative;
  width: 100%;
   min-height: 72vh;
  max-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark navy curved overlay — left side */
/*.univ-hero::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  background: linear-gradient(*/
/*    105deg,*/
/*    rgba(10, 18, 50, 0.97) 0%,*/
/*    rgba(10, 18, 50, 0.90) 38%,*/
/*    rgba(10, 18, 50, 0.55) 58%,*/
/*    rgba(10, 18, 50, 0.0) 75%*/
/*  );*/
  
/*  z-index: 1;*/
/*  animation: univOverlaySlide 1s ease 0s both;*/
/*}*/

/* Curved right edge of the dark panel */
/*.univ-hero::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 62%;*/
/*  height: 100%;*/
/*  background: rgba(10, 18, 50, 0.88);*/
  /*clip-path: ellipse(95% 120% at 0% 50%);*/
/*  clip-path: ellipse(80% 110% at 5% 50%);*/
/*  z-index: 1;*/
/*  animation: univOverlaySlide 0.9s ease 0s both;*/
/*}*/

/* ---------- Inner Wrapper ---------- */
.univ-hero__inner {
  position: relative;
  z-index: 3;
  width: 90%;
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 40px 0;
}

/* ---------- Content Column ---------- */
.univ-hero__content {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Badge ---------- */
.univ-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #b8860b;
  background: linear-gradient(135deg, #d4a017 0%, #b8730a 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 4px;
  width: fit-content;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0% 100%);
  animation: univBadgePop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.univ-hero__badge-icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

/* ---------- Heading ---------- */
.univ-hero__heading {
  color: #ffffff;
   font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.16;
  margin: 0;
  letter-spacing: -0.01em;
  animation: univFadeUp 0.75s ease 0.3s both;
}

/* ---------- Description ---------- */
.univ-hero__desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(13.5px, 1.4vw, 15px);
  line-height: 1.70;
  margin: 0;
  max-width: 460px;
  animation: univFadeUp 0.75s ease 0.45s both;
}

/* ---------- Buttons Row ---------- */
.univ-hero__btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: univFadeUp 0.75s ease 0.60s both;
}

/* Primary — Red */
.univ-hero__btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.3s ease;
  animation: univFadeUp 0.75s ease 0.60s both, univPulseBtn 2.5s ease 1.5s infinite;
}

.univ-hero__btn--primary:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
  color: #ffffff;
  text-decoration: none;
  animation: univFadeUp 0s, none;
}

.univ-hero__btn--primary:active {
  transform: translateY(0) scale(0.97);
}

/* Outline — Dark */
.univ-hero__btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  animation: univFadeUp 0.75s ease 0.70s both;
}

.univ-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  color: #ffffff;
}

.univ-hero__btn--outline:active {
  transform: translateY(0) scale(0.97);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .univ-hero {
    min-height: 75vh;
  }

  .univ-hero::after {
    width: 75%;
  }

  .univ-hero__content {
    max-width: 100%;
    gap: 18px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .univ-hero {
    min-height: auto;
    background-position: left;
  }

  .univ-hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 18, 50, 0.92) 0%,
      rgba(10, 18, 50, 0.85) 100%
    );
  }

  .univ-hero::after {
    display: none;
  }

  .univ-hero__inner {
    padding: 52px 0 60px;
    width: 92%;
  }

  .univ-hero__heading {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.20;
  }

  .univ-hero__desc {
    font-size: 14px;
    max-width: 100%;
  }

  .univ-hero__btns {
    flex-direction: column;
    align-items: stretch;
  }

  .univ-hero__btn--primary,
  .univ-hero__btn--outline {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .univ-hero__heading {
    font-size: 22px;
  }

  .univ-hero__badge {
    font-size: 11px;
    padding: 6px 13px;
  }
}
/* Mobile fix */
@media (max-width: 600px) {
  .univ-hero {
    min-height: auto;
    max-height: none;
  }

  .univ-hero__inner {
    padding: 44px 0 52px;
  }
}

/* ============================================
   UNIVERSITY PAGE — About Section
   Prefix: univ-about__
   Add to: university.css
   ============================================ */

@keyframes univAboutLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes univAboutRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes univFloatCard {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes univImgZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

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

/* ---------- Section ---------- */
.univ-about {
  width: 100%;
  background: #F6F6F6;
   padding: 48px 0 52px;
}

/* ---------- Inner ---------- */
.univ-about__inner {
  width: 90%;
  /*max-width: 1100px;*/
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* ---------- Left ---------- */
.univ-about__left {
  flex: 1 1 48%;
  min-width: 0;
  animation: univAboutLeft 0.8s ease 0.1s both;
}

.univ-about__title {
  color: #1a3a6b;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 22px;
}

.univ-about__para {
  color: #4b5563;
  font-size: clamp(13.5px, 1.4vw, 15px);
  line-height: 1.80;
  margin: 0 0 16px;
  user-select: text;
  -webkit-user-select: text;
  text-align:justify;
}

.univ-about__para:last-child {
  margin-bottom: 0;
}

.univ-about__link {
  color: #1a3a6b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.univ-about__link:hover {
  color: #1a56db;
  text-decoration: underline;
}

/* ---------- Right ---------- */
.univ-about__right {
  flex: 1 1 48%;
  min-width: 0;
  animation: univAboutRight 0.8s ease 0.2s both;
}

/* ---------- Image Wrap ---------- */
.univ-about__img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}

.univ-about__img {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  animation: univImgZoom 1s ease 0.2s both;
  transition: transform 0.5s ease;
   box-shadow: none;

  height: auto;
  
  object-fit: contain;
  object-position: center;
 
  border-radius: 12px;
}


.univ-about__img-wrap:hover .univ-about__img {
  transform: scale(1.02);
}

/* ---------- Floating Card ---------- */
.univ-about__float-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border: 1px solid #e8ecf4;
  min-width: 220px;
  animation: univFloatCard 0.7s ease 0.6s both, univCardFloat 4s ease-in-out 1.5s infinite;
  z-index: 2;
}

.univ-about__float-label {
  display: block;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.univ-about__float-title {
  color: #1a56db;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.2;
}

.univ-about__float-sub {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
  font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .univ-about__inner {
    gap: 40px;
  }

  .univ-about__img {
    height: 300px;
  }

  .univ-about__float-card {
    right: -10px;
    bottom: -14px;
    min-width: 190px;
    padding: 14px 18px;
  }
}

/* Mobile — stack */
@media (max-width: 680px) {
  .univ-about {
    padding: 48px 0 56px;
  }

  .univ-about__inner {
    flex-direction: column;
    gap: 36px;
    width: 92%;
  }

  .univ-about__left,
  .univ-about__right {
    flex: none;
    width: 100%;
    animation: none;
  }

  .univ-about__img {
    height: 240px;
    border-radius: 12px;
  }

  .univ-about__float-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 14px;
    width: 100%;
    min-width: unset;
    border-radius: 12px;
    animation: univFloatCard 0.7s ease 0.3s both;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  }

  .univ-about__title {
    font-size: clamp(20px, 6vw, 26px);
  }
}

@media (max-width: 400px) {
  .univ-about__title { font-size: 20px; }
  .univ-about__para  { font-size: 13.5px; }
}


/* ============================================
   UNIVERSITY PAGE — Why Choose Section
   Prefix: univ-why__
   Add to: university.css
   ============================================ */

@keyframes univWhyFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes univWhyCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes univWhyIconPop {
  0%   { transform: scale(1) rotate(0); }
  35%  { transform: scale(1.22) rotate(-8deg); }
  65%  { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes univWhyShine {
  0%   { left: -75%; }
  100% { left: 130%; }
}

/* ---------- Section ---------- */
.univ-why {
  width: 100%;
  background: #1a3a6b;
  padding: 56px 0 64px;
}

/* ---------- Inner ---------- */
.univ-why__inner {
  width: 90%;
  /*max-width: 1200px;*/
  margin: 0 auto;
}

/* ---------- Header ---------- */
.univ-why__header {
  text-align: center;
  margin-bottom: 44px;
  animation: univWhyFadeUp 0.7s ease 0.1s both;
}

/* Label pill */
.univ-why__label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 16px;
}

.univ-why__label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
}

.univ-why__label {
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Title */
.univ-why__title {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 12px;
}

.univ-why__highlight {
  color: #7eb3f7;
  font-weight: 800;
}

/* Subtitle */
.univ-why__subtitle {
  color: rgba(255,255,255,0.68);
  font-size: clamp(13.5px, 1.4vw, 15px);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 480px;
}

/* ---------- Grid ---------- */
.univ-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ---------- Card ---------- */
.univ-why__card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 28px 22px 26px;
  cursor: default;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  animation: univWhyCardIn 0.65s ease both;
}

.univ-why__card:nth-child(1) { animation-delay: 0.15s; }
.univ-why__card:nth-child(2) { animation-delay: 0.25s; }
.univ-why__card:nth-child(3) { animation-delay: 0.35s; }
.univ-why__card:nth-child(4) { animation-delay: 0.45s; }

/* Active card (card 1) */
.univ-why__card--active {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
}

/* Shine sweep */
.univ-why__card::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 1;
}

.univ-why__card:hover::before {
  animation: univWhyShine 0.55s ease forwards;
}

/* Hover */
.univ-why__card:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.36);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.univ-why__card:hover .univ-why__icon-wrap {
  animation: univWhyIconPop 0.42s ease both;
}

.univ-why__card:hover .univ-why__card-title {
  color: #ffffff;
}

/* ---------- Icon Wrap ---------- */
.univ-why__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease;
  border: 1px solid rgba(255,255,255,0.18);
}

.univ-why__icon-wrap--red {
  background: #dc2626;
  border-color: #dc2626;
}

.univ-why__card:hover .univ-why__icon-wrap:not(.univ-why__icon-wrap--red) {
  background: rgba(255,255,255,0.22);
}

/* ---------- Title ---------- */
.univ-why__card-title {
  color: rgba(255,255,255,0.92);
  font-size: clamp(14px, 1.4vw, 15.5px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.28;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* ---------- Text ---------- */
.univ-why__card-text {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.68;
  margin: 0;
  position: relative;
  z-index: 2;
  user-select: text;
  -webkit-user-select: text;
  transition: color 0.3s ease;
}

.univ-why__card:hover .univ-why__card-text {
  color: rgba(255,255,255,0.80);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet: 2 cols */
@media (max-width: 960px) {
  .univ-why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile: 1 col */
@media (max-width: 580px) {
  .univ-why {
    padding: 44px 0 52px;
  }

  .univ-why__inner { width: 92%; }
  .univ-why__header { margin-bottom: 32px; }
  .univ-why__title { font-size: clamp(20px, 6vw, 24px); }

  .univ-why__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .univ-why__card {
    padding: 22px 18px;
    animation: none;
  }

  .univ-why__card:hover {
    transform: none;
  }
}

@media (max-width: 400px) {
  .univ-why__title { font-size: 19px; }
}