/*
Theme Name: Astra Child theme of astra
Theme URI: 
Description: Child theme of astra theme for the Astra theme
Author: <a href="https://wpastra.com/about/?utm_source=theme_preview&#038;utm_medium=author_link&#038;utm_campaign=astra_theme">Brainstorm Force</a>
Author URI: 
Template: astra
Version: 4.9.1
*/

/* Generated by Orbisius Child Theme Creator (https://orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/) on Mon, 07 Apr 2025 13:11:11 +0000 */ 
/* The plugin now uses the recommended approach for loading the css files.*/
.ast-mobile-header-wrap .ast-mobile-header-content {
    height: 100vh;
}
.ast-button-wrap .menu-toggle.main-header-menu-toggle {
    padding: 0 !important;
}
.ast-separate-container #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.site-header {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
  }
  
  .site-header.hide-header {
    transform: translateY(-100%);
  }

.wpforms-form .wpforms-field input, textarea {
		border-color: var(--ast-global-color-1) !important;
		border-radius: 8px !important;
		padding: 10px;
	}

#wpforms-3965 .wpforms-form button {
		width: 100% !important;
		padding: 15px 40px !important;
	}
.forminator-label {
    font-size: 18px !important;
}
.forminator-button {
    width: 100% !important;
    border-radius: 30px !important;
}
.forminator-button-submit {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Style cho Child_list shortcode */
.kidsville-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: inherit;
}
.filter-box {
    background: #fefefe50;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.filter-item {
    flex: 1;
    min-width: 220px;
    padding-right: 30px
}
.filter-item.full-width {
    flex: 1 1 100%;
}
.filter-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    font-size: 15px;
}
.btn-group {
    display: flex;
    gap: 10px;
}
.btn-group button {
    padding: 6px 16px;
    border: 2px solid var(--ast-global-color-1);
    background: white;
    color: var(--ast-global-color-1);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-group button.active {
    background: var(--ast-global-color-1);
    color: white;
}
.range-slider input[type=range] {
    width: 100%;
    margin: 4px 0;
}
.range-values {
    font-size: 14px;
    color: #444;
}
.birthday-select select {
    padding: 6px 12px;
    border-radius: 30px;
    border: 2px solid var(--ast-global-color-1);
    margin-right: 10px;
    background: white;
    font-size: 14px;
}
.filter-item select {
    padding: 6px 12px;
    border-radius: 30px;
    border: 2px solid var(--ast-global-color-1);
    background: white;
    font-size: 14px;
}
.condition-checkboxes label {
    display: inline-block;
    margin-right: 20px;
    font-size: 14px;
}
.reset-filter {
    color: var(--ast-global-color-1);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.child-card {
	border-radius: 1rem;
	background: white;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	will-change: transform;
	position: relative;
	z-index: 0;
	padding-bottom: 15px;
}
.child-card:hover {
	transform: translateY(-5px) translateX(5px);
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
	z-index: 1;
}    
.child-card a {
	text-decoration: none !important;
	color: inherit; /* để màu chữ theo style của thẻ cha */
}
.child-card a:hover {
	text-decoration: none !important; 
}
.child-card img {
	width: 100%;
	aspect-ratio: 4 / 5; /* Tỉ lệ 2:3 chiều đứng */
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.3s ease;
}
.child-card h3 {
    font-size: 18px;
    margin: 15px 15px 10px 15px;
    color: inherit;
}
.child-card p {
    margin: 0px 15px 0px 15px;
    font-size: 16px;
    color: inherit;
}

/* Carousel ở trang home */
.kidsville-swiper {
    width: 100%;
    padding: 20px 0px 60px;
}
/* Đưa tooltip (khung số) xuống dưới thanh slider */
.noUi-tooltip {
	bottom: -45px !important; /* đẩy tooltip xuống */
	top: auto !important;
}
.noUi-connect {
	background: var(--ast-global-color-1) !important;
}

/* Điều chỉnh để tránh bị che và đẹp hơn */
#age-slider {
	margin-top: 0px;
	margin-bottom: 40px;
	position: relative;
}

/* Style cho Contact page */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 18px;
    font-family: inherit;
    color: #ffffff;
  }
  .address-column {
    flex: 1;
    min-width: 280px;
  }
  .map-column {
    flex: 2;
    min-width: 400px;
  }
  .address-card {
    background-color: var(--ast-global-color-1);
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
  }
  .address-card:hover {
    background-color: var(--ast-global-color-0);
    box-shadow: 0 4px 15px rgba(253, 133, 73, 0.3);
  }
  .address-card.active {
    background-color: var(--ast-global-color-0);
    box-shadow: 0 4px 20px rgba(253, 133, 73, 0.4);
  }
  .map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  .contact-info {
    margin-top: 30px;
    font-size: 18px;
    color: #2f3c4c;
  }
  .contact-info p {
    margin: 5px 0;
  }
  .contact-info strong {
    font-weight: 600;
    color: #2f3c4c;
  }

/* Style cho timeline */
.kidsville-timeline-wrapper {
    z-index: -3;
    padding: 0px 20px;
    position: static;
}

.kidsville-timeline {
    padding: 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
    
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 20px;
    padding: 80px 0px;
    opacity: 1;
    position: relative;
    z-index: 1;
}

.timeline-left {
    color: var(--ast-global-color-0);
    text-align: right;
}

.timeline-date-text {
	color: var(--ast-global-color-2);
	letter-spacing: .01em;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.2;
	position: sticky;
	top: 50vh;
}

