
/* =====================================================
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    background: #ffffff;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display:flex;
    max-width: 100%;
}

button {
    font-family: "Vazirmatn", sans-serif;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;

    height: 72px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);

    z-index: 999;
}

/* =====================================================
   MENU BUTTON
===================================================== */

.menu-btn {
    position: fixed;

    left: 20px;
    top: 12px;

    width: 48px;
    height: 48px;

    border: none;

    background: #d18787;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 12px;

    cursor: pointer;

    z-index: 1300;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    transition: 0.3s;
}

.menu-btn:hover {
    transform: scale(1.1);
}

.menu-btn:active {
    transform: scale(0.9);
}

.menu-btn span {
    width: 28px;
    height: 3px;

    background: #240202;

    border-radius: 20px;
}

#workshop,
#history,
#documentary {
    scroll-margin-top: 110px;
}

        /* =========================================
                    PAGE HEADER
        ========================================= */

        .page-header {

            margin-top: 72px;

            padding: 75px 20px 45px;

            text-align: center;

            background: #f7f7f7;

        }


        .page-header h1 {

            font-size: 46px;

            font-weight: 800;

            color: #260c0c;

            margin-bottom: 12px;

        }


        .page-header p {

            font-size: 18px;

            color: #666;

        }

        /* =========================================
                    LOGO
        ========================================= */
		.logo {
    		width: 55px;
            
    		height: 55px;
            
            box-shadow:
                0 5px 15px rgba(0, 0, 0, 0.05);

    		align-items: center;
            
    		justify-content: center;

    		text-decoration: none;

            border-radius: 50%;

            background: #7fa5db;

            display: flex;

            transition: 0.35s;
		}

		.logo img {
    		width: 100%;
    		height: 100%;

    		object-fit: contain;

    		display: block;
		}


        .logo:hover {

            transform: scale(1.1);

        }
         .logo:active {

            transform: scale(0.9);

        }


        /* =========================================
                    MENU BUTTON
        ========================================= */

        .menu-btn {

            position: fixed;

            left: 20px;
            top: 9px;

            width: 53px;
            height: 53px;

            border: none;

            background: #7fa5db;

            display: flex;

            flex-direction: column;

            justify-content: center;

            align-items: center;

            gap: 6px;

            cursor: pointer;

            z-index: 1300;

            border-radius: 12px;

            box-shadow:
                0 5px 15px rgba(0, 0, 0, 0.1);

            transition: 0.3s;

        }


        .menu-btn:hover {

            transform: scale(1.1);

        }


        .menu-btn:active {

            transform: scale(0.9);

        }


        .menu-btn span {

            width: 28px;
            height: 3px;

            background: #333;

            border-radius: 20px;

            transition: 0.3s;

        }



        /* =========================================
                    SIDEBAR
        ========================================= */

        .sidebar {

            position: fixed;

            top: 0;

            left: -320px;

            width: 300px;

            height: 100vh;

            background: rgba(255, 255, 255, 0.95);

            backdrop-filter: blur(14px);

            box-shadow:
                8px 0 40px rgba(0, 0, 0, 0.15);

            transition:
                left 0.55s cubic-bezier(.22, 1, .36, 1);

            z-index: 1200;

            padding-top: 80px;

            overflow: hidden;

        }


        .sidebar.active {

            left: 0;

        }


        .sidebar h2 {

            text-align: center;

            color: #0b5ed7;

            font-size: 30px;

            margin-bottom: 45px;

        }


        .sidebar a {

            display: block;

            align-items: center;

            padding: 18px 35px;

            margin: 8px 18px;

            border-radius: 15px;

            font-size: 21px;

            font-weight: 600;

            color: #333;

			text-decoration:none;
            
            transition: 0.35s;

            opacity: 0;

            transform: translateX(-40px);
            

        }


        .sidebar.active a {

            opacity: 1;

            transform: translateX(0);

        }


        .sidebar.active a:nth-of-type(1) {

            transition-delay: 0.10s;

        }


        .sidebar.active a:nth-of-type(2) {

            transition-delay: 0.20s;

        }


        .sidebar.active a:nth-of-type(3) {

            transition-delay: 0.30s;

        }


        .sidebar a:hover {

            background:
                linear-gradient(
                    135deg,
                    #0b5ed7,
                    #4dabf7
                );

            color: white;

            transform:
                translateX(10px)
                scale(1.03);

            box-shadow:
                0 10px 25px rgba(13, 110, 253, 0.30);

        }


        /* CLOSEMENU*/

        .closebtn {

            position: absolute;

            top: 18px;
            right: 20px;

            width: 42px;
            height: 42px;

            display: flex;

            justify-content: center;
            align-items: center;

            border-radius: 50%;

            font-size: 30px;

            cursor: pointer;

            transition: 0.35s;

        }


        .closebtn:hover {

            background: #729ddb;

            color: white;

            transform: rotate(180deg);

        }



