/* GOOGLE FONT */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* GLOBAL */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Poppins',sans-serif;
background:linear-gradient(135deg,#fff7e6,#ffe0b2);
color:#333;
}

/* HEADER */

header{
background:white;
display:flex;
align-items:center;
justify-content:space-between;
padding:15px 40px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
border-bottom:3px solid #ff9800;
}

/* LOGO */

.logo-img{
height:65px;
transition:.4s;
}

.logo-img:hover{
transform:scale(1.1) rotate(3deg);
}

/* NAVIGATION */

.top-nav{
display:flex;
gap:15px;
}

.top-nav a{
text-decoration:none;
color:#333;
font-weight:600;
padding:10px 20px;
border-radius:30px;
transition:0.4s;
}

.top-nav a:hover{
background:linear-gradient(45deg,#ff9800,#ff5722);
color:white;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
transform:translateY(-2px);
}

.top-nav a.active{
background:#ff9800;
color:white;
}

/* CONTAINER */

.container{
max-width:1100px;
margin:40px auto;
padding:40px;
background:white;
border-radius:20px;
box-shadow:0 10px 30px rgba(0,0,0,0.1);
animation:fadeUp .7s ease;
}

/* PAGE ANIMATION */

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(40px);
}
to{
opacity:1;
transform:translateY(0);
}
}

/* HEADINGS */

h1{
color:#d35400;
font-size:36px;
margin-bottom:10px;
}

h2{
color:#2e7d32;
margin-bottom:20px;
}

/* RUNNING TEXT */

.running-text-container{
background:#1b5e20;
color:white;
padding:10px;
overflow:hidden;
border-radius:8px;
margin-bottom:20px;
}

.running-text{
white-space:nowrap;
display:inline-block;
padding-left:100%;
animation:marquee 15s linear infinite;
}

@keyframes marquee{
0%{transform:translateX(0)}
100%{transform:translateX(-100%)}
}

/* SLIDER */

.slideshow-container{
margin-top:20px;
border-radius:15px;
overflow:hidden;
box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

.mySlides{
display:none;
height:420px;
}

.mySlides img{
width:100%;
height:100%;
object-fit:cover;
transition:1s;
}

.fade{
animation:fade 1.5s;
}

@keyframes fade{
from{opacity:.4}
to{opacity:1}
}

/* CARDS */
/* CARD GRID */

.card-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin-top:20px;
}

/* CARD */

.card{
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
transition:0.4s;
position:relative;
overflow:hidden;
}

/* CARD TOP LINE */

