/*
Theme Name: Breakdance Zero Theme
Theme URI: https://breakdance.com/zero-theme // todo
Author: Breakdance Builder
Author URI: https://breakdance.com/
Description: Entirely disables the WordPress theme system and lets you design every part of your site with Breakdance, while keeping other theme functionality like templates overrides and functions.php.
Version: 1.0.0
Tested up to: 5.9
Requires PHP: 7
License: GNU General Public License v2 or later // todo no idea about this
License URI: LICENSE
Text Domain: breakdance-zero
*/


.page-content {
    width: 100%;
}
.page-with-sidebar {
    display: flex;
    align-items: flex-start;
    max-width: var(--bde-section-width);
    margin: 0 auto;
    padding: 4rem var(--bde-section-horizontal-padding);
}

.page-with-sidebar .entry-content h2 {
    font-size: 1.5rem;
}

.breakdance .page-with-sidebar .entry-content section .section-container {
    padding: 0;
}

.page-sidebar {
    background: #fff;
    padding: 1.5rem;
    padding-left: 0;
    padding-top: 0;
    border-radius: 16px;
    padding-right: 2rem;;
    width: 100%;
    max-width: 17.5rem;
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
}

.page-with-sidebar .page-sidebar > h3 {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.page-sidebar-tree {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.page-sidebar-tree .page-sidebar-tree {
    padding-left: 16px;
    margin-top: 8px;
}

.page-sidebar-tree li {
    margin-bottom: 8px;
}

.page-sidebar-tree a {
    display: block;
    padding: 0.4rem 0px;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
}

.page-sidebar-tree li.is-active > a {
    font-weight: 700;
    gap: 0.75rem;
    display: flex;
    align-items: center;
}

.page-sidebar-tree li.is-ancestor > a {
    font-weight: 700;
}
@media (max-width: 1280px) {
    .page-sidebar {
        max-width: 11rem;
    }
}

@media (max-width: 768px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
.teacher-img {
    width: 80px;
    height: 80px;
}
  .page-sidebar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.18);
    padding: 0;
    overflow: hidden;
    top: auto;
    max-width: 100%;
    width: auto;
  }

  .page-sidebar h3 {
    margin: 0;
    padding: 16px 56px 16px 20px;
    cursor: pointer;
    font-size: 18px;
    position: relative;
  }

  .page-sidebar h3::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7H20' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 12H20' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 17H20' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
  }

  .page-sidebar.is-open h3::after {
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6L18 18' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 6L6 18' stroke='%23000000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .page-sidebar-tree {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 20px;
    transition: max-height .35s ease, padding-bottom .35s ease;
  }

  .page-sidebar.is-open .page-sidebar-tree {
    max-height: 70vh;
    padding-bottom: 18px;
    overflow-y: auto;
  }

  .page-sidebar-tree li {
    list-style: none;
  }

  .page-sidebar-tree a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 0;
  }
}


/* Kalender list styles */

.kalender-wrap {
    width: 100%;
    max-width:54rem;
    margin: 0 auto;
}

.kalender-wrap a {
    text-decoration: none;
}

.kalender-filter {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 55px;
}

.kalender-filter-btn {
    width: 110px;
    height: 100px;
    border: 0;
    border-radius: 8px;
    background: #f7f7f7;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.kalender-filter-btn.active {
    background: #d3bbff;
}

.kalender-filter-icon svg {
    width: 24px;
    height: 24px;
}

.kalender-month,
.kalender-today {
    margin-bottom: 42px;
}



.kalender-month h2,
.kalender-today h2 {
    font-size: 28px;
    margin-bottom: 24px;
    text-align: left;
    text-transform: capitalize;
}

.kalender-today-card {
    position: relative;
    background: #F8F8F6;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 18px;
    text-align: left;
    display: flex;
}

.kalender-today-card h3 {
    margin: 0 0 10px;
}

.kalender-pill {
    position: absolute;
    right: 18px;
    top: 18px;
    background: white;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}

.kalender-event-card {
    display: grid;
    grid-template-columns: 360px 75px 1fr;
    gap: 22px;
    align-items: center;
    background: #f7f7f6;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    padding-right: 0;
}

.kalender-image {
    position: relative;
    height: 180px;
}

.kalender-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kalender-image-pill {
    position: absolute;
    left: 14px;
    top: 14px;
    background: #d3bbff;
    color: #111;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.kalender-date-box {
    background: #d3bbff;
    border-radius: 8px;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
        flex-shrink: 0;
}

.kalender-date-box strong {
    font-size: 26px;
    line-height: 1;
}

.kalender-date-box span {
    font-size: 0.75rem;
    text-transform: uppercase;
}
.kalender-content {
   text-align: left;
}

.kalender-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.kalender-meta {
    color: #7C7C7C;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kalender-meta svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Kalender: filtri ja "näita rohkem" peitmine.
   Kaardid on display:grid/flex, seega peab peitmise reegel olema spetsiifilisem. */

.kalender-item.is-hidden,
.kalender-month.is-hidden,
.kalender-today.is-hidden,
.kalender-more.is-hidden,
.kalender-no-results.is-hidden {
    display: none;
}

.kalender-archive-link,
.kalender-more {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.kalender-archive-link a,
.kalender-more-btn {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    background: #d3bbff;
    color: #1A2024;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    padding: 16px 28px;
    cursor: pointer;
    transition: background var(--bde-transition-duration, 300ms);
}

.kalender-archive-link a:hover,
.kalender-more-btn:hover {
    background: #c2a4f8;
}

.kalender-empty,
.kalender-no-results {
    color: #7C7C7C;
    text-align: center;
}

.kalender-filter-icon img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.event-time {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.event-time .date {
    font-weight: bold;
    font-size: 1.5rem;
} 

.event-time .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

@media (max-width: 1119px) {
    .breakdance .breakdance-menu-item--active .breakdance-menu-link {
        font-weight: 700;
    }
}

@media (max-width: 800px) {
    
    .kalender-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow: auto;
    }
    .kalender-filter-btn {
        flex-shrink: 0;
    }
    .kalender-event-card {
        grid-template-columns: 1fr;
        padding: 0 0 24px;
    }

    .kalender-image {
        height: auto;
    }

    .kalender-date-box,
    .kalender-content {
        margin-left: 22px;
        margin-right: 22px;
    }
    .kalender-wrap .kalender-month h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .kalender-image {
        display: none;
    }
    .kalender-event-card {
                display: flex;
        align-items: flex-start;
        padding: 1rem;
    }
    .kalender-date-box, .kalender-content {
        margin: 0;
    }
}