/* ==========================================================
   assets/css/pages/home.css
   Kipaji Spark — Home Page Specific Styles
   ========================================================== */

/* ------------------------------------------------
   B) HERO SECTION
   ------------------------------------------------ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #2E1065 0%, #4C1D95 100%);
    padding: 100px 0 0 0;
    overflow: hidden;
    color: #FFFFFF;
    margin-top: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 40px;
}

.hero-content {
    padding: 40px 0 80px 0;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.text-highlight {
    color: #F4B400;
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(244, 180, 0, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    z-index: 1;
}

.hero-image-shape {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transform: rotate(-2deg);
}

.hero-image-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: rotate(2deg) scale(1.05);
    transition: transform 0.6s ease;
}

.hero-image-shape:hover img {
    transform: rotate(2deg) scale(1.08);
}

/* Decorative Shapes */
.deco-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.deco-yellow-blob {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.25) 0%, transparent 70%);
    top: 20%;
    right: -60px;
    filter: blur(40px);
}

.deco-purple-blob {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(91, 33, 182, 0.4) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    filter: blur(50px);
}

/* Curved White Wave */
.hero-wave {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------
   C) VALUES / IMPACT SUMMARY SECTION
   ------------------------------------------------ */
.values-section {
    background-color: #FFFFFF;
    padding: 60px 0 80px 0;
    margin-top: -2px;
    position: relative;
    z-index: 2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: #F8F7FC;
    padding: 40px 24px 32px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(46, 16, 101, 0.04);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 16, 101, 0.08);
    background: #FFFFFF;
}

.value-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #EEE9FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E1065;
    transition: background 0.3s ease, color 0.3s ease;
}

.value-card:hover .value-icon-wrapper {
    background: #2E1065;
    color: #FFFFFF;
}

.value-icon {
    width: 28px;
    height: 28px;
}

.value-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1E1B2E;
    margin-bottom: 8px;
}

.value-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #5F6473;
    line-height: 1.5;
    max-width: 180px;
    margin: 0 auto;
}

/* ------------------------------------------------
   D) FEATURED INTRO / ABOUT PREVIEW SECTION
   ------------------------------------------------ */
.about-preview-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.about-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* About Preview Image Wrapper - Premium Base Styles */
.about-preview-image {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-preview-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg, 
        var(--royal-purple), 
        var(--orange-accent), 
        var(--deep-blue)
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.about-preview-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(10, 30, 92, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.about-preview-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    display: block;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1.02) contrast(1.02);
}

.about-preview-image:hover img {
    transform: scale(1.03);
    box-shadow: 
        0 30px 60px rgba(91, 45, 142, 0.15),
        0 12px 30px rgba(255, 107, 53, 0.1);
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.about-preview-image:hover::before {
    opacity: 0.3;
}

.about-preview-image:hover::after {
    opacity: 1;
}

@keyframes aboutImageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.about-preview-image {
    animation: aboutImageFloat 6s ease-in-out infinite;
}

.about-preview-image:hover {
    animation-play-state: paused;
}

@media (max-width: 1024px) {
    .about-preview-image img {
        height: 450px;
        border-radius: 24px;
    }
    .about-preview-image {
        border-radius: 24px;
    }
    .about-preview-image::after {
        border-radius: 24px;
    }
    .about-preview-image::before {
        border-radius: 26px;
    }
}

@media (max-width: 768px) {
    .about-preview-image img {
        height: 380px;
        border-radius: 20px;
    }
    .about-preview-image {
        border-radius: 20px;
        animation: none;
    }
    .about-preview-image::after {
        border-radius: 20px;
    }
    .about-preview-image::before {
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .about-preview-image img {
        height: 300px;
        border-radius: 18px;
    }
    .about-preview-image {
        border-radius: 18px;
    }
    .about-preview-image::after {
        border-radius: 18px;
    }
    .about-preview-image::before {
        border-radius: 20px;
    }
    .about-preview-image:hover img {
        transform: scale(1.02);
    }
}

.about-preview-content {
    padding: 20px 0;
}

.section-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2E1065;
    background: #EEE9FF;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1E1B2E;
    margin-bottom: 20px;
}

.section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5F6473;
    margin-bottom: 16px;
}

/* ------------------------------------------------
   E) FEATURED PROGRAMS PREVIEW SECTION
   ------------------------------------------------ */
.programs-preview-section {
    padding: 80px 0;
    background: #F8F7FC;
}

.section-header.centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-header.centered .section-desc {
    margin-bottom: 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: #FFFFFF;
    padding: 32px 28px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(46, 16, 101, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(46, 16, 101, 0.07);
}

/* Program Card Icon - Matching Value Card Style */
.program-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    background: #EEE9FF;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #2E1065;
    flex-shrink: 0;
}

.program-card-icon svg {
    width: 28px;
    height: 28px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.program-card:hover .program-card-icon {
    background: #2E1065;
    color: #FFFFFF;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(46, 16, 101, 0.15);
}

.program-card:hover .program-card-icon svg {
    transform: scale(1.1);
    color: #FFFFFF;
}

.program-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #1E1B2E;
    margin-bottom: 12px;
}

