/* 
 * Frontend Style for youyou Projects
 */

/* -------------------------------------
 * Filter Buttons
 * ------------------------------------- */
.youyou-projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.youyou-filter-btn {
    background: #f1f1f1;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #DD3F3E !important;
    transition: background 0.3s ease, color 0.3s ease;
}
.youyou-filter-btn:hover,
.youyou-filter-btn.active {
    background: #0073aa;
    color: #fff !important;
}

/* -------------------------------------
 * Projects List (Shortcode)
 * ------------------------------------- */
.youyou-projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.youyou-project-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: #fff;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}
.youyou-project-item.is-hidden {
    display: none;
}
.youyou-project-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    gap: 20px;
}
.youyou-project-link:hover .youyou-project-title {
    color: #0073aa;
}
.youyou-project-image {
    width: 100%;
    margin-bottom: 15px;
}
.youyou-project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    max-height: 250px;
}
.youyou-project-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.youyou-project-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #DD3F3E !important;
    transition: color 0.3s;
}
.youyou-project-meta p {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #666;
}
@media (min-width: 768px) {
    .youyou-project-link {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    .youyou-project-image {
        width: 40%;
        margin-bottom: 0;
    }
    .youyou-project-details {
        width: 60%;
    }
}

/* -------------------------------------
 * Single Project Template
 * ------------------------------------- */
.youyou-single-project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.youyou-project-header {
    text-align: center;
    margin-bottom: 40px;
}
.youyou-project-title-large {
    font-size: 36px;
    margin: 0;
    color: #DD3F3E !important;
}
.youyou-project-slider-wrapper,
.youyou-project-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.swiper-slide img,
.youyou-project-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}
.mySwiper-youyou {
    width: 100%;
    height: 100%;
}
.swiper-button-next, .swiper-button-prev {
    color: #0073aa !important;
}
.swiper-pagination-bullet-active {
    background: #0073aa !important;
}

.youyou-project-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.youyou-project-meta-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.youyou-project-meta-box h3 {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    display: inline-block;
    color: #333;
}
.youyou-project-meta-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}
.youyou-project-meta-box li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}
.youyou-project-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

@media (min-width: 992px) {
    .youyou-project-body {
        flex-direction: row;
    }
    .youyou-project-meta-box {
        width: 300px;
        flex-shrink: 0;
        align-self: flex-start;
        position: sticky;
        top: 20px;
    }
    .youyou-project-content {
        flex: 1;
    }
}
