
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:"Vazirmatn",Tahoma,sans-serif;
    direction:rtl;
    background:#fff;
    color:#000000;

}


.header{

    position:absolute;
    top:0;
    right:0;
    width:100%;
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 70px;
    z-index:10;
    background:rgb(0.0.0.0.0);
    backdrop-filter:blur(5px);

}



.logo{

    display:flex;
    align-items:center;
    gap:15px;
    color:rgb(255, 255, 255);

}


.logo img{

    width:60px;

}


.logo h3{

    font-size:18px;

}


.logo span{

    color:#2fff00;

}



.header nav{

    display:flex;
    gap:35px;

}



.header nav a{

    color:rgb(255, 255, 255);
    text-decoration:none;
    font-size:15px;
    transition:.3s;

}


.header nav a:hover{

    color:#54c95a;

}


/* HERO */

.hero{

    height:650px;
    background:
    linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.55)),
    url("images/hero1.jpg");

    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    padding-right:100px;

}



.hero-content{

    color:white;
    max-width:500px;

}


.hero-content h1{

    font-size:45px;
    margin-bottom:20px;

}


.hero-content p{

    line-height:2;
    font-size:17px;

}



.hero-content a{

    display:inline-block;
    margin-top:30px;
    background:#3ca54b;
    color:white;
    padding:12px 30px;
    border-radius:25px;
    text-decoration:none;

}


/* درباره */

.about{

    display:flex;
    align-items:center;
    gap:50px;
    padding:70px;

}



.about-image{

    width:45%;

}


.about-image img{

    width:100%;
    border-radius:10px;

}



.about-text{

    width:55%;

}


.about-text span{

    color:#198b3b;

}


.about-text h2{

    font-size:40px;
    margin:20px 0;

}


.about-text p{

    line-height:2;
    margin-bottom:15px;

}
/* ================= آمار ================= */

.stats{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    padding:80px;
    background:#0d4d2f;

}

.stat{

    background:white;
    border-radius:15px;
    text-align:center;
    padding:35px 20px;
    transition:.4s;
    box-shadow:0 10px 30px rgba(0,0,0,.1);

}

.stat:hover{

    transform:translateY(-10px);

}

.stat i{

    font-size:35px;
    color:#1b8d43;
    margin-bottom:15px;

}

.stat strong{

    display:block;
    font-size:35px;
    color:#0d4d2f;
    margin-bottom:10px;

}

.stat p{

    color:#555;

}


/* ================= عنوان ================= */

.section-title{

    text-align:center;
    font-size:38px;
    margin-bottom:50px;
    color:#0d4d2f;

}


/* ================= محصولات ================= */

.products {
    width: 100%;
    background: #ffffff;
    padding: 60px 0;
}



.product-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;

}

.product-card{

    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.4s;

}

.product-card:hover{

    transform:translateY(-10px);

}

.product-card img{

    width:100%;
    height:240px;
    object-fit:cover;

}

.product-card h3{

    margin:20px;
    color:#0d4d2f;

}

.product-card p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    margin: 0 20px 20px !important;
    padding: 0 !important;

    color: #555 !important;
    font-size: 15px !important;
    line-height: 2 !important;

    height: auto !important;
    max-height: none !important;

    overflow: visible !important;
}


.product-card a{

    display:inline-block;
    margin:0 20px 25px;
    background:#198b3b;
    color:white;
    padding:10px 25px;
    border-radius:25px;
    text-decoration:none;

}
/* ================= مقالات ================= */

.articles{

    padding:90px 70px;
    background:#ffffff;

}

.article-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;

}

.article-card{

    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 20px rgb(29, 76, 41);

}


.article-card:hover{

    transform:translateY(-10px);

}

.article-card img{

    width:100%;
    height:230px;
    object-fit:cover;

}

.article-content{

    padding:25px;

}

.article-content h3{

    margin-bottom:15px;
    color:#0d4d2f;

}

.article-content p {
    color: #000000;
    line-height: 1.9;
    margin-bottom: 20px;
}
.contact-section {
    background: #000000;
    padding: 50px 20px;
}
.contact-section {
    background: #1a3b20;
    padding: 50px 20px;
}

.contact-right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap:80px;
}


.contact-card {
    width: 250px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
}




                                     .contact-section h2 {
    text-align: center;
    width: 100%;
    color: white;
    margin-bottom: 40px;
}

/* موبایل */
@media(max-width:768px){
    .contact-right {
        flex-direction: row;
        overflow-x: auto;
    }

    .contact-card {
        flex-shrink: 0;
    }
}

/* تنظیم تصاویر برای همه صفحه‌ها */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* تصویر اصلی سایت */
.hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}


/* موبایل */
@media(max-width:768px){

    .hero img {
        height: 250px;
        object-fit: cover;
    }

}
/* تنظیم برای گوشی */
@media (max-width: 768px){

    body {
        overflow-x: hidden;
    }

    .contact-right {
        flex-direction: column;
        gap: 20px;
    }

    .contact-card {
        width: 90%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }
}
html, body {
    width: 100%;
    overflow-x: hidden;
}


* {
    box-sizing: border-box;
}


@media(max-width:768px){

    section {
        width: 100%;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }
}
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}
@media(max-width:768px){

    .stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .stats div {
        width: 45%;
        text-align: center;
    }

}
@media(max-width:768px){

    nav {
        width: 100%;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav li {
        width: 100%;
        text-align: center;
    }
}
@media(max-width:768px){

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        font-size: 14px;
    }

}
.container,
.products,
.articles {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}
@media (max-width:768px){

    .products-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .product-card{
        width: 90%;
        max-width: 350px;
    }

    .product-card img{
        width: 100%;
        height: auto;
    }
}