/* =====================================================
   OVERLAY
===================================================== */

.overlay {
    
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition: 0.35s;

    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    margin-top: 72px;

    position: relative;

    height: 550px;

    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.50)
    );
}

.hero-content {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 90%;

    text-align: center;

    z-index: 2;

    color: #fff;
}

.hero-content h1 {
    font-size: 64px;

    font-weight: 800;

    margin-bottom: 18px;
}

.hero-content p {
    font-size: 22px;
}

/* ===================================================== 
  FEATURE CARDS 
===================================================== */ 
 
main { 
    width: min(1100px, 92%); 
 
    margin: auto; 
 
    padding: 80px 0 50px; 
} 
 
.feature-card { 
    display: flex; 
 
    flex-direction: column; 
 
    align-items: center; 
 
    justify-content: center; 
 
    text-align: center; 
 
    padding: 70px 40px; 
 
    margin: 60px 0; 
 
    border-radius: 35px; 
 
    background: #9ea8b6; 
 
    box-shadow: 0 8px 20px rgba(137, 177, 232, 0.2); 
 
    position: relative; 
 
    overflow: hidden; 
 
    transition: 0.45s; 
 
    cursor: pointer; 
} 
 
.feature-card:hover { 
    transform: translateY(-12px); 
 
    box-shadow: 
        0 8px 20px rgba(45, 82, 120, 0.3); 
} 
 
.feature-card::before { 
    content: ""; 
 
    position: absolute; 
 
    width: 320px; 
    height: 320px; 
 
    background: #f4f7fa; 
 
    border-radius: 50%; 
 
    top: -170px; 
    left: -120px; 
 
    transition: 0.5s; 
} 
 
.feature-card:hover::before { 
    transform: scale(1.15); 
} 
 
 
/* دایره */ 
 
.circle { 
    width: 110px; 
    height: 110px; 
 
    border-radius: 50%; 
 
    background: #315b7d; 
 
    display: flex; 
    align-items: center; 
    justify-content: center; 
 
    font-size: 48px; 
 
    margin-bottom: 28px; 
 
    position: relative; 
 
    z-index: 2; 
 
    transition: 0.4s; 
} 
 
.feature-card:hover .circle { 
    transform: rotate(12deg) scale(1.08); 
} 
 
.feature-card h2 { 
    font-size: 36px; 
 
    color: #172a3a; 
 
    margin-bottom: 18px; 
 
    position: relative; 
 
    z-index: 2; 
} 
 
.feature-card p { 
    width: min(700px, 95%); 
 
    color: #303942; 
 
    font-size: 18px; 
 
    margin-bottom: 35px; 
 
    position: relative; 
 
    z-index: 2; 
} 
 
 
/* BUTTON */ 

.button { 
    background: #f4f7fa; 
    color: #315b7d; 
 
    padding: 15px 34px; 
 
    border-radius: 999px; 
 
    font-size: 17px; 
 
    position: relative; 
 
    z-index: 2; 
 
    transition: 0.35s; 
 
    box-shadow: 0 6px 18px rgba(49, 91, 125, 0.22);
} 
 
.button:hover { 
    background: #315b7d; 
    color: #ffffff; 
 
    transform: scale(1.05); 
 
    box-shadow: 0 8px 22px rgba(49, 91, 125, 0.244);
}
 
/* ===================================================== 
   صفحه کلاس‌ها — HEADER 
===================================================== */ 
 
.class-header { 
    margin-top: 72px; 
 
    padding: 70px 20px 40px; 
 
    text-align: center; 
 
    background: #f7f7f7; 
} 
 
