/* Display the supplied logo without its transparent outer margins.
   The original PNG is retained without modifying the artwork. */
.contact-info_text,
.info-box_link {
  overflow-wrap: anywhere;
}

.header-contact .contact-item {
  margin-left: 0;
  white-space: normal;
  min-width: 0;
  justify-content: flex-start;
}

.header-contact .contact-item i {
  flex: 0 0 20px;
  text-align: center;
}

.header-contact .contact-item span {
  min-width: 0;
}

.header-contact .contact-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 24px;
}

@media (max-width: 991px) {
  .header-contact-column {
    width: 100%;
    min-width: 0;
  }

  .header-contact {
    width: 100%;
    margin-top: 12px;
    padding: 12px 0 16px;
    font-size: 14px;
    line-height: 1.6;
  }

  .header-contact .school-name,
  .header-contact .location {
    align-items: flex-start;
    margin: 0 0 10px;
    gap: 8px;
  }

  .header-contact .school-name {
    font-size: 16px;
  }

  .header-contact .school-name i {
    margin-right: 0;
  }

  .header-contact .contact-item i {
    line-height: 1.6;
  }

  .header-contact .contact-row {
    display: flex;
    width: 100%;
    gap: 10px 20px;
  }

  .header-contact .contact-row .contact-item {
    justify-content: flex-start;
  }

  .header-contact .contact-row a {
    white-space: nowrap;
    font-size: 14px;
  }
}

/* Keep real academy photographs consistent within the retained template. */
.asod-home .testimonial-area-two {
  background-color: #111b20;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.asod-home .testimonial-area-two::before,
.footer-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 20, .82);
  pointer-events: none;
  z-index: -1;
}

.footer-wrapper {
  position: relative;
  isolation: isolate;
  background-color: #111b20;
  background-size: cover;
  background-position: center;
}

.asod-home #hero {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  overflow: hidden;
}

.asod-home #hero .th-hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.asod-home #hero .hero-style2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 580px;
  padding: 72px 0;
  max-width: 720px;
  margin-left: clamp(72px, 7vw, 110px);
  align-items: flex-start;
  text-align: left;
}

.asod-home #hero .hero-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin: 0 0 28px;
  text-align: left;
}

.asod-home #hero .hero-shape2,
.asod-home #hero .hero-shape3,
.asod-home #hero .hero-shape4 {
  display: none;
}

.asod-home #hero .hero-subtitle {
  margin: 0 0 20px;
  text-align: left;
}

.asod-home #hero .hero-style2 .btn-group {
  margin-top: 0;
  justify-content: flex-start;
  gap: 16px;
}

.asod-home #hero .hero-social {
  display: flex;
  gap: 24px;
  left: clamp(24px, 7vw, 110px);
  bottom: 20px;
  transform: none;
  writing-mode: horizontal-tb;
}

.asod-home #hero .hero-social a {
  margin: 0;
}

@media (max-width: 767px) {
  .asod-home #hero {
    width: 100%;
  }

  .asod-home #hero .hero-style2 {
    min-height: 440px;
    padding: 48px 20px;
    margin-left: 0;
  }
}

.asod-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.asod-course-card .dance-box_img {
  width: 100%;
  margin: 0;
}

.asod-course-card .dance-box_content {
  position: static;
  display: flex;
  flex-direction: column;
  inset: auto;
  width: 100%;
  flex: 1;
  padding: 24px;
  border-radius: 0;
  box-shadow: none;
}

.asod-course-card .dance-box_content::after {
  content: none;
}

.asod-course-card .dance-box_img img {
  display: block;
  width: 100%;
  height: 300px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0;
}

.asod-course-card .dance-box_text {
  max-width: none;
}

.asod-course-card .dance-btn {
  margin-top: auto;
}

.asod-course-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
  align-items: stretch;
}

.asod-course-overview .counter-card.style2 {
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.asod-course-overview .counter-card.style2 .counter-card_number {
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.3;
  margin-bottom: 10px;
  overflow-wrap: normal;
  word-break: normal;
}

.asod-course-overview .counter-card.style2 .counter-card_text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 575px) {
  .asod-course-overview {
    grid-template-columns: 1fr;
  }
}

.asod-about-portrait {
  max-width: 460px;
  margin-inline: auto;
}

.asod-about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
}

.asod-about-tagline,
.asod-about-closing {
  color: #80652a;
  font-weight: 600;
  line-height: 1.7;
}

.asod-about-story {
  max-width: 1000px;
  margin: 48px auto 0;
}

.asod-about-story p {
  margin-bottom: 24px;
  line-height: 1.85;
}

.asod-about-story p:last-child {
  margin-bottom: 0;
}

.asod-home #about-sec .row {
  row-gap: 32px;
}

.asod-home #about-sec .img-box3 {
  width: 100%;
  max-width: 545px;
  height: auto;
  margin-inline: auto;
}

.asod-home #about-sec .img-box3 .img1 {
  margin-right: 0;
}

.asod-home #about-sec .img1 > img {
  display: block;
  width: 100%;
  height: auto;
}

.dance-box_img img[src*="/asod/"] {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 25%;
}

.gallery-img img[src*="/asod/"],
.event-card_img img[src*="/asod/"],
.blog-img img[src*="/asod/"] {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.testi-box_img img[src*="/asod/"] {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 25%;
}

/* Smaller, consistent photographs in the home-page teaching slider. */
.asod-home .testimonial-area-two .testi-box2 {
  align-items: center;
}

.asod-home .testimonial-area-two .testi-box_avater {
  width: 260px;
  max-width: 100%;
}

.asod-home .testimonial-area-two .testi-box_img {
  width: 100%;
  min-width: 0;
}

.asod-home .testimonial-area-two .testi-box_img img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 320px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 25%;
}

@media (max-width: 1024px) {
  .asod-home .testimonial-area-two .testi-box_avater {
    margin: 0 auto 24px;
  }
}

.th-hero-bg[data-bg-src*="/asod/"] {
  background-position: center;
}

.th-hero-bg[data-bg-src*="/asod/"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .12));
  pointer-events: none;
}

.asod-logo-frame {
  position: relative;
  display: inline-block;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 15 / 7;
  overflow: hidden;
  vertical-align: middle;
}

.asod-logo-frame > img {
  position: absolute;
  width: 166.6667% !important;
  max-width: none !important;
  height: auto !important;
  left: -31.6667%;
  top: -53.5714%;
}

.footer-logo .asod-logo-frame {
  width: 280px;
}

@media (max-width: 575px) {
  .header-logo .asod-logo-frame {
    width: 180px;
  }
}
