* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 30px;
    background-color: #22574b;
    color: white;
}

.header-left .logo {
    width: 300px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.donate-btn {
    padding: 6px 15px;
    border: 2px solid white;
    border-radius: 25px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.user-icon,
.menu-icon {
    font-size: 20px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Hide hamburger menu on desktop */
.menu-icon {
    display: none;
}

/* ===== MOBILE VIEW (≤768px) ===== */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    .header-left .logo {
        width: 150px;
    }

    /* Show hamburger menu */
    .menu-icon {
        display: block;
    }

    /* Hide regular nav menu by default */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background-color: #22574b;
        border-radius: 0 0 0 10px;
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        transform-origin: top right;
        z-index: 1000;
    }

    .nav-menu a {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .donate-btn {
        font-size: 12px;
    }

    /* Animations */
    @keyframes menuOpen {
        0% {
            transform: scale(0);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes menuClose {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        100% {
            transform: scale(0);
            opacity: 0;
        }
    }

    .nav-menu.show {
        display: flex;
        animation: menuOpen 0.3s ease-out forwards;
    }

    .nav-menu.hide {
        animation: menuClose 0.3s ease-out forwards;
    }
}

/* Banner */
.iuac-banner-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.iuac-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.iuac-slide.active {
    opacity: 1;
    z-index: 2;
}

.iuac-slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    max-width: 450px;
    border-radius: 0 30px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.iuac-slide-title {
    font-size: 2.5rem;
    color: #144d4d;
    margin-bottom: 1rem;
    font-weight: 700;
}

.iuac-slide-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.iuac-navigation-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.iuac-navigation-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.iuac-next-btn {
    right: 20px;
}

.iuac-prev-btn {
    left: 20px;
    display: none;
}

.iuac-navigation-icon {
    color: #144d4d;
    font-size: 1.2rem;
}

.iuac-slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    /* z-index: 10; */
}

.iuac-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.iuac-indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .iuac-slide-content {
        max-width: 90%;
        left: 5%;
        padding: 20px;
        bottom: 80px;
    }

    .iuac-slide-title {
        font-size: 1.8rem;
    }

    .iuac-slide-description {
        font-size: 0.9rem;
    }

    .iuac-navigation-btn {
        width: 35px;
        height: 35px;
    }

    .iuac-banner-slider {
        height: 80vh;
    }
}

@media (max-width: 480px) {
    .iuac-slide-content {
        top: auto;
        bottom: 100px;
        transform: none;
        width: 90%;
        left: 5%;
    }

    .iuac-slide-title {
        font-size: 1.5rem;
    }
}

/* counter */
.count-section {
    position: relative;
    margin-top: -75px;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.count-container {
    background-color: #ddf1e3;
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px 50px;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    flex-wrap: wrap;
}

.count-item {
    flex: 1 1 100px;
    margin: 10px;
}

.count-item h2 {
    font-size: 3rem;
    color: #4a7f70;
}

.count-item p {
    font-weight: bold;
    color: #4a7f70;
}

.divider {
    width: 1px;
    height: 50px;
    background-color: #a0c4b4;
}

@media (max-width: 768px) {


    .count-section {
        margin-top: -50px;
    }

    .count-item {
        flex: 1 1 30px;
        margin: 10px;
    }

    .count-item h2 {
        font-size: 1.2rem;
        color: #4a7f70;
    }

    .count-item p {
        font-size: 0.5rem;
        color: #4a7f70;
    }
}

/* About  */
.about-section-unique {
    padding: 50px 20px 80px 20px;
    background-color: #ffffff;
    margin-top: -80px;
}

.about-container-unique {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    margin-top: 80px;
    gap: 40px;
    flex-wrap: wrap;
}

.about-image-unique {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    overflow: hidden;
    height: 100%;
}

.about-image-unique img {
    width: 100%;
    height: auto;
    border-radius: 120px;
    object-fit: cover;
}

.about-content-unique {
    flex: 1.3;
    min-width: 300px;
}

.about-content-unique h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #265b4a;
    margin-bottom: 20px;
}

.about-content-unique p {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    color: #265b4a;
}

/* Responsive */
@media (max-width: 768px) {
    .about-container-unique {
        flex-direction: column;
        margin-top: 40px;
    }

    .about-image-unique {
        width: 100%;
        border-radius: 40px;
        padding: 20px;
    }

    .about-content-unique h2 {
        text-align: center;
    }

    .about-content-unique p {
        text-align: left;
    }

    .about-section-unique {
        margin-top: -65px;
    }
}

/* Core Values */
.core-values-section {
    padding: 60px 20px;
    background-color: #f8fbf6;
}

.core-values-section .main-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #245c51;
}

.core-values-section .sub-heading {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #85a993;
}

.values-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item-card {
    background: #fdfdfd;
    border-radius: 60px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-item-card:hover {
    transform: translateY(-5px);
}

.value-item-card .card-icon {
    margin-bottom: 20px;
}

.value-item-card .card-icon img {
    width: 40px;
    height: 40px;
    filter: grayscale(100%) brightness(0) invert(20%) sepia(30%) saturate(1000%) hue-rotate(90deg);
}

.value-item-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #245c51;
}

.value-item-card p {
    font-size: 14px;
    color: #245c51;
}

/* Responsive Grid Breakpoints */
@media (min-width: 768px) {
    .values-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* facilities */
.facilities-container {
    text-align: center;
    padding: 60px 20px;
}

.facilities-container h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #2e574c;
}

.facilities-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.facility-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
}

