/* === KUULUTUSE LEHE SPETSIIFILISED STIILID === */

/* === Tekstistiili kohandus vanale lehele sarnasemaks === */

.training-content p,
.training-content li,
.training-content ul {
  font-size: 16px;
  line-height: 1.7;
  color: #3C4147;
}

hr.section-divider {
  border: none; !important;
  border-top: 1px dotted #bcbcbc; !important;   /* või #bcbcbc, #eaeaea vms, mis sobib */
  margin: 10px 0; !important;               /* kaugus ülevalt ja alt */
  height: 1px; !important;
  width: 100%; !important;
}

/* === Kuulutuse päiseplokk (breadcrumbs, tagasi, favorites) === */
.training-header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.training-header .content-pre {
  width: 100%;
  max-width: 1214px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  background: none;
  position: relative;
}

.breadcrumbs a {
  color: #9e9e9e;
  font-size: 12px;
  line-height: 12px;
  text-decoration: none;
  padding: 0 3px;
}
.breadcrumbs a:hover {
  color: #1e7ab5;
  text-decoration: underline;
}
.breadcrumbs .breadcrumb_last {
  color: #9e9e9e;
  font-size: 12px;
  line-height: 12px;
  padding: 0 3px;
}
.breadcrumbs .breadcrumb-sep {
  color: #9e9e9e;
  margin: 0 5px;
}

/* === Vasak, kesk, parem === */
.training-header .left-section,
.training-header .center-section,
.training-header .right-section {
  display: flex;
  align-items: center;
}

/* === Vasak (Tagasi + Breadcrumbs) === */
.training-header .left-section {
  flex: 1;
}

.training-header .button.small.alt {
  background: #f8f8f8;               /* hele taust */
  color: #3b7ab7;                    /* sinine tekst */
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;           /* õrn raam */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* õrn vari */
  transition: all 0.2s ease;
}

.training-header .button.small.alt:hover {
  background: #e6f0fb;
  border-color: #a7c3e3;
}

.training-header .button.small.alt .icon {
  margin-right: 6px;
  font-size: 14px;
  opacity: 0.7;
}

/* === Keskosa (lemmikute nupp) === */
.training-header .center-section {
  justify-content: center;
  flex: 0;
}

/* === Parem osa (meil ja print) === */
.training-header .right-section {
  justify-content: flex-end;
  flex: 1;
}

.training-header .right-section .actions a {
  margin-left: 10px;
}

.training-header .icon {
  cursor: pointer;
  font-size: 16px;
}

/* === course lead osa (pealkiri, exerpt ja logo) === */

.course-lead {
  display: flex !important;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 5px;
  position: relative;
}

.course-lead .lead-text {
  flex: 1 1 0%;
  min-width: 0;
}

.course-lead h1 {
  font-size: 26px;
  color: #2196f3;
  margin-top: 0;
}

.course-lead p {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px 0;
  color: #3C4147;
}

.course-lead .logo {
  max-width: 170px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: flex-start !important;
  object-fit: contain !important;
}

body.single-training .wrap {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    background: none;
    display: block;
}

body.single-training .training-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: none;
    padding: 0;
    box-sizing: border-box;
}

body.single-training .training-main {
    flex: 0 1 67%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 18px rgba(0,0,0,0.07), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 32px 32px 32px 40px;
    min-width: 0;
}

