* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111;
}

/* =========================
   HERO SLIDER BASE
========================= */

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* =========================
   SLIDES
========================= */

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* images */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* mobile / desktop image toggle */
.mobile-img {
    display: none;
}

/* =========================
   OVERLAY
========================= */

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* =========================
   HERO CONTENT (DESKTOP)
========================= */

.hero-content {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    max-width: 650px;
}

.small-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px; /* improved spacing */
}

.hero-content h1 {
    font-size: 65px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* buttons */
.hero-buttons {
    display: flex;
    gap: 18px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.btn.primary {
    background: #0a2c78;
    color: white;
}

.btn.secondary {
    border: 2px solid white;
    color: white;
}

/* =========================
   ARROWS
========================= */

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid white;
    background: rgba(0,0,0,0.3);
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.arrow.left {
    left: 25px;
}

.arrow.right {
    right: 25px;
}

/* =========================
   DOTS
========================= */

.dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* =========================
   RESPONSIVE (MOBILE FINAL)
========================= */

@media screen and (max-width: 768px) {

    .hero-slider {
        height: 85vh;
    }

    /* image swap */
    .desktop-img {
        display: none;
    }

    .mobile-img {
        display: block;
    }

    /* =========================
       MOBILE HERO CONTENT
    ========================== */

    .hero-content {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;

        /* controlled spacing from navbar */
        padding: 70px 20px 20px;

        transform: none;
        text-align: left;

        display: flex;
        flex-direction: column;

        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.4),
            transparent
        );

        max-width: 100%;
    }

    /* =========================
       TEXT SPACING FIX (KEY PART)
    ========================== */

    .small-text {
        font-size: 11px;
        letter-spacing: 1.2px;

        margin-bottom: 28px; /* 👈 pushes it higher away from h1 */
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.2;

        margin-bottom: 14px;
    }

    .description {
        font-size: 13px;
        margin-bottom: 12px;
        opacity: 0.9;
    }

    /* buttons */
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* =========================
       ARROWS FIX
    ========================== */

    .arrow.left {
        display: none;
    }

    .arrow.right {
        right: 10px;
        top: 50%;
    }

    .arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* =========================
       DOTS
    ========================== */

    .dots {
        bottom: 15px;
    }
}

/* =========================
   FEATURES
========================= */

.features {
    background: #0a2c78;
    color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 35px 60px;
    gap: 30px;
}

.feature-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.feature-box i {
    font-size: 32px;
    margin-top: 5px;
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 16px;
    line-height: 1.6;
}

/* =========================
   TABLET (2 columns)
========================= */

@media screen and (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 40px;
    }
}

/* =========================
   MOBILE (1 column)
========================= */

@media screen and (max-width: 768px) {

    .features {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 25px;
        text-align: center;
    }

    .feature-box {
        flex-direction: column;
        align-items: center;
        gap: 12px;

        /* 👇 card feel */
        background: rgba(255, 255, 255, 0.05);
        padding: 20px 15px;
        border-radius: 12px;
    }

    /* 👇 ICON STYLE CHANGE */
    .feature-box i {
        font-size: 20px;

        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;
        background: white;
        color: #0a2c78;
    }

    .feature-box h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .feature-box p {
        font-size: 14px;
        line-height: 1.5;
        opacity: 0.9;
    }
}
/* =========================
   PROGRAMS
========================= */

.programs {
    padding: 90px 60px;
    text-align: center;
}

.programs h2,
.partners h2 {
    font-size: 44px;
    color: #0a2c78;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    color: #555;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.program-card {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 40px 30px;
    background: white;
}

.program-card i {
    font-size: 42px;
    color: #0a2c78;
    margin-bottom: 25px;
}