.facility-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.facility-tag {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e8f2ec;
    color: #004d3c;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .facilities-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .facilities-container h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .facilities-layout {
        grid-template-columns: 1fr;
    }

    .facility-item img {
        height: 160px;
    }

    .facility-tag {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}

/* Why Choose */
.section-why-islah {
    display: flex;
    padding: 70px 40px;
    gap: 20px;
    background-color: #f8fbf6;
}

.why-islah-fixed-box {
    background-color: #89ac96;
    color: #e7f2e3;
    border-radius: 0 40px 40px;
    flex: 0 0 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-islah-fixed-box h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.why-islah-fixed-box p {
    font-size: 15px;
    line-height: 1.6;
}

.fixed-box-button {
    margin-top: 20px;
    background: #f5fff5;
    color: #456d5b;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: fit-content;
}

.why-islah-carousel-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex: 1;
}

.carousel-card-islah {
    background: #e0f2e2;
    color: #1d4033;
    border-radius: 40px;
    flex: 0 0 250px;
    padding: 30px 0;
    scroll-snap-align: start;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-card-islah h3 {
    font-size: 16px;
    font-weight: bold;
    padding: 0 20px;
    margin: 15px 0 10px;
}

.carousel-card-islah p {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 20px;
    padding-top: 40px;
    flex-grow: 1;
}

.carousel-btn-islah {
    margin-top: 20px;
    background: #fff;
    color: #456d5b;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: fit-content;
    justify-content: center;
    align-self: center;
}

.carousel-icon-islah {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;
}

.why-islah-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .section-why-islah {
        flex-direction: column;
        padding: 70px 20px;
    }

    .why-islah-fixed-box {
        width: 100%;
        flex: none;
    }

    .why-islah-carousel-wrapper {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .carousel-card-islah {
        min-width: 70%;
        flex: 0 0 10%;
    }
}

.white-line-divider {
    border: none;
    height: 3px;
    background-color: #fff;
    width: 100%;
    margin: 10px 0;
    border-radius: 5px;
}


/* Gallery */
.gallery-section {
    padding: 70px 0;
    background: #fff;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #8daf99;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-row {
    display: flex;
    animation: marquee-left 50s linear infinite;
}

.marquee-row.reverse {
    animation: marquee-right 50s linear infinite;
}

.marquee-row img {
    height: 200px;
    width: auto;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .marquee-row img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .gallery-section h2 {
        font-size: 1.8em;
    }

    .marquee-row img {
        height: 100px;
    }
}

/* testimonial */
.testimonial-wrapper {
    position: relative;
    background: url('img/485785878_1142136264591778_1854184660709847401_n.jpg') center/cover no-repeat;
    padding: 100px 20px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.testimonial-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.testimonial-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
}

.testimonial-entry {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.testimonial-entry.active {
    display: block;
}

.testimonial-box {
    position: relative;
    background-color: #7da889;
    border-radius: 80px;
    padding: 60px 40px 40px;
    text-align: left;
    min-height: 280px;
}

.photo-desktop-wrapper {
    position: absolute;
    top: -50px;
    left: -50px;
    padding: 6px;
    background: #97baa2;
    border-radius: 80px 80px 0 80px;
    display: block;
}

.photo-desktop-wrapper img {
    width: 130px;
    height: 160px;
    object-fit: cover;
    border-radius: 80px 80px 0 80px;
    border: 6px solid #fff;
    display: block;
}

.photo-mobile {
    display: none;
    margin-bottom: 20px;
}

.photo-mobile img {
    width: 130px;
    height: 160px;
    object-fit: cover;
    border-radius: 80px 80px 0 80px;
    border: 6px solid #fff;
    background: #97baa2;
    padding: 6px;
    display: inline-block;
}

.testimonial-message {
    padding-left: 120px;
    font-size: 16px;
    line-height: 1.7;
}

.testimonial-nav-dots {
    margin-top: 40px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background-color: #7da889;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.nav-dot.active {
    opacity: 1;
    border: 2px solid #fff;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .testimonial-box {
        padding: 80px 20px 30px;
        text-align: center;
    }

    .photo-desktop-wrapper {
        display: none;
    }

    .photo-mobile {
        display: block;
    }

    .testimonial-message {
        padding-left: 0;
        text-align: center;
    }
}

/* news-section */
.news-section {
    padding: 70px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.news-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #175a46;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title-text {
    font-weight: 600;
    color: #175a46;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.news-readmore {
    font-size: 0.9rem;
    color: #175a46;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    justify-content: flex-end;
    align-self: flex-end;
}

.news-readmore:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-title {
        font-size: 1.5rem;
    }
}

/* footer */
.footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    gap: 2rem;
    position: relative;
    background-color: #124f45;
}

.footer-content {
    max-width: 800px;
}

.footer h1,
.footer h2 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: #bce4ca;
}

.footer h2 {
    font-size: 2.8rem;
    color: #bce4ca;
}

.footer p {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #bce4ca;
}

.contact {
    padding-top: 20px;
}

.contact p {
    margin: 0.3rem 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donate-button {
    padding: 1rem 2rem;
    border: 2px solid #c7fce3;
    border-radius: 2rem;
    background-color: transparent;
    color: #c7fce3;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-button:hover {
    background-color: #c7fce3;
    color: #124f45;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons img {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background-color: #c7fce3;
    padding: 5px;
    transition: transform 0.2s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .footer {
        flex-direction: row;
        align-items: flex-start;
    }

    .footer-right {
        position: absolute;
        bottom: 3rem;
        right: 3rem;
        align-items: flex-end;
    }
}

@media (max-width: 767px) {
    .footer-right {
        align-items: center;
        position: static;
    }
}