/* Eaglewood — Inner Pages Premium Polish */

.page-title {
  padding: clamp(48px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(15, 118, 110, .06), transparent);
}

.page-title h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.02em;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
}

.breadcrumb a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}

.section {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.content-copy h2,
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: #0f172a;
}

.section-lead,
.content-copy p {
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}

.card,
.fact-panel,
.scholar-card,
.admission-step,
.contact-item {
  border-radius: 20px !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card:hover,
.fact-panel:hover,
.scholar-card:hover,
.admission-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(15, 118, 110, .12) !important;
}

.check-list li,
.compact-list li {
  line-height: 1.65;
}

.media-panel img {
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .1);
}

.cta {
  background: linear-gradient(135deg, #073d46, #0f766e);
  color: #fff;
  padding: clamp(36px, 5vw, 56px) 0;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, .85);
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.highlight-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.highlight-stat {
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.highlight-stat strong {
  display: block;
  font-size: 24px;
  color: #0f766e;
}

.highlight-stat span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 900px) {
  .highlight-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .highlight-stats {
    grid-template-columns: 1fr;
  }
}

/* Department Support — premium, WCAG-compliant contrast */
.dept-support-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 118, 110, .14), transparent 28rem),
    radial-gradient(circle at 88% 80%, rgba(212, 160, 23, .12), transparent 24rem),
    linear-gradient(165deg, #053d3a 0%, #0a5c57 42%, #0f766e 100%);
  color: #f8fafc;
}

.dept-support-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 40%, rgba(0, 0, 0, .08));
  pointer-events: none;
}

.dept-support-section .container {
  position: relative;
  z-index: 1;
}

.dept-support-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.dept-support-eyebrow {
  color: #fde68a !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dept-support-section .section-title,
.dept-support-section #dept-support-title {
  color: #ffffff !important;
  margin: 0 0 12px;
}

.dept-support-lead {
  color: #d9f3f0 !important;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  max-width: 62ch;
}

.dept-support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.dept-support-card {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.5vw, 26px);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 50px rgba(2, 32, 30, .22);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.dept-support-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 160, 23, .55);
  box-shadow: 0 26px 60px rgba(2, 32, 30, .28);
}

.dept-support-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0f766e;
  background: linear-gradient(145deg, #e6f7f5, #d1f0ec);
  border: 1px solid rgba(15, 118, 110, .18);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.dept-support-icon svg {
  width: 24px;
  height: 24px;
}

.dept-support-card:hover .dept-support-icon {
  color: #fff;
  background: linear-gradient(145deg, #0f766e, #14a69b);
  transform: scale(1.05);
}

.dept-support-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0f172a;
}

.dept-support-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  color: #334155;
}

/* Admission multistep form */
.admission-form-step {
  display: none;
}

.admission-multistep .admission-form-step.active {
  display: block;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-block span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.field-block input,
.field-block select,
.field-block textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}

.field-block.is-invalid input,
.field-block.is-invalid select,
.field-block.is-invalid textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.field-hint {
  font-size: 12px;
  color: #64748b;
}

.field-error {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
}

.form-step-status {
  min-height: 1.25rem;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
}

.form-status.success {
  color: #166534;
  font-weight: 700;
}

.form-toast-region {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
}

.form-toast {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #14a69b);
  box-shadow: 0 16px 40px rgba(15, 118, 110, .28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
}

.form-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.form-toast--error {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  box-shadow: 0 16px 40px rgba(185, 28, 28, .25);
}

@media (max-width: 1024px) {
  .dept-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dept-support-grid {
    grid-template-columns: 1fr;
  }

  .dept-support-card {
    padding: 18px;
  }
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.faculty-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.faculty-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
}

.faculty-dept {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f7f5;
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.faculty-qual { color: #64748b; font-size: 13px; }

.placement-stories { display: grid; gap: 18px; }

.placement-story {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.placement-story img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
}

.recruiter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.recruiter-strip span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

/* Principal message — About page (same source as home/admin) */
.principal-about-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}

.principal-about-frame {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
}

.principal-about-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.55);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.08), 0 24px 60px rgba(15, 45, 55, 0.12);
}

.principal-about-photo,
.principal-about-fallback {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 6px solid #fff;
  box-shadow: 0 20px 54px rgba(15, 45, 55, 0.16);
  image-rendering: auto;
}

.principal-about-photo.is-logo,
.principal-about-photo.is-placeholder {
  object-fit: contain;
  object-position: center center;
  padding: clamp(16px, 5.5%, 26px);
  background: linear-gradient(165deg, #fff 0%, #f3faf9 100%);
}

.principal-about-frame {
  display: grid;
  grid-template-areas: "portrait";
  place-items: center;
  padding: 4px;
}

.principal-about-ring,
.principal-about-photo,
.principal-about-fallback,
.principal-about-badge {
  grid-area: portrait;
}

.principal-about-ring {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
}

.principal-about-photo,
.principal-about-fallback {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  margin: auto;
}

.principal-about-badge {
  position: relative;
  align-self: end;
  justify-self: end;
  margin: 0 2px 14px 0;
}

.principal-about-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f766e, #14a69b);
  color: #fff;
  font-size: clamp(42px, 8vw, 56px);
  font-weight: 800;
}

.principal-about-badge {
  position: absolute;
  right: -6px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.14);
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(15, 45, 55, 0.12);
}

.principal-about-qual {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 4px;
}

.principal-about-signoff {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.principal-about-signoff strong {
  display: block;
  font-size: 1.05rem;
}

.principal-about-signoff span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
}

.principal-about-signoff em {
  display: block;
  margin-top: 8px;
  font-style: italic;
  color: #64748b;
}

@media (max-width: 760px) {
  #principal-about-root {
    text-align: center;
  }

  .principal-about-signoff {
    text-align: center;
  }
}

.sitemap-grid ul { margin: 0; padding-left: 18px; }

@media (max-width: 760px) {
  .principal-about-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .principal-about-block img {
    max-width: min(260px, 72vw);
    margin-inline: auto;
  }

  .contact-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-item,
  .contact-form-section .card {
    min-width: 0;
  }

  .admission-heading {
    display: grid;
    gap: 14px;
  }

  .admission-heading-action .btn {
    width: 100%;
    justify-content: center;
  }

  .faculty-grid .card,
  .gallery-grid .gallery-item {
    min-width: 0;
  }

  .placement-story,
  .fact-grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .dept-support-grid {
    grid-template-columns: 1fr;
  }

  .highlight-stats {
    grid-template-columns: 1fr;
  }

  .field-block input,
  .field-block select,
  .field-block textarea,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
  }
}
