/**
 * CBM Custom Homepage Styles
 * File: homepage-custom.css
 */


/* Button resets and overrides */
#cbm-custom-homepage .btn,
#cbm-custom-homepage a.btn {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    border: none !important;
    border-radius: 30px !important;
    cursor: pointer;
    font-weight: 600 !important;
    transition: all 0.3s;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: normal !important;
    text-align: center;
    font-family: 'Abel', sans-serif !important;
}

#cbm-custom-homepage .btn-primary,
#cbm-custom-homepage a.btn-primary {
    background: #48bb78 !important;
    color: white !important;
    border: none !important;
}

#cbm-custom-homepage .btn-primary:hover,
#cbm-custom-homepage a.btn-primary:hover {
    background: #38a169 !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4) !important;
    text-decoration: none !important;
}

#cbm-custom-homepage .btn-secondary,
#cbm-custom-homepage a.btn-secondary {
    background: white !important;
    color: #2c5282 !important;
    border: none !important;
}

#cbm-custom-homepage .btn-secondary:hover,
#cbm-custom-homepage a.btn-secondary:hover {
    background: #f7fafc !important;
    color: #2c5282 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
}

/* Heading overrides */
#cbm-custom-homepage h1,
#cbm-custom-homepage h2,
#cbm-custom-homepage h3,
#cbm-custom-homepage h4,
#cbm-custom-homepage h5,
#cbm-custom-homepage h6 {
    font-family: 'Abel', sans-serif !important;
    margin: 0;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Hero section headings - white */
.hero-content h1 {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem !important;
    margin-bottom: 2rem !important;
    opacity: 0.95;
    color: white !important;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Section titles - colored */
.section-title {
    text-align: center !important;
    font-size: 2.5rem !important;
    color: #2c5282 !important;
    margin-bottom: 1rem !important;
}

/* Get Involved section title - white */
.get-involved .section-title {
    color: white !important;
}

/* Program card headings - white */
.program-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
}

/* Involvement card headings - white */
.involvement-card h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
    color: white !important;
}

/* Paragraphs in cards */
.program-card p,
.involvement-card p {
    color: white !important;
    opacity: 0.95;
}

/* Hide default theme header and footer on custom homepage */
body.page-template-page-home .site-header,
body.page-template-page-home .site-footer,
body.page-template-page-home #masthead,
body.page-template-page-home #colophon,
body.page-template-page-home header,
body.page-template-page-home footer {
    display: none !important;
}

/* Remove default content padding */
body.page-template-page-home .site-content,
body.page-template-page-home .entry-content,
body.page-template-page-home #content,
body.page-template-page-home #primary {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* Reset for custom homepage */
#cbm-custom-homepage {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

#cbm-custom-homepage * {
    box-sizing: border-box;
}

/* Base styles */
body.page-template-page-home {
    font-family: 'Abel', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Custom Navigation */
.cbm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: none;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cbm-nav.scrolled {
    background: rgba(44, 82, 130, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

a.logo {
    text-decoration: none !important;
    color: white;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
}

a.logo:hover {
    color: white;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #48bb78;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.donate-btn {
    background: #48bb78;
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
    color: white !important;
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding-top: 0;
    height: 100vh;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.7), rgba(44, 82, 130, 0.7)), 
                url('https://images.unsplash.com/photo-1504052434569-70ad5836ab65?w=1600');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #48bb78;
    color: white;
}

.btn-primary:hover {
    background: #38a169;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
}

.btn-secondary {
    background: white;
    color: #2c5282;
}

.btn-secondary:hover {
    background: #f7fafc;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Impact Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background: #f7fafc;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #4a5568;
}

/* Programs Section */
.programs {
    padding: 5rem 5%;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5282;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 3rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    transition: transform 0.3s;
    cursor: pointer;
}

.program-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.program-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-card p {
    opacity: 0.95;
    line-height: 1.6;
}

/* Get Involved Section */
.get-involved {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #2c5282 0%, #4299e1 100%);
    color: white;
    text-align: center;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.involvement-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: pointer;
}

.involvement-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.involvement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 5%;
    background: #f7fafc;
}

.testimonial-container {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: #2c5282;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(44, 82, 130, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .program-grid,
    .involvement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .stats {
        padding: 2rem 5%;
    }
    
    .programs,
    .get-involved,
    .testimonials {
        padding: 3rem 5%;
    }
}