/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: 90px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    flex-direction: row-reverse;
}

.logo {
    width: 150px;
}

.logo img {
    width: 100%;
    height: auto;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background-color: rgba(0,0,0,0.05);
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a:hover::after {
    width: 80%;
}

.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a.active::after {
    width: 80%;
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .logo {
        width: 120px;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: 90px;
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-content .cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(52,152,219,0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.hero-content .cta-button:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 32px rgba(52,152,219,0.25);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: var(--white);
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    padding: 0 5px;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 14px;
    color: var(--secondary-color);
}

.submit-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    margin: 50px auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.popup-content h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 24px;
}

.close-popup {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--accent-color);
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    animation: slideIn 0.3s ease;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.popup-content {
    animation: fadeIn 0.3s ease;
}

/* Add this at the end of your CSS file */
body.menu-open {
    overflow: hidden;
}

/* Update the hero background image path */
.swiper-slide {
    background-image: url('../../images/hero-bg.jpg');
}

/* --- ARTICLES SECTION --- */
.articles {
    padding: 80px 0;
    background: var(--white);
}
.articles h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}
.articles-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #eee;
}
.articles-scroll::-webkit-scrollbar {
    height: 8px;
    background: #eee;
}
.articles-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}
.article-card {
    min-width: 260px;
    max-width: 300px;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(44,62,80,0.07);
    overflow: hidden;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.article-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 16px 0 12px 0;
    text-align: center;
    padding: 0 10px;
}
.article-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(44,62,80,0.13);
}
@media (max-width: 768px) {
    .articles {
        padding: 50px 0;
    }
    .article-card {
        min-width: 200px;
        max-width: 220px;
    }
    .article-card img {
        height: 110px;
    }
}

/* --- ARTICLE PAGE (BEAUTIFIED) --- */
.article-main {
    padding-top: 110px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f5f6fa 60%, #eaf1fb 100%);
    min-height: 100vh;
}
.article-page {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.13);
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 28px 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 6px solid var(--secondary-color);
    animation: fadeInCard 0.7s cubic-bezier(.39,.575,.56,1) both;
}
.article-page-img {
    width: 100%;
    max-width: 260px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 22px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
}
.article-page-title {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -1px;
    border-bottom: 2px solid #eaf1fb;
    padding-bottom: 10px;
    width: 100%;
}
.article-meta {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 18px;
    text-align: center;
    width: 100%;
}
.article-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
    margin: 18px auto 24px auto;
}
.article-page-content {
    font-size: 1.13rem;
    color: var(--text-color);
    line-height: 2.1;
    margin-bottom: 10px;
    text-align: right;
    width: 100%;
}
.cta-button.back-articles {
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 32px;
    margin-top: 32px;
    box-shadow: 0 2px 8px rgba(52,152,219,0.07);
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.cta-button.back-articles:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}
@keyframes fadeInCard {
    0% { opacity: 0; transform: translateY(40px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
    .article-main {
        padding-top: 75px;
        padding-bottom: 30px;
    }
    .article-page {
        padding: 16px 6px 24px 6px;
        max-width: 98vw;
    }
    .article-page-img {
        height: 80px;
        max-width: 90vw;
    }
    .article-page-title {
        font-size: 1.2rem;
        padding-bottom: 6px;
    }
    .article-page-content {
        font-size: 1rem;
    }
}

/* About Section Styles */
.about-section {
    padding: 80px 0;
}

.about-section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.section-title p {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: #007bff;
    margin-left: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
}

.consultation-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.submit-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.submit-button i {
    font-size: 1.2rem;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

/* Curriculum Section */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.curriculum-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.curriculum-item i {
    color: #007bff;
    margin-left: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-links a {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-links {
        flex-direction: column;
        gap: 5px;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: white;
}

.dropdown-menu a.active {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 15px;
    }
} 