.timeline-middle {
    
    display: flex;
    justify-content: center;
}

.timeline-circle {
    width: 15px;
    height: 15px;
    background-color: var(--ast-global-color-1) !important;
    border-radius: 100%;
    position: sticky;
    top: 50vh;
}

.timeline-right {  
    border-radius: 0px;
    padding: 0px;
}

.timeline-text {
	color: var(--ast-global-color-2);
	letter-spacing: .01em;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.2;
}

.timeline-right img {
    max-width: 100%;
    margin-top: 30px;
    border-radius: 1rem;
}

.timeline-progress-line-bottom {
    position: absolute;
    width: 4px;
    height: 100%;
    background:rgb(155, 155, 155);
    opacity: 1;
    z-index: -2;
    pointer-events: none;
}

.timeline-progress-line-bar {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    bottom: 50vh;
    width: 4px;
    height: 50vh;
    background: var(--ast-global-color-0);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

.overlay-fade-bottom {
    background-image: linear-gradient(to top,var(--ast-global-color-4), #00000000);
    height: 80px;
    position: absolute;
    inset: auto 0% 0%;
}

.overlay-fade-top {
	background-image: linear-gradient(var(--ast-global-color-4), #00000000);
	height: 80px;
	position: absolute;
	inset: 0% 0% auto;
}

/* Style trang single */
body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 747px;
    height: 542px;
    background-image: url('http://kidsville.local/wp-content/uploads/2022/03/day-care-page-header-blobs.svg');
    background-repeat: no-repeat;
    background-size: auto;
    z-index: 0;
}
.page-hero {
    padding: 120px 20px 60px;
    text-align: center;
    margin-bottom: 40px;
	
}
.page-title {
    font-size: 36px;
	font-weight: 700;
    color: inherit;
    margin-bottom: 40px;
}
.container {
    max-width: 1000px;
    margin: 70px auto 0px auto;
    padding: 70px 50px 80px;
	box-sizing:border-box;
}
.single-post-content {
    font-size: inherit;
    line-height: 1.5;
}
.post-meta {
    font-size: 14px;
    color: inherit;
    margin-bottom: 10px;
}
.post-meta .post-author,
.post-meta .post-date {
    display: inline-block;
    margin: auto;
}

/* Style trang single child detail*/
.child-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0px 30px 0px;
    font-family: inherit;
}

.child-detail-card {
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.child-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0;
}

.child-left {
    flex: 1 1 40%;
}

.child-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.child-right {
    flex: 1 1 55%;
}

.child-right h2 {
    font-size: 28px;
    color: #1a2a3a;
    margin-bottom: 20px;
}

.child-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.child-meta p {
    font-size: 15px;
    margin-bottom: 8px;
}

.sponsor-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--ast-global-color-1);
    margin: 20px 0px;
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-family: inherit;
}

.sponsor-button:hover {
    background-color: var(--ast-global-color-0);
    color: #fff;
}

.final-sponsor-button .sponsor-button {
    display: inline-block;
    margin-top: 0;
}

.sponsorship-benefits,
.sponsorship-extras {
    width: 100%;
    padding: 40px 0;
    text-align: center;
}

.sponsorship-benefits {
    background: #0076a3;
    color: #fff;
}

.sponsorship-benefits h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.sponsorship-benefits h3 span {
    color: #ffc107;
    font-weight: bold;
}

.benefit-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.benefit {
    width: 30%;
    min-width: 150px;
    text-align: center;
}

.benefit img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.child-tabs {
    padding: 30px 0;
}

.tab-headers span {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    font-family: inherit;
}

.tab-headers span.active {
    color: #333;
    border-bottom: 2px solid var(--ast-global-color-0);
}

.tab-pane {
    display: none;
    
}

.tab-pane.active {
    display: block;
}

.sponsorship-extras h3 span {
    color: var(--ast-global-color-0);
}

.extras-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.extra img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.extra p {
    margin-top: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .ast-separate-container #content .ast-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sponsor-button-wrapper {
    text-align: center;
    margin-top: 20px;
  }

  .sponsor-button {
    display: inline-block;
  }
/* Responsive timeline*/
  .kidsville-timeline-wrapper {
    padding: 0px 10px;
    } 
    .timeline-item {
        grid-template-columns: 48px 1fr;
        column-gap: 0px;
        padding: 60px 0px;
    }
    .timeline-middle {
        grid-area: 1 / 1 / 3 / 2;
        justify-content: flex-start;
        display: flex;
    }
    .timeline-left{
        text-align: left;
    }
    .timeline-progress-line-bottom {
    left: 6px;
    }
    .timeline-date-text {
        font-size: 32px;
        font-weight: 400;
    }
    .timeline-text {
        font-size: 18px;
        font-weight: 300;
    }
/* Responsive contact*/
    .contact-container {
    flex-direction: column;
    }
    .map-column,
    .address-column {
        min-width: 100%;
    }
    .map-frame {
        height: 300px !important;
    }
/* Ẩn birthday và condition filter khi ở mobile*/
    .filter-item:has(.birthday-select),
    .filter-item:has(.condition-checkboxes) {
    display: none !important;
    }
/* Responsive single*/
    .container {
        margin: 70px auto 0px auto !important;
        padding: 48px 0px !important;
    }
	.ast-separate-container #primary {
    padding: 0 !important;
    margin: 0 !important;
	}
}