body.single-training .training-sidebar {
  padding: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

body.single-training .training-sidebar-inner {
  background-image: url('/wp-content/themes/tark-2/img/footer_bg.png'); /* ruudustik */
  background-repeat: repeat;
  background-size: auto;
  background-color: transparent;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 0 0 8px 8px; /* valikuline */
}

body.single-training aside.course-dates {
  border-radius: 8px;
}

.dates-divider {
  border: none;
  border-top: 2px solid #ffffff;
  margin: 10px 0;
  width: 100%;
}

@media screen and (min-width: 1024px) {
  body.single-training aside.course-dates {
    position: sticky;
    top: 30px;
    z-index: 1;
  }
}

.course-dates .dates-past-block b {
  color: #239bd3;      /* Sama pealkirja värv, kui vaja */
  font-weight: bold;
}

.course-dates .dates-past-block {
  color: #fff !important;
  background: none;      /* või vajadusel 'transparent' */
  border-radius: 8px;
  margin: 16px 0 0 0;
  font-size: 15px;
  line-height: 1.7;
  padding: 8px 0 0 0;
}

.course-dates .dates-past-block b {
  color: #239bd3 !important;
}

/* === KUULUTUSE TEKSTI STIILID VÄRVID JMS === */

.training-main h1 {
    color: #239bd3;
    font-size: 24px;
    line-height: 27px;
}

@media (max-width: 700px) {
  .training-header .button.small.alt {
    font-size: 0 !important;    /* peidab tekstisõna */
    padding: 6px 12px;
    position: relative;
  }
  .training-header .button.small.alt::before {
    content: "⟵";               /* või content: "«"; */
    font-size: 18px;
    color: #3b7ab7;
    margin-right: 2px;
    position: relative;
    top: 1px;
  }
  .training-header .button.small.alt .icon {
    display: none;              /* soovi korral peida icon, kui tahad ainult märki */
  }
}

/* === kuulutuse sisu stiilid === */

.training-content h1 {
  font-size: 28px;
  line-height: 1.3;
  color: #239bd3; /* või #2196f3 vastavalt vana stiili toonile */
  margin-bottom: 20px;
}

.training-content h2 {
  font-size: 24px;
  line-height: 1.4;
  color: #239bd3;
  margin-top: 30px;
  margin-bottom: 15px;
}

.training-content h3 {
  font-size: 20px;
  line-height: 1.4;
  color: #239bd3;
  margin-top: 25px;
  margin-bottom: 12px;
}

.training-content h4 {
  font-size: 18px;
  line-height: 1.4;
  color: #239bd3;
  margin-top: 20px;
  margin-bottom: 10px;
}

.training-content h5 {
  font-size: 16px;
  line-height: 1.3;
  color: #239bd3;
  margin-top: 18px;
  margin-bottom: 8px;
}

.training-content h6 {
  font-size: 14px;
  line-height: 1.3;
  color: #239bd3;
  margin-top: 16px;
  margin-bottom: 6px;
}

/* === Kuulutuse all lisainfo vorm) === */

.additional-info-wrapper {
  margin-top: 40px;
  text-align: left;
}

.info-button {
  background-color: #fdbf17;
  color: #000;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 17px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* lisa vari, et nupu piirid tuleksid paremini välja */
}

.info-button:hover {
  background-color: #fde217;
}

#info-form-container {
  max-width: 650px;
  padding: 16px 18px 14px 18px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(60,65,71,0.07);
}

#info-form-container input[type="text"],
#info-form-container input[type="email"],
#info-form-container textarea {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-size: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#info-form-container label {
  font-size: 15px;
  color: #3C4147;
  margin-bottom: 4px;
  font-weight: 600;
  display: block;
}

#info-form-container form.wpcf7-form {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
#info-form-container .wpcf7-submit {
  margin-bottom: 0 !important;
}
#info-form-container textarea {
  margin-bottom: 10px !important;
}

.trainer-excerpt {
  color: #3C4147;
  font-size: 17px;
  margin: 12px 0 2px 0;
  line-height: 1.7;  /* ← see kindlasti */
}
.trainer-excerpt a {
  margin-left: 10px;
  white-space: nowrap;
}

/* Registreerimisvormi ühtlane taust ja ääris */
form.wpcf7-form, 
.registration-form, 
.cf7-wrapper .wpcf7-form {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(60,65,71,0.07);
  padding: 24px 24px 12px 24px;
  max-width: 650px;
  margin: 0 auto 36px auto;
}

/* Kõik väljad ühtlase välimusega */
form.wpcf7-form input[type="text"],
form.wpcf7-form input[type="email"],
form.wpcf7-form input[type="tel"],
form.wpcf7-form textarea,
form.wpcf7-form select {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-size: 16px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

form.wpcf7-form input[type="text"]:focus,
form.wpcf7-form input[type="email"]:focus,
form.wpcf7-form input[type="tel"]:focus,
form.wpcf7-form textarea:focus,
form.wpcf7-form select:focus {
  border-color: #2196f3;
  background: #fff;
  outline: none;
}

/* Labelid ühtlaseks */
form.wpcf7-form label {
  font-size: 15px;
  color: #3C4147;
  margin-bottom: 4px;
  font-weight: 600;
  display: block;
}

/* Dropdown rohkem "nupp" */
.manual-dropdown select,
form.wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="20" width="20" viewBox="0 0 20 20"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position-x: 99%;
  background-position-y: 10px;
}

/* Registreerimisnupp vana lehe stiilis */
form.wpcf7-form input[type="submit"],
.registration-form input[type="submit"] {
  background: #65bb00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  padding: 16px 0;
  margin-top: 6px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 7px rgba(101,187,0,0.14);
  transition: background 0.15s;
  letter-spacing: 1px;
}