.program-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.program-card p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.program-card a {
    text-decoration: none;
    color: #0a2c78;
    font-weight: 700;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Large tablets / small laptops */
@media (max-width: 1200px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs {
        padding: 80px 40px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .programs h2 {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .program-card {
        padding: 30px 20px;
    }

    .program-card h3 {
        font-size: 24px;
    }

    .program-card p {
        font-size: 16px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .programs {
        padding: 60px 20px;
    }

    .programs h2 {
        font-size: 30px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: 25px 18px;
    }

    .program-card i {
        font-size: 36px;
    }

    .program-card h3 {
        font-size: 20px;
    }

    .program-card p {
        font-size: 15px;
    }
}

/* =========================
   PARTNERS
========================= */

.partners {
    background: #f8f8f8;
    padding: 90px 60px;
    text-align: center;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    font-weight: 600;
    color: #444;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* =========================
   MOBILE PARTNERS (TAG STYLE)
========================= */
@media (max-width: 480px) {

    .partners {
        padding: 60px 20px;
    }

    .partner-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .partner-grid div {
        background: white;
        border: 1px solid #ddd;
        padding: 10px 14px;
        border-radius: 50px;

        font-size: 14px;
        font-weight: 600;
        color: #0a2c78;

        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        transition: 0.3s ease;
    }

    .partner-grid div:hover {
        background: #0a2c78;
        color: white;
        transform: scale(1.05);
    }
}
/* =========================
   MOBILE PARTNERS (TAG + ANIMATED BORDER)
========================= */
@media (max-width: 480px) {

    .partners {
        padding: 60px 20px;
    }

    .partner-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .partner-grid div {
        position: relative;
        background: white;
        padding: 10px 14px;
        border-radius: 50px;

        font-size: 14px;
        font-weight: 600;
        color: #0a2c78;

        border: 2px solid transparent;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);

        overflow: hidden;
    }

    /* animated moving red border */
    .partner-grid div::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50px;
        padding: 2px;
        background: linear-gradient(90deg, red, transparent, red);
        background-size: 300% 300%;
        animation: moveBorder 3s linear infinite;

        -webkit-mask: 
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;

        pointer-events: none;
    }

    @keyframes moveBorder {
        0% {
            background-position: 0% 50%;
        }
        100% {
            background-position: 200% 50%;
        }
    }

    .partner-grid div:hover {
        background: #0a2c78;
        color: white;
        transform: scale(1.05);
    }
}


/* =========================
   TITLE RED UNDERLINE
========================= */

.programs h2,
.partners h2,
.testimonials h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.programs h2::after,
.partners h2::after,
.testimonials h2::after {
    content: "";
    width: 70px;
    height: 4px;
    background: red;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 10px;
}


/* =========================
   TESTIMONIALS
========================= */
.testimonials {
    padding: 90px 60px;
    background: #ffffff;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* =========================
   CARD (IMPORTANT FIX HERE)
========================= */

.testimonial-card {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 70px 30px 35px; /* extra top space for floating avatar */
    border: 1px solid #e6e6e6;
    text-align: left;
    position: relative;
    overflow: visible; /* IMPORTANT for floating image */
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* =========================
   FLOATING CIRCULAR IMAGE (TOP CENTER)
========================= */

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    animation: pulseAvatar 3s infinite ease-in-out;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   INLINE QUOTE (FIXED)
========================= */

.testimonial-card p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-left: 28px;
}

/* THIS FIXES YOUR ISSUE */
.testimonial-card p::before {
    content: "❝";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 26px;
    color: red;
    font-family: serif;
    font-weight: bold;
}

/* =========================
   NAME
========================= */

.testimonial-card h4 {
    color: #0a2c78;
    font-size: 16px;
    font-weight: 600;
}

/* =========================
   ANIMATION
========================= */

@keyframes pulseAvatar {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(10, 44, 120, 0.25);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 0 12px rgba(10, 44, 120, 0);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(10, 44, 120, 0);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonials {
        padding: 60px 20px;
    }
}
/* =========================
   DONATION ICON FIX
========================= */

.donation-left i {
    font-size: 65px;
    color: white;
}

/* =========================
   TESTIMONIALS RESPONSIVE DESIGN
========================= */

/* Tablets */
@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .testimonials {
        padding: 70px 40px;
    }
}

/* Small tablets */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials {
        padding: 60px 30px;
    }

    .testimonial-card {
        padding: 65px 25px 30px;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
        top: -40px;
    }

    .testimonial-card p {
        font-size: 16px;
        padding-left: 24px;
    }

    .testimonial-card h4 {
        font-size: 15px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .testimonials {
        padding: 50px 20px;
    }

    .testimonial-card {
        padding: 60px 20px 25px;
        text-align: center;
    }

    .testimonial-avatar {
        width: 75px;
        height: 75px;
        top: -38px;
    }

    .testimonial-card p {
        font-size: 15px;
        line-height: 1.6;
        padding-left: 0;
    }

    .testimonial-card p::before {
        position: static;
        display: block;
        font-size: 24px;
        margin-bottom: 5px;
    }

    .testimonial-card h4 {
        font-size: 14px;
    }
}
