.youth-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.9)), 
                url('../images/youth-hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    margin-top: 80px;
    overflow: hidden;
}

.youth-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(142, 44, 44, 0.3) 0%, rgba(44, 62, 80, 0.7) 100%);
}

.youth-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding: 2rem;
}

.youth-hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

.youth-hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.youth-hero-text {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.youth-hero-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    min-width: 200px;
}

.info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.info-item p {
    color: var(--gray-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.youth-about {
    padding: var(--section-padding);
    background-color: var(--white);
}

.youth-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.youth-about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.youth-about-text h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.youth-about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mission, .vision {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.mission h3, .vision h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.mission p, .vision p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.youth-about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    transform: rotate(2deg);
    transition: var(--transition);
}

.about-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.youth-activities {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.activity-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.activity-card:hover .activity-icon {
    transform: scale(1.2) rotate(5deg);
}

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.gallery-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}

.gallery-main {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.main-image {
    height: 500px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.gallery-main:hover .main-image img {
    transform: scale(1.05);
}

.image-info {
    padding: 2rem;
    background: var(--light-color);
    margin-bottom: 0;
}

.image-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.image-info p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.8rem 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.02) 100%);
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 3px 0;
}

.thumbnail:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.thumbnail.active {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--secondary-color), 0 5px 20px rgba(142, 44, 44, 0.2);
    z-index: 5;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.2);
    transition: var(--transition);
}

.thumbnail:hover::after,
.thumbnail.active::after {
    background: rgba(44, 62, 80, 0.05);
}

.youth-testimonials {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.testimonials-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 1rem 0.5rem;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.34rem);
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    flex: 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 0;
    display: block;
    max-height: 10.2em;
    overflow: hidden;
    position: relative;
}

.testimonial-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5em;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
}

.testimonial-author {
    border-top: 1px solid rgba(142, 44, 44, 0.1);
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.testimonial-author h4 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(142, 44, 44, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(44, 62, 80, 0.4);
}

.carousel-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.youth-join {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.join-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.join-content > p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.join-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.join-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.join-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.join-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.join-item h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.join-item p {
    color: var(--gray-light);
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 0;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.join-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
}

.join-buttons .btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

.join-buttons .btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

.join-buttons .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.join-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.youth-gallery {
    padding: var(--section-padding);
    background-color: var(--white);
    padding-bottom: calc(var(--section-padding) + 2rem);
    margin-bottom: 0;
    position: relative;
}

.youth-gallery::after {
    display: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    clear: both;
    position: relative;
}

@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
        min-height: 300px;
    }
    
    .testimonials-wrapper {
        max-width: 900px;
    }
    
    .testimonial-text {
        max-height: 8.5em;
    }
}

@media (max-width: 992px) {
    .youth-hero-title {
        font-size: 2.8rem;
    }
    
    .youth-hero-subtitle {
        font-size: 1.5rem;
    }
    
    .youth-about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .youth-about-text {
        order: 2;
    }
    
    .youth-about-image {
        order: 1;
    }
    
    .about-img {
        height: 400px;
    }
    
    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .youth-hero {
        height: auto;
        min-height: 500px;
        padding: 4rem 0;
    }
    
    .youth-hero-title {
        font-size: 2.3rem;
    }
    
    .youth-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .youth-hero-text {
        font-size: 1.1rem;
    }
    
    .youth-hero-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .info-item {
        width: 100%;
        max-width: 300px;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnails {
        gap: 0.8rem;
        margin-top: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .thumbnail {
        width: 120px;
        height: 120px;
        border-width: 2px;
        margin: 2px 0;
    }
    
    .main-image {
        height: 350px;
    }
    
    .image-info {
        padding: 1.5rem;
    }
    
    .youth-gallery {
        padding-bottom: calc(var(--section-padding) + 1rem);
    }
    
    .youth-join {
        margin-top: 1.5rem;
    }
    
    .join-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .join-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .testimonials-wrapper {
        gap: 1rem;
    }
    
    .testimonial-card {
        flex: 0 0 calc(100% - 1rem);
        min-height: 280px;
        padding: 2rem;
    }
    
    .testimonial-text {
        max-height: 10.2em;
        font-size: 1rem;
    }
    
    .testimonial-text::after {
        height: 3em;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .testimonials-track {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .youth-hero-title {
        font-size: 2rem;
    }
    
    .youth-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .youth-about-text h2 {
        font-size: 2rem;
    }
    
    .youth-about-text p {
        font-size: 1rem;
    }
    
    .activity-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .gallery-thumbnails {
        padding: 0.5rem 0.8rem;
    }
    
    .thumbnail {
        width: 100px;
        height: 100px;
        margin: 2px 0;
    }
    
    .main-image {
        height: 300px;
    }
    
    .join-info {
        grid-template-columns: 1fr;
    }
    
    .testimonials-wrapper {
        gap: 0.75rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        min-height: 260px;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: 10px;
        left: 15px;
    }
    
    .testimonial-text {
        max-height: 8.5em;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-text::after {
        height: 2.5em;
    }
    
    .testimonial-author h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .gallery-thumbnails {
        padding: 0.5rem;
    }
    
    .thumbnail {
        width: 90px;
        height: 90px;
        margin: 2px 0;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .testimonial-card {
        min-height: 220px;
        padding: 1.25rem;
    }
    
    .testimonial-text {
        max-height: 6.8em;
        font-size: 0.9rem;
    }
    
    .testimonial-text::after {
        height: 2em;
    }
    
    .testimonial-author {
        padding-top: 1rem;
    }
}