form.wpcf7-form input[type="submit"]:hover,
.registration-form input[type="submit"]:hover {
  background: #519409;
}

/* Märkeruut joondus */
form.wpcf7-form .wpcf7-list-item {
  margin-left: 0;
}

/* Lisa ridade vahe ja õhk */
form.wpcf7-form p {
  margin-bottom: 10px;
}

/* Suurem placeholderi tekst */
form.wpcf7-form ::placeholder {
  color: #999;
  font-size: 15px;
  opacity: 1;
}

.registration-block {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.manual-dropdown {
  flex: 1 1 50%;
  min-width: 250px;
  margin-bottom: 0;
}
.cf7-wrapper {
  flex: 3 1 400px;
}

@media (max-width: 900px) {
    body.single-training .training-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    body.single-training .training-sidebar,
    body.single-training .training-main {
        max-width: 100%;
        border-radius: 6px;
        padding: 18px 12px;
    }
    body.single-training .training-sidebar {
        margin-top: 24px;
    }
}

/* Footer */
body.single-training footer .wrap {
    max-width: 1214px;
    margin: 0 auto;
}
body.single-training footer {
    background: #161616 !important;
}

@media (max-width: 700px) {
  body.single-training .mobile-sidebar .registration-block {
    flex-direction: column;
  }

  body.single-training .mobile-sidebar .course-dates {
    background: #fff !important;
    box-shadow: 0 1px 6px rgba(60,65,71,0.10);
    border: 1px solid #e0e0e0;
    border-radius: 8px !important;
    margin: 22px 0 !important;
    padding: 20px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    /* ÄRA pane siia display: none! */
  }

  body.single-training .mobile-sidebar .course-dates * {
    color: #222 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .dates-divider {
    border: 0;
    border-top: 2px solid #666;   /* Tume hall */
    margin: 18px 0;
  }
}

@media (max-width: 700px) {
  body.single-training .mobile-sidebar .button.orange.big {
    display: none !important;
  }
}

@media (max-width: 700px) {
  body.single-training .mobile-sidebar .price.discount {
    color: #C00 !important;
    font-weight: bold;
  }
}

@media (max-width: 700px) {
  body.single-training .mobile-sidebar .soodushind-title {
    color: #C00 !important;
    font-weight: bold;
  }
  body.single-training .mobile-sidebar .price.discount {
    color: #C00 !important;
    font-weight: bold;
  }
}
@media (max-width: 700px) {
  body.single-training .mobile-sidebar .note {
    color: #C00 !important;
    font-size: 15px !important;
    font-weight: bold;
  }
}

@media (max-width: 700px) {
  body.single-training .training-main,
  body.single-training .training-content {
    width: 94vw;
    max-width: 470px;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 0 2vw !important;
    box-sizing: border-box;
    word-break: break-word;
    text-align: left !important;
    float: none !important;
    display: block !important;
  }
}

/* Dropdown manual-dropdown oma stiiliga */
.cf7-wrapper .manual-dropdown {
  margin-bottom: 18px;
}

.cf7-wrapper .manual-dropdown label {
  font-size: 16px;
  color: #3C4147 !important;
  font-weight: 700 !important; /* või lihtsalt: bold */
  margin-bottom: 8px;
  display: block;
}

.cf7-wrapper .manual-dropdown select {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-size: 16px;
  padding: 10px 12px;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="20" width="20" viewBox="0 0 20 20"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position-x: 99%;
  background-position-y: 10px;
}

.cf7-wrapper {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(60,65,71,0.07);
  padding: 18px 24px 1px 24px;
  max-width: 650px;
  margin: 0 0 36px 0;
}

/* Kõik inputid sama stiiliga */
form.wpcf7-form input,
form.wpcf7-form input[type="text"],
form.wpcf7-form input[type="email"],
form.wpcf7-form input[type="tel"],
form.wpcf7-form input[type="number"], /* <-- see on oluline! */
form.wpcf7-form textarea,
form.wpcf7-form select {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-size: 16px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

/* Täpsusta veel: */
form.wpcf7-form input[type="number"] {
  -moz-appearance: textfield;      /* eemaldab Firefoxi spinneri */
}
form.wpcf7-form input[type="number"]::-webkit-outer-spin-button,
form.wpcf7-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;        /* eemaldab Chrome’i spinneri */
  margin: 0;
}

/* Ühele reale ja vertikaalselt keskele */
form.wpcf7-form .wpcf7-list-item,
form.wpcf7-form .wpcf7-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
}

