/* Frontend Specific Styles - Playful Block Theme */

/* Hero Section */
.hero-slider { position: relative; }
.hero-slide {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}
.hero-slide .container { position: relative; z-index: 2; }
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    transform: translateY(-48%);
    box-shadow: 0 6px 0 rgba(0,0,0,0.1);
}
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

/* Playful Hero Section */
.hero-playful {
    position: relative;
    overflow: hidden;
}

.hero-playful::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,217,61,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-playful::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78,205,196,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Quick Menu - Block Style */
.quick-menu {
    position: relative;
}

.quick-menu .soft-card {
    padding: 25px 15px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-menu .soft-card:hover .block-icon {
    animation: wobble 0.5s ease;
}

/* Legacy Quick Menu Item */
.quick-menu-item {
    padding: 25px 15px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    color: #333;
}
.quick-menu-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}
.quick-menu-item .icon-box {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}
.quick-menu-item span { font-weight: 700; font-family: 'Nunito', sans-serif; }

/* Section Styles */
.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}
.text-center .section-title::after { margin: 15px auto 0; }
.text-start .section-title::after, .section-title::after { margin: 15px 0 0; }

/* About Section */
.about-image-box { position: relative; }
.about-image-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
}

/* Focus Cards */
.focus-card { transition: all 0.3s; }
.focus-card:hover {
    transform: translateY(-10px);
    background: var(--gradient);
    color: white;
}
.focus-card:hover .btn-outline-gradient {
    background: white;
    color: var(--primary);
    border-color: white;
}
.focus-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: all 0.3s;
}
.focus-card:hover .focus-icon {
    background: white;
    color: var(--primary);
}

/* Program Cards */
.program-card { overflow: hidden; }
.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.program-card:hover .program-image img { transform: scale(1.1); }
.program-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Counter Section */
.counter-item h2 { font-size: 3rem; font-weight: 700; }

/* Testimonial Cards */
.testimonial-card {
    border-left: 4px solid var(--primary);
}

/* Partner Logos */
.partner-logo {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
    cursor: pointer;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover { transform: translateY(-5px); }

/* Footer Links */
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Event Cards */
.event-card .event-date {
    background: var(--gradient);
    color: white;
    padding: 15px;
    text-align: center;
    min-width: 80px;
}
.event-card .event-date .day { font-size: 2rem; font-weight: 700; }

/* Gallery Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(222,162,31,0.9), rgba(253,29,29,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay a {
    color: white;
    font-size: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-overlay a { transform: translateY(0); }

/* Donation Form */
.donation-amount-btn {
    padding: 15px 25px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
}
.donation-amount-btn:hover,
.donation-amount-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* News Cards */
.news-card .news-image {
    height: 200px;
    overflow: hidden;
}
.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-image img { transform: scale(1.1); }
.news-card .news-meta {
    color: #666;
    font-size: 0.9rem;
}

/* Certificate Search */
.certificate-search-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Documents List */
.document-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: all 0.3s;
}
.document-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}
.document-item .doc-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 20px;
}

/* Team Cards */
.team-card { text-align: center; overflow: hidden; }
.team-card .team-image {
    position: relative;
    overflow: hidden;
}
.team-card .team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.team-card .team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 15px;
    background: var(--gradient);
    transition: bottom 0.3s;
}
.team-card:hover .team-social { bottom: 0; }
.team-card .team-social a { color: white; margin: 0 10px; font-size: 1.2rem; }