.card::before{
content:'';
position:absolute;
top:0;
left:0;
width:100%;
height:5px;
background:linear-gradient(45deg,#ff9800,#ff5722);
}

/* CARD IMAGE */

.card-img{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
margin-bottom:12px;
}

/* CARD HOVER */

.card:hover{
transform:translateY(-10px);
box-shadow:0 15px 30px rgba(0,0,0,0.2);
}
/* QUOTE BOX */

.quote-box{
background:linear-gradient(45deg,#e8f5e9,#c8e6c9);
border-left:6px solid #2e7d32;
padding:20px;
margin:25px 0;
border-radius:10px;
font-style:italic;
transition:.4s;
}

.quote-box:hover{
transform:scale(1.03);
}

/* GALLERY */

.gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:15px;
margin-top:20px;
}

.gallery-grid img{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
transition:.4s;
}

.gallery-grid img:hover{
transform:scale(1.1);
box-shadow:0 8px 20px rgba(0,0,0,0.3);
}

.gallery-grid video{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
transition:.4s;
}

.gallery-grid video:hover{
transform:scale(1.05);
box-shadow:0 8px 20px rgba(0,0,0,0.3);
}
/* BUTTONS */

button, .btn{

background:linear-gradient(45deg,#ff9800,#ff5722);
color:white;
padding:12px 25px;
border:none;
border-radius:30px;
font-weight:600;
cursor:pointer;
transition:.4s;
display:inline-block;
text-decoration:none;

}

button:hover, .btn:hover{

transform:translateY(-3px);
box-shadow:0 8px 20px rgba(0,0,0,0.3);

}

/* INPUTS */
.volunteer-form{
max-width:700px;   /* form becomes slightly bigger */
margin:22px auto;
background:white;
padding:30px;
border-radius:12px;
box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.volunteer-form input{
width:100%;
padding:18px;      /* bigger textbox height */
margin:14px 0;
border-radius:8px;
border:4px solid #eee;
font-size:16px;
}
input{
width:100%;
padding:12px;
margin:10px 0;
border-radius:8px;
border:2px solid #eee;
transition:.3s;
}


input:focus{
border-color:#ff9800;
outline:none;
box-shadow:0 0 6px rgba(255,152,0,0.5);
}

/* FOOTER */

footer{
background:#2c3e50;
color:white;
text-align:center;
padding:30px;
margin-top:40px;
border-top:5px solid #2e7d32;
}

/* MAP */

.map-frame{
width:100%;
height:350px;
margin-top:20px;
border-radius:10px;
overflow:hidden;
box-shadow:0 6px 15px rgba(0,0,0,0.3);
}

/* MOBILE */

@media(max-width:900px){

.container{
margin:20px;
padding:25px;
}

.mySlides{
height:250px;
}

.top-nav{
flex-wrap:wrap;
justify-content:center;
}

}
.card{
background:white;
padding:25px;
margin:20px 0;
border-radius:12px;
box-shadow:0 5px 15px rgba(0,0,0,0.15);
transition:0.4s;
position:relative;
overflow:hidden;
}

.card::before{
content:'';
position:absolute;
top:0;
left:0;
width:100%;
height:4px;
background:linear-gradient(90deg,#ff9800,#ff5722);
}

.card:hover{
transform:translateY(-10px) scale(1.02);
box-shadow:0 15px 30px rgba(0,0,0,0.25);
}
/* ABOUT TITLE */
.about-title{
text-align:center;
margin-bottom:25px;
font-size:32px;
font-weight:bold;
}

/* ABOUT CONTAINER */
.about-container{
max-width:900px;
margin:auto;
background:#ffffff;
padding:30px;
border-radius:10px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
line-height:1.9;
text-align:justify;
font-size:16px;
}

/* PARAGRAPH SPACE */
.about-container p{
margin-bottom:15px;
}

/* MOBILE RESPONSIVE */
@media (max-width:768px){

.about-container{
padding:20px;
font-size:15px;
}

.about-title{
font-size:26px;
}

}

/* ================= ABOUT FLIP CARD ================= */

.about-box{
max-width:900px;
margin:auto;
position:relative;
background:white;
padding:35px;
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
overflow:hidden;
cursor:pointer;
transition:0.6s;
}

/* FRONT COVER */

.about-box::before{
content:"Angel Devagi Old Age Home \A";
white-space:pre-line;
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(135deg,#ff9800,#ff5722);
color:white;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
font-size:24px;
font-weight:700;
border-radius:15px;
transition:0.6s;
z-index:2;
}

/* SHOW TEXT ON HOVER */

.about-box:hover::before{
opacity:0;
visibility:hidden;
}

/* TEXT */

.about-text{
font-size:17px;
line-height:1.9;
color:#444;
margin-bottom:15px;
text-align:justify;
}
.donate-btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff416c, #ff4b2b); /* attractive gradient */
    color: #fff;
    font-size: 20px; /* bigger text */
    font-weight: bold; /* bold */
    padding: 15px 35px; /* bigger button size */
    border-radius: 8px; /* rounded corners */
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* subtle shadow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.donate-btn:hover {
    transform: scale(1.05); /* slightly bigger on hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.4); /* stronger shadow */
}
/* DONATION FORM SMALL INPUT */

.bank-area{
max-width:850px;
margin:auto;
}

.bank-area input{
width:100%;
padding:20px;
margin:10px 0;
font-size:20px;
border-radius:8px;
border:4px solid #eee;
}

.bank-area button{
width:100%;
padding:14px;
font-size:20px;
}
.qr-area{
max-width:450px;
margin:auto;
text-align:center;
}



/* ================= ABOUT PAGE STYLING ================= */

/* ABOUT TITLE */

.about-title{
text-align:center;
font-size:36px;
font-weight:700;
margin-bottom:30px;
color:#d35400;
letter-spacing:1px;
animation:fadeDown 1s ease;
}

/* ABOUT BOX */
/* ABOUT FLIP CARD */

.about-flip-card{
background:transparent;
width:100%;
max-width:900px;
height:350px;
margin:auto;
perspective:1000px;
margin-bottom:40px;
}

.about-flip-inner{
position:relative;
width:100%;
height:100%;
text-align:center;
transition:transform 0.8s;
transform-style:preserve-3d;
}

.about-flip-card:hover .about-flip-inner{
transform:rotateY(180deg);
}

.about-flip-front, .about-flip-back{
position:absolute;
width:100%;
height:100%;
backface-visibility:hidden;
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,0.15);
padding:30px;
}

/* FRONT */

.about-flip-front{
background:linear-gradient(135deg,#ff9800,#ff5722);
color:white;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
font-size:22px;
font-weight:600;
}

/* BACK */

.about-flip-back{
background:white;
color:#333;
transform:rotateY(180deg);
overflow:auto;
text-align:justify;
}

/* TEXT */

.about-text{
font-size:16px;
line-height:1.8;
margin-bottom:15px;
}


/* MOBILE */

@media(max-width:768px){

.about-flip-card{
height:auto;
}

.about-flip-front,
.about-flip-back{
position:relative;
transform:none;
}

.about-flip-inner{
transform:none;
}

}
.about-box{
max-width:900px;
margin:auto;
padding:35px;
background:linear-gradient(135deg,#ffffff,#fff3e0);
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,0.12);
border-left:6px solid #ff9800;
transition:0.4s;
animation:fadeUp 1.2s ease;
}

.about-box:hover{
transform:translateY(-5px);
box-shadow:0 15px 35px rgba(0,0,0,0.18);
}

/* ABOUT TEXT */

.about-text{
font-size:17px;
line-height:1.9;
text-align:justify;
margin-bottom:18px;
color:#444;
}

/* ANIMATION */

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(40px);
}
to{
opacity:1;
transform:translateY(0);
}
}

@keyframes fadeDown{
from{
opacity:0;
transform:translateY(-40px);
}
to{
opacity:1;
transform:translateY(0);
}
}

/* MOBILE RESPONSIVE */

@media(max-width:768px){

.about-title{
font-size:28px;
}

.about-box{
padding:22px;
}

.about-text{
font-size:15px;
}

}
/* ================= ADMIN DASHBOARD ================= */

.admin-table{
width:100%;
border-collapse:collapse;
margin-top:15px;
font-size:15px;
}

.admin-table th{
background:#007bff;
color:white;
padding:12px;
text-align:left;
}

.admin-table td{
padding:10px;
border-bottom:1px solid #ddd;
}

.admin-table tr:nth-child(even){
background:#f2f2f2;
}

.admin-table tr:hover{
background:#e6f2ff;
}

.dashboard-title{
text-align:center;
margin-bottom:20px;
}

.section-title{
margin-top:30px;
color:#333;
}
/* ---------- MOBILE MENU ---------- */

.menu-toggle{
display:none;
font-size:30px;
cursor:pointer;
}

/* Mobile View */
@media(max-width:768px){

.menu-toggle{
display:block;
}

.top-nav{
position:absolute;
top:90px;
right:0;
background:white;
flex-direction:column;
width:220px;
padding:15px;
box-shadow:0 10px 20px rgba(0,0,0,0.2);
border-radius:10px;
display:none;
animation:fadeUp .4s;
}

.top-nav a{
padding:12px;
border-radius:8px;
}

.top-nav.show{
display:flex;
}

}
