/* dancing-script-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dancing-script-v29-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

*{
  box-sizing: content-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f1e8;
    color: #803f35;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
  }
  
  /* Header */
  .header {
      position: fixed;
      top: 0;
      left: 0;
      width: calc(100% - 2rem);
      z-index: 999;
      padding: 1rem;
      height: 50px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background-color 0.25s ease-in;
      padding: 1rem;
      background-color: transparent; /* Transparent until scroll */
      height: 50px;
      background-color: rgba(248, 241, 232, 0.9);

    }
    main{
        margin-top: calc(50px + 2rem);
    }

  .text-name-title {
    font-size: 1.35rem;
    color: #333333;
    font-weight: 100;
    margin-left: 1rem;
  }

  .text-name-title-z-index {
    z-index: 10000;
  }

  .title-font-family{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  }

  .header-items {
    width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-item {
    text-decoration: none;
    color: #803f35;
    font-weight: normal;
  }
  
  /* Additional Header Link Styling */
  .header a {
    margin: 0 10px;
    text-decoration: none;
    color: #803f35;
    font-weight: normal;
  }
  
  /* Buttons */
  .join-btn {
    padding: .2rem 1.25rem .3rem 1.25rem;
    background-color: #803f35;
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .cta-btn {
    padding: 10px 20px;
    background-color: #803f35;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
    text-decoration: none;
  }
  
  /* Content Sections */
  .content-section {
    flex: 1;
    display: grid;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  /* Utility Classes */
  .center-with-margins {
    margin: 0 auto;
    display: block;
    width: fit-content;
    padding-bottom: 0.15rem;
  }
  
  .width-80 {
    width: 80%;
  }
  
  .font-weight-light {
    font-weight: 100;
  }

  /* Footer */
  .footer-content {
    padding: 1rem;
  }
  
  .footer-icon {
    margin: 0 1rem;
    color: #803f35;
    background-color: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease-out;
    text-decoration: none;
  }
  
  .copyright {
    font-size: 0.65rem;
  }
  
  footer {
    border-top: #7d9b74 0.01rem solid;
    max-height: 200px;
  }
  
  /* Contact Page Styles */
  .contact-content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    min-height: calc(100vh - 150px - .5rem);
  }
  
  .contact-info {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-info-title{
    font-size: 2rem !important;
    font-weight: 400;
    margin-bottom: 0.5rem;
  }
  
  .contact-info p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #803f35;
    margin: 0;
  }
  
  .contact-form-container {
    width: 100%;
  }
  
  .contact-form-container form {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form-container input,
  .contact-form-container textarea {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #7d9b74;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
  }
  
  .contact-form-container textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .contact-form-container button {
    align-self: flex-start;
  }
  
  /* Main Content Section */
  .main-content-section {
    grid-template-columns: 35% 65%;
    min-height: calc(100vh - 50px - 2rem - 7%);
    margin-top: 3.5%;
    margin-bottom: 3.5%;
  }
  
  /* Instructor Content Section */
  .instructor-content-section {
    grid-template-columns: 50% 50%;
    min-height: calc(100vh);
    background-color: #e5dcce;
    padding-top: 3.5%;
    padding-bottom: 3.5%;
    align-items: center;
  }
  
  /* Image Containers */
  .image-container-left {
    height: 550px;
    border-top-right-radius: 275px;
    border-bottom-right-radius: 275px;
    overflow: hidden;
    min-height: 500px;
    border: 0.05rem solid #7d9b74;
    border-left: none;
  }
  
  .image-container-right {
    height: 550px;
    border-top-left-radius: 275px;
    border-bottom-left-radius: 275px;
    overflow: hidden;
    min-height: 500px;
    border: 0.05rem solid #7d9b74;
    border-right: none;
  }
  
  .image-container-left img,
  .image-container-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Text Containers */
  .text-container {
    display: flex;
    height: 550px;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .text-container-left {
    margin-right: 12.5%;
    margin-left: calc(5% + 1rem);
  }
  
  .text-container-right {
    padding-left: 20%;
    margin-left: 5rem;
    margin-right: -0.5rem;
  }
  
  .text-container-with-border {
    border: 0.05rem solid #7d9b74;
    border-top-left-radius: 275px;
    border-bottom-left-radius: 275px;
    background-color: #e5dcce;
  }
  
  .text-container-title {
    font-size: 3rem;
    width: 80%;
    margin-bottom: 20px;
    font-weight: 400;
  }
  
  .text-container-subtitle {
    font-size: 1.5rem;
    font-weight: 100;
  }
  
  .text-container-info {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: justify;
  }
  
  /* Additional Utility Classes */
  .text-bold {
    font-weight: normal;
    font-size: 2rem;
  }
  
  .negative-margin-bottom {
    margin-bottom: -1rem;
  }

  .contact-form-validation {
    font-size: 14px;
    width: fit-content;
    width: intrinsic;
    width: -moz-max-content;
    width: -webkit-max-content;
    margin: 0rem auto 1rem;
    text-align: center;
    color: rgb(2, 160, 65);
 	  width: 100%;
    font-weight: 500;
  }

  .display-none {
    display: none;
  }

  .hamburger {
    display: none;
    font-size: 1.5rem;
    color: #803f35;
    cursor: pointer;
  }

  .span-underline{
    text-decoration: underline;
    font-size: 1.25rem;
  }

  .contact-common-section{
    border: 0.05rem solid #7d9b74;
    background-color: #e5dcce;
    margin: 0 auto;
    margin-bottom: 2rem;
    border-radius: 5px;
    width: 100%;
  }

  .contact-detail-container{
    padding: 0rem 2rem 2rem 2rem;
  }

  .contact-page-container{
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 2rem 2rem 0rem 2rem;
    gap: 3rem;
  }

  .contact-page-container > * {
    flex: 1;  /* Ensures both children take equal width */
  }

  .text-font-size{
    font-size: 1.2rem;
  }

  /* 768px */
  @media screen and (max-width: 1024px) {
    .main-content-section,
    .instructor-content-section {
      grid-template-columns: 1fr;
      grid-gap: 1rem;
      min-height: auto;
    }
  
    .image-container-left,
    .image-container-right {
      width: 85%;
      height: 280px; 
      min-height: 280px;
    }
    
    .text-name-title{
        margin-left: 0;
    }

    .image-container-left {
      border-top-right-radius: 140px;
      border-bottom-right-radius: 140px;
    }
    
    .image-container-right {
      border-top-left-radius: 140px;
      border-bottom-left-radius: 140px;
      margin-right: 0;
      margin-left: auto;
    }
  
    .text-container {
      padding: 1rem 2rem 0rem 2rem;
      margin: 0;
      height: auto;
      border: none;
      border-radius: 0;
      background-color: transparent;
    }
    
    .text-container-title {
      font-size: 2.5rem;
      width: 100%;
    }
    .text-container-subtitle {
      font-size: 1.2rem;
    }
    .text-container-info {
      font-size: 14px;
    }

    .width-80 {
        width: 100%;
    }

    .cta-btn, .join-btn {
      padding: 8px 15px;
      font-size: 0.9rem;
    }
    
    /* Adjust footer icons */
    .footer-icon {
      font-size: 1rem;
      margin: 0 0.5rem;
    }

    .header-items {
        display: none;
      }
      .hamburger {
        display: block;
      }

    .header-item{
        width: fit-content;
    }

    .contact-page-container{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem 2rem 0rem 2rem;
      gap: 0;
      margin-top: 1rem;
    }
  
    .contact-page-container > * {
      flex: none;  /* Ensures both children take equal width */
    }
  }

  .mobile-nav-overlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f1e8; /* Solid background */
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding-top: 1.5rem; */
  }
  
  /* Close Icon in the Overlay */
  .mobile-nav-close {
    position: absolute;
    top: 1.6rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #803f35;
    cursor: pointer;
  }
  
  /* Top part of the overlay: brand and links */
  .mobile-nav-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
  }
  
  .mobile-nav-brand {
    margin-bottom: 1rem;
  }
  
  .mobile-nav-links a {
    display: block;
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: #803f35;
    text-decoration: none;
  }
  
  /* Bottom part: the Kontaktai button */
  .mobile-nav-bottom {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
  }

  /* tvarkarastis */
  .month-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 1rem;
}

.calendar-container {
    margin: 0 auto;
    width: 80%;
}

.calendar-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #803f35;
    font-weight: normal;
    border: 0.5px solid rgba(128, 63, 53, 0.1);
    background-color: rgba(128, 63, 53, 0.08); /* Subtle transparency */
    color: #803f35; /* Maintain main color for text */
    border-bottom: 0.5px solid rgba(128, 63, 53, 0.15);
    border-radius: 5px 5px 0 0;
}

