/* Site background — warm off-white on all pages */
:root {
  --background-color: #FCF9F3;
}

body {
  background-color: #FCF9F3;
}

.light-background {
  --background-color: #FCF9F3;
}

.main {
  background-color: #FCF9F3;
}

/* Header — compact logo */
.header {
  padding: 6px 0;
}

.header .logo img {
  max-height: 44px;
  width: auto;
}

@media (max-width: 767px) {
  .header {
    padding: 5px 0;
  }

  .header .logo img {
    max-height: 38px;
  }
}

/* Nav menu — no vertical padding on links */
@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 1199px) {
  .navmenu a,
  .navmenu a:focus {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Footer social: icons only */
.footer-16 .footer-social .social-links .social-link i {
  font-size: 1.25rem;
}

.footer-16 .footer-social .social-links {
  gap: 1.25rem;
  margin-right: 0;
}

/* Footer layout */
.footer-16 .footer-bottom {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-16 .footer-main-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-16 .footer-brand {
  display: block;
  margin-bottom: 1.25rem;
  line-height: 0;
}

.footer-16 .footer-brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 160px;
}

.footer-16 .footer-menu {
  margin-bottom: 1.25rem;
}

.footer-16 .footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-16 .footer-menu-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-16 .footer-menu-list a {
  color: var(--default-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-16 .footer-menu-list a:hover {
  color: var(--accent-color);
}

.footer-16 .footer-social {
  padding: 0 0 1.5rem;
}

.footer-16 .footer-social .social-section {
  display: flex;
  justify-content: flex-start;
}

.footer-16 .footer-social .social-links {
  display: flex;
  align-items: center;
}

.footer-16 .footer-divider {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  margin: 0 0 1rem;
  opacity: 1;
}

.footer-16 .footer-legal .copyright {
  text-align: center;
}

.footer-16 .footer-legal .copyright p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

@media (max-width: 991px) {
  .footer-16 .footer-bottom {
    text-align: left;
  }

  .footer-16 .footer-social .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-16 {
    padding: 30px 0 0;
  }
}

@media (min-width: 992px) {
  .footer-16 .footer-bottom {
    padding-top: 2rem;
    padding-bottom: 1.75rem;
    text-align: left;
  }

  .footer-16 .footer-main-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-16 .footer-brand {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .footer-16 .footer-brand img {
    height: 56px;
    max-width: 180px;
  }

  .footer-16 .footer-menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }

  .footer-16 .footer-menu-list {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }

  .footer-16 .footer-social {
    flex: 0 0 auto;
    padding: 0;
  }

  .footer-16 .footer-social .social-section {
    justify-content: flex-end;
  }

  .footer-16 .footer-legal .copyright p {
    font-size: 0.8125rem;
  }
}

/* Preloader disabled */
#preloader {
  display: none !important;
}

/* Typography scale */
body {
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.75em;
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.25rem;
}

.section:not(.hero) {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero.section {
  padding: 0;
}

/* Tighter layout around heroes */
.page-title {
  margin: 0;
}

.page-title nav {
  padding: 12px 0;
}

.hero + .section,
.page-title + .section {
  padding-top: 2rem;
}

#hero {
  padding-top: 0;
  padding-bottom: 0;
}

/* Homepage only: hero title ~25% from top of the banner */
body.home .hero .hero-container {
  align-items: flex-start;
  justify-content: center;
}

body.home .hero .hero-container .hero-content {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 800px;
  margin: 0;
}

body.home .hero .hero-container .hero-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Inner pages (blog, about, contact): vertically centered hero */
body:not(.home) .hero .hero-container {
  align-items: center;
}

body:not(.home) .hero .hero-container .hero-content {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  padding-bottom: 0;
  margin-bottom: 2rem;
}

/* Homepage layout rhythm */
body.home #hero {
  background-color: #FCF9F3;
  padding-bottom: 2.5rem;
  overflow: visible;
}

/* Show more of the hero background artwork (e.g. BEYOND) before cards overlap */
body.home .hero .hero-container {
  min-height: 92vh;
  background-position: center 42%;
  padding-bottom: 7rem;
}

body.home #hero .highlights-container {
  margin-top: -100px;
}

body.home #intro-slider {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

/* Leave room below the slide so the round nav arrows clear the box */
body.home #intro-slider .testimonials-slider {
  padding-bottom: 72px;
  margin-bottom: 0;
}

