/*
Theme Name: دبیرستان دوره اول سما
Theme URI: https://yourdomain.com
Author: شما
Author URI: https://yourdomain.com
Description: تم اختصاصی برای دبیرستان دوره اول سما با طراحی ریسپانسیو و امکانات کامل
Version: 1.0
License: GPL v2 or later
Text Domain: sama-school
*/

/* استایل‌های اصلی از کد HTML قبلی را می‌توانید به این فایل منتقل کنید */


    * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Vazirmatn', sans-serif;
            background-color: #f9fafc;
            color: #1e293b;
            line-height: 1.6;
            overflow-x: hidden;
        }
        :root {
            --primary: #003366;
            --primary-dark: #002244;
            --secondary: #f5a623;
            --accent: #10b981;
            --gray-light: #f1f5f9;
            --gray-mid: #cbd5e1;
            --white: #ffffff;
            --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
            --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
            --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
            --radius: 1rem;
        }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
        .notice-bar {
            background: var(--secondary);
            color: #1e293b;
            text-align: center;
            padding: 0.6rem;
            font-weight: 600;
            font-size: 0.9rem;
            animation: pulse 1.5s infinite;
        }
        @keyframes pulse {
            0% { background: #f5a623; }
            50% { background: #fbbf24; }
            100% { background: #f5a623; }
        }
        header {
            background: var(--white);
           
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 0;
            z-index: 100;
             background-image: url('assets/images/header.jpg');
            background-size:cover ;      /* تصویر کل فضا را بپوشاند */
            background-position: center;  /* مرکز تصویر را نشان بده */
            background-repeat: no-repeat; /* تکرار نشود */
        }
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.8rem 0;
            flex-wrap: wrap;

            
        }
        .logo img { height: 50px; vertical-align: middle; }
        .logo span {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--primary);
            margin-right: 8px;
        }
        .nav-links {
            display: flex;
            gap: 1.8rem;
            list-style: none;
        }
        .nav-links a {
            text-decoration: none;
            font-weight: 500;
            color: #0f172a;
            transition: 0.2s;
            padding-bottom: 4px;
            border-bottom: 2px solid transparent;
        }
        .nav-links a:hover {
            color: var(--primary);
            border-bottom-color: var(--secondary);
        }
        .hamburger {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--primary);
        }
        .swiper { width: 100%; height: 500px; }
        .swiper-slide {
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .slide-content {
            position: absolute;
            bottom: 30%;
            right: 10%;
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 1.5rem;
            border-radius: 1rem;
            max-width: 450px;
            backdrop-filter: blur(5px);
        }
        .leaders-slide {
            background: linear-gradient(135deg, #0a2b5e 0%, #1a3f6e 50%, #b88b2a 100%);
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            flex-direction: column;
        }
        .leaders-slide::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('assets/images/kavir.jpeg');
            
            opacity: 0.05;
            pointer-events: none;
        }
        .leaders-container {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
            padding: 2rem;
        }
        .leader-card {
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            border-radius: 1.5rem;
            padding: 1rem;
            width: 180px;
            transition: 0.3s;
        }
        .leader-card img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--secondary);
            margin-bottom: 0.8rem;
        }
        .leader-card h3 { color: white; font-size: 1.1rem; }
        .btn-primary {
            background: var(--primary);
            color: white;
            padding: 0.6rem 1.5rem;
            border-radius: 2rem;
            text-decoration: none;
            font-weight: 600;
            display: inline-block;
            transition: 0.2s;
            border: none;
            cursor: pointer;
        }
        .btn-primary:hover { background: var(--primary-dark); }
        .section { padding: 4rem 0; }
        .section-title {
            text-align: center;
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 2rem;
        }
        .section-title:after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            margin: 0.5rem auto;
            border-radius: 4px;
        }
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }
        .card {
            background: white;
            padding: 1.8rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            text-align: center;
            transition: 0.3s;
        }
        .card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
        .card-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; }
        .testimonial-slide {
            background: white;
            padding: 2rem;
            border-radius: var(--radius);
            text-align: center;
            box-shadow: var(--shadow-md);
            margin: 1rem;
        }
        /* استایل‌های جدید برای جایگزینی برنامه هفتگی (بدون بخش مشاور) */
        .timeline {
            position: relative;
            padding-right: 2rem;
        }
        .timeline::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--secondary);
        }
        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
            padding-right: 1.5rem;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            right: -8px;
            top: 8px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--primary);
            border: 2px solid var(--secondary);
        }
        .timeline-date {
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.3rem;
        }
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        .video-card iframe {
            width: 100%;
            height: 180px;
            border-radius: 1rem;
        }
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
        }
        .project-card {
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: 0.2s;
        }
        .project-card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }
        .project-card h4 {
            padding: 0.8rem;
            background: var(--primary);
            color: white;
            font-size: 1rem;
        }
        .project-card p {
            padding: 0.8rem;
        }
        .calendar {
            background: white;
            border-radius: var(--radius);
            padding: 1rem;
            box-shadow: var(--shadow-sm);
            direction: ltr;
        }
        .calendar table {
            width: 100%;
            border-collapse: collapse;
            text-align: center;
        }
        .calendar th {
            background: var(--primary);
            color: white;
            padding: 0.5rem;
        }
        .calendar td {
            padding: 0.5rem;
            border: 1px solid var(--gray-mid);
        }
        .calendar .event-day {
            background: var(--secondary);
            color: white;
            border-radius: 50%;
            display: inline-block;
            width: 30px;
            line-height: 30px;
        }
        .section-grid-2col {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 1rem;
        }
        .counter-box {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 2rem;
            border-radius: var(--radius);
            text-align: center;
        }
        .counter-number {
            font-size: 2.8rem;
            font-weight: 800;
        }
        .faq-item {
            background: white;
            margin-bottom: 1rem;
            border-radius: 0.8rem;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }
        .faq-question {
            padding: 1rem 1.5rem;
            background: var(--gray-light);
            cursor: pointer;
            font-weight: 700;
            display: flex;
            justify-content: space-between;
        }
        .faq-answer {
            padding: 0 1.5rem;
            max-height: 0;
            overflow: hidden;
            transition: 0.3s;
        }
        .faq-item.active .faq-answer { padding: 1rem 1.5rem; max-height: 300px; }
        .map-frame { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
        }
        .gallery-item {
            background-color: var(--gray-light);
            border-radius: 1rem;
            overflow: hidden;
            aspect-ratio: 1 / 1;
            background-size: cover;
            background-position: center;
            cursor: pointer;
            position: relative;
            box-shadow: var(--shadow-sm);
            transition: 0.2s;
        }
        .gallery-item:hover { transform: scale(1.02); }
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            background: rgba(0,0,0,0.6);
            width: 100%;
            color: white;
            text-align: center;
            padding: 0.5rem;
            font-size: 0.9rem;
        }
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        .lightbox.active { display: flex; }
        .lightbox img { max-width: 90%; max-height: 80%; border-radius: 1rem; }
        .close-lightbox {
            position: absolute;
            top: 20px;
            left: 30px;
            font-size: 2rem;
            color: white;
            cursor: pointer;
        }
        .floating-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--secondary);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            box-shadow: var(--shadow-lg);
            z-index: 99;
            transition: 0.2s;
            cursor: pointer;
            text-decoration: none;
        }
        .floating-btn:hover { transform: scale(1.1); background: var(--primary); }
        footer {
            background: #0f172a;
            color: #cbd5e1;
            padding: 2rem 0;
            text-align: center;
        }
        @media (max-width: 768px) {
            .hamburger { display: block; }
            .nav-links {
                display: none;
                flex-direction: column;
                width: 100%;
                text-align: center;
                gap: 0.8rem;
                padding: 1rem;
            }
            .nav-links.active { display: flex; }
            .swiper { height: 550px; }
            .slide-content { bottom: 10%; right: 5%; left: 5%; }
            .leaders-container { gap: 1rem; }
            .leader-card { width: 130px; }
            .leader-card img { width: 80px; height: 80px; }
        }