/* ================== Common Style Start ================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tiro+Bangla:ital@0;1&display=swap@400;500;600;700&display=swap');

:root{
    --themeRed: #6c63ff;   /* Primary Accent (modern purple) */
    --gray: #f7f7f7;
    --darkBg: #121212;
    --darkCard: #1e1e1e;
    --darkText: #e5e5e5;
}

html{
    scroll-behavior: smooth;
}

body, button {
    font-family: "Poppins", "Noto San Bengali", sans-serif, "Tiro Bangla";
    transition: background 0.3s, color 0.3s;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p{
    font-size: 15px;
    line-height: 26px;
}

.fullContainer{
    width: 100%;
}
.container{
    width: 90%;
    max-width: 1140px;
    margin: auto;
}

.sectionTitle{
    width: max-content;
    border-bottom: 3px solid var(--themeRed);
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin: 0 auto 50px;
    position: relative;
    padding: 10px 20px;
    text-transform: uppercase;
    color: var(--themeRed);
    letter-spacing: 1px;
}

.sectionTitle::after{
    content: "";
    height: 12px;
    width: 12px;
    background-color: var(--themeRed);
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%) rotate(45deg);
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

section{
    padding: 80px 0;
    position: relative;
}
/* ================== Common Style End ================== */


/* ================== Header ================== */
header{
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: background 0.3s;
}

header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .container .logo{
    padding: 10px 0;
    height: 70px;
}

header .container .logo img{
    height: 100%;
    max-height: 70px;
    object-fit: contain;
}

header nav ul{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

header nav ul li a{
    display: inline-block;
    padding: 0 15px;
    line-height: 70px;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    transition: 0.3s;
}

header nav ul li a:hover{
    color: #fff;
    background-color: var(--themeRed);
    border-radius: 5px;
}
/* ================== Header End ================== */


/* ================== Banner ================== */
.banner {
    min-height: 100vh;
    width: 100%;
    background: url("./img/pc-size.jpg") center/cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.banner h1{
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0,0,0,0.7);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner span{
    background-color: var(--themeRed);
    padding: 0 12px;
    font-weight: 600;
    border-radius: 3px;
}

.banner p{
    color: #f1f1f1;
    text-shadow: 0 0 5px #000;
    margin-top: 10px;
    max-width: 600px;
}

.banner button{
    background: var(--themeRed);
    border: none;
    outline: none;
    color: #fff;
    padding: 12px 25px;
    margin-top: 25px;
    font-size: 14px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.banner button:hover{
    background: #5544cc;
    transform: translateY(-2px);
}
/* ================== Banner End ================== */


/* ================== Theme Switch ================== */
.theme-toggle {
    position: absolute;
    right: 15px;
    top: 20px;
}

.theme-toggle input { display: none; }

.switch {
    position: relative;
    width: 50px;
    height: 25px;
    display: inline-block;
    cursor: pointer;
}

.slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .switch .slider {
    background-color: var(--themeRed);
}

input:checked + .switch .slider::before {
    transform: translateX(25px);
}
/* ================== Theme Switch End ================== */


/* ================== Dark Mode ================== */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

body.dark-mode header,
body.dark-mode nav {
    background-color: #1a1a1a;
}

body.dark-mode .container,
body.dark-mode .cards > div,
body.dark-mode .programs .boxContainer .box,
body.dark-mode .join {
    background-color: #1a1a1a;
    color: #fff;
}
/* ================== Dark Mode End ================== */


/* ================== Responsive ================== */
@media (max-width: 992px){
    .banner h1{ font-size: 2.5rem; }
    header nav ul li a{ font-size: 14px; padding: 0 10px; }
}

@media (max-width: 768px){
    .container{ width: 95%; }
    .banner h1{ font-size: 2rem; }
    .banner p{ font-size: 14px; }
    .banner button{ padding: 10px 20px; font-size: 13px; }
    header nav ul{ gap: 0; }
}

@media (max-width: 576px){
    .banner h1{ font-size: 1.6rem; }
    .sectionTitle{ font-size: 1.5rem; }
}


/* Hamburger toggle button hidden on desktop */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #333;
        width: 200px;
        border-radius: 5px;
        z-index: 100;
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        padding: 15px;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
    }

    .menu-toggle {
        display: block;
    }
}




/* ---------- About Section Updated ---------- */
#aboutSection .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

#aboutSection .container p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

#aboutSection .cards > div {
    width: 320px;
    background: linear-gradient(135deg, #ffffff, #f8f8ff);
    padding: 35px 25px;
    color: #222;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    position: relative;
}

#aboutSection .cards > div:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--themeRed);
    box-shadow: 0 8px 20px rgba(102,74,239,0.2);
    background: #fff;
}

#aboutSection .cards > div .title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--themeRed);
}

