:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --text: #0f2745;
  --muted: #4f6682;
  --brand: #0c4da2;
  --brand-dark: #073877;
  --brand-soft: #dfeaff;
  --border: #d3e2f8;
  --shadow: 0 18px 40px rgba(12, 77, 162, 0.12);
  --shadow-soft: 0 14px 26px rgba(12, 77, 162, 0.1);
  --accent: #f28c28;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #ffffff 0, #f3f8ff 45%),
    var(--bg);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(211, 226, 248, 0.9);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}

.main-nav {
  display: flex;
  gap: 1.2rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.main-nav a,
.site-footer a {
  color: var(--muted);
  font-weight: 500;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--brand-dark);
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.78rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(12, 77, 162, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--brand-dark);
}

.btn-secondary:hover {
  border-color: #9dbbe8;
  transform: translateY(-1px);
}

.hero {
  padding: 4.8rem 0 3.6rem;
}

.top-carousel {
  padding: 0.75rem 0 0;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: clamp(300px, 36vw, 500px);
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(12, 77, 162, 0.75);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.carousel-btn:hover {
  background: var(--brand);
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(12, 77, 162, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-btn--prev {
  left: 0;
}

.carousel-btn--next {
  right: 0;
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .carousel-btn--prev {
    left: 0;
  }

  .carousel-btn--next {
    right: 0;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-content,
.hero-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 2.1rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.13;
}

.hero-quote {
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 0 0.9rem;
  color: #332920;
}

.hero-copy {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-panel {
  padding: 1.8rem;
  background: linear-gradient(155deg, #ffffff 0%, var(--surface-soft) 100%);
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.hero-points {
  margin: 0 0 1.1rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-points li {
  margin: 0.35rem 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.hero-stats div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-weight: 700;
  color: var(--brand-dark);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.cards-section {
  padding: 0.4rem 0 3.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.section-eyebrow {
  margin: 0;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 14px 28px rgba(46, 27, 15, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #98bbee;
  box-shadow: 0 22px 34px rgba(12, 77, 162, 0.16);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--brand-dark);
}

.card-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
}

.faculty-grid .card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faculty-photo {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
  background: #fff;
  padding: 0.35rem;
}

@media (max-width: 640px) {
  .faculty-photo {
    height: 340px;
  }
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.learn-more {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--brand);
  font-weight: 600;
  position: relative;
}

.learn-more::after {
  content: " ->";
  transition: margin-left 0.2s ease;
}

.learn-more:hover::after {
  margin-left: 3px;
}

.gallery-section,
.testimonials-section,
.faq-section {
  padding: 0.2rem 0 3.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  min-height: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--brand-soft);
}

.gallery-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
}

.gallery-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  color: var(--brand-dark);
}

.gallery-card p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.testimonial-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 64px;
  border: 2px solid var(--border);
  box-shadow: 0 8px 18px rgba(12, 77, 162, 0.14);
}

.testimonial-content {
  flex: 1;
}

.testimonial p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-style: italic;
}

.testimonial h3 {
  margin-bottom: 0;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--brand-dark);
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--brand);
}

.faq-item.open .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.contact-section {
  background: #f8fbff;
  border-top: 1px solid var(--border);
  padding: 3.3rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-intro {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: var(--shadow-soft);
}

.contact-intro h2 {
  margin: 0.3rem 0 0.6rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.contact-subtitle {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #b9ceef;
  border-radius: 8px;
  padding: 0.7rem;
  font: inherit;
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 77, 162, 0.16);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field-row--single {
  grid-template-columns: 1fr;
}

.contact-form select {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #b9ceef;
  border-radius: 8px;
  padding: 0.7rem;
  font: inherit;
  background: #ffffff;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 77, 162, 0.16);
}

.checkbox-group {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.checkbox-item label {
  margin-bottom: 0;
  color: var(--text);
}

.form-status {
  margin: 0.8rem 0 0;
  text-align: center;
  color: var(--muted);
  min-height: 1.5rem;
}

.form-status-error {
  color: #c0392b;
}

.contact-form-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #c3e6cb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: #155724;
}

.contact-form-success h3 {
  margin: 0 0 0.5rem;
  color: #155724;
}

.contact-meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.contact-meta-card {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 77, 162, 0.12);
  box-shadow: 0 10px 24px rgba(12, 77, 162, 0.08);
}

.contact-meta-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.contact-meta-card p {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  line-height: 1.65;
}

.contact-map {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-map-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--brand-dark);
}

.map-embed {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--brand-soft);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: min(380px, 55vh);
  border: 0;
}

.map-link-wrap {
  margin: 0.75rem 0 0;
  text-align: right;
}

.map-external-link {
  font-weight: 600;
  color: var(--brand);
}

.map-external-link:hover {
  color: var(--brand-dark);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--brand);
}

.footer-wrap {
  padding: 1.4rem 0 1.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-main {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  flex: 1;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-start;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.footer-brand {
  font-weight: 700;
  color: #ffffff;
}

.copyright {
  font-size: 0.9rem;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(242, 140, 40, 0.18));
  color: #fef3de;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.site-footer a.footer-credit-link {
  color: #ffd166;
  font-weight: 700;
  text-decoration: none;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3bf, #f28c28);
  color: #4a2500;
  box-shadow: 0 8px 18px rgba(242, 140, 40, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-footer a.footer-credit-link:hover {
  color: #2f1800;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(242, 140, 40, 0.4);
  filter: saturate(1.08);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-wrap {
    flex-direction: column;
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.82rem 1.1rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-answer {
    transition: none;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-shell,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel h2 {
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content,
  .hero-panel {
    padding: 1.3rem;
  }

  .testimonial {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding-right: 2.2rem;
  }

  .carousel-slide img {
    height: 210px;
  }
}
