/* Styles for backend-managed pages (app/Views/front/cms_page.php) and dynamic navbar */

/* Social links in navbar */
.nav-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 6px;
  border-radius: 50%;
  background-color: #ea512e;
  color: #ffffff;
  font-size: 18px;
  transition: 0.3s;
}
.nav-social-links a:hover {
  background-color: #1b0238;
  color: #ffffff;
}

/* Home: Popular Classes carousel (equal-height cards, theme-style arrows) */
.class-slides .owl-stage {
  display: flex;
}
.class-slides .owl-item {
  display: flex;
}
.class-slides .class-slide-item,
.class-slides .single-class {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.class-slides .single-class {
  flex-grow: 1;
}
.class-slides .single-class .class-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
/* Age / Time / Seat and the button line up at the bottom of every card */
.class-slides .single-class .class-content .class-list {
  margin-top: auto;
}
.class-slides .single-class .class-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.class-slides.owl-theme .owl-nav {
  margin-top: 0;
}
.class-slides.owl-theme .owl-nav [class*=owl-] {
  position: absolute;
  top: 35%;
  left: -25px;
  margin: 0;
  width: 50px;
  height: 50px;
  line-height: 58px;
  padding: 0;
  font-size: 40px;
  color: #ffffff;
  background: #ea512e;
  border-radius: 50%;
  transition: 0.5s;
}
.class-slides.owl-theme .owl-nav [class*=owl-].owl-next {
  left: auto;
  right: -25px;
}
.class-slides.owl-theme .owl-nav [class*=owl-]:hover {
  color: #ffffff;
  background-color: #f5890d;
}
.class-slides.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: #f1d4cc;
  transition: 0.3s;
}
.class-slides.owl-theme .owl-dots .owl-dot.active span,
.class-slides.owl-theme .owl-dots .owl-dot:hover span {
  background: #ea512e;
}
@media only screen and (max-width: 767px) {
  .class-slides.owl-theme .owl-nav [class*=owl-] {
    left: 0;
    width: 40px;
    height: 40px;
    line-height: 46px;
    font-size: 32px;
  }
  .class-slides.owl-theme .owl-nav [class*=owl-].owl-next {
    right: 0;
  }
}

/* News / event cards: same image height for every card */
.cms-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.event-box-item .cms-card-img {
  height: 200px;
  border-radius: 10px;
}
.cms-view-all {
  text-align: center;
  margin-top: 10px;
}

/* News detail: previous / next */
.cms-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #eeeeee;
}
.cms-post-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 48%;
  color: #1b0238;
  font-weight: 600;
}
.cms-post-nav a.next {
  text-align: right;
  margin-left: auto;
}
.cms-post-nav a small {
  display: block;
  color: #ea512e;
  font-weight: 400;
}
.cms-post-nav a i {
  font-size: 28px;
  color: #ea512e;
}

/* Footer "Photo Gallery": uploaded photos of any shape shown as equal squares */
.single-footer-widget .photo-gallery-list li .box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Group landing page: same photo height on every school card */
.single-teacher .image .cms-school-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Footer logo (Site Setting > Footer Logo) */
.cms-footer-logo {
  max-width: 100%;
  max-height: 100px;
}

/* Page banner with uploaded image */
.page-banner-area.cms-banner {
  background-size: cover;
  background-position: center;
}
.page-banner-content .cms-subtitle {
  color: #ffffff;
  margin-top: 10px;
  font-size: 18px;
}

/* In-page section tabs */
.cms-page-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  padding: 0;
  list-style: none;
}
.cms-page-tabs a {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid #ea512e;
  border-radius: 30px;
  color: #ea512e;
  font-weight: 600;
  transition: 0.3s;
}
.cms-page-tabs a:hover {
  background-color: #ea512e;
  color: #ffffff;
}

.cms-intro {
  max-width: 850px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 17px;
}

/* Sections */
.cms-section {
  scroll-margin-top: 110px;
  padding: 40px 0;
  border-bottom: 1px dashed #f1e6e3;
}
.cms-section:last-of-type {
  border-bottom: none;
}
.cms-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1b0238;
}
.cms-section .cms-content img {
  max-width: 100%;
  height: auto;
}
.cms-section .cms-content table {
  width: 100%;
  margin-bottom: 20px;
}
.cms-section .cms-content table td,
.cms-section .cms-content table th {
  border: 1px solid #eeeeee;
  padding: 8px 12px;
}
.cms-section .cms-image img {
  width: 100%;
  border-radius: 15px;
}
.cms-section .cms-gallery {
  margin-top: 30px;
}
.cms-section .cms-gallery .single-gallery-box img,
.cms-photo-grid .single-gallery-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Forms */
.cms-form {
  max-width: 850px;
  margin: 40px auto 0;
  padding: 40px;
  border-radius: 15px;
  background-color: #fff8f6;
}
.cms-form h3 {
  margin-bottom: 25px;
  font-size: 25px;
}
.cms-form .form-group {
  margin-bottom: 18px;
}
.cms-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #1b0238;
}
.cms-form .form-control,
.cms-form .form-select {
  height: 52px;
  border: 1px solid #eeeeee;
  border-radius: 5px;
  box-shadow: none;
}
.cms-form textarea.form-control {
  height: auto;
}
.cms-form .form-control:focus,
.cms-form .form-select:focus {
  border-color: #ea512e;
}
.cms-form .default-btn {
  border: none;
}
.cms-form .form-message {
  margin-top: 15px;
  font-weight: 600;
}

/* Gallery */
.cms-gallery-card {
  display: block;
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}
.cms-gallery-card:hover {
  transform: translateY(-5px);
}
.cms-gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.cms-gallery-cover {
  position: relative;
  height: 240px;
  background: #fde9e3;
}
.cms-gallery-cover.small,
.cms-gallery-cover.small img {
  height: 170px;
}
.cms-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
  font-size: 13px;
}
.cms-photo-caption {
  margin: -20px 0 25px;
  font-size: 14px;
  text-align: center;
}
.cms-gallery-card .content {
  padding: 18px 20px;
}
.cms-gallery-card h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #1b0238;
}
.cms-gallery-card span {
  color: #6b6b84;
}