#aboutSection .cards > div p {
    font-size: 14px;
    margin-top: 12px;
    color: #444;
}

#aboutSection .cards > div button {
    border: 1px solid var(--themeRed);
    outline: none;
    padding: 8px 18px;
    margin-top: 18px;
    font-size: 13px;
    border-radius: 25px;
    cursor: pointer;
    background: transparent;
    color: var(--themeRed);
    font-weight: 600;
    transition: all 0.3s ease;
}

#aboutSection .cards > div:hover button {
    background-color: var(--themeRed);
    color: #fff;
    transform: scale(1.05);
}


/* ---------- Programs Section Updated ---------- */
.programs {
    background: linear-gradient(135deg, #f9f9ff, #ececff);
    padding: 100px 0;
}

.programs .boxContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 35px;
}

.programs .boxContainer .box {
    background-color: #fff;
    text-align: center;
    padding-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.programs .boxContainer .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(102,74,239,0.2);
}

.programs .boxContainer .box .cardImage {
    width: 100%;
    height: 250px;
    background-position: center;
    background-size: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.5s ease;
}

.programs .boxContainer .box:hover .cardImage {
    transform: scale(1.1);
}

.programs .boxContainer .box .programTitle {
    font-size: 18px;
    margin-top: 18px;
    font-weight: 700;
    color: #333;
}

.programs .boxContainer .box .donationCount {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-top: 10px;
}

.programs .boxContainer .box .donationCount span {
    color: var(--themeRed);
    font-weight: 700;
}

.programs .boxContainer .box button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    background: var(--themeRed);
    color: #fff;
    border-radius: 30px;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.programs .boxContainer .box button:hover {
    background: #5237d9;
    transform: translateX(-50%) scale(1.05);
}

/* ---------- Education Section Updated ---------- */
.education {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.education img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%) contrast(1.1);
    z-index: -1;
}

.education .educationContainer {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    max-width: 650px;
    padding: 45px 35px;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    animation: fadeUp 1s ease;
}

.education .educationContainer h3 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--themeRed);
    text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.education .educationContainer p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #eee;
}

.education .educationContainer button {
    background: var(--themeRed);
    border: 0;
    color: #fff;
    padding: 15px 35px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.education .educationContainer button:hover {
    background: #5237d9;
    transform: scale(1.05);
}

.education .sectionTitle {
  font-size: 32px;         /* শিরোনাম বড় ও পরিষ্কার */
  font-weight: bold;
  margin-bottom: 20px;     /* শিরোনামের নিচে ফাঁকা জায়গা */
  line-height: 1.4;        /* লাইন গ্যাপ সুন্দর হবে */
  text-align: center;      /* চাইলে সব শিরোনাম মাঝখানে হবে */
}

#aboutSection p, 
#educationSection p,
#gallerySection p,
#joinSection p {
  margin-bottom: 20px;    /* প্যারাগ্রাফের নিচে স্পেস */
  line-height: 1.6;       /* টেক্সট পড়তে আরামদায়ক হবে */
}



/* ---------- Gallery Section Updated ---------- */
.gallery .galleryContainer {
    column-count: 4;
    column-gap: 20px;
    padding: 40px 0;
}

