/*
 Theme Name: Sydalinna Kool
 Theme URI: https://www.89.ee
 Description: Child theme
 Author: 89
 Author URI: https://www.89.ee
 Template: kadence
 Version: 1.0.0
*/

/* Add your custom CSS below */

h1,
h2,
h3 {
  font-family: playfair display !important;
  font-weight: 500;
}

p {
  font-family: "Roboto", Sans-serif;
}

.content-area {
  margin-top: 0rem !important;
}

/* -------------------------------------
   TIMELINE SCROLL AREA
--------------------------------------*/
#twea-timeline-ce78a79 {
  max-height: 600px; /* change if needed */
  overflow-y: scroll;
  position: relative;

  /* remove scrollbar completely */
  scrollbar-width: none; /* Firefox */
}
#twea-timeline-ce78a79::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}

/* -------------------------------------
   TRANSPARENCY FADE (top + bottom)
--------------------------------------*/
#twea-timeline-ce78a79 {
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 20%,
    /* fully visible at start */ rgba(0, 0, 0, 0) 100%
      /* fades to transparent at bottom */
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* -------------------------------------
   REMOVE ICON (optional)
--------------------------------------*/
#twea-timeline-ce78a79 .twae-icon i {
  display: none !important;
}

/* make the icon container a bullet/dot */

/* -------------------------------------
   DEFAULT STORY STATE
--------------------------------------*/
#twea-timeline-ce78a79 .twae-story .twae-icon {
  background-color: #dcdcdc; /* default grey */
  opacity: 0.7;
  transition: background-color 0.25s ease, transform 0.25s ease,
    opacity 0.25s ease;
}

/* optional: dim whole story */
#twea-timeline-ce78a79 .twae-story {
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

/* -------------------------------------
   ACTIVE STORY STATE (detected by JS)
--------------------------------------*/
#twea-timeline-ce78a79 .twae-story.active-twae .twae-icon {
  background-color: #b98800 !important; /* ACTIVE COLOR */
  opacity: 1;
  transform: scale(1.25);
}

#twea-timeline-ce78a79 .twae-story.active-twae {
  opacity: 1;
}

#twea-timeline-ce78a79 {
  position: relative;
}

/* Vertical line uses CSS variable set by JS */
#twea-timeline-ce78a79::before {
  content: "";
  position: absolute;
  top: 0;

  width: 3px;
  height: var(--tw-line-height, 500px); /* default if JS not run */
  background-color: #ccc;
}

.twae-vertical-right.twae-wrapper .twae-labels {
  top: 1px !important;
}

.twae-wrapper .twae-content,
.twae-wrapper .twae-content:hover {
  box-shadow: none !important;
}

.twae-vertical.twae-wrapper .twae-start,
.twae-vertical.twae-wrapper .twae-end {
  display: none !important;
}

.twae-wrapper .twae-icon {
  width: 20px !important;
  height: 20px !important;
  margin-left: 14px !important;
}

/* Add extra scroll room so last item can become active */
#twea-timeline-ce78a79 {
  padding-bottom: 350px; /* same as container height, adjust as needed */
}

.avaleht-meist:before {
  content: "" !important;
  position: absolute;
  background-image: url("https://sydalinna.89.ee/wp-content/themes/sydalinna-kool/assets/images/pattern.svg");
  background-size: contain;
  background-repeat: repeat;
  opacity: 0.05 !important;
}

.header-red {
  position: relative;
}

.header-red::after {
  content: "" !important;
  position: absolute !important;
  background-color: #862633 !important;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%) !important;
  width: 100%;
  z-index: -1;
  height: 100%;
  left: 1px;
}

.header-red::before {
  content: "" !important;
  background-color: #862633 !important;
  left: 100% !important;
}

.trp-shortcode-switcher__wrapper .trp-shortcode-switcher {
  padding: 10px 0 10px 10px;
}

.trp-shortcode-switcher__wrapper .trp-shortcode-switcher.is-open {
  border: 1px solid #9d434f;
}

.trp-shortcode-switcher__wrapper .trp-shortcode-overlay {
  top: 3px;
}

.trp-shortcode-switcher__wrapper .trp-language-item {
  padding: 4px;
}

.trp-shortcode-switcher__wrapper .trp-language-item-name {
  font-size: 18px;
  font-weight: 500;
}

.trp-shortcode-switcher__wrapper
  .trp-current-language-item__wrapper:not(.trp-hide-arrow) {
  padding-right: 10px;
}

.elementor-nav-menu .sub-arrow {
  color: #b98800;
}

footer a {
  color: #bdbdbd;
}

