@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

body {
    overflow-x: hidden;
    width: 100%;
    background-color: #ffffff;
    color: #2C3E50;
    line-height: 1.6;
}

main {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Navigation Styles */
.nav-main {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    min-width: max-content;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF8C00;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #FF8C00;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #FF8C00;
}

.nav-link.active::after {
    width: 100%;
}

.donate-btn {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo img {
        height: 50px;
    }

    .nav-link {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .donate-btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Mobile Menu Button Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Hero Section Styles */
.hero-section {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0 30px;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
    width: 100%;
    display: block;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: white;
    border: none;
    padding: 1rem 2.5rem;  /* Increased padding for bigger button */
    border-radius: 30px;   /* Increased border radius for softer look */
    font-family: 'Montserrat', sans-serif;  /* Changed to Montserrat for clean, elegant look */
    font-weight: 600;      /* Semi-bold weight for better readability */
    font-size: 1.2rem;     /* Increased font size */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;  /* Added uppercase for more impact */
    letter-spacing: 1px;    /* Added letter spacing for elegance */
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);  /* Subtle shadow for depth */
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
    background: linear-gradient(45deg, #FFA500, #FF8C00);
}

@media (max-width: 768px) {
    .cta-btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cta-btn {
        padding: 0.9rem 2.2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Remove floating animations */
.animate-float {
    animation: none;
}

.animate-slide {
    animation: none;
}

/* Button Styles */
.cta-btn {
    margin-top: 2rem;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2);
}

/* Image Animations */
.hand-img {
    position: absolute;
    left: 0;
    bottom: 20%;
    max-width: 300px;
    animation: float 6s ease-in-out infinite;
}

.cheers-img {
    position: absolute;
    right: 0;
    bottom: 20%;
    max-width: 300px;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.arrow-img {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    max-width: 150px;
    animation: bounce 2s ease-in-out infinite;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-15px) translateX(-50%);
    }
}

.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* nav1 */
.nav1{
    background-color: #B6A174;
    display: flex;
    flex-direction: row;
    animation: slideIn 0.8s ease-out;
    /* padding: 8px; */
}
.nav1 p{
    padding: 10px;
    margin-left: 35px;
    color: white;
}
.nav1 button{
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 15px;
    padding-left: 15px;
    color: white;
    background-color: black;
    border: none;
    position: absolute;
    right: 20px;
}

.nav1 button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.nav1 button:hover::before {
    left: 100%;
}

/* nav1 */
/* nav2 */
.nav2{
    display: flex;
    flex-direction: row;
    height: 10vh;
    background-color: white;
}
.nav2 img{
    height: 120px;
    width: 250px;
    position: relative;
    padding: 20px;
}
.options{
    display: flex;
    flex-direction: row;
    position: relative;
    top: 20px;
    left: 300px;
}
.option{
    margin-left: 27px;  
}
.join{
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: 1px solid black;
    background-color: transparent;
    border-radius: 5px;
    position: absolute;
    right: 120px;
    top: 55px;
}
.signin{
    position: absolute;
    right: 20px;
    top: 55px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    background-color: orange;
    border-radius: 8px;
    color: white;
}
/* nav2 */


/* mainpage */
.mainpage{
    height: 80vh;
    width: 100%;
    background-color: #FAF5EF;
    position: relative;
}

.heading{
    text-align: center;
    font-size: 35px;
    position: relative;
    top: 0px;
}
.pass1,.pass2{
    text-align: center;
    position: relative;
    top: 20px;
}
.donate{
       position: relative;
    left: 650px;
    top: 52px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 17px;
    padding-right: 17px;
    border: none;
    background-color:orange;
    border-radius: 8px;
    color: white;
}
.learn{
           position: relative;
    left: 690px;
    top: 52px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 17px;
    padding-right: 17px;
    border: none;
    background-color:white;
    border-radius: 8px;
    /* color: white; */
}
.hand{
    position: absolute;
    top: 250px;
}
.arrow{
    position: relative;
    left: 290px;
    top: 150px;
    display: block;
}
.cheers{
    position:absolute;
    right: 10px;
    top: 285px;
}
.children{
    position: relative;
    top: 200px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media (max-width: 768px) {
   
    .hand{
        top: 155px;
        height: 150px;
    }
    .cheers{
        top: 150px;
        height:150px ;
    }
    .children{
        top: 150px;
        height: 30%;
    }
}
/* mainpage */

@media (max-width: 768px) {
    .heading{
        font-size: 20px;
    }
    .arrow{
        display: none;
    }
    .option{
    position: relative;
    /* top: 100px; */
    /* left: 100px; */
    margin-left: -50px;
    display: none;
}
.nav1 button{
    right: 1px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 12px;
    padding-left: 12px;

}
.nav2 img{
    height: 1 0px;
    width: 180px;
    position: relative;
    padding: 10px;
}

}
/* about */
@media (max-width: 768px) {
    .h1{
        font-size: 20px;
        bottom: 388px;
        /* margin-bottom: 55px; */
    }
    .abouthead{
          bottom: 410px; 
          text-align: center;
    }
    @media (max-width: 768px) {
    .page2 {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .h1 {
        font-size: 28px;
    }

    .p1 {
        font-size: 15px;
    }

    .video {
        width: 100%;
        max-width: 100%;
    }

    .learn2 {
        margin-top: 10px;
    }
}
.video{
    width: 150%;
    /* position: relative; */
    top: -400px;
    /* filter:brightness(60%); */
}
.page2{
    padding: 2px;
    height: auto;
}
}
.page2{
    height: 78vh;
    padding: 50px;

    background-color: #FAF5EF ;
}
.abouthead{
    position: relative;
    /* top: 300px; */
}
.h1{
    font-size: 35px;
    margin-top: 10px;
    position: relative;
}
.p1{
    position: relative;
    left: 800px;
    bottom: 100px;
}
.learn2{
       position: relative;
    left: 800px;
    bottom: 78px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 17px;
    padding-right: 17px;
    border: none;
    background-color:orange;
    border-radius: 8px;
    color: white;
}
.video{
    width: 100%;
    position: relative;
    bottom: 40px;
    filter:brightness(60%);
}
/* about */

/* table */
.table {
    position: relative;
    bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background-color: #B6A174;
    margin: 20px;
    text-align: center;
    place-items: center;
    padding: 20px;
    color: white;
    border-radius: 9px;
    box-sizing: border-box;
}

.table h3 {
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.table p {
    margin: 0;
    font-size: 1.6rem;
    font-weight: bold;
}

.table * {
    margin: 2px 0;
    padding: 5px;
}

@media (max-width: 768px) {
    .table {
        grid-template-columns: repeat(3, 1fr); /* Force row layout */
        gap: 10px; /* Reduce gap between columns */
        padding: 10px;
        margin: 10px;
        bottom: 800px;
    }

    .table h3 {
        font-size: 1rem;
    }

    .table p {
        font-size: 1.2rem;
    }
}

/* table */


/* services */
.page3 {
    min-height: 100vh;
    padding: 80px 20px;
    margin-bottom: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.serhead, .serhead2, .serhead3 {
    text-align: center;
    width: 100%;
}

.serhead2, .serhead3 {
    font-size: 35px;
}

.serhead2 {
    margin-top: 10px;
}

.serhead {
    font-size: 20px;
}

.maindiv {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    position: static;
}

.childdiv {
    flex: 1;
    min-height: 350px;
    width: calc(33.33% - 20px);
    max-width: 350px;
    background-color: #F6A21A26;
    border-radius: 7px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.childdiv:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.childdiv img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.childdiv p {
    text-align: center;
    margin: 10px 0;
}

.childdiv p:first-of-type {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.know-motive-btn {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.know-motive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-text {
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.modal-text h2 {
    margin-bottom: 20px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.modal-text p {
    margin-bottom: 15px;
    text-align: left;
}

@media (max-width: 768px) {
    .childdiv {
        padding: 20px 15px;
        min-height: 250px;
        max-width: 400px;
    }

    .childdiv img {
        width: 60px;
        margin-bottom: 15px;
    }

    .childdiv p {
        font-size: 14px;
    }

    .childdiv p:first-of-type {
        font-size: 1.1em;
    }

    .know-motive-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .modal-content {
        margin: 15% auto;
        padding: 20px;
        width: 95%;
    }

    .modal {
        padding: 0 10px;
    }
}

@media (max-width: 992px) {
    .maindiv {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
    }

    .childdiv {
        width: 100%;
        max-width: 500px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .page3 {
        padding: 60px 15px;
        min-height: auto;
    }

    .serhead2, .serhead3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .childdiv {
        padding: 20px 15px;
        min-height: 250px;
        max-width: 400px;
    }

    .childdiv img {
        width: 80px;
        margin-bottom: 15px;
    }

    .childdiv p {
        font-size: 14px;
        margin: 10px 0;
    }

    .childdiv p:first-of-type {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.service-link:hover .childdiv {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* midsec */
.midsec {
    background-color: #FAF5EF;
    padding: 20px;
}

.midsec.ourteam {
    padding-top: 100px;
    margin-top: 0;
    background-color: #FAF5EF;
}

.page3.services {
    margin-bottom: 200px;
    position: relative;
    z-index: 2;
}

.midhead1, .midhead2, .midhead3 {
    position: relative;
    text-align: center;
    margin: 6px;
}

@media (max-width: 768px) {
    .midhead1 {
        bottom: 770px;
    }
    .midhead2 {
        bottom: 750px;
    }
    .midhead3 {
        bottom: 750px;
    }
    .recbox {
        height: auto;
        width: 90%;
    }
}

/* page4 */
.midhead2{
    font-size: 35px;
    margin-bottom: 30px;
}

.page4{
    height: 70vh;
    background-color:#FAF5EF ;
    top: 100px;
    margin-top: 80px;
}
.page4 h1,p{
    text-align: right;
}
.recbox {
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}
.r1 {
    position: relative;
    background-color: #EED8AC;
}
.r2 {
    position: relative;
    background-color: #FFC39E;
}
.person1, .person2 {
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.midname1, .midname2 {
    font-size: 1.8rem;
    color: #2C3E50;
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
}
.about1, .about2 {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 1rem 0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}
.shadow1, .shadow2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.1;
    max-width: 300px;
    height: auto;
}
@media (max-width: 768px) {
    .midsec.ourteam {
        padding-top: 80px;
    }

    .about1 {
        font-size: 0.9rem;
        padding: 0 1rem;
        max-width: 100%;
        text-align: left;
        word-spacing: -0.05em;
        letter-spacing: -0.01em;
        hyphens: auto;
        white-space: normal;
    }

    .about2 {
        font-size: 0.9rem;
        padding: 0 1rem;
        max-width: 100%;
        text-align: left;
        word-spacing: -0.1em;
        letter-spacing: -0.025em;
        hyphens: auto;
        white-space: pre-line;
        word-break: break-word;
        text-rendering: optimizeLegibility;
    }
    
    .person1, .person2 {
        max-width: 200px;
    }
    
    .midname1, .midname2 {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .shadow1, .shadow2 {
        max-width: 250px;
    }

    .recbox {
        margin: 1rem;
        padding: 1.5rem;
    }
}
/* about */

/* table */
.table {
    position: relative;
    bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background-color: #B6A174;
    margin: 20px;
    text-align: center;
    place-items: center;
    padding: 20px;
    color: white;
    border-radius: 9px;
    box-sizing: border-box;
}

.table h3 {
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.table p {
    margin: 0;
    font-size: 1.6rem;
    font-weight: bold;
}

.table * {
    margin: 2px 0;
    padding: 5px;
}

@media (max-width: 768px) {
    .table {
        grid-template-columns: repeat(3, 1fr); /* Force row layout */
        gap: 10px; /* Reduce gap between columns */
        padding: 10px;
        margin: 10px;
        bottom: 800px;
    }

    .table h3 {
        font-size: 1rem;
    }

    .table p {
        font-size: 1.2rem;
    }
}

/* table */


/* services */
.page4{
    height: 70vh;
    background-color:#FAF5EF ;
    top: 100px;
    margin-top: 80px;
}
.page4 h1,p{
    text-align: right;
}
.recbox {
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}
.r1 {
    position: relative;
    background-color: #EED8AC;
}
.r2 {
    position: relative;
    background-color: #FFC39E;
}
.person1, .person2 {
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.midname1, .midname2 {
    font-size: 1.8rem;
    color: #2C3E50;
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
}
.about1, .about2 {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 1rem 0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}
.shadow1, .shadow2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.1;
    max-width: 300px;
    height: auto;
}
@media (max-width: 768px) {
    .midsec.ourteam {
        padding-top: 80px;
    }

    .about1 {
        font-size: 0.9rem;
        padding: 0 1rem;
        max-width: 100%;
        text-align: left;
        word-spacing: -0.05em;
        letter-spacing: -0.01em;
        hyphens: auto;
        white-space: normal;
    }

    .about2 {
        font-size: 0.9rem;
        padding: 0 1rem;
        max-width: 100%;
        text-align: left;
        word-spacing: -0.1em;
        letter-spacing: -0.025em;
        hyphens: auto;
        white-space: pre-line;
        word-break: break-word;
        text-rendering: optimizeLegibility;
    }
    
    .person1, .person2 {
        max-width: 200px;
    }
    
    .midname1, .midname2 {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .shadow1, .shadow2 {
        max-width: 250px;
    }

    .recbox {
        margin: 1rem;
        padding: 1.5rem;
    }
}
/* page4 */
/* page5 */
/* Existing styles */
.mid2image {
    position: relative;
    left: 70px;
    top: 50px;
    width: 45%;
    height: auto;
}
.mid2head {
    position: relative;
    bottom: 450px;
    left: 800px;
    font-size: 37px;
    width: 45%;
}
.mid2topic {
    margin-left: 1050px;
    position: relative;
    bottom: 400px;
    right: 250px;
    width: 45%;
}
.mid2 table {
    position: relative;
    bottom: 330px;
    left: 800px;
    width: 45%;
}
.bot {
    padding: 20px;
    border-left: 4px solid orange;
}
.readmore {
    position: relative;
    left: 800px;
    bottom: 302px;
    padding: 7px 15px;
    border: none;
    background-color: orange;
    border-radius: 8px;
    color: white;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .mid2image {
        left: 30px;
        top: 20px;
        width: 50%;
    }
    .mid2head {
        bottom: 300px;
        left: 400px;
        width: 50%;
        font-size: 30px;
    }
    .mid2topic {
        margin-left: 400px;
        bottom: 270px;
        right: 100px;
        width: 50%;
        font-size: 16px;
    }
    .mid2 table {
        bottom: 230px;
        left: 400px;
        width: 50%;
    }
    .readmore {
        left: 400px;
        bottom: 210px;
    }
}

@media (max-width: 768px) {
      .mid2 {
    position: relative; /* Ensure container is relative */
  }

  .mid2image {
    position: absolute;
    bottom: 700px;
    left: 20px; /* adjust as needed for smaller screens */
    width: 50%; /* maybe increase width on mobile */
    height: auto;
    top: auto; /* reset top */
  }
 .mid2head {
    position: relative;
    bottom: 530px;   /* reset bottom */
    left: 220px;     /* reset left */
    width: 100%;
    font-size: 18px;
    margin-bottom: 15px;
}

.mid2topic {
    position: relative;
    margin: 0 auto 20px auto;
    width: 90%;
    font-size: 14px;
    bottom: 420px;   /* reset bottom */
    right: auto;    /* reset right */
    text-align: center;
}
.mid2 table {
    position: relative;
    margin: 0 auto 20px auto;
    width: 90%;
    bottom: 430px; /* Reset if needed */
    left: auto;   /* Reset if needed */
}
    .bot {
        border-left: none !important;
        border-top: 4px solid orange;
        padding: 15px 20px;
        margin-bottom: 15px;
    }
    .readmore {
        position: static !important;
        margin: 0 auto;
        display: inline-block;
        bottom: 0 !important;
        left: 0 !important;
        padding: 10px 20px;
    }
}

/* page5 */
/* page6 */
.mid3image{
    position: relative;
    left: 850px;
    width: 45%;
    height: auto;
}
.mid3head{
    position: relative;
    bottom: 380px;
    left: 100px;
    font-size: 37px;
    width: 45%;
}
.paramid3{
   
    margin-left: 100px;
    width: 45%;
}
.paramid3div{
    margin-top: 70px;
    position: relative;
    bottom: 400px;
    width: 100%;
}
.readmoremid3{
            position: relative;
    /* left: 800px; */
    /* bottom: 302px; */
    top: 50px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    background-color:orange;
    border-radius: 8px;
    color: white;
}
@media (max-width: 768px) {
    .mid3 {
        text-align: center;
        padding: 20px;
    }

    .mid3image {
        position: relative;
        left: 0;
        bottom: 300px;
        width: 90%;
        margin: 0 auto;
    }

    .mid3head {
        position: relative;
        bottom: 300px;
        left: 0;
        width: 100%;
        font-size: 24px;
        margin-top: 20px;
    }

    .paramid3div {
        position: relative;
        bottom: 300px;
        width: 100%;
        margin-top: 20px;
    }

    .paramid3 {
        margin: 10px auto;
        width: 90%;
        font-size: 14px;
        text-align: center;
    }

    .readmoremid3 {
        position: relative;
        top: 20px;
        margin-top: 20px;
    }
}

/* page6 */
/* page 7 */
/* .imagesdiv{
    display: grid;
    grid-template-columns: repeat(3,1fr);
} */
/* Desktop styles - keep as is */
.mid4head{
    margin-top: 350px;
    position: relative;
    bottom: 280px;
    text-align: center;
}

.midhead4{
    position: relative;
    bottom: 260px;
    text-align: center;
    font-size: 35px;
}

.imagesdiv{
    padding: 20px;
    margin: 0 auto;
    position: relative;
    bottom: 230px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 5px; /* Reduced horizontal gap */
    row-gap: 10px; /* Keep vertical gap the same */
    justify-items: center;
    max-width: 1180px; /* Slightly reduced to account for tighter spacing */
}

.imagesdiv img{
    padding: 5px; /* Reduced padding */
    height: 320px;
    width: 270px; /* Slightly increased to fill the space */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.imagesdiv img:hover {
    transform: scale(1.05);
}

.allimages{
    bottom: 220px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    background-color: orange;
    border-radius: 4px;
    color: white;
}

/* Update mobile responsiveness */
@media (max-width: 1200px) {
    .imagesdiv {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .imagesdiv {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .imagesdiv {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Fixed mobile styles */
@media (max-width: 768px) {
    .mid4 {
        text-align: center;
        padding: 20px;
    }

    .mid4head {
        position: static !important; /* Remove complex positioning */
        margin-top: 20px !important;
        right: auto !important; /* Fix the off-screen issue */
        font-size: 18px;
        margin-bottom: 10px;
        text-align: center;
        padding: 0 15px;
    }

    .midhead4 {
        position: static !important; /* Remove complex positioning */
        bottom: auto !important;
        font-size: 24px;
        margin-bottom: 5px;
        text-align: center;
        padding: 0 15px;
    }

    .imagesdiv {
        position: static !important; /* Remove complex positioning */
        margin-top: 20px;
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .imagesdiv img {
        width: 140px;
        height: auto;
        padding: 2px;
    }

    .allimages {
        position: static;
        margin-top: 20px;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

/* page 7 */
/* page 8 */
.mid5 img{
    position: relative;
    /* left: 1px; */
    width: 100%;
    bottom: 50px;
}
.donatemid5{
    position: relative;
    left: 600px;
    /* bottom: 302px; */
    /* top: 50px; */
    bottom: 185px;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 45px;
    padding-right: 45px;
    border: none;
    background-color:orange;
    border-radius: 8px;
    color: white;
    font-size: 15px;
}
.joinmid5{
        position: relative;
    left: 630px;
    /* bottom: 302px; */
    /* top: 50px; */
    bottom: 185px;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 45px;
    padding-right: 45px;
    border: none;
    background-color:rgb(255, 255, 255);
    border-radius: 8px;
    color: black;
    font-size: 15px;
}
@media (max-width: 768px) {
  .mid5 {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .mid5 img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    bottom: 0;
    left: 0;
  }

  .donatemid5,
  .joinmid5 {
    position: relative;
    width: 80%;
    margin: 10px auto;
    display: block;
    bottom: 0;
    font-size: 16px;
    text-align: center;
  }
}

/* page 8 */
/* page44 */
@media (max-width: 992px) {
  .page4 {
    display: block; /* stack elements vertically */

  }
  
  .page4 img {
    width: 100%;
    max-width: 400px;
    height: auto;
    top: 0;
    right: 50px;
    display: block;
  }
  
  .page4 h1, 
  .page4 p {
    bottom: 0 !important;
    right: 0 !important;
    position: static !important;
    max-width: 100%;
   
  }
  
  .donatepage4, 
  .learnpage4 {
    position: static !important;
    bottom: 0 !important;
    left: 0 !important;
    margin: 10px 10px 0 0;
    display: inline-block;
  }
}
.page4{
    margin-top: -200px;
    height: 500px;
}
@media (max-width: 600px) {
  .page4 h1 {
    font-size: 28px !important;
  }
  
  .donatepage4,
  .learnpage4 {
    font-size: 14px;
    padding: 6px 12px;
  }
}

    .page4 img{
        position: relative;
        height: 500px;
        width: 580px;
        top: 1px;
        left: -100px;
    }
    .page4 h1{
        position: relative;
        bottom: 300px;
        right: 20px;
        font-size: 25px;
    }
    .page4 p{
        position: relative;
        bottom:280px;
        right:180px ;
        /* top: 20px; */
    }
    .donatepage4{
        position: relative;
        left: 1000px;
        /* bottom: 302px; */
        /* top: 50px; */
        bottom: 220px;
        padding-top: 7px;
        padding-bottom: 7px;
        padding-left: 15px;
        padding-right: 15px;
        border: none;
        background-color:orange;
        border-radius: 8px;
        color: white;
    }
    .learnpage4{
            position: relative;
        left: 1050px;
        /* bottom: 302px; */
        /* top: 50px; */
        bottom: 220px;
        padding-top: 7px;
        padding-bottom: 7px;
        padding-left: 15px;
        padding-right: 15px;
        border: none;
        background-color:transparent;
        border-radius: 8px;
        color: black;
    }

/* page44 */
/* pagee55 */
/* Base styles (for large screens) */
.page5 {
    height: 50vh;
    background-color: #ffffff;
}

.page5 img {
    position: relative;
    height: 350px;
    width: 400px;
    top: 30px;
    left: 1130px;
}

.page5 h1 {
    position: relative;
    bottom: 230px;
    left: 80px;
    font-size: 35px;
}

.page5 p {
    position: relative;
    bottom: 190px;
    right: 1020px;
}

.page5join {
    position: relative;
    left: 90px;
    bottom: 150px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    background-color: orange;
    border-radius: 8px;
    color: white;
}

.page5learn {
    position: relative;
    left: 150px;
    bottom: 150px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    color: black;
}

/* Media Queries for responsiveness */

/* For tablets and below (<= 992px) */
@media (max-width: 992px) {
    .page5 {
        padding: 20px;
        height: auto;
    }

    .page5 img {
        position: relative;
        width: 80%;
        max-width: 400px;
        height: auto;
        left: 0;
        margin: 0 auto 20px;
    }

    .page5 h1 {
        font-size: 30px;
        position: relative;
        bottom: 200px;
        left: 0;
        text-align: center;
    }

    .page5 p {
        position: relative;
        bottom: 180px;
        right: 0;
        text-align: center;
        font-size: 16px;
    }

    .page5join, .page5learn {
        position: relative;
        left: 0;
        bottom: 120px;
        margin: 10px auto;
        display: inline-block;
        padding: 10px 20px;
        font-size: 16px;
    }

    .page5join {
        background-color: orange;
        color: white;
    }

    .page5learn {
        background-color: transparent;
        color: black;
    }
}

/* For mobile devices (<= 768px) */
@media (max-width: 768px) {
    .page5 img {
        position: relative;
        width: 90%;
        max-width: 350px;
        height: auto;
        margin: 0 auto 20px;
    }

    .page5 h1 {
        font-size: 28px;
        position: relative;
        bottom: 160px;
    }

    .page5 p {
        font-size: 14px;
        bottom: 140px;
        text-align: center;
    }

    .page5join, .page5learn {
        font-size: 14px;
        padding: 8px 16px;
        margin: 10px 0;
    }
}

/* For very small screens (<= 600px) */
@media (max-width: 600px) {
    .page5 img {
        position: relative;
        width: 90%;
        max-width: 300px;
        margin: 0 auto 15px;
        left: 90px;
    }

    .page5 h1 {
        font-size: 24px;
        position: relative;
        bottom: -20px;
        text-align: center;
    }

    .page5 p {
        font-size: 13px;
        bottom: -30px;
        text-align: center;
    }

    .page5join, .page5learn {
        font-size: 13px;
        padding: 7px 14px;
        margin: 10px 0;
        position: relative;
        top: 50px;
        left: 150px;
    }
}

/* pagee55 */
/* page66 */
/* Medium Devices (Tablets) */
@media screen and (max-width: 992px) {
    .page6 {
        height: auto;
    }

    .page6 img {
        width: 350px;
        height: auto;
        left: 30px;
        top: 20px;
    }

    .page6 h1 {
        font-size: 28px;
        left: 400px;
        bottom: 180px;
    }

    .page6 p {
        font-size: 15px;
        right: 180px;
        bottom: 170px;
    }

    .page6donate {
        left: 480px;
        bottom: 130px;
        font-size: 15px;
    }

    .page6learn {
        left: 500px;
        bottom: 130px;
        font-size: 15px;
    }
}

/* Small Devices (Phones) */
@media screen and (max-width: 600px) {
    .page6 {
        height: auto;
        padding: 20px;
    }

    .page6 img {
        width: 90%;
        height: auto;
        position: static;
        margin: 0 auto 20px;
        display: block;
    }

    .page6 h1 {
        font-size: 20px;
        position: static;
        text-align: center;
        margin-bottom: 10px;
    }

    .page6 p {
        font-size: 14px;
        position: relative;
        bottom: 42px;
        left: 8px;
        text-align: center;
        margin-bottom: 15px;
    }

    .page6donate,
    .page6learn {
        position: static;
        display: block;
        margin: 10px auto;
        width: 80%;
        font-size: 14px;
    }
}

.page6{
            height: 50vh;
    background-color:#ffffff ;
}
.page6 img{
            position: relative;
    height: 350px;
    width: 500px;
    top: 30px;
    left: 50px;
}
.page6 h1{
    position: relative;
    bottom: 260px;
    left: 800px;
    /* top: 200px; */
    font-size: 35px;
}
.page6 p{
    position: relative;
    bottom: 230px;
    /* left: 520px; */
    right: 280px;
}
.page6donate{
        position: relative;
    left: 880px;
    /* bottom: 302px; */
    /* top: 50px; */
    bottom: 190px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    background-color:orange;
    border-radius: 8px;
    color: white;
}
.page6learn{
            position: relative;
    left: 920px;
    /* bottom: 302px; */
    /* top: 50px; */
    bottom: 190px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    background-color:transparent;
    border-radius: 8px;
    color: black;
}
/* page66 */
/* footer */
.site-footer {
    background-color: #f8f8f8;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 250px;
    height: auto;
}

.footer-links h3,
.footer-contact h3 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #FF8C00;
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #FF8C00;
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.phone-group,
.email-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    color: #FF8C00;
    font-size: 1.25rem;
    margin-right: 1rem;
    width: 24px;
    display: flex;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #666;
    border-top: 1px solid #eee;
}

.footer-bottom a {
    color: #FF8C00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #FF6B00;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a {
        padding-left: 0;
    }

    .footer-links ul li a:hover {
        padding-left: 5px;
    }

    .phone-group,
    .email-group {
        justify-content: center;
    }

    .contact-icon {
        margin-right: 0.5rem;
    }

    .footer-bottom {
        margin-top: 1rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        max-width: 200px;
    }

    .footer-links h3,
    .footer-contact h3 {
        font-size: 1.1rem;
    }

    .footer-links ul li a,
    .phone-group,
    .email-group {
        font-size: 0.9rem;
    }
}

/* Enhanced mobile menu animation */
@media (max-width: 768px) {
    .option {
        animation: rotateIn 0.5s ease-out;
    }
    
    .option:nth-child(2) { animation-delay: 0.1s; }
    .option:nth-child(3) { animation-delay: 0.2s; }
    .option:nth-child(4) { animation-delay: 0.3s; }
    .option:nth-child(5) { animation-delay: 0.4s; }
    .option:nth-child(6) { animation-delay: 0.5s; }
}

/* Enhanced footer form effects */
footer form {
    position: relative;
    transition: all 0.4s ease;
}

footer form:hover {
    transform: translateY(-5px);
}

.input {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.input:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.input:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #B6A174;
    background: rgba(255, 255, 255, 0.2);
    animation: glow 2s infinite;
}

/* Form validation styles */
.input.valid {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.input.invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success message animation */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.success-message.show {
    transform: translateX(0);
    animation: bounce 1s;
}

/* Enhanced button effects */
footer button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #B6A174, #F6A21A);
    background-size: 200% 200%;
    animation: gradientFlow 3s infinite;
    transition: all 0.4s ease;
}

footer button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: gradientFlow 1.5s infinite;
}

footer button:active {
    transform: translateY(-1px) scale(0.98);
}

footer button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

footer button:hover::before {
    left: 100%;
}

/* Loading spinner for form submission */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #B6A174;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced section transitions */
section {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

section:hover {
    transform: translateY(-5px);
}

/* Enhanced image hover effects */
.imagesdiv img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.imagesdiv img:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.imagesdiv img::after {
    content: 'View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imagesdiv img:hover::after {
    opacity: 1;
}

/* Enhanced table hover effects */
.table div {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.table div:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.table div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.table div:hover::before {
    transform: translateX(100%);
}

/* Highlight section animation */
.highlight-section {
    animation: highlight 1s ease-out;
}

@keyframes highlight {
    0% { background-color: rgba(182, 161, 116, 0.1); }
    100% { background-color: transparent; }
}

/* Enhanced mobile animations */
@media (max-width: 768px) {
    .option {
        animation: slideIn 0.5s ease-out;
    }
    
    .option:nth-child(2) { animation-delay: 0.1s; }
    .option:nth-child(3) { animation-delay: 0.2s; }
    .option:nth-child(4) { animation-delay: 0.3s; }
    .option:nth-child(5) { animation-delay: 0.4s; }
    .option:nth-child(6) { animation-delay: 0.5s; }
    
    .input:focus {
        transform: translateY(-2px);
    }
    
    footer button {
        width: 100%;
        margin: 10px 0;
    }
}
/* WhatsApp Floating Button CSS */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* More page styles */
.more-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.more-content h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.more-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #FFA500, #FFD700);
}

.more-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.more-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.more-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.more-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #FFA500, #FFD700);
    border-radius: 2px;
}

.more-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    padding: 0 1rem;
    text-align: left;
}

.more-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #FFA500, #FFD700);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(255, 165, 0, 0.3);
}

.more-link:hover {
    background: linear-gradient(45deg, #FF8C00, #FFC000);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.4);
}

/* Restore original navigation styles */
.options {
    display: flex;
    gap: 20px;
}

.options .option {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.options .option:hover {
    color: #FFA500;
}

#contactBtn {
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 25px;
}

#contactBtn::before {
    content: '✉';
    font-size: 1.2rem;
}

#contactBtn:hover {
    background: linear-gradient(45deg, #FF7000, #FF9000);
}

/* Grid layout for larger screens */
@media (min-width: 768px) {
    .more-content {
        padding: 5rem 3rem;
    }

    .more-sections-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }

    .more-section {
        margin-bottom: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .more-content {
        padding: 3rem 1.5rem;
    }

    .more-content h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .more-section {
        padding: 1.5rem;
    }

    .more-section h2 {
        font-size: 1.25rem;
    }
}

/* Keep the contact popup styles */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.contact-popup.active {
    display: flex;
}

.contact-popup-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
    margin: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-popup-content h1 {
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-popup-content .footp {
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.close-popup {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background-color: #f0f0f0;
    color: #333;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group .input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group .input:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.1);
    outline: none;
}

.form-group textarea.input {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    color: white;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #FF8C00, #FFC000);
}

/* Stories Page Styles */
.stories-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stories-content h1 {
    text-align: center;
    color: #000;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.story-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 1.5rem;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-card h2 {
    color: #FF8C00;
    padding: 1rem;
    margin: 0;
    font-size: 1.5rem;
}

.story-card .volunteer-name {
    color: #FF8C00;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.story-card .story-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    font-size: 1rem;
}

.story-card .read-more {
    display: inline-block;
    margin: 1rem;
    color: #FF8C00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.story-card .read-more:hover {
    color: #FFA500;
}

/* Volunteer Form Styles */
.contact-popup#volunteerPopup .contact-popup-content {
    max-width: 600px;
}

.contact-popup#volunteerPopup select.input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: white;
    cursor: pointer;
}

.contact-popup#volunteerPopup select.input:focus {
    outline: none;
    border-color: #FF8C00;
}

.contact-popup#volunteerPopup select.input option {
    padding: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        margin: 1rem 0;
    }
}

/* Add padding-top to all main sections to prevent navbar overlap */
section:not(.hero-section) {
    padding-top: 100px;
    position: relative;
    z-index: 1;
}

.midsec {
    padding-top: 100px !important;
    margin-top: 0 !important;
}

/* Ensure all section headings have proper spacing */
.midhead1, .midhead2, .midhead3, .serhead, .serhead2, .serhead3 {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Donation Form Styles */
.donate-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.donate-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.donate-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.donate-content p {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    margin-bottom: 2rem;
}

.donation-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .donate-section {
        padding: 2rem 1rem;
    }
    
    .donate-content h1 {
        font-size: 2rem;
    }
    
    .donation-form {
        padding: 1.5rem;
    }
}

/* FAQ Section Styles */
.faq-content {
    max-width: 900px;
    margin: 120px auto 60px auto;
    padding: 0 16px;
}

.faq-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 32px;
    text-align: center;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 24px 28px;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.faq-item:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

.faq-item h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a3a4a;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
}

.faq-item p {
    font-size: 1rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    text-align: left;
    text-indent: 0;
}

@media (max-width: 600px) {
    .faq-content {
        margin: 100px auto 40px auto;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-content h1 {
        font-size: 1.8rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.95rem;
    }
}

/* Liked Images Section */
.liked-images-section {
    padding: 2rem 4rem;
    background-color: #f8f8f8;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #ff4b6e, #ff758c);
    border-radius: 2px;
}

.image-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.image-grid::-webkit-scrollbar {
    height: 6px;
}

.image-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.image-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.image-container {
    position: relative;
    min-width: 250px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-link {
    text-decoration: none;
    min-width: 60px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.next-button i {
    color: white;
    font-size: 1.5rem;
}

.next-button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.heart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.heart-overlay::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,75,110,0.8) 0%, rgba(255,75,110,0) 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.heart-overlay i {
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}

.heart-overlay.liked i {
    color: #ff4b6e;
    filter: drop-shadow(0 0 4px rgba(255,75,110,0.5));
    transform: scale(1.2);
}

.heart-overlay i.animate {
    animation: heartPulse 1.2s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.heart-overlay:hover {
    opacity: 1;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
        color: white;
    }
    20% {
        transform: scale(1.8);
        color: #ff4b6e;
    }
    40% {
        transform: scale(1.4);
        color: #ff758c;
    }
    60% {
        transform: scale(1.6);
        color: #ff8fa3;
    }
    80% {
        transform: scale(1.3);
        color: #ffb3c1;
    }
    100% {
        transform: scale(1.2);
        color: #ff4b6e;
    }
}

@keyframes heartPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.4);
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

/* Existing styles remain unchanged */

/* Statistics Section Styles */
.stats-section {
    padding: 4rem 0;
    background-color: #ffffff;
    margin: 2rem 0;
}

.stats-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.stats-image {
    flex: 0 0 45%;
    margin-left: -2rem;
}

.stats-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.stats-content {
    flex: 1;
    text-align: center;
    padding-right: 2rem;
    position: relative;
    background: url('/img/image 13.png') no-repeat center center;
    background-size: 80%;
    overflow: visible;
}

.stats-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.stats-title {
    color: #2C3E50;
    font-size: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    z-index: 2;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #FF8C00;
    border-radius: 2px;
}

.stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    max-width: 800px;
    padding: 0 20px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
}

.stat-item h3 {
    font-size: 4rem;
    color: #FF8C00;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: #2C3E50;
    font-weight: 600;
    margin-bottom: 0.75rem;
    max-width: 180px;
    line-height: 1.4;
}

.stat-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    max-width: none;
    text-align: center;
    margin: 0;
    padding: 0 15px;
}

.stats-divider {
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #FF8C00, transparent);
    margin: 0;
    align-self: center;
}

@media (max-width: 992px) {
    .stats-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .stats-image {
        max-width: 400px;
        margin-left: 0;
    }

    .stats-content {
        width: 100%;
        padding-right: 0;
    }

    .stats-container {
        gap: 2rem;
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    .stat-label, .stat-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 4rem 1.5rem;
    }

    .stats-title {
        font-size: 2.5rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 3rem;
        padding: 0;
    }

    .stats-divider {
        width: 200px;
        height: 2px;
        background: linear-gradient(to right, transparent, #FF8C00, transparent);
        margin: 1rem 0;
    }

    .stat-item {
        padding: 0;
    }

    .stat-item h3 {
        font-size: 3.5rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }

    .stat-desc {
        font-size: 0.9rem;
        max-width: 280px;
        padding: 0;
    }
}

.stats-donate-btn {
    margin-top: 3.5rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-block;
}

.stats-donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
    background: linear-gradient(45deg, #FFA500, #FF8C00);
    text-decoration: none;
}

/* Gallery Item Styles */
.imagesdiv {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px 15px;
    padding: 25px 15px;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: visible;
    border-radius: 10px;
}

/* Aura/Spotlight Effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 192, 203, 0.3) 35%,
        rgba(255, 182, 193, 0.2) 65%,
        rgba(255, 218, 224, 0.1) 85%,
        rgba(255, 228, 225, 0) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 1;
    filter: blur(12px);
}

.gallery-item:hover::before {
    opacity: 1;
    width: 130%;
    height: 130%;
}

/* Second Layer for Depth */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 108%;
    height: 108%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 40%,
        rgba(255, 240, 245, 0.15) 70%,
        rgba(255, 228, 225, 0) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 1;
    filter: blur(15px);
    mix-blend-mode: soft-light;
}

.gallery-item:hover::after {
    opacity: 1;
    width: 125%;
    height: 125%;
}

.imagesdiv .gallery-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin: 15px 5px;
    border-radius: 10px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.imagesdiv .gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

/* Smile Counter Styles */
.smile-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 6px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 3;
}

.smile-btn {
    background: #E6F4FF;
    border: 1.5px solid #7CC7FF;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #3DB2FF;
    padding: 3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    position: relative;
    overflow: hidden;
}

.smile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(61, 178, 255, 0.2), rgba(230, 244, 255, 0.2));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smile-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(61, 178, 255, 0.3);
    border-color: #3DB2FF;
}

.smile-btn:hover::before {
    opacity: 1;
}

.smile-btn:active {
    transform: scale(0.95);
}

.smile-btn i {
    position: relative;
    z-index: 1;
}

.smile-count {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 18px;
    text-align: center;
}

/* Tooltip */
.smile-btn::after {
    content: 'Click to smile!';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.smile-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Floating Animation */
.smile-animation {
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(1.5);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.floating-smile {
    position: absolute;
    font-size: 24px;
    color: #3DB2FF;
    animation: floatUp 1.5s ease-out forwards;
    left: 50%;
    bottom: 100%;
}

/* Subtle Pulse Animation */
@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 149, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 107, 149, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 149, 0);
    }
}

.gallery-item:hover .smile-btn {
    animation: subtlePulse 2s infinite;
}
