/* ==========================================================
   Excelmind Publication – additions to the Kidzu theme
   Uses the theme variables from main.css (--theme, --header, --text, --bg…)
   ========================================================== */

/* ---------- Logo ---------- */
.header-1 .logo img,
.offcanvas__logo img,
.footer-logo img {
  width: 190px;
  height: auto;
}
@media (max-width: 575px) {
  .header-1 .logo img { width: 150px; }
}
.header-1 .header-main { padding-top: 14px; padding-bottom: 14px; }

/* ---------- Hero: stacked book covers ---------- */
.hero-1 .hero-image.cover-stack {
  position: relative;
  height: 560px;
  margin-bottom: 40px;
}
.cover-stack img {
  position: absolute;
  width: 58%;
  max-width: 330px;
  border-radius: 14px;
  box-shadow: 0 25px 45px rgba(56, 84, 105, 0.25);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  height: auto !important;
}
.cover-stack img:nth-child(1) { left: 0;   top: 70px;  transform: rotate(-9deg); z-index: 1; }
.cover-stack img:nth-child(2) { right: 0;  top: 70px;  transform: rotate(9deg);  z-index: 1; }
.cover-stack img:nth-child(3) { left: 50%; top: 0;     transform: translateX(-50%); z-index: 2; }
@media (max-width: 1199px) {
  .hero-1 .hero-image.cover-stack { height: 480px; }
}
@media (max-width: 991px) {
  .hero-1 .hero-image.cover-stack { height: 420px; max-width: 520px; margin: 30px auto 60px; }
}
@media (max-width: 575px) {
  .hero-1 .hero-image.cover-stack { height: 330px; }
}

/* ---------- Banner slider (original website banners) ---------- */
.banner-strip { padding-top: 40px; }
.banner-strip .swiper-slide img {
  width: 100%;
  border-radius: 24px;
  display: block;
}
.banner-strip .banner-dots { text-align: center; margin-top: 20px; }
.banner-strip .swiper-pagination-bullet { width: 12px; height: 12px; background: var(--header); opacity: .3; }
.banner-strip .swiper-pagination-bullet-active { background: var(--theme); opacity: 1; }

/* ---------- About images with book covers ---------- */
.about-image.book-about {
  position: relative;
  min-height: 560px;
  max-width: 560px;
}
.about-image.book-about > img {
  width: 72%;
  border-radius: 22px;
  box-shadow: 0 25px 45px rgba(56, 84, 105, 0.2);
}
.about-image.book-about .about-image-2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
}
.about-image.book-about .about-image-2 img {
  width: 100%;
  border-radius: 18px;
  border: 8px solid var(--white);
  box-shadow: 0 25px 45px rgba(56, 84, 105, 0.2);
}
@media (max-width: 1199px) {
  .about-image.book-about { margin: 40px auto 0; min-height: 0; padding-bottom: 80px; }
}

/* ---------- Series cards (program slider) ---------- */
.program-box-items .thumb img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Breadcrumb / page banner ---------- */
.breadcrumb-wrapper.em-breadcrumb {
  background-color: var(--bg);
}
/* Compact page heading: just clears the fixed header */
.breadcrumb-wrapper.em-breadcrumb .hero-line,
.breadcrumb-wrapper.em-breadcrumb .shape-1,
.breadcrumb-wrapper.em-breadcrumb .shape-4 { display: none; }
.breadcrumb-wrapper.em-breadcrumb .page-heading { padding: 140px 0 45px; }
@media (max-width: 1199px) {
  .breadcrumb-wrapper.em-breadcrumb .page-heading { padding: 120px 0 40px; }
}
.breadcrumb-wrapper.em-breadcrumb .page-heading h1 { font-size: 40px; margin-bottom: 6px; }
@media (max-width: 575px) {
  .breadcrumb-wrapper.em-breadcrumb .page-heading { padding: 110px 0 32px; }
  .breadcrumb-wrapper.em-breadcrumb .page-heading h1 { font-size: 28px; }
}
.breadcrumb-wrapper .breadcrumb-items { flex-wrap: wrap; }
.breadcrumb-wrapper .breadcrumb-items li i { color: var(--theme) !important; font-size: 12px; }