.program-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5F6473;
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-card-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2E1065;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.program-card-link:hover {
    color: #F4B400;
    transform: translateX(4px);
}

/* ------------------------------------------------
   F) WHY KIPAJI SPARK / IMPACT SECTION
   ------------------------------------------------ */
.impact-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.impact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-content .section-title {
    margin-bottom: 16px;
}

.impact-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
    perspective: 1500px;
}

.impact-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 24px;
    background: linear-gradient(135deg, #ffffff, #f8f7fc);
    border: 1.5px solid rgba(102, 126, 234, 0.1);
    border-radius: 24px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.impact-feature .corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        transparent 50%, 
        rgba(102, 126, 234, 0.08) 50%
    );
    border-radius: 0 24px 0 0;
    transition: all 0.5s ease;
}

.impact-feature .bottom-line {
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--royal-purple), 
        var(--orange-accent)
    );
    border-radius: 0 0 20px 20px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.impact-feature:hover {
    transform: rotateX(2deg) rotateY(-2deg) translateY(-12px) scale(1.03);
    background: linear-gradient(135deg, #ffffff, #f0edff);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 30px 60px rgba(102, 126, 234, 0.15),
        0 15px 30px rgba(91, 45, 142, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.05);
}

.impact-feature:hover .bottom-line {
    transform: scaleX(1);
}

.impact-feature:hover .corner-accent {
    background: linear-gradient(135deg, 
        transparent 50%, 
        rgba(102, 126, 234, 0.15) 50%
    );
    width: 80px;
    height: 80px;
}

.impact-feature h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--deep-blue);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
}

.impact-feature h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--orange-accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.impact-feature:hover h4 {
    color: var(--royal-purple);
    transform: translateX(5px);
}

.impact-feature:hover h4::after {
    width: 100%;
}

.impact-feature p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #5F6473;
    line-height: 1.65;
    margin: 0;
    transition: all 0.4s ease;
}

.impact-feature:hover p {
    color: #3D3A50;
    transform: translateX(3px);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.impact-feature {
    animation: cardReveal 0.8s ease forwards;
}

.impact-feature:nth-child(1) { animation-delay: 0.1s; }
.impact-feature:nth-child(2) { animation-delay: 0.2s; }
.impact-feature:nth-child(3) { animation-delay: 0.3s; }
.impact-feature:nth-child(4) { animation-delay: 0.4s; }
.impact-feature:nth-child(5) { animation-delay: 0.5s; }
.impact-feature:nth-child(6) { animation-delay: 0.6s; }
.impact-feature:nth-child(7) { animation-delay: 0.7s; }
.impact-feature:nth-child(8) { animation-delay: 0.8s; }

@media (max-width: 768px) {
    .impact-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        perspective: none;
    }
    .impact-feature:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

.impact-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease;
}

.impact-image-wrapper img:hover {
    transform: scale(1.01);
}

/* Impact Image Wrapper - Base Styles */
.impact-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.impact-image-wrapper img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    display: block;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 1024px) {
    .impact-image-wrapper img {
        height: 450px;
        border-radius: 24px;
    }
    .impact-image-wrapper {
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .impact-image-wrapper img {
        height: 380px;
        border-radius: 20px;
    }
    .impact-image-wrapper {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .impact-image-wrapper img {
        height: 300px;
        border-radius: 18px;
    }
    .impact-image-wrapper {
        border-radius: 18px;
    }
}

/* ------------------------------------------------
   G) CALL-TO-ACTION BANNER SECTION
   ------------------------------------------------ */
.cta-banner-section {
    background: linear-gradient(135deg, #2E1065 0%, #5B21B6 100%);
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

.cta-banner-container {
    max-width: 800px;
}

.cta-banner-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.cta-banner-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.cta-banner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

/* ------------------------------------------------
   RESPONSIVE ADJUSTMENTS (Home Page specific)
   ------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 20px;
    }
    .hero-content {
        padding: 20px 0 40px 0;
        text-align: center;
    }
    .hero-description {
        margin: 0 auto 32px;
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-wrapper {
        padding: 0 0 40px 0;
    }
    .hero-image-shape {
        max-width: 400px;
    }
    .deco-yellow-blob {
        right: 0;
    }
    .about-preview-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-preview-content {
        order: 2;
    }
    .about-preview-image {
        order: 1;
    }
    .impact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .impact-image-wrapper {
        order: -1;
    }
    .cta-banner-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .impact-features-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
    .program-card-icon {
        width: 56px;
        height: 56px;
    }
    .program-card-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .value-card {
        padding: 24px 16px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .cta-banner-title {
        font-size: 1.8rem;
    }
    .cta-banner-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    .program-card {
        padding: 24px 20px;
    }
    .program-card-icon {
        width: 48px;
        height: 48px;
    }
    .program-card-icon svg {
        width: 20px;
        height: 20px;
    }
}