/* ===== سوابق و فعالیت‌ها ===== */

.activities{

    padding:90px 70px;
    background:#f8f8f8;

}

.activities-grid{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;

}

.activity-card{

    background:#fff;
    padding:35px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;

}

.activity-card:hover{

    transform:translateY(-8px);

}

.activity-card i{

    font-size:40px;
    color:#1b8d43;
    margin-bottom:20px;

}

.activity-card h3{

    margin-bottom:15px;
    color:#0b4d2c;

}

.activity-card p{

    color:#666;
    line-height:2;

}


.header {
    width: 100%;
    padding: 0 30px;
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.header nav a {
    font-size:16px;
    white-space: nowrap;
}








@media (max-width: 768px) {

    .products {
        width: 100%;
        padding: 40px 15px;
    }

    .product-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 25px !important;
    }

    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .product-card img {
        width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
    }

    .product-card h3 {
        font-size: 21px !important;
        margin: 18px 20px 10px !important;
    }

    .product-card p {
        font-size: 15px !important;
        line-height: 2 !important;
        margin: 0 20px 20px !important;
    }
}


@media (max-width: 768px) {
    .product-card {
        width: 88% !important;
        max-width:450px !important;
        margin: 0 auto !important;
    }
}


.product-card,
.activity-card,
.history-card {
    box-shadow:
        0 0 25px rgba(32, 82, 37, 0.5),
        0 0 60px rgba(42, 106, 47, 0.25) !important;
}


.footer {
    text-align: center !important;
}


.header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: nowrap;
    white-space: nowrap;
}



@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        width: 90%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.5;
    }

    .hero p {
        font-size: 14px;
        line-height: 2;
    }

    .hero img {
        max-width: 100%;
        height: auto;
    }
}

.header {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
}


/* دکمه منو - روی گوشی و لپ‌تاپ */

.mobile-menu-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;

    background: rgba(255,255,255,0.15);

    color: white;
    font-size: 25px;

    cursor: pointer;

    
}


/* منو */

.mobile-menu {
    position: fixed;

    top: 0;
    right: -330px;


    width: 280px;
    height: 100vh;

    padding: 80px 20px 30px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    background: rgba(20,40,25,0.97);

    transition: right 0.3s ease;

    z-index: 2000;
}


/* فقط وقتی open دارد باز شود */

.mobile-menu.open {
    right: auto;
    left: 0;
}


/* لینک‌ها */

.mobile-menu a {
    display: block;

    padding: 15px 10px;

    color: white;
    text-decoration: none;

    border-bottom: 1px solid rgba(255,255,255,0.15);
}


/* دکمه بستن */

.close-menu {
    position: absolute;

    top: 20px;
    left: 20px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.15);

    color: white;
    font-size: 28px;

    cursor: pointer;
}






@media (max-width: 768px) {
    .mobile-menu-btn {
        margin: 0 !important;
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 22px !important;
    }
}




@media (max-width: 768px) {
    .logo img {
        width: 58px !important;
        height: auto !important;
    }

    .logo {
        font-size: 18px !important;
    }
}



@media (max-width: 768px) {
    .logo img {
        width: 65px !important;
    }

    .logo {
        font-size: 20px !important;
    }
}





@media (max-width: 768px) {
    .activities-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .activity-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}



@media (max-width: 768px) {

    .about {
        display: flex !important;
        flex-direction: column !important;
    }

    .about-image {
        order: -1 !important;
        width: 100% !important;
    }

    .about-content {
        order: 2 !important;
        width: 100% !important;
    }

    .about-image img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 15px !important;
    }
}





@media (max-width: 768px) {

    .contact-right {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .contact-card {
        width: 100%;
        min-height: 0 !important;
        height: auto !important;
        box-sizing: border-box;
        padding: 18px !important;
    }

    .contact-card p {
        line-height: 1.8;
        margin: 0;
    }

    /* کارت آدرس */
    .contact-card:last-child p {
        font-size: 14px;
        line-height: 1.9;
    }
}




@media (min-width: 769px) {

    .contact-right {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
        width: 100%;
        align-items: stretch;
    }

    .contact-card {
        width: 100%;
        height: 150px;
        min-height: 150px;
        max-height: 150px;
        box-sizing: border-box;
        padding: 18px;
        overflow: hidden;
    }

    .contact-card p {
        margin: 0;
        line-height: 1.8;
        overflow-wrap: break-word;
    }

    .contact-card:last-child p {
        font-size: 14px;
        line-height: 1.8;
    }
}





@media (min-width: 769px) {

    .contact-right {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
        width: 100%;
        align-items: stretch;
    }

    .contact-card {
        width: 100%;
        height: 150px;
        min-height: 150px;
        max-height: 150px;
        box-sizing: border-box;
        padding: 18px;
        overflow: hidden;
    }

    /* عنوان کارت */
    .contact-card h3 {
        font-size: 22px;
        line-height: 1.4;
        margin: 0 0 10px;
    }

    /* متن کارت */
    .contact-card p {
        font-size: 18px;
        line-height: 1.8;
        margin: 0;
        overflow-wrap: break-word;
    }

    /* متن آدرس */
    .contact-card:last-child p {
        font-size: 17px;
        line-height: 1.8;
    }
}