/* ---------- Books page: filters ---------- */
.books-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.series-tabs, .subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.series-tabs button,
.subject-chips button {
  border: 2px solid transparent;
  background: var(--white);
  color: var(--header);
  font-weight: 600;
  border-radius: 40px;
  padding: 9px 20px;
  box-shadow: 0 6px 18px rgba(56, 84, 105, 0.08);
  transition: all .3s ease;
}
.series-tabs button .tab-count { opacity: .6; font-weight: 500; margin-left: 4px; }
.series-tabs button:hover,
.subject-chips button:hover { border-color: var(--theme); }
.series-tabs button.active { background: var(--theme); color: var(--white); }
.series-tabs button.active .tab-count { opacity: .85; }
.subject-chips { margin-bottom: 34px; }
.subject-chips button { padding: 6px 16px; font-size: 15px; background: var(--bg2); box-shadow: none; }
.subject-chips button.active { background: var(--header); color: var(--white); }
.books-search {
  position: relative;
  min-width: 260px;
}
.books-search input {
  width: 100%;
  border: 2px solid #E6E8EF;
  border-radius: 40px;
  padding: 11px 20px 11px 46px;
  outline: none;
  color: var(--header);
  background: var(--white);
}
.books-search input:focus { border-color: var(--theme); }
.books-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
}
.series-intro {
  background: var(--bg2);
  border-radius: 20px;
  padding: 20px 26px;
  margin-bottom: 26px;
  color: var(--header);
}
.series-intro h3 { font-size: 24px; margin-bottom: 4px; }
.series-intro p { margin: 0; }
.books-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text);
}

/* ---------- Book card ---------- */
.book-card {
  display: block;
  height: 100%;
  background: var(--white);
  border-radius: 20px;
  padding: 14px 14px 18px;
  box-shadow: 0 10px 30px rgba(56, 84, 105, 0.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(56, 84, 105, 0.16);
}
.book-card .book-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg);
}
.book-card .book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.book-card:hover .book-thumb img { transform: scale(1.05); }
.book-card .book-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--theme);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 30px;
  padding: 3px 12px;
}
.book-card h3 {
  font-size: 18px;
  margin-top: 14px;
  margin-bottom: 2px;
  color: var(--header);
  line-height: 1.3;
}
.book-card:hover h3 { color: var(--theme); }
.book-card .book-meta { font-size: 14px; color: var(--text); }

/* Placeholder cover when the original site has no image */
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg3) 100%);
  color: var(--header);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}
.cover-placeholder img { width: 70% !important; height: auto !important; object-fit: contain !important; }

/* ---------- Book detail ---------- */
.book-details-wrapper .book-cover {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(56, 84, 105, 0.2);
  aspect-ratio: 4 / 5;
  background: var(--bg);
}
.book-details-wrapper .book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-info h2 { font-size: 40px; margin-bottom: 14px; }
@media (max-width: 575px) { .book-info h2 { font-size: 30px; } }
.book-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.book-tags a, .book-tags span {
  background: var(--bg2);
  color: var(--header);
  font-weight: 600;
  font-size: 14px;
  border-radius: 30px;
  padding: 5px 14px;
}
.book-tags a:hover { background: var(--theme); color: var(--white); }
.book-facts { list-style: none; padding: 0; margin: 0 0 30px; }
.book-facts li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #E1E4EC;
  color: var(--header);
}
.book-facts li b { min-width: 90px; }
.book-section {
  background: var(--white);
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(56, 84, 105, 0.07);
}
.book-section h4 {
  font-size: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.book-section h4 i { color: var(--theme); }
.book-section p { margin: 0; }
.book-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.book-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  color: var(--header);
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 14px;
  transition: all .3s ease;
}
.book-links a i { color: var(--theme); transition: color .3s ease; }
.book-links a:hover { background: var(--theme); color: var(--white); }
.book-links a:hover i { color: var(--white); }
.book-links a.video { background: var(--bg3); }
.book-unavailable {
  background: var(--bg);
  border-radius: 20px;
  padding: 26px;
  color: var(--header);
}
.book-unavailable p { margin-bottom: 18px; }

/* ---------- Contact page ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: 22px;
  padding: 34px 26px;
  text-align: center;
  height: 100%;
  box-shadow: 0 12px 34px rgba(56, 84, 105, 0.08);
}
.contact-info-card .icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--bg);
  color: var(--theme);
  font-size: 26px;
}
.contact-info-card.c2 .icon { background: var(--bg2); }
.contact-info-card.c3 .icon { background: var(--bg3); }
.contact-info-card h3 { font-size: 22px; margin-bottom: 8px; }
.contact-info-card p, .contact-info-card a { color: var(--text); margin: 0; display: block; }
.contact-info-card a:hover { color: var(--theme); }
.contact-form-box {
  background: var(--bg);
  border-radius: 26px;
  padding: 40px;
  height: 100%;
}
@media (max-width: 575px) { .contact-form-box { padding: 26px 20px; } }
.contact-form-box h2 { font-size: 36px; margin-bottom: 8px; }
.contact-form-box .form-control {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--header);
}
.contact-form-box .form-control:focus { box-shadow: 0 0 0 2px var(--theme); }
.contact-form-box .form-note { font-size: 14px; margin-top: 14px; }
.contact-map {
  background: var(--bg2);
  border-radius: 26px;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Counter text tweak ---------- */
