/*
 * BWD Center network update: ArtHUB page, Program per studio,
 * footer locations and menu badge. Uses the variables from style.css.
 */

/* ---------- Menu ---------- */
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px 0;
  font-family: var(--heading-font-family);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 1px;
  color: var(--black-color);
  background-color: var(--primary-color);
  border-radius: 3px;
  vertical-align: middle;
}

/* ---------- Shared cards ---------- */
.bw-card {
  height: 100%;
  padding: 30px;
  background-color: #262626;
  border-radius: 3px;
  border-top: 3px solid transparent;
  transition: all 0.3s ease;
}
.bw-card:hover {
  border-top-color: var(--primary-color);
}
.bw-card .bw-card-number {
  font-family: var(--heading-font-family);
  font-size: 34px;
  line-height: 1;
  color: var(--primary-color);
}
.bw-card .bw-card-title {
  margin: 14px 0 0;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
}
.bw-card .bw-card-text {
  margin: 12px 0 0;
}
.bw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.bw-tag {
  padding: 6px 14px 3px;
  font-family: var(--heading-font-family);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 3px;
}
.bw-card.bw-card-wide {
  border-top: none;
  border-left: 3px solid var(--primary-color);
}

/* ---------- ArtHUB rooms & forms ---------- */
.arthub-room-card {
  height: 300px;
}
.arthub-room-card .card-img {
  height: 100%;
  object-fit: cover;
}
.bw-form-card {
  padding: 40px 30px;
  background-color: #262626;
  border-radius: 3px;
}
.bw-form-card .contact-page-section-title {
  margin-bottom: 25px;
}
.bw-form-card .form-control.style1,
.bw-form-card select.form-control {
  margin-bottom: 15px;
}
.bw-form-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--body-color);
}
.bw-form-card select.form-control {
  color: var(--white-color);
  background-color: transparent;
}
.bw-form-card select.form-control option {
  color: var(--white-color);
  background-color: #262626;
}
.bw-form-card .button-primary {
  width: 100%;
  justify-content: center;
}

/* ---------- Program per studio ---------- */
.program-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.program-tab {
  padding: 12px 26px 8px;
  font-family: var(--heading-font-family);
  font-size: 22px;
  line-height: 1;
  color: var(--white-color);
  background-color: #262626;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.program-tab:hover,
.program-tab.active {
  color: var(--black-color);
  background-color: var(--primary-color);
}
.program-swipe-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--body-color);
}
.program-slider {
  overflow: hidden;
}
.program-studio-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-bottom: 30px;
}
.program-studio-info span {
  color: var(--primary-color);
  margin-right: 6px;
}
.program-category {
  margin: 35px 0 15px;
  padding: 10px 18px 6px;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--black-color);
  background-color: var(--primary-color);
  border-radius: 3px;
}
.program-time {
  display: inline-block;
  padding: 4px 10px 2px;
  font-family: var(--heading-font-family);
  font-size: 18px;
  line-height: 1;
  color: var(--black-color);
  background-color: #e8d5b5;
  border-radius: 3px;
}
.program-group-card {
  margin-bottom: 10px;
  padding: 18px 20px;
  background-color: #262626;
  border-radius: 3px;
}
.program-group-card h5 {
  margin: 0;
  font-size: 24px;
}
.program-group-card .program-group-meta {
  margin: 4px 0 10px;
  font-size: 14px;
  color: var(--body-color);
}
.program-group-card .program-group-day {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--border-color);
}