#koolipereleht .elementor-image-box-img img {
  border-radius: 210px !important;
  height: 170px;
  width: 170px;
  border: 8px solid #f8f6f6;
  object-fit: cover;
  object-position: 0% 35%;
}

#koolipereleht h3.elementor-image-box-title {
  font-family: playfair display !important;
  font-weight: 500;
  font-size: 20px !important;
  color: #862633 !important;
}

#koolipereleht p.elementor-image-box-description {
  font-family: roboto !important;
  color: #585858;
}

#front_swiper .elementor-slides-wrapper {
  max-width: 1400px;
  position: relative;
}

#front_swiper .elementor-swiper-button-prev {
  left: 48px;
  top: 138px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#front_swiper .elementor-swiper-button-next {
  left: 48px;
  top: 65px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#front_swiper .elementor-swiper-button-next::before,
.loop-swiper .elementor-swiper-button-next::before {
  content: "";
  position: absolute;
  --thickness: 2px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(#f39c12 var(--percentage), rgba(0, 0, 0, 0.15) 0);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - var(--thickness)),
    #000 calc(100% - var(--thickness) + 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - var(--thickness)),
    #000 calc(100% - var(--thickness) + 1px)
  );
}

.loop-swiper .elementor-swiper-button-prev,
.loop-swiper .elementor-swiper-button-next {
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 50%;
}

.loop-swiper .elementor-swiper-button-prev svg {
  transform: rotate(180deg) !important;
}

.loop-swiper.partners-swiper .elementor-swiper-button-next {
  right: 0 !important;
  top: -40px !important;
}

.loop-swiper.partners-swiper .elementor-swiper-button-prev {
  left: initial !important;
  right: 60px;
  top: -40px !important;
}

#front_swiper .eicon-chevron-right::before,
#front_swiper .eicon-chevron-left::before {
  content: "";
  width: 15px;
  height: 15px;
  display: block;
  background: url("https://sydalinna.89.ee/wp-content/themes/sydalinna-kool/assets/images/Arrow right.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: 0.3s;
}

#front_swiper .eicon-chevron-left::before {
  transform: rotate(180deg);
}

#front_swiper .elementor-swiper-button-next:hover .eicon-chevron-right::before {
  left: 5px;
}

.main-nav-search {
  max-width: 225px !important;
}

body.elementor-page-9944 .elementor-widget-wp-widget-categories h5 {
  font-family: "Playfair Display";
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
}

body.elementor-page-9944 .elementor-widget-wp-widget-categories ul {
  margin: 0px;
}

body.elementor-page-9944 .elementor-widget-wp-widget-categories ul li {
  list-style: none;
  position: relative;
  padding: 14px;
  border-bottom: 1px solid #72202b;
}

body.elementor-page-9944
  .elementor-widget-wp-widget-categories
  ul
  li:last-child {
  border-bottom: none;
}

body.elementor-page-9944 .elementor-widget-wp-widget-categories ul li a {
  color: #fff;
}

body.elementor-page-9944 .elementor-widget-wp-widget-categories ul li {
  color: #b98800;
  font-family: "Roboto";
}

body.elementor-page-9944 .elementor-widget-wp-widget-categories ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #b98800;
  font-size: 22px;
  line-height: 22px;
}

body.elementor-page-9944 .elementor-post__text {
  background: #fff;
  padding: 18px 18px 10px 18px !important;
  box-shadow: 0px 15px 25px -10px rgba(0, 0, 0, 0.05);
}

body.elementor-page-9944 .elementor-post__text h2:hover,
body.elementor-page-9944 .elementor-widget-wp-widget-categories ul li a:hover {
  color: #b98800 !important;
}

.entry-meta span.meta-label {
  display: none;
}

body.single h1.entry-title {
  font-size: 39px;
  line-height: 1.2;
  font-weight: 500;
}

body.single .content-area {
  margin-top: 30px !important;
}

body.single .kadence-posts-list h3.entry-title {
  font-weight: 500;
}

.elementor-post__excerpt p {
  display: inline;
}

.elementor-post__excerpt::after {
  content: "...";
}

body.search h1.page-title {
  font-weight: 500;
}

body.search h2.entry-title {
  line-height: 1.2;
  font-size: 28px;
}

body.search .entry-header {
  margin-bottom: 1.5em;
  margin-top: 1em;
}

body.search span.author.vcard {
  display: none;
}

body.search .entry-meta {
  color: #adadad;
  font-family: "Roboto", Sans-serif;
  font-size: 14px;
  font-weight: 400;
}

body.search .entry-meta span.posted-by {
  display: none;
}

body.search .entry-summary {
  margin-top: -15px;
}

