/* ============================================================
   Index page — responsive sections for all devices
   ============================================================ */

.page-home {
  overflow-x: hidden;
}

/* ---- Topbar & Navbar ---- */
.page-home .container-fluid.bg-dark .row.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.page-home .navbar-brand h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 3vw, 1.5rem);
}

.page-home .navbar-brand .site-logo {
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .page-home .navbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .page-home .container-fluid.bg-dark .col-lg-6.text-center.text-lg-right {
    margin-top: 0.25rem;
  }
}

/* ---- Hero ---- */
.page-home .home-hero {
  min-height: clamp(420px, 70vh, 680px);
  display: flex;
  align-items: center;
}

.page-home .home-hero .container {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.page-home .home-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 6px 18px;
  margin-bottom: 12px;
}

.page-home .home-hero__contact {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 auto 20px;
  max-width: 520px;
}

.page-home .home-hero__contact a {
  color: inherit;
  word-break: break-word;
}

.page-home .hero-title {
  font-size: clamp(1.1rem, 4vw, 2rem);
  line-height: 1.35;
  padding: 0 8px;
}

.page-home .hero-subtitle {
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
  padding: 0 12px;
  line-height: 1.45;
}

.page-home .hero-est {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.page-home .hero-badge-red,
.page-home .hero-label-light {
  font-size: clamp(0.9rem, 2.2vw, 1.25rem);
}

@media (max-width: 575.98px) {
  .page-home .home-hero .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .page-home .home-hero.section-spacing-bottom {
    margin-bottom: 30px !important;
  }

  .page-home .highlight-admission {
    font-size: 1.1rem;
  }

  .page-home .home-hero__contact h6,
  .page-home .home-hero__contact p {
    font-size: 0.8rem;
  }
}

/* ---- Shared section blocks ---- */
.page-home .home-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-home .home-section .section-title h1,
.page-home .home-section .display-4 {
  font-size: clamp(1.35rem, 4vw, 2.5rem);
  line-height: 1.3;
}

.page-home .home-section .container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 991.98px) {
  .page-home .home-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .page-home .home-section .container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .page-home .home-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ---- Section titles ---- */
.page-home .home-section .section-title h6 {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  letter-spacing: 0.08em;
}

.page-home .home-about {
  background: linear-gradient(180deg, #fff 0%, var(--page-accent-soft) 100%);
}

.page-home .home-about .btn-primary {
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
}

/* ---- About ---- */
.page-home .about-image-wrap {
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(18, 15, 45, 0.12);
}

.page-home .home-about .about-image-wrap img {
  object-fit: cover;
}

.page-home .home-about .about-content p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.75;
  text-align: justify;
}

@media (max-width: 991.98px) {
  .page-home .home-about .about-image-wrap {
    min-height: 240px;
    margin-bottom: 1.5rem;
  }

  .page-home .home-about .about-content p {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .page-home .home-about .about-image-wrap {
    min-height: 200px;
  }
}

/* ---- Courses & Committees showcase ---- */
.page-home .home-showcase {
  position: relative;
  overflow: hidden;
}

.page-home .home-showcase--courses {
  background: linear-gradient(165deg, #fff 0%, var(--page-accent-soft) 45%, #fff 100%);
}

.page-home .home-showcase--courses::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 120, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .home-showcase--committees {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
}

.page-home .home-showcase--committees::before {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 77, 93, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .home-showcase__header {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 15px;
}

.page-home .home-showcase__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-secondary);
  margin-bottom: 0.75rem;
}

.page-home .home-showcase__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #120f2d;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.page-home .home-showcase__lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #6b6a75;
  line-height: 1.65;
  margin-bottom: 0;
}

.page-home .home-showcase__slider {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px 2rem;
  position: relative;
}

/* Card */
.page-home .home-showcase-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(18, 15, 45, 0.08);
  border: 1px solid rgba(40, 120, 235, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-home .home-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(40, 120, 235, 0.18);
}

.page-home .home-showcase-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.page-home .home-showcase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.page-home .home-showcase-card:hover .home-showcase-card__media img {
  transform: scale(1.06);
}

.page-home .home-showcase-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--page-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(40, 120, 235, 0.35);
}

.page-home .home-showcase-card__icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--page-secondary);
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(18, 15, 45, 0.12);
}

.page-home .home-showcase-card__body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-home .home-showcase-card__title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: #120f2d;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.page-home .home-showcase-card__text {
  font-size: 0.9rem;
  color: #6b6a75;
  line-height: 1.6;
  margin-bottom: 1.15rem;
  flex: 1;
}