body.home #intro-slider .swiper-navigation {
  bottom: 4px;
}

body.home #intro-slider + #home-content {
  padding-top: 2.5rem;
}

body.home #home-content {
  padding-bottom: 3rem;
}

body.home #home-content .section-title {
  margin-bottom: 0;
}

body.home #home-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

body.home #home-content h2:first-child {
  margin-top: 0;
}

body.home #home-content p:empty {
  display: none;
}

body.home #home-content .wp-block-columns {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

body.home #partners {
  padding-top: 0;
  padding-bottom: 3rem;
}

body.home #partners .section-title {
  margin-bottom: 1.25rem;
}

/* Collapse doubled padding between same-tone homepage sections */
body.home .light-background + .light-background {
  padding-top: 0;
}

/* Desktop: scroll-to-top bottom-left (clear of WhatsApp on the right) */
@media (min-width: 992px) {
  .scroll-top {
    left: 15px;
    right: auto;
    bottom: 15px;
  }
}

/* Mobile: stack scroll-to-top above WhatsApp (Chaty, bottom-right) */
@media (max-width: 991px) {
  .scroll-top {
    left: auto;
    right: 36px;
    bottom: calc(25px + 54px + 16px);
  }
}

.tos-content p,
.brand-content p,
.blog-single-content p {
  max-width: 72ch;
}

/* Brand single page */
.brand-nav-links {
  margin-bottom: 1.5rem;
}

.brand-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-back-link:hover {
  opacity: 0.8;
  color: var(--accent-color);
}

.brand-header {
  margin-bottom: 2rem;
}

.brand-header h1 {
  margin-bottom: 1rem;
}

