:root {
    background-color: gainsboro;
}

/* header page starts here */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem ;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;   
}
.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
}
.nav {
    display: flex;
    gap: 3rem;
}
.nav a{
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.nav a:hover {
    color: red;
}
.nav a.active {
    color: red;
    font-weight: 600;
}

@keyframes underline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1);}
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .nav {
        margin-top: 1rem;
        gap: 1rem;
    }
    
}

/* header page ends here */

/* index page starts here */
.index-title{
    text-align: center;
    padding: 1rem;
    box-shadow: 1rem;
    color:darkgrey;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('../images/background.jpg') no-repeat center/cover;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    position: relative;
}
.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}
.index-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.btn-events {
    background: purple;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid ;
    text-decoration: none;
}
.btn-events:hover{
    background: transparent;
    color: purple;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
@keyframes fadeInUp {
    from {
        opacity:0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform:translateY(0)
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .index-title {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .btn-events {
        padding:10px 20px;
    }
}
.volunteer {
    background: #f8f9fa;
    padding: 2rem 2rem;
    text-align: center;
    border-radius: 8px;
    max-width: 800px;
    margin: 3rem auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.volunteer h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.volunteer h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4caf50;
}
.volunteer form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}
.volunteer input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.volunteer input:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 175, 80, 0.1);
}
.btn-volunteer {
    background: #4caf50;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 1rem;
}
.btn-volunteer:hover {
    background: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .volunteer {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }
    .volunteer h2 {
        font-size: 1.8rem;
    }
}
.services{
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
    
}

.box {
    height: 300px;
    width: 300px;
    background: white;
    align-items:flex-end;
}
.service-title{
    font-size: 2.5rem;
    color: #2c3e50;
    margin-top: -3rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
}
.box-container{
    display: flex;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}
.box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2rem;
}
.box:hover{
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}
.box-head {
   padding: 0;
   text-align: center;
}
/*.box-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.box:hover .box-head::before{
    opacity: 1;
}*/
.box h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding: 0 1rem;
}
.box p{
    color: #7f8c8d;
    line-height: 1.6;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}
.box-head img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 0.5rem;
    object-position: center;
    transition: 0.5s ease;
}
.box:hover .box-head img {
    transform: scale(1.05);
}
.events {
    padding: 4rem 2rem;
    background: #f9f9f9;
}
.upevents-title {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-top: -3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}
.event-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 1rem;
    margin-top: 0;
}
.box-head p:last-child,
.event-date {
    color: #7f8c8d;
    padding: 0.5rem 1rem;
    margin: 0;
    font-size: 0.9rem;
}
.box-head button {
    display: block;
    width: 120px;

}


@media (max-width: 768px) {
    .service-title {
        font-size: 2rem;
    }
    .box-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    .box {
        margin-bottom: 1rem;
    }
}


.service-button {
    display: block;
    width: 80%;
    max-width: 180px;
    padding: 10px 20px;
    background: #228B22; 
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #228B22;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.service-button:hover {
    background: transparent;
    color: #228B22;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.box {
    position: relative; 
    padding-bottom: 4rem; 
}


.box-container {
    gap: 2rem; 
}


.Aim {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.aim-title{
    font-size: 45px;
    margin-bottom: 20px;
    color: #2c3e50;
}
.Aim ul{
    list-style-type: disc;
    display: inline-block;
    text-align: left;
    padding-left: 20px;
    margin: 0 auto;   
}
.Aim li {
    margin: 10px 0;
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.welcome-message {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.welcome-text {
    max-width: 800px;
    text-align: center;
    color: #333;
    line-height: 1.5;
    font-size: 1.2rem;
}
.welcome-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}
.welcome-text p {
    margin: 20px 0;
}




/* index page ends here */

/* funeral page starts here */
.funeral-title {
    background:url('../images/background.jpg') no-repeat center/cover;
    text-align: center;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

/* funeral page ends here

/* khatam page starts here */
.khatam-title {
    background:url('../images/background.jpg') no-repeat center/cover;
    text-align: center;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

/* khatam page ends here */

/* about page starts here */
.about-title {
     background:url('../images/background.jpg') no-repeat center/cover;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
     color: #2c3e50;
}

/* Main container */
.about-container {
    display: flex;
    gap: 40px;
    padding: 50px;
    max-width: 1200px;
    margin: auto;
}

/* Image styling */
.about-img {
    width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 5px solid #d8c39f; /* Afghan golden tone */
}

/* Text area */
.about-text1 {
    flex: 1;
    background: #fff;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-left: 6px solid #0f5728; /* Afghan green */
}

/* Paragraph spacing */
.about-text1 p {
    margin-bottom: 25px;
    font-size: 25px;
}

/* Section headers inside paragraphs */
.about-text1 h3 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 22px;
    color: #0f5728;
    font-weight: 600;
    border-left: 4px solid #b23427;
    padding-left: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        padding: 20px;
    }

    .about-img {
        width: 100%;
    }
}


/* about page ends here */

/* events page starts here */

.events-title {
     background:url('../images/background.jpg') no-repeat center/cover;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
     color: #2c3e50;
}

.activities {
    padding: 3rem 1rem;
    background: linear-gradient(to bottom, #fff7e6, #fdebd0);
    text-align: center;
}

/* TITLE */
.section-title {
    font-size: 2.2rem;
    color: #8e44ad;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* GRID */
.activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: auto;
}

/* CARD STYLE (like flyer boxes) */
.activity-card {
    background: #fffaf3;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    border: 2px solid #f6c28b;
}

/* IMAGE */
.activity-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* TEXT */
.activity-card p {
    font-size: 1rem;
    font-weight: 600;
    color: #5d4037;
}

/* HOVER EFFECT */
.activity-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* FUN DECORATIVE TOUCH (like flyer vibe) */
.activity-card::after {
    content: "";
    display: block;
    height: 6px;
    width: 50%;
    margin: 10px auto 0;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    border-radius: 10px;
}
/* events page ends here */

/* contact page starts here */

.contact-title{
    background:url('../images/background.jpg') no-repeat center/cover;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
     color: #2c3e50;
}
.contact-button {
    display: block;
    width: 80%;
    max-width: 180px;
    padding: 10px 20px;
    background: #228B22; 
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #228B22;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.contact-button:hover {
    background: transparent;
    color: #228B22;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.fa {
    padding: 20px;
    font-size: 40px;
    width: 50px;
    text-align: center;
}
.fa:hover{
    opacity: 0.7;
}
.fa-facebook{
    background: #3b5998;
    color: white;
}
.fa-twitter{
    background: #55acee;
    color: white;
}
.fa-instagram{
    background: #f8f9fa;
}
.map-container {
  width: 100%;           
  height: 100vh;         
  overflow: hidden;      
}

.map-container .map {
  width: 100%;          
  height: 100%;          
  border: 0;             
}



/* footer page starts here */

.footer{
    text-align: center;
    font-weight: 600;
}

/* footer page ends here */


/* donation page starts here */
.donation-title{
    background:url('../images/background.jpg') no-repeat center/cover;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
     color: #2c3e50;
}
.donation-section {
    max-width: 100%;
    margin: auto;
    padding: 2rem;
    background: #f8f9fa;
    width: 100%;
    text-align: center;

}
.bold-section1 {
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 1rem;
    color: #2c3e50;
}
.donation-section .bold-section2 {
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 1rem;
    color: grey;
}
.bank-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block;
    text-align: left;
}

.bank-details h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.bank-details p {
    font-size: 16px;
    margin: 5px 0;
}

.bank-details .note {
    margin-top: 10px;
    font-size: 14px;
    color: grey;
}