/*
Theme Name: WhizKidz Hub
Theme URI: https://whizkidz.ro
Author: WhizKidz Hub
Author URI: https://whizkidz.ro
Description: Tema personalizată pentru WhizKidz Hub - Centru Educațional Afterschool și Grădiniță în București. Design modern responsive cu Bootstrap 5.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whizkidz
Tags: education, custom-menu, custom-logo, featured-images, theme-options, translation-ready
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* WordPress-specific styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    padding: 0.5rem;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Admin Bar fix */
body.admin-bar .edu-header.header-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .edu-header.header-sticky {
        top: 46px;
    }
}

/* WordPress Block Editor Styles */
.entry-content > *,
.wp-block {
    max-width: 100%;
}

/* Comment styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #666;
}

/* Navigation styles */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

/* Newsletter form input borders */
.newsletter-form .input-group .form-control {
    border: 1px solid var(--color-border) !important;
    border-radius: 8px !important;
}

.newsletter-form .input-group + .input-group {
    margin-top: 12px;
}

/* Wishlist button — center on card top-right border (half in, half out) */
.edu-course.course-style-1 .course-hover-content-wrapper button.wishlist-btn {
    display: block;
    top: -20px;
    right: 12px;
    z-index: 2;
}

/* Hide the duplicate wishlist button inside hover content */
.edu-course.course-style-1 .course-hover-content .content .wishlist-btn {
    display: none;
}

/* Hover card layout — content top, button bottom */
.edu-course.course-style-1 .course-hover-content {
    top: 0;
    bottom: 0;
    transform: none;
    display: flex;
    flex-direction: column;
}

.edu-course.course-style-1 .course-hover-content .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.edu-course.course-style-1 .course-hover-content .content a.edu-btn {
    margin-top: auto;
}

/* Hover card text color — dark instead of white */
.edu-course.course-style-1 .course-hover-content .content .title,
.edu-course.course-style-1 .course-hover-content .content .title a,
.edu-course.course-style-1 .course-hover-content .content .course-rating .rating-count,
.edu-course.course-style-1 .course-hover-content .content .course-price,
.edu-course.course-style-1 .course-hover-content .content p {
    color: #333;
    -webkit-line-clamp: 5;
}

/* Workshop CTA — larger inline button and visible phone link */
.edu-course-area .bg-color-primary .btn.btn-light {
    font-size: 1.25rem;
    padding: 10px 24px;
}

.edu-course-area .bg-color-primary a.cta-phone {
    color: #333;
    background: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

/* Workshop archive — reduce bottom padding before footer */
.edu-course-area.section-gap-equal {
    padding-bottom: 60px;
}

/* Hero title text stroke */
.hero-banner.hero-style-7 .banner-content h1.title {
    -webkit-text-stroke: 1px white;
}

/* Workshop cards on homepage — reversed hover: cropped image by default, full on hover */
.event-area-3 .edu-event .thumbnail a {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: height 500ms ease;
}

.event-area-3 .edu-event .thumbnail a img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.event-area-3 .edu-event:hover .thumbnail {
    margin-bottom: 0;
}

.event-area-3 .edu-event:hover .thumbnail a {
    height: 200px;
}

.event-area-3 .edu-event:hover .thumbnail a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
}

/* Menu font size bump (+2px) — desktop main nav and mobile popup menu */
.mainmenu-nav .mainmenu > li > a {
    font-size: calc(1em + 2px);
}

.popup-mobile-menu .mainmenu li a {
    font-size: 18px;
}

/* Hero banner — two stacked CTA buttons (Summer School + Afterschool) */
.hero-banner.hero-style-7 .banner-content .banner-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-banner.hero-style-7 .banner-content .banner-btn .edu-btn {
    width: max-content;
    max-width: 100%;
}

/* Hero subtitle "⭐ Explore ✨ Learn 🌟 Grow!" — keep on a single line on mobile */
@media (max-width: 575px) {
    .hero-banner.hero-style-7 .banner-content h2 {
        font-size: 20px;
        letter-spacing: -0.5px;
        white-space: nowrap;
    }
}

