
/*
Theme Name: دست مهربان
Theme URI: https://dastemehraban.ir
Author: دست مهربان
Author URI: https://dastemehraban.ir
Description: قالب اختصاصی موسسه خیریه دست مهربان
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dastemehraban
Tags: charity, rtl, persian, responsive
*/

@import url('https://fonts.bunny.net/css?family=vazirmatn:400,600,800');

:root{
--yellow:#ffd35a;
--orange:#f8b647;
--teal:#00bfa6;
--dark:#222;
--light:#fff;
}

/* پایه */
*{margin:0;padding:0;box-sizing:border-box;font-family:"Vazirmatn",sans-serif}
body{overflow-x:hidden;background:#fff;color:var(--dark);scroll-behavior:smooth;position:relative;padding-top:80px;}
a{text-decoration:none;color:inherit}

/* هدر بالا */
.header-top{
position:fixed;
top:0;
left:0;
width:100%;
display:grid;
grid-template-columns:auto 1fr auto;
align-items:center;
padding:15px 20px;
z-index:1002;
background:#fff;
box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.menu-icon{
justify-self:start;
font-size:1.8rem;
color:var(--teal);
cursor:pointer;
}

.logo{
justify-self:center;
display:flex;
align-items:center;
gap:8px;
font-weight:800;
color:var(--teal);
font-size:0.6rem;
}

.logo img{
width:80px!important;
height:auto;
}
justify-self:center;

.lang-switch{
justify-self:end;
display:flex;
align-items:center;
border-radius:30px;
overflow:hidden;
box-shadow:0 0 5px rgba(0,0,0,0.1);
}

.lang-switch span{padding:5px 12px;cursor:pointer;font-size:0.9rem;font-weight:600;transition:0.4s;}
.lang-switch span.active{background:var(--teal);color:#fff;border-radius:30px;}

/* منو */
.menu{
position:fixed;
top:0;
right:-100%;
width:70%;
height:100vh;
background:rgba(255,255,255,0.97);
backdrop-filter:blur(8px);
transition:0.5s;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
box-shadow:-5px 0 20px rgba(0,0,0,0.2);
z-index:1000;
border-radius:0 0 0 20px;
overflow:hidden;
}

.menu-heart{
position:absolute;
font-size:2.5rem;
opacity:0.3;
animation:floatHeart 8s infinite ease-in-out;
z-index:0;
}

@keyframes floatHeart{
0%,100%{transform:translateY(0) rotate(0deg);}
50%{transform:translateY(-30px) rotate(10deg);}
}

.menu a{
font-size:1.3rem;
color:var(--dark);
margin:15px 0;
font-weight:600;
transition:0.3s;
position:relative;
z-index:2;
}
.menu a:hover{color:var(--teal);}
.menu.open{right:0;}

/* هدر حرفه‌ای */
.hero{
position:relative;
width:100%;
height:70vh;
overflow:hidden;
background:linear-gradient(135deg,#d0f0fd,#a0e4ff);
display:flex;
align-items:center;
justify-content:center;
}

.particle{
position:absolute;
border-radius:50%;
opacity:0.5;
pointer-events:none;
animation:rise 15s infinite ease-in-out;
}

@keyframes rise{
0%{transform:translateY(0) scale(1);}
50%{transform:translateY(-80vh) scale(1.3);}
100%{transform:translateY(-160vh) scale(1);}
}

.slides{
display:flex;
width:300%;
height:100%;
animation:slide 15s infinite;
position:absolute;
top:0;
left:0;
}

.slide{
width:100%;
height:100%;
background-size:cover;
background-position:center;
filter:brightness(0.75);
border-radius:10px;
}

.slide1{background-image:url('https://images.unsplash.com/photo-1604998100472-5b22697364e7?auto=format&fit=crop&w=1600&q=80');}
.slide2{background-image:url('https://images.unsplash.com/photo-1598928506312-105b155dcaf0?auto=format&fit=crop&w=1600&q=80');}
.slide3{background-image:url('https://images.unsplash.com/photo-1598928506344-df05187a31f0?auto=format&w=1600&q=80');}

@keyframes slide{
0%,100%{transform:translateX(0);}
33%{transform:translateX(-100%);}
66%{transform:translateX(-200%);}
}

.hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
color:#fff;
z-index:2;
animation:fadeIn 2s;
}

.hero-overlay h1{
font-size:2rem;
margin-bottom:10px;
text-shadow:0 0 15px rgba(0,0,0,0.5);
animation:textRise 2s ease forwards;
}

.hero-overlay p{
font-size:1rem;
max-width:500px;
line-height:1.6;
text-shadow:0 0 10px rgba(0,0,0,0.4);
animation:textRise 2.5s ease forwards;
padding:0 20px;
}

.hero-overlay button{
margin-top:20px;
background:var(--orange);
color:white;
border:none;
padding:10px 25px;
border-radius:30px;
cursor:pointer;
transition:0.3s;
}

.hero-overlay button:hover{
background:var(--teal);
transform:scale(1.05);
}

@keyframes textRise{
0%{opacity:0;transform:translateY(30px);}
100%{opacity:1;transform:translateY(0);}
}

@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}

/* گالری مرد و بچه در پایین هدر */
.hero-gallery{
position:absolute;
bottom:10px;
left:0;
width:100%;
display:flex;
overflow-x:auto;
gap:15px;
padding:0 20px;
scroll-snap-type:x mandatory;
z-index:3;
}

.hero-gallery img{
height:120px;
border-radius:15px;
flex:0 0 auto;
scroll-snap-align:center;
transition:0.3s;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
object-fit:cover;
}

.hero-gallery img:hover{
transform:scale(1.05);
filter:brightness(1.05);
}

/* هایلایت */
.highlights{
display:flex;
overflow-x:auto;
padding:50px 10px;
background:#f8fcfc;
gap:25px;
position:relative;
justify-content:center;
}

.highlight{
min-width:120px;
height:120px;
background:var(--teal);
border-radius:50%;
flex-shrink:0;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
box-shadow:0 0 15px rgba(0,0,0,0.1);
color:white;
position:relative;
animation:float 4s ease-in-out infinite;
}

.highlight i{font-size:1.6rem;margin-bottom:5px;}
.highlight span{font-size:0.9rem;}

.highlight::after{
content:"";
position:absolute;
top:-4px;
left:-4px;
right:-4px;
bottom:-4px;
border-radius:50%;
border:3px solid rgba(255,255,255,0.5);
animation:spin 3s linear infinite;
}

@keyframes spin{from{transform:rotate(0);}to{transform:rotate(360deg);}}
@keyframes float{0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);}}

