/* ---------- Global ---------- */
:root {
  --brand: #e53935; /* red theme */
  --brand-dark: #b71c1c;
  --text: #1a1a1a;
  --muted: #666;
  --bg: #ffffff;
  --light: #f9f9fb;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  transition: 0.25s transform ease, 0.25s box-shadow ease;
  font-weight: 600;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(229, 57, 53, 0.25);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}
.btn-small {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text);
}
.logo {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-links a {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text);
}
.nav-links a:hover {
  background: var(--light);
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
}

/* ---------- Hero (generic) ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("https://images.unsplash.com/photo-1483721310020-03333e577078?q=80&w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
}
.hero .overlay {
  position: absolute;
  inset: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  margin: 0 0 0.6rem;
}
.hero p {
  max-width: 720px;
  margin: 0 auto 1rem;
}
.floating-cap {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 60px;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section.light {
  background: var(--light);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  transition: 0.3s transform ease, 0.3s box-shadow ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}
.card.highlight {
  border: 2px solid var(--brand);
}

.center {
  text-align: center;
}
.checklist {
  padding-left: 1rem;
}
.checklist li {
  margin: 0.3rem 0;
}

/* ---------- CTA Banner ---------- */
.cta {
  padding: 40px 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta .btn {
  background: #fff;
  color: var(--brand);
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: 70px 0;
  background: var(--light);
}
.page-hero.small {
  padding: 60px 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin: 0.6rem 0 0.25rem;
}
.contact-form input,
.contact-form textarea,
.filters select,
.filters input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e6e6e9;
  border-radius: 12px;
  font: inherit;
}
.map iframe {
  border-radius: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: #101114;
  color: #c9cbd1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2rem;
  padding: 34px 0;
}
.site-footer h4 {
  margin: 0.2rem 0 1rem;
  color: #fff;
}
.site-footer a {
  color: #e2e3e7;
}
.no-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.socials .icon {
  background: #22252b;
  color: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  display: inline-block;
}
.copyright {
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #23252b;
  color: #9fa2aa;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

/* ---------- Responsive (site-wide) ---------- */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 680px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    right: 4%;
    top: 64px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    border-radius: 14px;
    flex-direction: column;
    min-width: 220px;
  }
  .nav-links.open {
    display: flex;
  }
}

/* Navbar zoom effect */
.nav-links a,
.btn {
  display: inline-block;
  will-change: transform;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center;
}
.nav-links a:hover,
.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ---------- Programs Grid with Image Cards ---------- */
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.program-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.program-card:hover {
  transform: scale(1.03);
}
.program-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transition: filter 0.3s ease;
}
.program-card:hover .card-bg {
  filter: brightness(0.7);
}
.program-card .card-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}
.program-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.program-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.program-card ul li {
  margin: 5px 0;
}
.program-card ul li a {
  color: #fff;
  font-weight: 500;
}
.program-card ul li a:hover {
  color: #ffcccc;
}

/* ---------- Programs Modal ---------- */
.program-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.program-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.program-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.program-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #1a1a1a;
  border-radius: 16px;
  max-width: 760px;
  width: min(92%, 760px);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  max-height: 80vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.program-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.program-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.program-list li {
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 12px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  background: #f1f3f5;
  color: #333;
  border-radius: 999px;
  font-size: 12px;
}
.uni-link a {
  text-decoration: underline;
}

/* ---------- Video hero on home (index) ---------- */
.hero-video {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
}
.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}
.hero-video .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero-video .floating-logo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 70px;
  height: auto;
  border-radius: 50%;
  z-index: 5;
  animation: floaty 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hero-video .floating-logo:hover {
  transform: scale(1.08);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Filters (balanced grid) ---------- */
.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px 24px;
  align-items: end;
  margin-top: 8px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-group label {
  font-weight: 600;
  color: #222;
}
.filters select,
.filters input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.2;
  background: #fff;
  outline: none;
}
.filters select:focus,
.filters input[type="text"]:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}
@media (max-width: 992px) {
  .filters {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 600px) {
  .filters {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   ABOUT: Split hero with full-bleed slideshow (NO FRAMES)
   ===================================================================== */
.about-hero-split {
  padding: 56px 0 28px;
  background: #0f0f10;
  color: #fff;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 36px;
  align-items: center;
}
.about-hero-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-hero-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.about-hero-left h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 3rem);
}
.about-hero-tag {
  margin: 0;
  opacity: 0.85;
}

/* RIGHT: slideshow container (no background, no shadow, no radius) */
.about-hero-right {
  position: relative;
}
.about-hero-slider .swiper {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}
.about-hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls (subtle) */
.about-hero-slider .swiper-button-prev,
.about-hero-slider .swiper-button-next {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}
.about-hero-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 992px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
  }
  .about-hero-logo {
    width: 130px;
  }
}
/* 🔴 Make all page placeholders red */
.about-hero,
.contact-hero,
.services-hero,
.study-hero,
.page-hero {
  background-color: #d32f2f !important;
  color: #fff !important;
}
/* 🌍 Cross-browser + device responsiveness fixes */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* Prevent Safari font zoom */
}

body {
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll on small screens */
}

/* 🧭 Responsive images & videos */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 🪄 Layout scaling for tablets and phones */
@media (max-width: 1024px) {
  .container {
    width: 94%;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  p {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}
/* Remove hero background only on index page (has-hero-video) */
body.has-hero-video .hero {
  background: none !important;
  background-image: none !important;
}
/* Match dropdowns (select boxes) with other input fields */
form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover and focus effects to match inputs */
form select:focus {
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}
form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
