/* The Lilliputs — wide logo sizing */
.header-1 .logo img,
#header-sticky.sticky .logo img {
  width: auto;
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.offcanvas__wrapper .offcanvas__logo img {
  width: auto;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

.footer-info-wrapper .footer-content .footer-logo img {
  width: auto;
  max-height: 70px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1199px) {
  .header-1 .logo img {
    max-height: 50px;
    width: auto;
  }
}

@media (max-width: 575px) {
  .header-1 .logo img {
    max-height: 44px;
    width: auto;
  }

  .offcanvas__wrapper .offcanvas__logo img {
    max-height: 46px;
    width: auto;
  }
}

/* Homepage hero title */
.hero-1 .hero-content .hero-title {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.06;
}

@media (max-width: 470px) {
  .hero-1 .hero-content .hero-title {
    line-height: 1.12;
  }
}

/* Enquiry popup */
body.enquiry-open {
  overflow: hidden;
}

.enquiry-popup {
  position: fixed;
  inset: 0;
  z-index: 10000001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.enquiry-popup.active {
  pointer-events: auto;
}

.enquiry-popup.active {
  opacity: 1;
  visibility: visible;
}

.enquiry-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.enquiry-popup__content {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 5vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.enquiry-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #385469;
  cursor: pointer;
  z-index: 3;
}

.enquiry-popup .contact-content h2 {
  margin-bottom: 10px;
  padding-right: 36px;
}

.enquiry-popup .contact-content > p {
  margin-bottom: 0;
}

.header-enquiry-btn .theme-bg svg {
  max-width: 225px;
  width: 225px;
}

.header-enquiry-btn .theme-text,
.header-enquiry-btn .theme-text2 {
  font-size: 14px;
  gap: 8px;
  white-space: nowrap;
}

.header-enquiry-btn .theme-text2 {
  display: none !important;
}

.header-enquiry-btn:hover .theme-text {
  transform: translateY(-50%);
}

.header-1 .header-right {
  gap: 10px;
}

.header-brochure-btn .theme-bg svg {
  max-width: 150px;
  width: 150px;
}

.header-brochure-btn .theme-text,
.header-brochure-btn .theme-text2 {
  font-size: 14px;
  gap: 8px;
  white-space: nowrap;
}

.header-brochure-btn .theme-text2 {
  display: none !important;
}

.header-brochure-btn:hover .theme-text {
  transform: translateY(-50%);
}

/* Show Admissions + Brochure buttons on mobile/tablet (theme hides all header .theme-btn below 1200px) */
@media (max-width: 1199px) {
  .header-1 .header-right .theme-btn.header-enquiry-btn,
  .header-1 .header-right .theme-btn.header-brochure-btn {
    display: inline-block !important;
    flex-shrink: 0;
  }

  .header-main .header-right {
    gap: 8px;
  }

  .header-brochure-btn .theme-bg svg {
    max-width: 130px;
    width: 130px;
  }
}

@media (max-width: 575px) {
  .header-enquiry-btn .theme-bg svg {
    max-width: 150px;
    width: 150px;
  }

  .header-enquiry-btn .theme-text,
  .header-enquiry-btn .theme-text2 {
    font-size: 11px;
  }

  .header-brochure-btn .theme-bg svg {
    max-width: 110px;
    width: 110px;
  }

  .header-brochure-btn .theme-text,
  .header-brochure-btn .theme-text2 {
    font-size: 11px;
  }
}

.offcanvas-enquiry-wrap {
  margin: 20px 0 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(193, 210, 206, 0.15);
}

.offcanvas-enquiry-btn {
  display: block !important;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  position: relative;
}

.offcanvas-enquiry-btn .theme-bg {
  display: block;
  line-height: 0;
}

.offcanvas-enquiry-btn .theme-bg svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.offcanvas-enquiry-btn .theme-text,
.offcanvas-enquiry-btn .theme-text2 {
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  white-space: nowrap;
}

.offcanvas-enquiry-btn .theme-text img {
  width: 16px;
  height: auto;
  flex-shrink: 0;
}

.offcanvas-enquiry-btn:hover .theme-text {
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .offcanvas-enquiry-wrap {
    margin: 18px 0 22px;
    padding-top: 14px;
  }

  .offcanvas-enquiry-btn {
    min-height: 50px;
  }

  .offcanvas-enquiry-btn .theme-text,
  .offcanvas-enquiry-btn .theme-text2 {
    font-size: 14px;
    gap: 8px;
  }

  .offcanvas-enquiry-btn .theme-text img {
    width: 14px;
  }
}

@media (max-width: 575px) {
  .offcanvas-enquiry-wrap {
    margin: 14px 0 18px;
    padding-top: 12px;
  }

  .offcanvas-enquiry-btn {
    min-height: 48px;
  }

  .offcanvas-enquiry-btn .theme-text,
  .offcanvas-enquiry-btn .theme-text2 {
    font-size: 13px;
    gap: 6px;
  }

  .offcanvas-enquiry-btn .theme-text img {
    width: 13px;
  }
}

/* Popup form — match contact page styles */
.enquiry-popup .contact-content .contact-form-items {
  margin-top: 28px;
}

.enquiry-popup .contact-content .contact-form-items .form-clt span {
  color: var(--header);
  font-weight: 500;
  text-transform: capitalize;
  display: inline-block;
  margin-bottom: 8px;
}

.enquiry-popup .contact-content .contact-form-items .form-clt input,
.enquiry-popup .contact-content .contact-form-items .form-clt select,
.enquiry-popup .contact-content .contact-form-items .form-clt textarea {
  border: 1px solid rgba(92, 112, 126, 0.2);
  color: var(--text);
  padding: 18px 20px;
  border-radius: 9px;
  width: 100%;
  line-height: 1.4;
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.enquiry-popup .contact-content .contact-form-items .form-clt input:focus,
.enquiry-popup .contact-content .contact-form-items .form-clt select:focus,
.enquiry-popup .contact-content .contact-form-items .form-clt textarea:focus {
  outline: none;
  border-color: #f39f5f;
}

.enquiry-popup .contact-content .contact-form-items .form-clt input::placeholder,
.enquiry-popup .contact-content .contact-form-items .form-clt textarea::placeholder {
  color: var(--text);
  opacity: 0.7;
}

.enquiry-popup .contact-content .contact-form-items .form-clt select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235C707E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.enquiry-popup .contact-content .contact-form-items .form-clt textarea {
  min-height: 140px;
  padding-bottom: 18px;
  resize: vertical;
}

@media (max-width: 767px) {
  .header-enquiry-btn .theme-bg svg {
    max-width: 170px;
    width: 170px;
  }

  .header-enquiry-btn .theme-text,
  .header-enquiry-btn .theme-text2 {
    font-size: 11px;
    gap: 6px;
  }

  .header-enquiry-btn .theme-text img {
    width: 14px;
    height: auto;
  }
}

@media (max-width: 575px) {
  .enquiry-popup__content {
    padding: 32px 20px 28px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .enquiry-popup .contact-content .contact-form-items .form-clt input,
  .enquiry-popup .contact-content .contact-form-items .form-clt select,
  .enquiry-popup .contact-content .contact-form-items .form-clt textarea {
    font-size: 16px;
  }

  .header-enquiry-btn .theme-bg svg {
    max-width: 145px;
    width: 145px;
  }

  .header-enquiry-btn .theme-text,
  .header-enquiry-btn .theme-text2 {
    font-size: 10px;
    gap: 4px;
  }
}

/* Program detail pages */
.program-details-wrapper .details-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
}

.program-details-wrapper .details-image img {
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Program sidebar — label / value alignment */
.program-details-wrapper .details-list-area .details-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
}

.program-details-wrapper .details-list-area .details-list li .details-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 600 !important;
  color: var(--header);
  min-width: 120px;
}

.program-details-wrapper .details-list-area .details-list li .details-label i {
  color: var(--theme);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.program-details-wrapper .details-list-area .details-list li .details-value {
  text-align: right;
  font-weight: 500;
  color: var(--text);
  margin-left: auto;
  line-height: 1.4;
}

.program-details-wrapper .details-list-area .program-sidebar-btn {
  display: block;
  width: 100%;
  position: relative;
  overflow: visible;
  text-align: center;
}

.program-details-section .about-list.style-2 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-details-section .about-list.style-2 li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
}

.program-details-section .about-list.style-2 .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.program-details-section .program-box-items .thumb img {
  width: 100%;
  border-radius: 12px;
}

/* Contact page — mobile info block alignment */
@media (max-width: 991px) {
  .contact-wrapper-2 .contact-left-items .contact-info-area-2 {
    padding: 28px 20px;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items.mb-4 {
    margin-bottom: 0 !important;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    line-height: 52px;
    margin-top: 2px;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .icon svg {
    max-width: 26px;
    max-height: 26px;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content p {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.3;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content h2 {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    word-break: break-word;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content h2 a {
    word-break: break-word;
  }
}

@media (max-width: 575px) {
  .contact-wrapper-2 .contact-left-items .contact-info-area-2 {
    padding: 24px 16px;
    border-radius: 12px 12px 0 0;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items {
    gap: 14px;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .icon {
    width: 50px;
    height: 50px;
    line-height: 46px;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content h2 {
    font-size: 15px;
    line-height: 1.5;
  }

  .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content p {
    font-size: 13px;
  }
}

/* Homepage — hide template sections not in use */
.team-section,
.news-section {
  display: none !important;
}

/* Blog listing — keep visible (separate from homepage .news-section) */
.news-section-inner {
  display: block;
}

.news-section-inner .news-box-items .content > p {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
}

.news-details-area .post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.news-details-area .post-list li {
  color: #5c707e;
  font-size: 15px;
  font-weight: 500;
}

.news-details-area .post-list li i {
  color: #9e267a;
  margin-right: 6px;
}

.news-details-area .post-content h2 {
  margin-bottom: 20px;
}

.news-details-area .post-content p {
  margin-bottom: 16px;
}

/* Homepage — Our Programs slider alignment */
.program-section .program-wrapper .program-wrap-items .swiper-slide {
  height: auto;
}

.program-section .program-main-box-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .program-section .program-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }

  .program-section .program-main-box-items {
    max-width: 100%;
  }
}

.form-message,
.form-feedback {
  font-size: 15px;
  font-weight: 600;
}

.form-message.success,
.form-feedback.success {
  color: #198754;
}

.form-message.error,
.form-feedback.error {
  color: #dc3545;
}

.newsletter-section .form-feedback.success {
  color: #fff;
}

.newsletter-section .form-feedback.error {
  color: #ffd6d6;
}

/* Form submit loader */
@keyframes lp-form-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-is-submitting {
  position: relative;
  pointer-events: none;
}

.form-is-submitting::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: 20;
  border-radius: 8px;
}

.form-is-submitting::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 3px solid rgba(158, 38, 122, 0.2);
  border-top-color: #9e267a;
  border-radius: 50%;
  animation: lp-form-spin 0.75s linear infinite;
  z-index: 21;
}

.newsletter-items.form-is-submitting::before {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

.newsletter-items.form-is-submitting::after {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.lp-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-form-spin 0.7s linear infinite;
  vertical-align: middle;
}

.lp-btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-btn.is-submitting .theme-text,
.theme-btn.is-submitting .theme-text2 {
  opacity: 0;
  visibility: hidden;
}

.theme-btn.is-submitting::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-form-spin 0.7s linear infinite;
  z-index: 120;
}

/* Slim breadcrumb bar (inner pages) */
.breadcrumb-slim {
  position: relative;
  z-index: 9;
  padding: 96px 0 14px;
  background: #fff;
  border-bottom: 1px solid rgba(56, 84, 105, 0.12);
}

.breadcrumb-slim::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9e267a 0%, rgba(158, 38, 122, 0.25) 100%);
}

.breadcrumb-slim .breadcrumb-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-start;
}

.breadcrumb-slim .breadcrumb-items li {
  color: #9e267a;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  line-height: 1.4;
}

.breadcrumb-slim .breadcrumb-items li a {
  color: #385469;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-slim .breadcrumb-items li a:hover {
  color: #9e267a;
}

.breadcrumb-slim .breadcrumb-items li a i {
  color: #9e267a;
  margin-right: 6px;
  font-size: 13px;
}

@media (max-width: 767px) {
  .breadcrumb-slim {
    padding-top: 88px;
    padding-bottom: 12px;
  }

  .breadcrumb-slim .breadcrumb-items li {
    font-size: 13px;
  }
}

.lcw-callback-form button[type="submit"].is-submitting .lp-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

/* Gallery photos — consistent crop in thumbs & Instagram strip */
.program-box-items .thumb img[src*="gallery/"],
.news-card-items .thumb img[src*="gallery/"],
.instagram-image img[src*="gallery/"],
.contact-image img[src*="gallery/"] {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Testimonials — restore card height & center text after removing client photos */
.tetsimonial-box-items {
  margin-top: 0;
}

.tetsimonial-box-items .bg-shape svg {
  width: 100%;
  height: auto;
  display: block;
}

.tetsimonial-box-items .content {
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 54px 52px;
}

.tetsimonial-box-items .content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.tetsimonial-box-items .content p {
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .tetsimonial-box-items .content {
    position: static;
    display: block;
    padding: 28px 24px;
  }
}