.gallery .galleryContainer .item {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery .galleryContainer .item:hover {
    transform: translateY(-5px);
}

.gallery .galleryContainer img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery .galleryContainer .title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery .galleryContainer .item:hover img {
    transform: scale(1.15);
    filter: brightness(80%);
}

.gallery .galleryContainer .item:hover .title {
    opacity: 1;
}

/* ---------- Join Section Updated ---------- */
.join {
    background: linear-gradient(135deg, var(--themeRed), #5237d9);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.join .joinTitle {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 25px;
}

.join .joinTitle span {
    font-weight: 800;
}

.join button {
    padding: 12px 28px;
    margin-top: 15px;
    border: 0;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join button.joinNow {
    background: #222;
    color: #fff;
}

.join button.joinNow:hover {
    background: #fff;
    color: var(--themeRed);
}

/* ---------- Footer Section Updated ---------- */
footer {
    background-color: #0d0d0d;
    color: #b3b3b3;
    padding: 60px 0 40px;
    font-size: 14px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-gap: 40px;
}

footer .title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid var(--themeRed);
    margin-bottom: 20px;
    padding-bottom: 6px;
    color: #fff;
}

footer p {
    margin-bottom: 12px;
    line-height: 1.6;
}

footer .linksContainer ul {
    list-style: none;
    padding: 0;
}

footer .linksContainer ul li a {
    text-decoration: none;
    color: #b3b3b3;
    margin-bottom: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

footer .linksContainer ul li a:hover {
    color: var(--themeRed);
    transform: translateX(5px);
}

footer .newsLetterContainer img {
    height: 40px;
    margin-bottom: 12px;
}

footer .newsLetterContainer input {
    background-color: transparent;
    border: 1px solid #555;
    outline: none;
    padding: 12px 18px;
    width: 100%;
    margin-top: 12px;
    color: #ddd;
    border-radius: 30px;
    transition: all 0.3s ease;
}

footer .newsLetterContainer input:focus {
    border-color: var(--themeRed);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

/* ---------- Animation ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive Design ---------- */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .education .educationContainer {
        max-width: 80%;
        padding: 30px 25px;
    }

    .education .educationContainer h3 {
        font-size: 28px;
    }

    .gallery .galleryContainer {
        column-count: 3;
        column-gap: 15px;
    }

    .join .joinTitle {
        font-size: 34px;
    }

    footer .container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-gap: 30px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .education {
        padding: 60px 15px;
        text-align: center;
    }

    .education .educationContainer {
        position: relative;
        top: auto;
        transform: none;
        max-width: 100%;
        padding: 25px 20px;
        margin: 0 auto;
        border-radius: 10px;
    }

    .education .educationContainer h3 {
        font-size: 24px;
    }

    .education .educationContainer p {
        font-size: 14px;
        line-height: 1.5;
    }

    .education .educationContainer button {
        padding: 12px 20px;
        font-size: 13px;
        margin: 5px 0;
    }

    .gallery .galleryContainer {
        column-count: 2;
        column-gap: 10px;
    }

    .gallery .galleryContainer .item {
        border-radius: 8px;
    }

    .join {
        padding: 50px 20px;
    }

    .join .joinTitle {
        font-size: 28px;
    }

    footer {
        padding: 40px 20px;
        text-align: center;
    }

    footer .container {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }

    footer .newsLetterContainer input {
        width: 90%;
        margin: 10px auto 0;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .education .educationContainer h3 {
        font-size: 20px;
    }

    .education .educationContainer p {
        font-size: 13px;
    }

    .education .educationContainer button {
        padding: 10px 18px;
        font-size: 12px;
    }

    .gallery .galleryContainer {
        column-count: 1;
    }

    .join .joinTitle {
        font-size: 24px;
    }

    footer .title {
        font-size: 16px;
    }
}


.programs .boxContainer .box:nth-child(1) .cardImage,
.programs .boxContainer .box:nth-child(1) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748201741/img13_mmp0yz.jpg);

}
.programs .boxContainer .box:nth-child(2) .cardImage,
.programs .boxContainer .box:nth-child(2) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1750165009/8e11f86d-4c5b-4f7d-af91-348c109b07a6_ggixps.jpg);

}
.programs .boxContainer .box:nth-child(3) .cardImage,
.programs .boxContainer .box:nth-child(3) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748284252/ifter_mahofil_mprxsa.jpg);

}
.programs .boxContainer .box:nth-child(4) .cardImage,
.programs .boxContainer .box:nth-child(4) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748285808/eid_bazar_ogrgjb.jpg);

}

.programs .boxContainer .box:nth-child(5) .cardImage,
.programs .boxContainer .box:nth-child(5) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748288230/ifter2024_tcssxb.jpg);

}

.programs .boxContainer .box:nth-child(6) .cardImage,
.programs .boxContainer .box:nth-child(6) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748288224/ifter2023_dcqjim.jpg);

}

.programs .boxContainer .box:nth-child(7) .cardImage,
.programs .boxContainer .box:nth-child(7) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748287414/eid-2022_iao70l.jpg);

}

.programs .boxContainer .box:nth-child(8) .cardImage,
.programs .boxContainer .box:nth-child(8) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748284255/Mosjid_poriskar_dfq0jh.jpg);

}

.programs .boxContainer .box:nth-child(9) .cardImage,
.programs .boxContainer .box:nth-child(9) .cardImage:after{
    background-image: url(https://res.cloudinary.com/dj5telyfg/image/upload/v1748285943/mosjid_2_yeeaga.jpg);

}