/* ============================================
   CHIEDZA CHILD CARE - HOME PAGE CSS
   Page-specific styles
   ============================================ */

.hero-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1); /* Black with 50% opacity */
  z-index: 1; /* Sits above background, below text */
}

.content {
  position: relative; 
  z-index: 2; 
  color: #ffffff;
  text-align: center;
}


/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-bg img {
    transform: scale(1);
    animation: zoomOut 8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    max-width: 85vw;
    text-align: center;
    /* color: white; */
    padding: 3rem;
    z-index: 10;
    border-radius: 0 !important;
    border: 0px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    transform: translate(-50%, -50%) scale(0.95);
    /* background: rgba(0, 0, 0, 0.3); */
}

.slide.active .slide-content {
    animation: glassRevealX 8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes glassReveal {
    0% {
        background: rgba(255, 255, 255, 0);
        backdrop-filter: blur(0px);
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
    15% {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(3px);
        opacity: 0.5;
    }
    30% {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.8;
    }
    100% {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.slide-badge {
    display: inline-block;
    background: rgba(244, 185, 66, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e3a2f;
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .slide-badge {
    animation: fadeInUp 0.6s ease forwards 0.5s;
}

.slide-title {
    font-size: 5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.slide.active .slide-title {
    animation: fadeInUp 0.6s ease forwards 1s;
}

.slide-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    /* opacity: 0; */
    line-height: 1.2;
    /* transform: translateY(20px); */
    color: white;
}

.slide.active .slide-subtitle {
    animation: fadeInUp 0.6s ease forwards 1.5s;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .slide-buttons {
    animation: fadeInUp 0.6s ease forwards 2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    backdrop-filter: blur(0px);
    border: 0px solid rgba(255, 255, 255, 0.4);
    color: transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: transparent;
    transform: translateY(-50%) scale(1.1);
    color: transparent;
}

.prev-slide { left: 2rem; }
.next-slide { right: 2rem; }

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
    width: 30px;
    border-radius: 10px;
    background: #f4b942;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 20;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Pillars Section */
.pillars-section {
    background: var(--bg-accent);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.pillar-card {
    position: relative;
    padding: 1.8rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover {
    transform: translateY(-8px);
}

.pillar-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #f4b94220 !important;
}

.pillar-icon i {
    font-size: 2rem;
}

.pillar-number {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.06;
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pillar-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pillar-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pillar-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover .pillar-details {
    max-height: 150px;
    margin-top: 1rem;
}

.pillar-details p {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.pillar-stat {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(244, 185, 66, 0.12);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pillar-stat i {
    margin-right: 0.5rem;
    color: var(--color-secondary);
}

.pillar-heart {
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 3rem;
    opacity: 0.06;
}

/* Heart CTA Section */
.heart-cta {
    background: var(--bg-primary);
}

.cta-wrapper {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(244, 185, 66, 0.15), rgba(30, 58, 47, 0.08));
    border-radius: var(--radius-xl);
}

.cta-heart {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-wrapper h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Impact Story Section */
.impact-story {
    background: white;
}

.impact-wrapper {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 3rem;
    align-items: center;
}

.impact-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 1rem 0;
}

.impact-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.story-author {
    margin: 1.5rem 0;
}

.story-author strong {
    display: block;
    color: var(--text-dark);
}

.story-author span {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.impact-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.impact-number-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
}

.impact-number-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.impact-number-card .label {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-content {
        padding: 2rem;
        width: 90%;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .impact-numbers {
        order: -1;
    }
    
    .cta-wrapper h2 {
        font-size: 1.8rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-slide { left: 1rem; }
    .next-slide { right: 1rem; }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .impact-numbers {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-wrapper {
        padding: 2rem;
    }
}