/*
Theme Name:     Travel Tours
Author:         Your Solutions
Tested up to:   6.8
Requires PHP:   7.0
Requires at least: 5.5
Description:    Eduacademy is a modern education WordPress theme ideal for schools, instructors, and course platforms. It supports Masteriyo, LearnPress, Tutor LMS, and Sensei LMS, making it easy to create structured courses and manage students. With clean design, mobile responsiveness, and full WooCommerce support, Eduacademy helps you build high-converting LMS websites quickly using Elementor or the block editor.
Version:        999.9
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    eduacademy
WordPress Available:  yes
Requires License:     no
Tags: one-column, custom-colors, custom-menu, custom-logo, e-commerce, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments
*/

.tour-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.tour-card > .wp-block-group{
  display:flex;
  flex-direction:column;
  flex:1;
}
.tour-card .wp-block-buttons{
  margin-top:auto;
  padding-top: 20px;
}

.wine-tours-table th,
.wine-tours-table td{
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

/* Table base */
@media (min-width: 768px){
  .wine-tours-table table{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .wine-tours-table th:nth-child(1),
  .wine-tours-table td:nth-child(1){ width: 15%; }

  .wine-tours-table th:nth-child(2),
  .wine-tours-table td:nth-child(2){ width: 10%; }

  .wine-tours-table th:nth-child(3),
  .wine-tours-table td:nth-child(3){ width: 15%; }

  .wine-tours-table th:nth-child(4),
  .wine-tours-table td:nth-child(4){ width: 20%; }

  .wine-tours-table th:nth-child(5),
  .wine-tours-table td:nth-child(5){ width: 10%; }

  .wine-tours-table th:nth-child(6),
  .wine-tours-table td:nth-child(6){ width: 30%; }
}

@media (max-width: 767px){
  /* Wrapper scroll for mobile */
  .wine-tours-table{
    overflow-x: auto;
    position: relative;
  }

  .wine-tours-table::after{
    content: "← scroll →";
    display: block;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    padding-top: 6px;
  }

  .wine-tours-table table{
    border-collapse: collapse !important;
    table-layout: auto !important;
    width: max-content !important;   
    min-width: 100%;
  }

  .wine-tours-table th,
  .wine-tours-table td{
    min-width: 120px;
    max-width: 200px;
  }
}

/* GRID */
.wp-block-post-template.is-layout-grid {
  align-items: stretch;
}


.wp-block-post-template.is-layout-grid > li {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden; 
}

.wp-block-post-template.is-layout-grid > li > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wp-block-post-template.is-layout-grid 
  > li 
  .has-ti-bg-background-color {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Unesco */
.unesco-row {
  display: flex;
  align-items: stretch; 
  gap: 40px;
}

.unesco-row > * {
  flex: 1;
  display: flex;
  align-items: center;
}

.unesco-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unesco-row .wp-block-image {
  width: 100%;
  height: 100%;
}

.unesco-row .wp-block-image img {
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px){
  .unesco-row {
    flex-direction: column;
  }

  .unesco-row img {
    height: auto;
  }
}

/* Buttons */
.wp-block-button__link {
  transition: all 0.3s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Images */
figure.wp-block-image,
figure.wp-block-image > a{
  display: block;
  overflow: hidden !important;
  border-radius: 16px !important; 
}

figure.wp-block-image img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important; 
  transition: transform .6s cubic-bezier(.4,0,.2,1) !important;
  transform: translateZ(0);
}

@media (hover: hover){
  figure.wp-block-image:hover img,
  figure.wp-block-image > a:hover img{
    transform: scale(1.1) !important;
  }
}

/* Features Block */
.features-block 
.wp-block-group.has-ti-bg-background-color.has-background {
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1);
}

/* Hover */
@media (hover: hover){
  .features-block 
  .wp-block-group.has-ti-bg-background-color.has-background:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  }
}
@media (max-width: 767px){
  .wp-block-buttons{
     display: none !important;
  }
}

.wp-block-navigation__responsive-container-close{
    right: 15px;
    top: 15px;
}