.navigation-arrows {
  display: flex;
  gap: 1rem;
  align-items: center;
}


.calendar-header {
    padding: 1rem;
    text-align: center;
    background-color: rgba(248, 241, 232, 0.9); /* Match header transparency */
    border-right: 0.5px solid rgba(128, 63, 53, 0.1);
}

.calendar-header:last-child {
    border-right: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.1px;
    background-color: rgba(128, 63, 53, 0.1);
}

.calendar-day {
    background-color: #f8f1e8;
    min-height: 150px;
    position: relative;
    padding: 8px;
    border: 0.1px solid rgba(128, 63, 53, 0.2);
}

.calendar-day:not(.current-month) {
    background-color: #e5dcce;
    color: #803f3580;
}

.day-number {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.9rem;
}

.class-entry {
    background-color: white;
    border-radius: 5px;
    padding: 6px;
    margin: 4px 0;
    box-shadow: 0 2px 4px rgba(128, 63, 53, 0.1);
    font-size: 0.8rem;
}

.register-btn {
    background-color: #803f35;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 4px 8px;
    margin-top: .5rem;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    display: block;
}

.register-btn-disabled{
  opacity: .8;
  cursor: not-allowed;
 /* style disbaled button below */
 background-color: darkgray;
 
}

.fully-booked {
  opacity: 0.7;
  border-left: 3px solid #484444;
}

