/* ========================================
   SHARED COMPONENT STYLES
   Reusable styles for public pages
   ======================================== */

/* ===== HERO SECTIONS ===== */
.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(39, 170, 225, 0.88) 0%, rgba(30, 138, 184, 0.92) 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(240, 200, 8, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider path {
    fill: #ffffff;
}

/* ===== GLASS CARDS ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(39, 170, 225, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(39, 170, 225, 0.15);
}

/* ===== BUTTONS ===== */
.btn-teal {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-teal:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 170, 225, 0.3);
    color: white;
}

.btn-teal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-teal {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-teal:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 170, 225, 0.3);
}

/* ===== TEXT COLORS ===== */
.text-teal {
    color: var(--primary-color) !important;
}

.text-gold {
    color: var(--accent-color) !important;
}

/* ===== ICON WRAPPERS ===== */
.icon-wrapper-teal,
.icon-wrapper-gold {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.icon-wrapper-teal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 170, 225, 0.3);
}

.icon-wrapper-gold {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a806 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 200, 8, 0.3);
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    position: relative;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.divider-icon {
    margin: 0 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(39, 170, 225, 0.3);
}

/* ===== SECTION BADGES ===== */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(39, 170, 225, 0.1), rgba(39, 170, 225, 0.05));
    border: 1px solid rgba(39, 170, 225, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--medium-gray);
    max-width: 700px;
    line-height: 1.6;
}

/* ===== CARD ANIMATIONS ===== */
.card-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(39, 170, 225, 0.4);
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 170, 225, 0.5);
}

/* ===== FORM INPUTS ===== */
.modern-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(39, 170, 225, 0.1);
}

.form-floating > label {
    color: #6c757d;
}

.form-floating > .modern-input:focus ~ label,
.form-floating > .modern-input:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(39, 170, 225, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-icon.bg-gold {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

.contact-icon.bg-teal {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.contact-icon i {
    font-size: 1.75rem;
    color: white;
}

.contact-info-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 170, 225, 0.3);
    color: white;
}

.social-link i {
    font-size: 1.25rem;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(39, 170, 225, 0.05);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 170, 225, 0.3);
}



/* ===== PROGRAM/PROJECT CARDS ===== */
.program-card,
.project-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.program-card:hover,
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(39, 170, 225, 0.15);
    border-color: var(--primary-color);
}

.program-icon-wrapper,
.project-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.program-card:hover .program-icon-wrapper,
.project-card:hover .project-icon-wrapper {
    transform: rotateY(360deg);
}

/* Icon Color Variants */
.icon-health {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.icon-education {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.icon-social {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 200, 8, 0.3);
}

.icon-mental {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(161, 140, 209, 0.3);
}

.icon-skills {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 170, 225, 0.3);
}

.icon-community {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.program-category,
.project-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(39, 170, 225, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.program-title,
.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.program-description,
.project-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.program-features,
.project-features {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #495057;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.program-stats,
.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
}

.btn-learn-more {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 170, 225, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .section-divider {
        padding: 1.5rem 0;
    }

    .divider-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 1rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .program-stats,
    .project-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .impact-number {
        font-size: 2.5rem;
    }
}