.class-header h1 { 
    font-size: 46px; 
 
    font-weight: 800; 
 
    color: #172a3a; 
 
    margin-bottom: 10px; 
} 
 
.class-header p { 
    font-size: 18px; 
 
    color: #59636d; 
}


/* =====================================================
   صفحه کلاس‌ها — PROJECT GRID
===================================================== */

.projects-section {
    width: min(1100px, 92%);

    margin: auto;

    padding: 35px 0 90px;
}

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}


/* کارت پروژه */

.project-card {
    display: block;

    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    border: 1px solid #eee;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.07);

    transition: 0.4s;

    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-9px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.13);
}


/* عکس پروژه */

.project-image {
    width: 100%;

    height: 250px;

    overflow: hidden;

    background: #eee;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.5s;
}

.project-card:hover
.project-image img {
    transform: scale(1.06);
}


/* متن پروژه */

.project-info {
    padding: 22px 22px 25px;
}

.project-info h2 {
    font-size: 21px;

    color: #0c0e26;

    margin-bottom: 8px;
}

.project-info p {
    font-size: 15px;

    color: #777;

    margin-bottom: 18px;
}


/* برچسب معلم */

.teacher-tag {
    display: inline-block;

    background: #fff2ed;

    color: #000000;

    padding: 5px 12px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;
}


/* کارت مخفی */

.project-card.hidden {
    display: none;
}


/* =====================================================
   FOOTER — مشترک
===================================================== */

.footer {
    background: #2c3e50;

    color: #fff;

    padding: 35px 20px;

    text-align: center;
}

.footer-content {
    max-width: 1000px;

    margin: auto;
}

.footer h3 {
    font-size: 30px;

    margin-bottom: 15px;
}

.footer p {
    color: #ddd;

    margin: 10px 0;
}

.footer-links {
    margin: 25px 0;
}

.footer-links a {
    color: #fff;

    margin: 0 15px;

    font-size: 17px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: #4dabf7;
}

.copyright {
    margin-top: 25px;

    font-size: 14px;

    color: #bbb;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    /* صفحه اصلی */

    .hero {
        height: 420px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .feature-card {
        padding: 45px 25px;

        margin: 50px 0;
    }

    .feature-card h2 {
        font-size: 28px;
    }

    .feature-card p {
        font-size: 16px;
    }

    .circle {
        width: 90px;
        height: 90px;

        font-size: 36px;
    }


    /* صفحه کلاس */

    .class-header h1 {
        font-size: 36px;
    }

    .project-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 18px;
    }

    .project-image {
        height: 210px;
    }

    .project-info {
        padding: 18px;
    }

    .project-info h2 {
        font-size: 18px;
    }

    .project-info p {
        font-size: 14px;
    }


    /* سایدبار */

    .sidebar {
        width: 280px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 520px) {

    .navbar {
        padding: 0 18px;
    }


    /* صفحه اصلی */

    .hero {
        height: 340px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .circle {
        width: 75px;
        height: 75px;

        font-size: 30px;
    }

    .button {
        width: 100%;

        text-align: center;
    }

    .feature-card {
        border-radius: 25px;
    }


    /* صفحه کلاس */

    .class-header {
        padding: 50px 20px 30px;
    }

    .class-header h1 {
        font-size: 29px;
    }

    .class-header p {
        font-size: 15px;
    }

    .class-filters {
        margin-top: 25px;
    }

    .class-filter-btn {
        padding: 9px 18px;

        font-size: 14px;
    }

    .projects-section {
        width: 90%;

        padding-top: 30px;
    }

    .project-grid {

        gap: 22px;
    }

    .project-image {
        height: 240px;
    }


    /* Footer */

    .footer-links a {
        display: inline-block;

        margin: 5px 8px;
    }


}


/* =====================================================
   HISTORY PAGE
===================================================== */

.history-header {

    margin-top: 72px;

    min-height: 330px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #eef2f6,
            #dce4ec
        );

    padding: 60px 20px;

}


.history-header-content {

    max-width: 800px;

}


.history-icon {

    width: 90px;
    height: 90px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #315b7d;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 42px;

    box-shadow:
        0 10px 30px rgba(49, 91, 125, 0.25);

}


.history-header h1 {

    font-size: 52px;

    font-weight: 800;

    color: #172a3a;

    margin-bottom: 12px;

}


.history-header p {

    font-size: 19px;

    color: #59636d;

}


/* =====================================================
   HISTORY CONTENT
===================================================== */

.history-page {

    width: min(1100px, 92%);

    margin: auto;

    padding: 90px 0 110px;

}


/* =====================================================
   HISTORY BLOCK
===================================================== */

.history-block {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 55px;

    align-items: center;

    margin-bottom: 80px;

}


.history-block.reverse {

    direction: rtl;

}


/* عکس */

.history-block-image {

    height: 400px;

    border-radius: 28px;

    overflow: hidden;

    background: #e5e9ed;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);

}


.history-block-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: 0.5s;

}