.status-badge {
  font-size: 0.8em;
  padding: 2px 5px;
  border-radius: 5px;
  margin-bottom: 5px;
}

.fully-booked .status-badge {
  background: #4c4b4b;
  color: white;
}


.empty-day::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        #4d5c5f10 10px,
        #803f3510 20px
    );
    filter: blur(1px);
}

.arrow-btn {
  background: none;
  border: 1px solid #7d9b74;
  border-radius: 50%;
  width: 32px;
  height: 36px;
  cursor: pointer;
  color: #803f35;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.arrow-btn:hover {
  background-color: #803f35;
  color: white;
}

.mobile-calendar {
  display: none; /* Hidden by default */
}

.price-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;  
  margin: 1rem;
  width: calc(100% -2rem);
  margin-bottom: calc(1rem + 1.5%);
  min-height: 400px;
}

.price-container-card{
  flex: 0 0 300px;
  border: 0.05rem solid #7d9b74;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem 1rem 0.5rem;
  background-color: #e5dcce;
  border-radius: 5px;
  width: calc(100% - 1rem);
  align-self: flex-start;
}

.price-container-card-popular{
  position: relative;
}

.price-container-card-popular::before {
  content: "POPULIARUS";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.25rem;
  background-color: #7d9b74;
  color: white;
  text-align: center;
  line-height: 1.25rem;
  font-size: 0.85rem;
  border-radius: 4px 4px 0 0;
}

.price-container-card .cta-btn{
  align-self: center;
  max-height: 1.5rem;
  padding: .2rem 1rem .25rem;
}

.price-container-card-title{
  font-size: 1rem;
  margin-bottom: -.5rem;
}

.base-hr-style{
  height: 0.1px; 
  background-color: #7d9b74; 
  width: 80%; 
  margin: 0.2rem auto 2.5rem; 
  border: none; 
  opacity: 0.5;
}

@media (max-width: 768px) {

    .price-container{
      flex-direction: column;
    }

    .price-container-card{
      flex: 0 0 175px;
    }
    

    .calendar-day {
        min-height: 100px;
    }
    
    .class-entry {
        padding: 3px;
        font-size: 0.7rem;
    }
    
    .register-btn {
        padding: 2px 4px;
        font-size: 0.7rem;
    }

    .calendar-container {
      display: none;
    }
    
    .mobile-calendar {
      display: block;
      padding: 0 15px;
    }
    
    .mobile-week-header, .mobile-month-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
      margin: 10px 0;
    }

    .column-day{
      padding: .5rem;
    }

    .weekday-cell{
      font-size: 0.8rem;
      color: #803f35;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    .mobile-day-number {
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .mobile-day-number-selected {
      background: #803f35 !important;
      color: white;
    }

    .mobile-day-number-expired{
      color: rgb(148, 142, 142);
    }
}

.mobile-calendar {
  display: none;
  padding: 10px;
}

.mobile-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 15px;
}

.mobile-day {
  text-align: center;
  padding: 5px;
}

.day-abbr {
  font-size: 0.8rem;
  color: #803f35;
  margin-bottom: 5px;
}

.day-number {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.2s;
}

.day-number.selected {
  background: #803f35;
  color: white;
}

.mobile-details-container{
  position: relative;
}

.mobile-details {
  padding: 15px;
  background: #f8f1e8;
  border-radius: 5px;
}

.mobile-class {
  padding: 10px;
  margin-bottom: 10px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(128, 63, 53, 0.1);
}

@media (max-width: 768px) {
  .calendar-container {
      display: none;
  }
  
  .mobile-calendar {
      display: block;
  }
  
  .month-navigation {
      margin-bottom: 15px;
  }
}

.find-us {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.direction-step {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  aspect-ratio: 9/14;
}

.direction-step:hover {
  transform: translateY(-5px);
}

.direction-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .directions-grid {
      grid-template-columns: 1fr;
  }
}

.contact-open-maps-link{
  color: #803f35;
  text-decoration: underline;
}