/* ---------- Footer locations ---------- */
.location-card {
  height: 100%;
  padding: 24px;
  background-color: #262626;
  border-top: 3px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.location-card:hover,
.location-card.active {
  border-top-color: var(--primary-color);
}
.location-card.active {
  background-color: #2e2e2e;
}
.location-card .location-name {
  margin: 0 0 6px;
  font-size: 28px;
  text-transform: uppercase;
}
.location-card.active .location-name {
  color: var(--primary-color);
}
.location-card p {
  margin: 0 0 4px;
}
.locations-map.ak-google-map {
  height: 100%;
  min-height: 400px;
}

/* ---------- Phone links ---------- */
a.bw-phone {
  color: var(--white-color);
  text-decoration: underline;
  text-decoration-color: rgba(245, 128, 33, 0.6);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
a.bw-phone:hover,
a.bw-phone:focus {
  color: var(--primary-color);
}

@media (max-width: 991px) {
  .locations-map.ak-google-map {
    min-height: 320px;
  }
}

/* ---------- Admin: interactive studio schedule editor ---------- */
.schedule-editor-help {
  margin-bottom: 20px;
  padding: 12px 18px;
  color: var(--body-color);
  border: 1px dashed var(--primary-color);
  border-radius: 3px;
}
.program-tab.is-hidden,
.schedule-calendar tr.is-hidden {
  opacity: 0.5;
}
.program-tab-add {
  color: var(--primary-color);
  background-color: transparent;
  border: 1px dashed var(--primary-color);
}
.editor-btn {
  padding: 10px 18px 6px;
  font-family: var(--heading-font-family);
  font-size: 18px;
  line-height: 1;
  color: var(--white-color);
  background-color: #262626;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
}
.editor-btn:hover {
  border-color: var(--primary-color);
}
.editor-btn-primary {
  color: var(--black-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.editor-btn-danger {
  color: #ff6b6b;
  border-color: #ff6b6b;
}
.editor-group-name {
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.editor-group-name:hover {
  color: var(--primary-color);
}
.editor-icon {
  margin-left: 6px;
  padding: 0 6px;
  font-size: 20px;
  line-height: 1;
  color: #ff6b6b;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
}
.editor-icon:hover {
  opacity: 1;
}
.schedule-calendar .js-cell,
.schedule-calendar .js-edit-group {
  cursor: pointer;
}
.schedule-calendar a.js-cell:hover,
.schedule-calendar a.js-edit-group:hover {
  outline: 2px solid var(--primary-color);
}
.cs-item-add {
  width: 100%;
  min-height: 80px;
  font-size: 28px;
  color: transparent;
  background: none;
  border: 1px dashed transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cs-item-add:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.editor-add-row {
  width: 100%;
  padding: 10px;
  font-family: var(--heading-font-family);
  font-size: 20px;
  color: var(--primary-color);
  background: none;
  border: 1px dashed var(--border-color);
  border-radius: 3px;
  cursor: pointer;
}
.editor-add-row:hover {
  border-color: var(--primary-color);
}
.schedule-editor-modal {
  z-index: 100001;
}
.schedule-editor-modal ~ .modal-backdrop,
body > .modal-backdrop {
  z-index: 100000;
}
.schedule-editor-modal .modal-content {
  color: var(--white-color);
  background-color: #262626;
  border: 1px solid var(--border-color);
}
.schedule-editor-modal .modal-header,
.schedule-editor-modal .modal-footer {
  border-color: var(--border-color);
}
.schedule-editor-modal h6 {
  color: var(--primary-color);
}
.schedule-editor-modal label {
  font-size: 14px;
  color: var(--body-color);
}
.schedule-editor-modal .form-control {
  color: var(--white-color);
  background-color: #1c1c1c;
  border-color: var(--border-color);
}
.schedule-editor-modal .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}
.schedule-editor-modal select.form-control option {
  background-color: #1c1c1c;
}

/* ArtHUB side-by-side sections: heading + text follow the side they sit on (desktop), centered on mobile */
.bw-side-text,
.bw-side-text .section-heading.style-1.type-1 {
    text-align: center;
}
@media screen and (min-width: 992px) {
    .bw-side-text,
    .bw-side-text .section-heading.style-1.type-1 {
        text-align: left;
    }
    .bw-side-text.bw-side-end,
    .bw-side-text.bw-side-end .section-heading.style-1.type-1 {
        text-align: right;
    }
}

/* Balet team grid: space between the rows on desktop (theme only sets a gap below 992px) */
@media screen and (min-width: 992px) {
    .team-content {
        row-gap: 60px;
    }
}

/* Home hero: on wide but short screens (e.g. 1440x900 laptops) - and always in Russian, whose headline
   is longer - the big title grew taller than the screen and slid under the menu.
   Use the theme's own next size down there */
@media screen and (min-width: 1400px) and (max-height: 1000px) {
    .ak-hero.ak-style1 .hero-content .hero-stroke-text-one {
        font-size: 115px;
        margin-top: 50px;
        display: block;
    }
    .ak-hero.ak-style1 .hero-content .hero-stroke-text-two {
        font-size: 75px;
    }
    .ak-hero.ak-style1 .hero-content .hero-stroke-text .hero-title-three {
        font-size: 50px;
    }
    .ak-hero.ak-style1 .hero-content .hero-desp {
        margin-bottom: 20px;
        line-height: 27px;
        font-size: 16px;
    }
}
@media screen and (min-width: 1400px) {
    html[lang="ru"] .ak-hero.ak-style1 .hero-content .hero-stroke-text-one {
        font-size: 115px;
        margin-top: 50px;
        display: block;
    }
    html[lang="ru"] .ak-hero.ak-style1 .hero-content .hero-stroke-text-two {
        font-size: 75px;
    }
    html[lang="ru"] .ak-hero.ak-style1 .hero-content .hero-stroke-text .hero-title-three {
        font-size: 50px;
    }
    html[lang="ru"] .ak-hero.ak-style1 .hero-content .hero-desp {
        margin-bottom: 20px;
        line-height: 27px;
        font-size: 16px;
    }
}

/* Phones: if the hero text is taller than the screen, let the hero grow (starting under the header)
   instead of pushing the title up behind it */
@media screen and (max-width: 767px) {
    .ak-hero.ak-style1 {
        height: auto;
        min-height: 100vh;
        padding-top: 90px;
    }
}

/* Header: the network menu (ArtHUB + badge, Program, Contacte / Locatii) must stay on one row,
   otherwise the bar grows to 2-3 rows and covers the hero title. Tighter spacing on narrower desktops. */
@media screen and (min-width: 1200px) {
    .ak-site_header.ak-style1 .ak-main_header_in {
        flex-wrap: nowrap;
    }
    .ak-site_header .ak-nav .ak-nav_list a {
        white-space: nowrap;
    }
}
@media screen and (min-width: 1200px) {
    .ak-site_header.ak-style1 .ak-main_header_in {
        padding: 0 40px;
    }
    .ak-site_header .ak-main-header-center .ak-nav .ak-nav_list > li {
        margin-right: 34px;
    }
}
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .ak-site_header.ak-style1 .ak-main_header_in {
        padding: 0 24px;
    }
    .ak-site_header .ak-main-header-center .ak-nav .ak-nav_list > li {
        margin-right: 24px;
    }
}

/* Production merch cards: same height in a row, same photo frame, price aligned at the bottom */
.post-card.style2 {
    height: 100%;
}
.post-card.style2 .post-content {
    width: 100%;
}
.post-card.style2 .post-content .post-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.post-card.style2 .post-btn {
    margin-top: auto;
}