section.onetap-container .onetap-desc {
  display: none;
}

.table-oc-btn {
  bottom: 10px;
  right: 10px;
  align-items: center;
  column-gap: 10px;
  font-size: 14px;
  position: fixed;
  z-index: 9999999;
  background-color: #862633;
  display: none;
}

@media (min-width: 1024px) {
  #front_swiper .elementor-swiper {
    padding: 150px 0;
  }
}

@media (min-width: 768px) {
  #main_nav {
    width: 100%;
  }

  #main_nav.elementor-nav-menu__align-end .elementor-nav-menu {
    width: 100%;
    justify-content: space-between;
  }

  #main_nav .elementor-nav-menu:after {
    content: none;
  }

  .main-nav-right {
    max-width: 880px;
  }
}

@media (max-width: 1024px) {
  #koolipereleht p.elementor-image-box-description,
  #koolipereleht p {
    font-size: 14px;
  }
  .main-nav-right * {
    font-size: 14px !important;
  }
  #front_swiper .elementor-swiper {
    padding: 100px 0;
  }
  #front_swiper .elementor-swiper-button-prev {
    top: 146px;
  }
  #front_swiper .elementor-swiper-button-next {
    top: 73px;
  }
  body.single h1.entry-title,
  body.search h2.entry-title {
    font-size: 28px;
  }
  body.single .content-container {
    padding: 0px 20px 0px 20px;
  }
  .content-style-boxed .content-bg:not(.loop-entry) {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.search h1.page-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  #koolipereleht .elementor-image-box-img img {
    margin-left: auto;
    margin-right: auto;
  }
  .trp-shortcode-switcher__wrapper .trp-language-item-name {
    font-size: 14px !important;
  }
  .trp-shortcode-switcher__wrapper {
    --bg: #fff !important;
    --text: #1a1a1a !important;
  }
  .trp-shortcode-switcher__wrapper .trp-shortcode-switcher.is-open {
    border: 1px solid #e3e3e3;
  }
  .elementor-menu-toggle {
    padding: 7px 10px !important;
  }
  #mobile_nav {
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
  }
  #mobile_nav.open {
    visibility: visible;
    opacity: 1;
  }
  #mobile_nav > div {
    left: -100%;
    transition: 0.3s;
  }
  #mobile_nav.open > div {
    left: 0%;
  }
  #mobile_nav .elementor-nav-menu--main .elementor-nav-menu ul {
    position: relative !important;
    margin: 0 !important;
  }
  #mobile_nav > div {
    height: 100vh;
    overflow-y: auto;
    flex-wrap: nowrap;
  }
  .trp-shortcode-switcher__wrapper .trp-shortcode-switcher {
    padding: 0 !important;
  }
  #mobile_nav .elementor-nav-menu--main .elementor-nav-menu ul a:hover,
  #mobile_nav .elementor-nav-menu--main .elementor-nav-menu ul a:focus {
    background: initial !important;
    color: initial !important;
  }
  #front_swiper .elementor-swiper {
    padding: 75px 0;
  }
  #front_swiper .elementor-swiper-button-next,
  #front_swiper .elementor-swiper-button-prev {
    top: 25px;
    left: 20px;
  }
  #front_swiper .elementor-swiper-button-next {
    left: 85px;
  }

  .loop-swiper.partners-swiper .elementor-swiper-button-next,
  .loop-swiper.partners-swiper .elementor-swiper-button-prev {
    top: -33px !important;
  }

  #inner-wrap .elementor-nav-menu--dropdown-none.elementor-hidden-mobile {
    display: flex;
    visibility: hidden;
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
    transition: 0.3s;
  }

  #inner-wrap .elementor-nav-menu--dropdown-none.elementor-hidden-mobile.open {
    visibility: visible;
    opacity: 1;
  }
  .table-oc-btn {
    display: flex;
  }
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-family: roboto;
}

.responsive-table th {
  background-color: #862633;
  color: #ffffff;
  text-align: left;
  padding: 14px;
  font-weight: 600;
}

.responsive-table td {
  border: 1px solid #d1d1d1;
  padding: 14px;
  vertical-align: top;
}

.responsive-table a {
  color: #b07c00;
  text-decoration: none;
}

.responsive-table a:hover {
  text-decoration: underline;
}

/* Mobile styles */
@media (max-width: 768px) {
  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    margin-bottom: 20px;
    border: 1px solid #d1d1d1;
    padding: 10px;
  }

  .responsive-table td {
    border: none;
    padding: 8px 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #333;
  }
}

@media (min-width: 768px) {
  main h2 {
    font-size: 34px !important;
  }
}