.page-home .home-showcase-card__btn {
  align-self: flex-start;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  white-space: normal;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-showcase-card__btn:hover {
  transform: translateX(3px);
}

.page-home .home-showcase-card__btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.page-home .home-showcase-card__btn:hover i {
  transform: translateX(3px);
}

/* Committee variant */
.page-home .home-showcase-card--committee {
  border-top: 4px solid var(--page-secondary);
}

.page-home .home-showcase-card--committee .home-showcase-card__btn {
  color: var(--page-secondary);
  border-color: var(--page-secondary);
}

.page-home .home-showcase-card--committee .home-showcase-card__btn:hover {
  background: var(--page-secondary);
  border-color: var(--page-secondary);
  color: #fff;
}

/* Owl carousel overrides for showcase */
.page-home .home-showcase .owl-carousel .owl-stage-outer {
  overflow: visible;
  padding: 8px 0 12px;
}

.page-home .home-showcase .owl-carousel .owl-item {
  display: flex;
}

.page-home .home-showcase .owl-carousel .owl-item > article,
.page-home .home-showcase .owl-carousel .owl-item > .home-showcase-card {
  width: 100%;
}

.page-home .home-showcase .courses-carousel-wrap .owl-dots {
  text-align: center;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
}

.page-home .home-showcase .courses-carousel-wrap .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 4px 6px;
  background: rgba(40, 120, 235, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.page-home .home-showcase--committees .courses-carousel-wrap .owl-dots .owl-dot span {
  background: rgba(241, 77, 93, 0.25);
}

.page-home .home-showcase .courses-carousel-wrap .owl-dots .owl-dot.active span {
  width: 28px;
  border-radius: 10px;
  background: var(--page-accent);
}

.page-home .home-showcase--committees .courses-carousel-wrap .owl-dots .owl-dot.active span {
  background: var(--page-secondary);
}

/* Nav arrows */
.page-home .home-showcase .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 4px;
  z-index: 2;
}

.page-home .home-showcase .owl-nav button.owl-prev,
.page-home .home-showcase .owl-nav button.owl-next {
  pointer-events: all;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--page-accent) !important;
  box-shadow: 0 4px 20px rgba(18, 15, 45, 0.12);
  font-size: 1.25rem !important;
  line-height: 44px !important;
  margin: 0 !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .home-showcase--committees .owl-nav button.owl-prev,
.page-home .home-showcase--committees .owl-nav button.owl-next {
  color: var(--page-secondary) !important;
}

.page-home .home-showcase .owl-nav button.owl-prev:hover,
.page-home .home-showcase .owl-nav button.owl-next:hover {
  background: var(--page-accent) !important;
  color: #fff !important;
  transform: scale(1.05);
}

.page-home .home-showcase--committees .owl-nav button.owl-prev:hover,
.page-home .home-showcase--committees .owl-nav button.owl-next:hover {
  background: var(--page-secondary) !important;
}

.page-home .home-showcase .owl-nav button span {
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .page-home .home-showcase__header {
    margin-bottom: 2rem;
  }

  .page-home .home-showcase .owl-nav {
    display: none;
  }

  .page-home .home-showcase .owl-carousel .owl-stage-outer {
    overflow: hidden;
  }
}

@media (max-width: 767.98px) {
  .page-home .home-showcase__slider {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-home .home-showcase-card__body {
    padding: 1.15rem 1rem 1.25rem;
  }

  .page-home .home-showcase-card__btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .page-home .home-showcase-card__media {
    aspect-ratio: 4 / 3;
  }

  .page-home .home-showcase-card__tag {
    font-size: 0.65rem;
    padding: 5px 10px;
  }
}

@media (hover: none) {
  .page-home .home-showcase-card:hover {
    transform: none;
    box-shadow: 0 10px 40px rgba(18, 15, 45, 0.08);
  }

  .page-home .home-showcase-card:hover .home-showcase-card__media img {
    transform: none;
  }
}

@media (min-width: 992px) {
  .page-home .home-showcase__slider {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* ---- Quick links strip (mobile CTA) ---- */
.page-home .home-quick-links {
  display: none;
  background: var(--page-accent-soft);
  padding: 1rem 0;
  border-top: 1px solid rgba(40, 120, 235, 0.15);
  border-bottom: 1px solid rgba(40, 120, 235, 0.15);
}

.page-home .home-quick-links .btn {
  font-size: 0.85rem;
  margin: 4px;
  border-radius: 50px;
}

@media (max-width: 767.98px) {
  .page-home .home-quick-links {
    display: block;
  }

  .page-home .home-quick-links .d-flex {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---- Footer on home ---- */
.page-home .container-fluid.overlay-top {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.page-home .container-fluid.overlay-top h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.page-home .container-fluid.overlay-top .text-white-50 {
  transition: color 0.2s ease;
}

.page-home .container-fluid.overlay-top .text-white-50:hover {
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .page-home .container-fluid.overlay-top {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .page-home .container-fluid.overlay-top .container.mt-5.pt-5 {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .page-home .container-fluid.overlay-top .col-md-4 {
    text-align: center;
    margin-bottom: 2rem !important;
  }

  .page-home .container-fluid.overlay-top .d-flex.justify-content-start {
    justify-content: center !important;
    align-items: center;
  }

  .page-home .container-fluid.overlay-top .d-flex.flex-column {
    align-items: center;
  }

  .page-home .container-fluid.bg-dark.text-white-50.border-top .col-md-6 {
    font-size: 0.875rem;
  }
}

@media (max-width: 575.98px) {
  .page-home .section-spacing-top {
    margin-top: 30px !important;
  }
}

/* Admin button mobile */
@media (max-width: 991.98px) {
  .page-home .navbar-collapse .btn-primary.d-lg-none-mobile {
    display: block !important;
    width: calc(100% - 30px);
    margin: 10px 15px 15px;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .page-home .navbar-collapse .btn-primary.d-lg-none-mobile {
    display: none !important;
  }
}
