/* Shared Components CSS - Unified Styles */

/* ===== HERO IMAGE SECTIONS ===== */
/* Used for: About Us, Contact, Digital Literacy, and other page headers */

.hero-image-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 123, 58, 0.8) 0%, rgba(129, 199, 132, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== SHOWCASE SECTIONS ===== */
/* Used for: Main homepage video showcase */

.showcase {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--light-bg);
    margin-top: 0;
    padding-top: 60px;
}

.showcase-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    z-index: 2;
}

.showcase-title {
    color: white;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    font-weight: 700;
}

.showcase-subtitle {
    color: white;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ===== BANNER SECTIONS ===== */
/* Used for: Join Us, Support Us sections */

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.banner-text {
    width: 100%;
}

.banner-text h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.banner-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
}

/* ===== CONTACT FORM STYLES ===== */

.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-info-section {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-details p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* ===== SOCIAL MEDIA BUTTONS ===== */

.social-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ===== FAQ SECTION ===== */

.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== FORM CONTROLS ===== */

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 123, 58, 0.25);
}

/* ===== ACCORDION STYLES ===== */

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(1, 123, 58, 0.25);
}

/* ===== CONTENT BOXES ===== */
/* Used for: Profile content, collapsible sections */

.profile_content_box {
    text-align: left;
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid white;
    border-radius: 6px;
    background-color: white;
    box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.26);
}

.profile_content_box:hover {
    border: 1px solid #5e6298;
    box-shadow: 3px 3px 10px -2px rgba(0,0,0,0.26);
}

.tm_preview_unit_title_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.tm_preview_unit_title_wrapper h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.tm_preview_unit_title_collapse_icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.tm_preview_unit_title_collapse_icon.fa-chevron-up,
.tm_preview_unit_title_collapse_icon.rotated {
    transform: rotate(180deg);
}

.tm_preview_unit_content {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 8px 8px;
    display: none; /* Hide by default */
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .hero-image-section {
        height: 300px;
    }

    .hero-title {
        font-size: 2rem;
        color: white !important;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .showcase {
        min-height: 80vh;
    }
    
    .showcase-title {
        font-size: 2em;
    }
    
    .showcase-subtitle {
        font-size: 1.2em;
    }

    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .banner-content h2 {
        text-align: left;
    }
    
    .banner-text h2 {
        font-size: 2rem;
    }
    
    .banner-text p {
        font-size: 1.1rem;
    }
    
    .banner-image {
        max-width: 100%;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-image-section {
        height: 250px;
    }

    .hero-title {
        font-size: 1.8rem;
        color: white !important;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .showcase {
        min-height: 70vh;
    }
    
    .showcase-title {
        font-size: 1.8em;
    }
    
    .showcase-subtitle {
        font-size: 1.1em;
    }

    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 1rem;
    }
} 