.highlight:hover{background:var(--orange);}

/* باکس احادیث اسکرولی */
.inspire-boxes{
display:flex;
overflow-x:auto;
padding:40px 10px;
background:#e0f7fa;
gap:20px;
scroll-snap-type:x mandatory;
}

.inspire-boxes .box{
flex:0 0 auto;
scroll-snap-align:center;
background:rgba(0,191,166,0.1);
border-left:5px solid var(--teal);
padding:20px 25px;
border-radius:15px;
max-width:250px;
text-align:center;
font-weight:600;
font-size:1rem;
color:#222;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
transition:0.3s;
}

.inspire-boxes .box:hover{
transform:translateY(-5px);
box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

/* بخش نظرات */
.testimonials{padding:60px 10px;background:#fff;}
.testimonials h2{color:var(--teal);margin-bottom:25px;text-align:center;font-size:1.8rem;}
.testimonials-scroll{display:flex;overflow-x:auto;gap:20px;scroll-snap-type:x mandatory;padding:10px 0;}

.testimonial-card{
flex:0 0 auto;
width:300px;
background:linear-gradient(135deg,#f8fcfc,#e0f7fa);
border-radius:20px;
padding:25px;
scroll-snap-align:center;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
transition:0.3s;
position:relative;
}

.testimonial-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.testimonial-card::before{
content:'"';
position:absolute;
top:10px;
right:20px;
font-size:4rem;
color:var(--teal);
opacity:0.2;
font-family:serif;
}

.testimonial-header{display:flex;align-items:center;gap:15px;margin-bottom:15px;}
.testimonial-avatar{width:60px;height:60px;border-radius:50%;object-fit:cover;border:3px solid var(--teal);}
.testimonial-info h4{color:var(--teal);margin-bottom:5px;font-size:1rem;}
.testimonial-info p{font-size:0.85rem;color:#666;}
.testimonial-text{font-size:0.95rem;line-height:1.6;color:#333;font-style:italic;}
.testimonial-stars{color:var(--orange);margin-top:10px;}

/* تایم‌لاین */
.timeline{padding:60px 10px;background:#f8fcfc;}
.timeline h2{color:var(--teal);margin-bottom:40px;text-align:center;font-size:1.8rem;}
.timeline-container{max-width:900px;margin:0 auto;position:relative;padding:20px 0;}
.timeline-line{position:absolute;right:50%;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--teal),var(--orange));transform:translateX(50%);}

.timeline-item{display:flex;margin-bottom:40px;position:relative;}
.timeline-item:nth-child(odd){flex-direction:row-reverse;}
.timeline-content{width:45%;background:white;padding:20px;border-radius:15px;box-shadow:0 5px 15px rgba(0,0,0,0.1);transition:0.3s;}
.timeline-content:hover{transform:scale(1.03);box-shadow:0 8px 20px rgba(0,0,0,0.2);}
.timeline-dot{position:absolute;right:50%;transform:translateX(50%);width:20px;height:20px;background:var(--teal);border-radius:50%;border:4px solid white;box-shadow:0 0 10px rgba(0,0,0,0.2);top:10px;z-index:1;}
.timeline-content h3{color:var(--teal);margin-bottom:10px;font-size:1.1rem;}
.timeline-date{color:var(--orange);font-weight:600;margin-bottom:8px;font-size:0.9rem;}
.timeline-content p{font-size:0.9rem;line-height:1.5;color:#555;}

/* گواهینامه‌ها */
.certificates{padding:60px 10px;background:#fff;}
.certificates h2{color:var(--teal);margin-bottom:25px;text-align:center;font-size:1.8rem;}
.certificates-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:30px;max-width:1000px;margin:0 auto;align-items:center;}

.certificate-item{text-align:center;padding:20px;background:#f8fcfc;border-radius:15px;transition:0.3s;box-shadow:0 3px 10px rgba(0,0,0,0.05);cursor:pointer;}
.certificate-item:hover{transform:translateY(-5px);box-shadow:0 8px 20px rgba(0,0,0,0.15);background:linear-gradient(135deg,#e0f7fa,#f8fcfc);}
.certificate-icon{font-size:3rem;color:var(--teal);margin-bottom:10px;transition:0.3s;}
.certificate-item:hover .certificate-icon{transform:scale(1.1);color:var(--orange);}
.certificate-item h4{color:var(--dark);font-size:0.9rem;margin-top:10px;line-height:1.4;}

/* بخش پروژه‌ها */
.blog-section{padding:60px 10px;background:#e0f7fa;}
.blog-section h2{color:var(--teal);margin-bottom:25px;text-align:center;font-size:1.8rem;}
.blog-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;max-width:1200px;margin:0 auto;}

.blog-card{background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 5px 15px rgba(0,0,0,0.1);transition:0.3s;}
.blog-card img{width:100%;height:180px;object-fit:cover;transition:0.3s;}
.blog-card:hover img{transform:scale(1.1);}
.blog-card .content{padding:20px;}
.blog-card .content h3{color:var(--teal);margin-bottom:10px;font-size:1.1rem;}
.blog-card .content p{font-size:0.9rem;line-height:1.6;color:#555;}
.blog-card:hover{transform:translateY(-5px);box-shadow:0 10px 25px rgba(0,0,0,0.2);}

/* سوالات متداول */
.faq{padding:60px 10px;background:#fff;}
.faq h2{color:var(--teal);margin-bottom:30px;text-align:center;font-size:1.8rem;}
.faq-container{max-width:800px;margin:0 auto;}
.faq-item{background:#f8fcfc;border-radius:10px;margin-bottom:15px;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,0.05);border:1px solid #e0f7fa;}
.faq-question{padding:20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:600;color:var(--dark);transition:0.3s;}
.faq-question:hover{background:#e0f7fa;color:var(--teal);}
.faq-question i{transition:0.3s;color:var(--teal);font-size:1.2rem;}
.faq-question.active{background:#e0f7fa;color:var(--teal);}
.faq-question.active i{transform:rotate(180deg);}
.faq-answer{max-height:0;overflow:hidden;transition:max-height 0.4s ease;}
.faq-answer-content{padding:0 20px 20px 20px;color:#555;line-height:1.7;font-size:0.95rem;}

/* گالری */
.gallery{background:#f8fcfc;padding:60px 10px;text-align:center;}
.gallery h2{color:var(--teal);margin-bottom:25px;font-size:1.8rem;}
.gallery-scroll{display:flex;overflow-x:auto;gap:20px;scroll-snap-type:x mandatory;padding:10px 0;}
.gallery-scroll img{width:280px;height:200px;border-radius:20px;object-fit:cover;scroll-snap-align:center;transition:0.3s;box-shadow:0 5px 15px rgba(0,0,0,0.1);}
.gallery-scroll img:hover{transform:scale(1.05);box-shadow:0 8px 20px rgba(0,0,0,0.2);}

/* فوتر */
footer{background:linear-gradient(135deg,#00bfa688,#f8b64788);color:white;text-align:center;padding:50px 20px;position:relative;overflow:hidden;}
footer::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:url('https://www.transparenttextures.com/patterns/sandpaper.png');opacity:0.2;z-index:1;}

.footer-heart{position:absolute;font-size:3rem;color:rgba(255,255,255,0.2);animation:floatFooterHeart 10s infinite ease-in-out;z-index:0;}

@keyframes floatFooterHeart{
0%{transform:translateY(0) rotate(0deg) scale(1);}
50%{transform:translateY(-20px) rotate(15deg) scale(1.2);}
100%{transform:translateY(0) rotate(0deg) scale(1);}
}

footer h3{font-size:1.5rem;margin-bottom:15px;position:relative;z-index:2;}
footer p{font-size:0.9rem;opacity:0.9;max-width:600px;margin:auto;position:relative;z-index:2;line-height:1.6;}
.social{display:flex;justify-content:center;gap:20px;margin-top:20px;position:relative;z-index:2;}
.social a{color:white;font-size:1.4rem;transition:0.3s;width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,0.1);}
.social a:hover{color:var(--yellow);background:rgba(255,255,255,0.2);transform:scale(1.1);}

/* دکمه‌های شناور */
.floating-buttons{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:row;gap:15px;z-index:1005;}
#backToTop{background:var(--teal);color:#fff;padding:12px 14px;border-radius:50%;font-size:1.5rem;cursor:pointer;box-shadow:0 5px 15px rgba(0,0,0,0.3);transition:0.3s;display:none;}
#backToTop:hover{background:var(--orange);transform:scale(1.15);box-shadow:0 8px 20px rgba(0,0,0,0.4);}
#whatsappSupport{background:#25D366;color:#fff;padding:15px 18px;border-radius:50%;font-size:1.6rem;cursor:pointer;box-shadow:0 5px 15px rgba(0,0,0,0.3);transition:0.3s;display:flex;align-items:center;justify-content:center;}
#whatsappSupport:hover{transform:scale(1.15);box-shadow:0 8px 20px rgba(37,211,102,0.5);}

/* موبایل */
@media(max-width:768px){
body{padding-top:70px;}
.hero{height:55vh;}
.hero-overlay h1{font-size:1.4rem;}
.hero-overlay p{font-size:0.85rem;max-width:90%;}
.hero-overlay button{padding:10px 25px;font-size:0.9rem;}
.hero-gallery img{height:90px;}
.highlight{min-width:100px;height:100px;}
.highlight i{font-size:1.3rem;}
.highlight span{font-size:0.8rem;}
.gallery-scroll img{width:220px;height:160px;}
.header-top{padding:12px 15px;}
.logo{font-size:1rem;}
.logo img{width:35px!important;}
.inspire-boxes{gap:15px;padding:30px 10px;}
.blog-cards{grid-template-columns:1fr;gap:15px;}
.floating-buttons{right:15px;bottom:15px;gap:12px;flex-direction:column;}
#backToTop{padding:10px 12px;font-size:1.3rem;}
#whatsappSupport{padding:12px 15px;font-size:1.4rem;}
.timeline-line{right:20px;transform:none;}
.timeline-item{flex-direction:column!important;margin-bottom:30px;}
.timeline-content{width:calc(100% - 50px);margin-right:50px;}
.timeline-dot{right:11px;transform:none;}
.testimonial-card{width:270px;}
.certificates-grid{grid-template-columns:repeat(2,1fr);gap:15px;}
.faq-question{font-size:0.9rem;padding:15px;}
.faq-answer-content{font-size:0.85rem;}
}

@media(min-width:769px){
.blog-cards{grid-template-columns:repeat(3,1fr);}
}