.history-block-image:hover img {

    transform: scale(1.05);

}


/* متن */

.history-block-text {

    padding: 15px;

}


.history-label {

    display: inline-block;

    padding: 7px 17px;

    border-radius: 999px;

    background: #e8eef4;

    color: #315b7d;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 15px;

}


.history-block-text h2 {

    font-size: 34px;

    color: #172a3a;

    margin-bottom: 20px;

}


.history-block-text p {

    font-size: 17px;

    line-height: 2.2;

    color: #4d565f;

    margin-bottom: 18px;

}


/* =====================================================
   DIVIDER
===================================================== */

.history-divider {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 20px 0 80px;

}


.history-divider::before,
.history-divider::after {

    content: "";

    height: 1px;

    background: #dce1e6;

    flex: 1;

}


.history-divider span {

    width: 60px;
    height: 60px;

    margin: 0 20px;

    border-radius: 50%;

    background: #315b7d;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 25px;

}


/* =====================================================
   TIMELINE
===================================================== */

.history-timeline {

    margin-top: 100px;

    padding: 60px 50px;

    background: #f4f7fa;

    border-radius: 35px;

}


.timeline-title {

    text-align: center;

    margin-bottom: 60px;

}


.timeline-title h2 {

    font-size: 36px;

    color: #172a3a;

    margin-bottom: 10px;

}


.timeline-title p {

    color: #6b737b;

}


/* خط */

.timeline {

    position: relative;

    max-width: 800px;

    margin: auto;

}


.timeline::before {

    content: "";

    position: absolute;

    right: 20px;

    top: 0;

    bottom: 0;

    width: 2px;

    background: #cbd5df;

}


/* آیتم */

.timeline-item {

    position: relative;

    padding-right: 65px;

    margin-bottom: 45px;

}


.timeline-item:last-child {

    margin-bottom: 0;

}


.timeline-dot {

    position: absolute;

    right: 7px;

    top: 5px;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #315b7d;

    border: 6px solid #f4f7fa;

    box-shadow:
        0 0 0 2px #315b7d;

}


.timeline-content {

    background: white;

    padding: 22px 25px;

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);

}


.timeline-content span {

    color: #315b7d;

    font-size: 14px;

    font-weight: 600;

}


.timeline-content h3 {

    color: #172a3a;

    font-size: 22px;

    margin: 5px 0 8px;

}


.timeline-content p {

    color: #626b74;

    font-size: 15px;

    line-height: 1.9;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .history-header {

        min-height: 280px;

    }


    .history-header h1 {

        font-size: 40px;

    }


    .history-header p {

        font-size: 16px;

    }


    .history-block {

        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 60px;

    }


    .history-block.reverse {

        direction: rtl;

    }


    .history-block-image {

        height: 300px;

    }


    .history-block-text h2 {

        font-size: 29px;

    }


    .history-block-text p {

        font-size: 16px;

    }


    .history-timeline {

        padding: 40px 20px;

    }

}


@media (max-width: 520px) {

    .history-page {

        width: 90%;

        padding-top: 60px;

    }


    .history-header h1 {

        font-size: 34px;

    }


    .history-icon {

        width: 75px;
        height: 75px;

        font-size: 34px;

    }


    .history-block-image {

        height: 240px;

        border-radius: 20px;

    }


    .history-block-text {

        padding: 0;

    }


    .history-block-text h2 {

        font-size: 25px;

    }


    .history-block-text p {

        font-size: 15px;

    }


    .history-timeline {

        border-radius: 25px;

    }


    .timeline-item {

        padding-right: 50px;

    }

}