.counter-box-items .counter-box p { text-transform: none; }

/* ---------- Footer ---------- */
.footer-info-wrapper .footer-content p { max-width: 360px; }
.footer-info-items ul li a { color: inherit; }

/* Simple pill button for script-rendered blocks */
.theme-btn-plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--theme);
  color: var(--white);
  font-weight: 600;
  border-radius: 40px;
  padding: 12px 26px;
  transition: background .3s ease;
}
.theme-btn-plain:hover { background: var(--header); color: var(--white); }

/* The ABC-blocks decoration would sit under the book covers */
.hero-1 .shape4 { display: none; }

/* ---------- Preloader: brand name instead of the template's "Kidzu" ---------- */
.loader {
  font-size: min(72px, 5.4vw);
  white-space: nowrap;
  text-align: center;
}
.loader:before {
  content: "Excel Mind Publication";
}

/* ---------- Digital learning section (home) ---------- */
.digital-section { position: relative; }
.digital-thumb { position: relative; max-width: 460px; margin: 0 auto; }
.digital-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 42% 58% 60% 40% / 48% 55% 45% 52%;
  position: relative;
  z-index: 1;
}
.digital-dot { position: absolute; border-radius: 50%; }
.digital-dot.dot-1 { width: 90px; height: 90px; background: var(--theme); top: 4%; left: -2%; }
.digital-dot.dot-2 { width: 140px; height: 140px; background: var(--bg2); bottom: -4%; right: -4%; }
.digital-desc { margin: 18px 0 26px; }
.digital-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 22px; }
.digital-list li { display: flex; gap: 18px; align-items: flex-start; }
.digital-list h3 { font-size: 22px; margin-bottom: 6px; }
.digital-list p { margin: 0; }
.digital-icon {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.digital-icon img { width: 30px; height: 30px; }
.digital-icon.bg-c1 { background: var(--bg); }
.digital-icon.bg-c2 { background: var(--bg3); }
.digital-icon.bg-c3 { background: var(--bg2); }
.digital-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.theme-btn-plain.alt { background: var(--header); }
.theme-btn-plain.alt:hover { background: var(--theme); }
@media (max-width: 991px) { .digital-thumb { max-width: 360px; } }

/* Less empty space between the compact page heading and the first section */
.em-breadcrumb + section.section-padding { padding-top: 60px; }
@media (max-width: 575px) { .em-breadcrumb + section.section-padding { padding-top: 40px; } }

/* ---------- Mobile side menu: light panel so the logo's dark text reads ---------- */
.offcanvas__info { background: var(--white); }
.offcanvas__wrapper .offcanvas__top {
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--bg);
}
.offcanvas__wrapper .offcanvas__close i { color: var(--header); }
.offcanvas__wrapper .offcanvas__close:hover i { color: var(--theme); }
.offcanvas__wrapper .text { color: var(--text); }
.offcanvas__info .mean-container .mean-nav ul li a {
  color: var(--header);
  border-bottom: 1px solid rgba(56, 84, 105, .12) !important;
}
.offcanvas__info .mean-container .mean-nav ul li a:hover,
.offcanvas__info .mean-container .mean-nav ul li a.mean-expand { color: var(--theme); }
.offcanvas__info .mean-container .mean-nav ul li li a { font-weight: 600; color: var(--text); }
.offcanvas__wrapper .off-contact-info {
  background: var(--bg);
  border-radius: 14px;
  padding: 20px;
}
.offcanvas__wrapper .off-contact-info .info-title { color: var(--header); }
.offcanvas__wrapper .off-contact-info .contact-details .sub-info { color: var(--text); }
.offcanvas__wrapper .off-contact-info .contact-details p,
.offcanvas__wrapper .off-contact-info .contact-details p a { color: var(--header); }
.offcanvas__wrapper .off-contact-info .contact-details p a:hover { color: var(--theme); }