.brand-logo {
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.brand-content {
  margin-bottom: 3rem;
}

.related-brands {
  padding-top: 2rem;
  border-top: 1px solid rgba(50, 71, 86, 0.12);
}

.related-brands h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.related-brand-card {
  display: block;
  padding: 1rem;
  background: var(--surface-color);
  border: 1px solid rgba(50, 71, 86, 0.1);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-brand-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(50, 71, 86, 0.08);
}

.related-brand-title {
  display: block;
  color: var(--heading-color);
  font-weight: 500;
}

/* Blog archive */
.blog-archive-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.blog-archive-header h1 {
  margin-bottom: 0.75rem;
}

.blog-archive-intro {
  color: rgba(33, 37, 41, 0.75);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin: 0 auto;
}

.blog-category-filter {
  margin-bottom: 2.5rem;
}

.blog-category-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-filter-btn {
  appearance: none;
  border: 1px solid rgba(50, 71, 86, 0.2);
  background: var(--surface-color);
  color: var(--heading-color);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-family: var(--nav-font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.is-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

@media (max-width: 767px) {
  .blog-category-filter {
    margin-bottom: 1.75rem;
  }

  .blog-category-filter-list {
    gap: 0.35rem 0.45rem;
  }

  .blog-filter-btn {
    padding: 0.28rem 0.65rem;
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
    line-height: 1.3;
  }
}

.blog-results {
  position: relative;
  transition: opacity 0.2s ease;
}

.blog-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.blog-results.is-loading::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin-left: -1rem;
  border: 2px solid rgba(50, 71, 86, 0.15);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: blog-filter-spin 0.7s linear infinite;
}

@keyframes blog-filter-spin {
  to {
    transform: rotate(360deg);
  }
}

.recent-news .blog-archive-intro {
  max-width: 105ch;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
}

/* Blog single: remove card shadow */
.blog-details {
  box-shadow: none;
}

.blog-card {
  margin-bottom: 0;
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-color);
  border: 1px solid rgba(50, 71, 86, 0.1);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card-link:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 24px rgba(50, 71, 86, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(33, 37, 41, 0.6);
}

.blog-card-category,
.blog-single-category {
  color: var(--accent-color);
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card-excerpt {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: rgba(33, 37, 41, 0.8);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.blog-card-readmore {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.9375rem;
}

.blog-pagination {
  margin-top: 3rem;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(50, 71, 86, 0.15);
  border-radius: 4px;
  color: var(--heading-color);
  text-decoration: none;
}

.blog-pagination .page-numbers.current {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination .page-numbers:hover:not(.current) {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  color: var(--accent-color);
}

.blog-pagination-nav .page-item.active .page-link,
.blog-pagination-nav .page-link.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.blog-empty {
  text-align: center;
  color: rgba(33, 37, 41, 0.7);
  padding: 2rem 0;
}

/* Blog single */
.blog-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(33, 37, 41, 0.65);
}

.blog-single-featured {
  margin-bottom: 2rem;
  border-radius: 4px;
  overflow: hidden;
}

.blog-single-content {
  margin-bottom: 2.5rem;
}

.blog-post-nav {
  padding-top: 2rem;
  border-top: 1px solid rgba(50, 71, 86, 0.12);
}

.blog-post-nav-link {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(50, 71, 86, 0.12);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}

.blog-post-nav-link:hover {
  border-color: var(--accent-color);
  color: inherit;
}

.blog-post-nav-label {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.blog-post-nav-title {
  display: block;
  font-weight: 500;
  color: var(--heading-color);
}

/* Spacing refinements for content pages */
.about .tos-content,
.page .tos-content {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.faculty--staff h4 {
  margin-bottom: 2rem;
  line-height: 1.5;
  max-width: 48ch;
}

@media (max-width: 767px) {
  .section:not(.hero) {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero.section {
    padding: 0;
  }

  .hero + .section,
  .page-title + .section {
    padding-top: 1.5rem;
  }

  .blog-post-nav-prev,
  .blog-post-nav-next {
    text-align: left !important;
  }
}

/* Hero highlight cards: straddle the hero's bottom border (not on homepage). */
body:not(.home) .hero .highlights-container {
  margin-top: -120px;
}

@media (max-width: 991px) {
  body:not(.home) .hero .highlights-container {
    margin-top: -90px;
  }
}

@media (max-width: 767px) {
  body.home .hero .hero-container .hero-content {
    top: 14%;
  }

  body.home .hero .hero-container .hero-content h1 {
    font-size: 1.625rem;
  }

  body.home .hero .hero-container {
    min-height: 78vh;
    background-position: center 38%;
    padding-bottom: 5rem;
  }

  body.home #hero .highlights-container {
    margin-top: 25px;
  }

  body:not(.home) .hero .highlights-container {
    margin-top: -60px;
  }
}

/* Pagination: centered on blog and archive pages */
.recent-news .pagination-wrapper,
.recent-news .blog-pagination-nav,
.events-2.pagination-wrapper,
.blog-archive .blog-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
  padding: 0;
}

.recent-news .pagination-wrapper nav,
.recent-news .blog-pagination-nav nav,
.events-2.pagination-wrapper nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.recent-news .pagination-wrapper .pagination,
.recent-news .blog-pagination-nav .pagination,
.events-2.pagination-wrapper .pagination,
.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  margin: 0 auto;
  gap: 0.25rem;
  list-style: none;
}

/* Contact form feedback — simple text, no loud blocks */
.php-email-form .sent-message,
.php-email-form .error-message {
  background: none;
  padding: 0.5rem 0 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}

.php-email-form .sent-message {
  color: var(--heading-color);
}

.php-email-form .error-message {
  color: #8b6914;
  text-align: center;
}

.php-email-form .loading {
  background: none;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}