/* Page Header */
.page-header {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    color: white;
}
.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header .breadcrumb {
    justify-content: center;
    margin: 0;
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb-item.active { color: white; }

/* ========================================
   RESPONSIVE STYLES - Frontend
   ======================================== */

/* Large Devices (992px to 1199px) */
@media (max-width: 1199.98px) {
    .hero-slide { min-height: 70vh; }
    .section-title { font-size: 2.2rem; }
    .page-header h1 { font-size: 2.5rem; }
}

/* Medium Devices - Tablets (768px to 991px) */
@media (max-width: 991.98px) {
    .hero-slide { min-height: 60vh; }
    .section-title { font-size: 2rem; }
    .counter-item h2 { font-size: 2rem; }
    
    .page-header { padding: 60px 0; }
    .page-header h1 { font-size: 2rem; }
    
    /* Team Cards */
    .team-card .team-image img { height: 250px; }
    
    /* Quick Menu */
    .quick-menu .soft-card { min-height: 140px; padding: 20px 12px; }
    
    /* Carousel Controls */
    .carousel-control-prev, .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    .carousel-control-prev { left: 10px; }
    .carousel-control-next { right: 10px; }
}

/* Small Devices - Mobile Landscape (576px to 767px) */
@media (max-width: 767.98px) {
    .site-title { font-size: 1.2rem !important; }
    .hero-slide { min-height: 50vh; }
    .hero-slide h1 { font-size: 1.8rem; }
    .hero-slide p { font-size: 1rem; }
    
    .section-title { font-size: 1.6rem; }
    
    .page-header { padding: 50px 0; }
    .page-header h1 { font-size: 1.6rem; }
    
    /* Team Cards */
    .team-card .team-image img { height: 220px; }
    
    /* Quick Menu */
    .quick-menu-item { padding: 15px 10px; }
    .quick-menu-item .icon-box { width: 50px; height: 50px; }
    
    /* Floating Buttons */
    .whatsapp-btn, .back-to-top { right: 15px; }
    .whatsapp-btn { bottom: 80px; width: 50px; height: 50px; font-size: 1.5rem; }
    .back-to-top { width: 40px; height: 40px; }
    
    /* Carousel Controls */
    .carousel-control-prev, .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Extra Small Devices - Mobile Portrait (below 576px) */
@media (max-width: 575.98px) {
    .hero-slide { min-height: 45vh; }
    .hero-slide h1 { font-size: 1.5rem; line-height: 1.3; }
    .hero-slide p { font-size: 0.9rem; }
    .hero-slide .btn { padding: 10px 20px; font-size: 14px; }
    
    .section-title { font-size: 1.4rem; }
    
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 1.4rem; }
    .page-header .breadcrumb { font-size: 12px; }
    
    /* Team Cards */
    .team-card .team-image img { height: 200px; }
    .team-card .team-social { padding: 10px; }
    .team-card .team-social a { font-size: 1rem; margin: 0 8px; }
    
    /* Quick Menu */
    .quick-menu .soft-card { min-height: 120px; padding: 15px 10px; }
    .quick-menu-item { padding: 12px 8px; border-radius: 10px; }
    .quick-menu-item .icon-box { width: 45px; height: 45px; font-size: 1.2rem; }
    .quick-menu-item h6 { font-size: 12px; }
    
    /* Counter Items */
    .counter-item h2 { font-size: 1.8rem; }
    .counter-item p { font-size: 12px; }
    
    /* Floating Buttons */
    .whatsapp-btn { bottom: 75px; width: 45px; height: 45px; font-size: 1.3rem; right: 10px; }
    .back-to-top { width: 38px; height: 38px; right: 10px; font-size: 14px; }
    
    /* Carousel Controls - Hide on very small screens */
    .carousel-control-prev, .carousel-control-next {
        width: 35px;
        height: 35px;
        opacity: 0.7;
    }
    .carousel-control-prev { left: 5px; }
    .carousel-control-next { right: 5px; }
    
    /* Contact Info */
    .contact-info-item { flex-direction: column; text-align: center; }
    .contact-info-item .icon-box { margin-right: 0; margin-bottom: 10px; }
}

/* Utility Classes for Responsive Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Text Utilities */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Hide/Show Utilities */
@media (max-width: 575.98px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hide-mobile-landscape { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hide-tablet { display: none !important; }
}

@media (min-width: 992px) {
    .hide-desktop { display: none !important; }
}

/* Spacing Utilities for Mobile */
@media (max-width: 767.98px) {
    .py-mobile-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-mobile-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .mb-mobile-3 { margin-bottom: 1rem !important; }
    .mb-mobile-4 { margin-bottom: 1.5rem !important; }
}