/* Märkeruut tihedalt teksti ees */
form.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
  margin: 0 8px 0 0;
  vertical-align: middle;
  position: relative;
  top: 0;
}

.manual-dropdown label,
.cf7-wrapper .manual-dropdown label {
  font-size: 16px;
  color: #3C4147 !important;
  font-weight: 700 !important;
  margin-bottom: 8px;
  display: block;
}

/* Märkeruut ja tekst samale reale */
.wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 15px;
  color: #3C4147;
  cursor: pointer;
}
.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
  margin: 0 8px 0 0;
  vertical-align: middle;
  position: relative;
  top: 0;
}
/* Märkeruudu tekst ühele reale */
.wpcf7-form .wpcf7-list-item-label {
  white-space: nowrap;
}

.deadline-input {
  width: 60px !important;
  display: inline-block !important;
  margin: 0 6px !important;
  text-align: center !important;
}

.styled-form {
  max-width: 520px;
  background: #fff;
  padding: 32px 16px 24px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(60,65,71,0.06);
  margin-bottom: 30px;
  margin-top: 15px;
}
.styled-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.styled-form input[type="text"],
.styled-form input[type="email"] {
  padding: 12px 10px;
  border: 1px solid #dadada;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  background: #f8f8f8;
}
.styled-form button[type="submit"] {
  width: 100%;
  background: #84c52e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 18px 0;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s;
  margin-top: 14px;
}
.styled-form button[type="submit"]:hover {
  background: #73ad24;
}

html {
  scroll-behavior: smooth;
}

/* Lauaarvuti vaade: peida mobiili-sidebar */
@media (min-width: 701px) {
  .mobile-sidebar {
    display: none !important;
  }
}

/* Mobiilivaade: peida tavapärane sidebar */
@media (max-width: 700px) {
  .training-sidebar:not(.mobile-sidebar) {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .wpcf7-form > div[style*="display:flex"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .wpcf7-form > div[style*="display:flex"] > div {
    width: 100% !important;
    margin: 0 0 12px 0 !important;
  }
  .wpcf7-form .reg-field, .wpcf7-form textarea {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .wpcf7-form .manual-dropdown {
    margin-bottom: 18px;
  }
}




select.reg-field:invalid {
  font-weight: bold;
  color: #444;
}

.price + .note,
.price.discount + .note,
.price.old + .note {
    color: #cccccc !important;  /* Või #333 või #222 või must */
    font-weight: normal;
}

@keyframes shake {
  0% { transform: translateX(0);}
  25% { transform: translateX(-10px);}
  50% { transform: translateX(10px);}
  75% { transform: translateX(-10px);}
  100% { transform: translateX(0);}
}

/* Desktopi reegel ainult kuulutuse lehele */
@media (min-width: 1024px) {
  body.single-training .training-layout {           /* vanal teemas võib olla .training-wrapper vms */
    display: flex;
  }

  body.single-training .training-sidebar,
  body.single-training aside.course-dates {
    width: 280px;
    max-width: 280px;
    flex: 0 0 280px;             /* ära lase flexil venitada */
    box-sizing: border-box;      /* padding ei suurenda laiust üle 280 */
  }

  /* Peasisu täidab ülejäänu */
  body.single-training .training-main {
    flex: 1 1 auto;
    min-width: 0;                /* ära lükka layouti üle ekraani */
  }
}

/* Mobiilivaade */
@media (max-width: 767px) {
  body.single-training .training-layout { display: block; }

  body.single-training .training-main,
  body.single-training .training-sidebar,
  body.single-training aside.course-dates {
    width: 100%;
    max-width: none;
    background: transparent !important;  /* eemalda must taust */
    box-sizing: border-box;
  }

  /* Kui kuskil tekib ikka horisontaalne scroll, lõika ära */
  body.single-training { overflow-x: hidden; }
}

@media (max-width: 767px) {
  body.single-training .training-sidebar,
  body.single-training .training-sidebar * {
    background-color: transparent !important;
    box-shadow: none !important;
  }
}
/* 1) Pane .training-mainile selge taust (desktop + mobiil) */
body.single-training .training-main {
  background: #fff !important;      /* kui tahad läbipaistvat: transparent */
}

/* 2) Kui must tuleb konteinerist, neutraliseeri ka see */
body.single-training .training-layout {
  background: #fff !important;
}

/* 3) Kui teema lisab pseudoelemendi kihi, nulli see */
body.single-training .training-main::before,
body.single-training .training-main::after {
  content: none !important;
  background: none !important;
}
