/* تنظیمات پایه */


@font-face {
    font-family: 'IRANSans-Bold-web';
    src: url('./fonts/IRANSans-Bold-web.ttf') format('truetype');
}
@font-face {
	font-family: 'Yekan';
	src: url( './fonts/Yekan.eot' );
	src: url( './fonts/Yekan.eot?#iefix' ) format( 'embedded-opentype' ),
		url( './fonts/Yekan.woff2' ) format( 'woff2' ),
		url( './fonts/Yekan.woff' ) format( 'woff' ),
		url( './fonts/Yekan.ttf' ) format( 'truetype' ),
		url( './fonts/Yekan.svg#Yekan' ) format( 'svg' );
	font-weight: normal;
	font-style: normal;
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('./fonts/IRANSans-Medium-web.eot');
    src: url('./fonts/IRANSans-Medium-web.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
         url('./fonts/IRANSans-Medium-web.woff2') format('woff2'),  /* Chrome36+, Opera24+*/
         url('./fonts/IRANSans-Medium-web.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
         url('./fonts/IRANSans-Medium-web.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('./fonts/IRANSans-Light-web.eot');
    src: url('./fonts/IRANSans-Light-web.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
         url('./fonts/IRANSans-Light-web.woff2') format('woff2'),  /* Chrome36+, Opera24+*/
         url('./fonts/IRANSans-Light-web.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
         url('./fonts/IRANSans-Light-web.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('./fonts/IRANSans-UltraLight-web.eot');
    src: url('./fonts/IRANSans-UltraLight-web.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
         url('./fonts/IRANSans-UltraLight-web.woff2') format('woff2'),  /* Chrome36+, Opera24+*/
         url('./fonts/IRANSans-UltraLight-web.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
         url('./fonts/IRANSans-UltraLight-web.ttf') format('truetype');
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('./fonts/IRANSans-web.eot');
    src: url('./fonts/IRANSans-web.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
         url('./fonts/IRANSans-web.woff2') format('woff2'),  /* Chrome36+, Opera24+*/
         url('./fonts/IRANSans-web.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
         url('./fonts/IRANSans-web.ttf') format('truetype');
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4169E1;
    --secondary-color: #6C63FF;
    --text-color: #38393E;
    --light-bg: #F8F8F8;
}

body {
    font-family: 'IRANSans', tahoma, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANSans', tahoma, sans-serif;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر و منوی اصلی - گرفته شده از فایل index.html */
.header {
    background-color: #ffffff; /* سفید */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #2e3092; /* آبی */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #CC0000; /* قرمز تیره‌تر برای hover */
}

/* منوی موبایل */
.mobile-header-right {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2e3092;
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-phone img {
    width: 20px;
    height: 20px;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FF0000; /* قرمز استاندارد وب */
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 818px) {
    .main-title {
        display: none;
    }
    
    .mobile-header-right {
        display: flex;
    }
    
    .mobile-menu-button {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

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

    .nav-menu li {
        margin: 0.3rem 0;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }

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

    .nav-menu a {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        display: block;
        width: 100%;
        color: #2e3092;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .nav-menu a:hover {
        color: #ffffff;
        background-color: #2e3092;
        padding-right: 1.5rem;
        transform: translateX(-5px);
    }

    .mobile-menu-button.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

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

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

/* اسلایدر اصلی */
.main-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1100px;
    padding: 0 40px;
    flex-direction: row-reverse;
    min-height: 100%;
    box-sizing: border-box;
}

.slide-text {
    flex: 1;
    text-align: right;
    color: white;
}

.slide-subtitle {
    display: block;
    font-size: 1.2rem;
    color: #FFD700;
    margin-bottom: 1rem;
    font-weight: 500;
}

.slide-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.slide-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.slide-btn {
    display: inline-block;
    background-color: #FF6B6B;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.slide-btn:hover {
    background-color: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.slide-image {
    flex: 1;
    text-align: center;
}

.slide-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* دکمه‌های کنترل */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* نقاط نشانگر */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ریسپانسیو */
@media (max-width: 992px) and (min-width: 769px) {
    .main-slider {
        height: 500px;
    }
    
    .slide-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }
    
    .slide-text {
        text-align: center;
        order: 1;
        flex: none;
        width: 100%;
    }
    
    .slide-image {
        order: 2;
        flex: none;
        width: 100%;
    }
    
    .slide-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .slide-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .slide-image img {
        max-height: 250px;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .slide-text h1 {
        font-size: 2rem;
    }
    
    .slide-text p {
        font-size: 0.95rem;
    }
    
    .slide-image img {
        max-height: 220px;
    }
}

@media (max-width: 850px) and (min-width: 769px) {
    .slide-text h1 {
        font-size: 1.8rem;
    }
    
    .slide-text p {
        font-size: 0.9rem;
    }
    
    .slide-image img {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .main-slider {
        height: 450px;
    }
    
    .slide-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }
    
    .slide-text {
        text-align: center;
        order: 1;
    }
    
    .slide-image {
        order: 2;
    }
    
    .slide-text h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .slide-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-image img {
        max-height: 200px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .main-slider {
        height: 400px;
    }
    
    .slide-content {
        padding: 15px;
        gap: 15px;
    }
    
    .slide-text h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-text p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .slide-image img {
        max-height: 150px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* استایل برای هدر بخش‌ها */
.section-header {
    text-align: right;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #FF7C75;
}

.section-subtitle {
    font-family: 'Yekan', sans-serif;
    font-size: 2.5rem;
    font-weight: normal;
    color: #2E3192;
}

/* استایل برای خط جداکننده */
.section-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    width: 100%;
}

/* بخش خدمات */
.services {
    padding: 40px 0;
}

.services .container {
    max-width: 1195px;
    width: 98%;
    margin: 0 auto;
    background-color: #F9FAFC;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 320px);
    gap: 20px;
    justify-content: center;
    justify-items: center;
}

.service-image {
    width: 320px;
    height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.services-grid a {
    display: block;
    text-decoration: none;
}

.service-image:hover {
    transform: scale(1.05);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(3, 320px);
        justify-content: center;
        justify-items: center;
    }
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 320px);
        justify-content: center;
        justify-items: center;
    }
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 320px;
        justify-content: center;
        justify-items: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 320px;
        gap: 15px;
        padding: 0 10px;
        justify-content: center;
        justify-items: center;
    }
    
    .service-image {
        height: 400px;
        width: 320px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 360px) {
    .service-image {
        height: 200px;
        max-width: 350px;
    }
}


.service-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* استایل برای بخش توضیحات و دکمه */
.about-description {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.description-text {
    flex: 2;
    text-align: right;
}

.description-text p {
    line-height: 1.8;
    color: #65676D;
}

.description-button {
    flex: 1;
    text-align: left;
}

.btn-more {
    display: inline-block;
    background-color: #4785FF;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(71, 133, 255, 0.3);
}

.btn-more:hover {
    background-color: #3067cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 133, 255, 0.5);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .about-description {
        flex-direction: column;
        gap: 20px;
    }
    
    .description-button {
        text-align: center;
        width: 100%;
    }
}

/* بخش مدارس */
.schools {
    padding: 0;
    background-color: transparent;
}

.schools-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row-reverse;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0;
}

.schools-images {
    flex: 1;
    position: relative;
}

.bacheh-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: transparent;
}

.bacheha-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    background-color: transparent;
    border: none;
}

.bacheha-image:hover {
    transform: scale(1.03);
}

/* ریسپانسیو برای تصویر */
@media (max-width: 768px) {
    .bacheh-container {
        margin: 20px 0;
    }
}

/* حذف استایل‌های قبلی گرید که دیگر نیاز نیستند */
.grid-table, .grid-cell, .cell-1, .cell-2, .cell-3, .cell-4 {
    display: none;
}

.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: absolute;
}

.circle.purple {
    background-color: var(--secondary-color);
    top: -30px;
    right: -30px;
}

.circle.coral {
    background-color: coral;
    bottom: -30px;
    left: -30px;
}

.image-grid {
    position: relative;
    z-index: 1;
}

.image-grid img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin: 10px;
}

.schools-info {
    flex: 1;
    text-align: right;
}

.schools-info h2 {
    text-align: right;
    color: #4785FF;
    font-size: 32px;
}

/* استایل برای تغییر رنگ کلمه "پسرانه" در عنوان */
.schools-info h2 .highlight-word {
    color: #2E3192;
}

/* استایل برای آموزش محبت آمیز */
.love-education {
    font-size: 18px;
    color: #FFA4D5;
    margin: 15px 0;
    text-align: right;
    font-weight: bold;
}

.schools-info .subtitle {
    font-size: 1rem;
    margin: 1rem 0 1.5rem;
    display: block;
    text-align: right;
    color: #38393E;
}

.features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: flex-start;
    color: #38393E;
}

.circle-icon {
    color: #4785FF;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item span {
    color: #38393E;
}

.btn-primary {
    display: inline-block;
    background-color: #4785FF;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(71, 133, 255, 0.3);
}

.btn-primary:hover {
    background-color: #3067cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 133, 255, 0.5);
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .schools-content {
        flex-direction: column;
    }
    
    .schools-images, .schools-info {
        width: 100%;
    }
}

/* استایل برای لوگوهای دبستان و دبیرستان */
.school-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.school-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.school-logos img:hover {
    transform: scale(1.1);
}

/* فوتر */
.footer {
    background-color: #F1F1F1;
    padding: 60px 0 30px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    align-items: stretch;
}

.footer-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* حداقل ارتفاع برای همه باکس‌ها */
    position: relative;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: right;
}

.contact-info {
    margin-bottom: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-row {
    margin-bottom: 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.contact-value {
    display: block;
    line-height: 1.5;
}

.contact-item {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    text-align: right;
    justify-content: flex-start;
    align-items: flex-start;
}

/* استایل برای آیتم تلفن که باید به پایین بچسبد */
.contact-item.phone-item {
    margin-top: auto;
}

.contact-title {
    font-weight: bold;
    margin-left: 5px;
    min-width: 45px;
    align-self: flex-start;
    margin-top: 0;
}

.contact-text {
    flex: 1;
    align-self: flex-start;
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-section p img {
    width: 20px;
    height: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateX(-5px);
    color: var(--primary-color);
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    font-size: 18px;
    text-align: center;
    line-height: 24px;
    margin-left: 10px;
}

.instagram-icon {
    color: #E4405F;
}

.telegram-icon {
    color: #0088CC;
}

.whatsapp-icon {
    color: #25D366;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* استایل منوی همبرگر */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-right: 15px; /* فاصله از لوگو */
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* انیمیشن آیکون همبرگر */
.bar.animate:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.bar.animate:nth-child(2) {
    opacity: 0;
}

.bar.animate:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* جلوگیری از اسکرول صفحه وقتی منو باز است */
body.menu-open {
    overflow: hidden;
}

/* === منوی موبایل - این بخش را در انتهای CSS قرار دهید === */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

@media (max-width: 818px) {
    .header-content {
        position: relative;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        padding: 80px 20px 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav a {
        color: var(--text-color);
        font-size: 1.1rem;
    }
}

/* بخش معرفی و اسلوگان */
.about-intro {
    padding: 60px 0;
    text-align: right;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.about-intro-content {
    max-width: 1190px;
    margin: 0 auto;
    width: 98%;
}

.about-title h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FF7C75;
}

.about-slogan h3 {
    font-size: 1.4rem;
    font-weight: normal;
    color: #2E3192;
    opacity: 1;
}

@media (max-width: 768px) {
    .about-title h2 {
        font-size: 1.8rem;
    }
    
    .about-slogan h3 {
        font-size: 1.2rem;
    }
}

/* حذف استایل‌های قبلی social-links */
.social-links {
    display: none;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* عنوان اصلی */
.main-title {
    background: linear-gradient(to right, #1F2B7B, #2F59AA, #00D4FF);
    color: white;
    padding: 0.5rem 2rem;
    position: relative;
}

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

.main-title h1 {
    font-size: 0.9rem;
    font-weight: 300;
}

.main-title .phone {
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.main-title .phone::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('./images/phone.png');
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .title-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .main-title h1 {
        font-size: 0.8rem;
    }
    
    .main-title .phone {
        font-size: 0.8rem;
    }
}

/* ===== بخش اخبار ===== */
.news-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 60px;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-section .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'IRANSans-Bold-web', sans-serif;
}

.news-section .section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 0;
}

.news-section .section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 20px auto;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: inherit;
        transition: transform 0.3s ease;
    }

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-title {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    line-height: 1.4;
    flex: 1;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.news-title a:hover {
    color: #3498db;
}

.news-summary {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.news-more {
    text-align: center;
}

.news-more .btn-more {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.news-more .btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #1f4e79);
}

/* Responsive برای بخش اخبار */
@media (min-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 20px 0;
        margin-top: 40px;
    }
    
    .news-section .section-title {
        font-size: 2rem;
    }
    
    .news-section .section-subtitle {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .news-item {
        border-radius: 10px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .news-section .section-title {
        font-size: 1.8rem;
    }
    
    .news-section .section-subtitle {
        font-size: 0.9rem;
    }
    
    .news-grid {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-summary {
        font-size: 0.9rem;
    }
    
    .news-more .btn-more {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* ===== صفحه جزئیات خبر ===== */
.news-detail-container {
    padding: 40px 0 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #95a5a6;
}

.breadcrumb li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #2980b9;
}

.breadcrumb li.active {
    color: #7f8c8d;
}

.news-detail-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.news-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.news-detail-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #95a5a6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.news-detail-date i {
    color: #3498db;
}

.news-detail-title {
    font-size: 2.2rem;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    font-family: 'IRANSans-Bold-web', sans-serif;
}

.news-detail-image {
    margin: 30px 0;
    text-align: center;
}

.news-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-text {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: justify;
}

.news-detail-text p {
    margin-bottom: 20px;
}

.news-detail-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-share {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.news-share h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn.facebook {
    background: #3b5998;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.telegram {
    background: #0088cc;
    color: #fff;
}

.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.related-news {
    margin-top: 50px;
}

.related-news h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-news-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05);
}

.related-news-content {
    padding: 20px;
}

.related-news-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-news-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-content h4 a:hover {
    color: #3498db;
}

.related-news-date {
    font-size: 0.85rem;
    color: #95a5a6;
}

/* Responsive برای صفحه جزئیات خبر */
@media (max-width: 768px) {
    .news-detail-container {
        padding: 20px 0 60px 0;
    }
    
    .news-detail-content {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .news-detail-text {
        font-size: 1rem;
    }
    
    .news-share {
        margin: 30px 0;
        padding: 20px;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .related-news h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .news-detail-content {
        padding: 20px;
    }
    
    .news-detail-title {
        font-size: 1.6rem;
    }
    
    .news-detail-text {
        font-size: 0.95rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .related-news h3 {
        font-size: 1.3rem;
    }
}