/* ============================================================
   style.css - تم پاستیلی شاد حکمت پارسا
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* ===== انیمیشن‌ها ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    0% { transform: scale(0.7); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes rainbowSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes cursorFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}
@keyframes blink {
    0%, 100% { transform: scaleY(1); }
    2% { transform: scaleY(0.1); }
    4% { transform: scaleY(1); }
}
@keyframes floatUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== ریست و فونت ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f5e9 40%, #e3f2fd 100%);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    cursor: none;
    transition: all 0.3s ease;
}

/* ===== رنگ‌های پاستیلی ===== */
:root {
    --green-pastel: #a8d5ba;
    --green-soft: #6fcf97;
    --green-main: #27ae60;
    --green-dark: #1e8449;
    --blue-pastel: #a8d0e6;
    --blue-soft: #5dade2;
    --blue-main: #2e86c1;
    --blue-dark: #1a5276;
    --orange-pastel: #fdebd0;
    --orange-soft: #f5b041;
    --orange-main: #e67e22;
    --orange-dark: #ca6f1e;
    --cream: #fef9f0;
    --text-dark: #2c3e50;
    --shadow: 0 8px 35px rgba(39, 174, 96, 0.2);
    --gold: #f1c40f;
    --pink: #fd79a8;
    --purple: #a29bfe;
    --red: #ff6b6b;
    --white: #ffffff;
}

/* ============================================================
   ===== موس سفارشی =====
   ============================================================ */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    transition: all 0.08s ease-out;
}
.custom-cursor .rainbow-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--green-main), var(--blue-main), var(--orange-main), var(--pink), var(--purple), var(--green-main));
    opacity: 0.10;
    animation: rainbowSpin 6s linear infinite;
    filter: blur(3px);
}
.custom-cursor .head {
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 30% 30%, #fdebd0, #f5cba0);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.2), inset 0 -3px 8px rgba(0,0,0,0.05);
    border: 2px solid var(--gold);
    animation: cursorFloat 1.8s ease-in-out infinite;
}
.custom-cursor .hair {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
}
.custom-cursor .hair span {
    display: block;
    width: 3.5px;
    height: 9px;
    border-radius: 2px 2px 0 0;
    transform-origin: bottom;
}
.custom-cursor .hair span:nth-child(1) { background: var(--green-main); transform: rotate(-15deg); height: 10px; }
.custom-cursor .hair span:nth-child(2) { background: var(--blue-main); transform: rotate(-5deg); height: 12px; }
.custom-cursor .hair span:nth-child(3) { background: var(--gold); transform: rotate(0deg); height: 13px; }
.custom-cursor .hair span:nth-child(4) { background: var(--orange-main); transform: rotate(5deg); height: 12px; }
.custom-cursor .hair span:nth-child(5) { background: var(--pink); transform: rotate(15deg); height: 10px; }
.custom-cursor .eyes {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    width: 16px;
}
.custom-cursor .eyes .eye {
    width: 5.5px;
    height: 7px;
    background: var(--text-dark);
    border-radius: 50%;
    position: relative;
    animation: blink 3.5s ease-in-out infinite;
}
.custom-cursor .eyes .eye::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    top: 1.5px;
    right: 1px;
}
.custom-cursor .cheeks {
    position: absolute;
    top: 15px;
    display: flex;
    justify-content: space-between;
    width: 22px;
    left: 50%;
    transform: translateX(-50%);
}
.custom-cursor .cheeks .cheek {
    width: 7px;
    height: 4px;
    background: rgba(253, 121, 168, 0.35);
    border-radius: 50%;
}
.custom-cursor .cheeks .cheek:first-child { margin-left: -3px; }
.custom-cursor .cheeks .cheek:last-child { margin-right: -3px; }
.custom-cursor .mouth {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 4px;
    border-bottom: 2px solid var(--text-dark);
    border-radius: 0 0 10px 10px;
}
.custom-cursor .hat {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 11px;
    background: linear-gradient(135deg, var(--orange-main), var(--gold));
    border-radius: 8px 8px 0 0;
    clip-path: polygon(0% 100%, 15% 0%, 85% 0%, 100% 100%);
}
.custom-cursor .hat::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(241, 196, 15, 0.4);
}

@media (max-width: 768px) {
    .custom-cursor { display: none !important; }
    body { cursor: auto !important; }
}

/* ============================================================
   ===== HEADER =====
   ============================================================ */
.header {
    background: linear-gradient(135deg, var(--green-pastel) 0%, var(--blue-pastel) 40%, var(--orange-pastel) 100%);
    padding: 12px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 30px rgba(39, 174, 96, 0.25);
    border-bottom: 4px solid var(--gold);
    animation: slideUp 0.8s ease;
    position: relative;
    z-index: 10;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-main), var(--gold), var(--orange-main), var(--pink), var(--purple), var(--green-main));
    background-size: 200% 100%;
    animation: shimmer 4s infinite;
}

.logo {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}
.logo h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}
.logo h1 .green { color: var(--green-main); }
.logo h1 .blue { color: var(--blue-main); }
.logo h1 .orange {
    color: var(--orange-main);
    animation: pulse 2s infinite;
    display: inline-block;
}
.logo .sub {
    color: var(--text-dark);
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: 1px;
}
.logo .sub i { margin-left: 6px; }

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 10px;
    transition: 0.3s;
    border-radius: 10px;
}
.logo-img:hover {
    transform: scale(1.05);
}

/* ============================================================
   ===== ناوبری =====
   ============================================================ */
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    position: relative;
    z-index: 1;
    align-items: center;
}
.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid transparent;
}
.nav a i { font-size: 14px; }
.nav a:hover {
    background: var(--green-main);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}
.nav a.active {
    background: var(--green-main);
    color: white;
    border-color: var(--gold);
}
.nav a.parents-link {
    background: var(--orange-main);
    color: white;
}
.nav a.parents-link:hover {
    background: var(--orange-dark);
}

/* ============================================================
   ===== آواتار کاربر =====
   ============================================================ */
#userAvatar {
    display: none;
    position: relative;
    cursor: pointer;
}
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-main), var(--blue-soft));
    color: #fff;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700;
    font-size: 18px;
    transition: 0.3s;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 12px rgba(39, 174, 96, 0.3);
    flex-shrink: 0;
    text-align: center;
    line-height: 40px;
}
.avatar-circle span {
    display: block;
    text-align: center;
    width: 100%;
}
.avatar-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

.avatar-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.18);
    min-width: 150px;
    z-index: 99999;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}
.avatar-dropdown.show {
    display: block !important;
    animation: slideDown 0.25s ease;
}
.avatar-dropdown .dropdown-header {
    padding: 10px 18px 12px 18px;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(168, 213, 186, 0.4);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.avatar-dropdown .dropdown-header i {
    color: var(--green-main);
    font-size: 16px;
}
.avatar-dropdown .dropdown-header span {
    font-weight: 700;
    color: var(--green-main);
}
.avatar-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
    margin: 2px 6px;
    border-radius: 10px;
}
.avatar-dropdown a:hover {
    background: rgba(39, 174, 96, 0.12);
    transform: translateX(-4px);
}
.avatar-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--green-main);
}
.avatar-dropdown a.logout-link {
    color: var(--red);
}
.avatar-dropdown a.logout-link i {
    color: var(--red);
}
.avatar-dropdown a.logout-link:hover {
    background: rgba(255, 107, 107, 0.12);
}

#parentsLink {
    display: none;
}
#parentsLink.active {
    display: inline-flex;
}

/* ============================================================
   ===== HERO =====
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--green-pastel) 30%, var(--blue-pastel) 60%, var(--orange-pastel) 100%);
    text-align: center;
    padding: 55px 20px 45px;
    border-bottom: 8px solid var(--gold);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease;
}
.hero .badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--orange-soft));
    color: white;
    padding: 5px 22px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    animation: pulse 3s infinite;
}
.hero .badge i { margin: 0 4px; }
.hero h2 {
    font-size: 40px;
    color: var(--text-dark);
    position: relative;
}
.hero h2 .green { color: var(--green-main); }
.hero h2 .blue { color: var(--blue-main); }
.hero h2 .orange {
    color: var(--orange-main);
    animation: pulse 2s infinite;
    display: inline-block;
}
.hero .slogan {
    font-size: 19px;
    color: #5a7a6a;
    margin: 8px 0 4px;
    font-weight: 500;
}
.hero .slogan-small {
    font-size: 15px;
    color: #7a9a8a;
    margin-bottom: 22px;
}

/* ============================================================
   ===== دکمه‌ها =====
   ============================================================ */
.btn {
    background: linear-gradient(135deg, var(--green-main), var(--blue-soft));
    color: white;
    padding: 13px 38px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}
.btn:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 8px 35px rgba(39, 174, 96, 0.4);
    border-color: var(--gold);
}
.btn:active { transform: scale(0.95); }

.btn-small {
    background: linear-gradient(135deg, var(--green-main), var(--blue-soft));
    color: white;
    padding: 9px 25px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-small:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}
.btn-small.blue { background: var(--blue-main); }
.btn-small.orange { background: var(--orange-main); }
.btn-small.gold { background: var(--gold); color: var(--text-dark); }

/* ============================================================
   ===== عنوان بخش‌ها =====
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 28px;
    color: var(--text-dark);
    margin: 40px 0 25px;
}
.section-title .gold { color: var(--gold); }
.section-title .green { color: var(--green-main); }
.section-title .blue { color: var(--blue-main); }
.section-title i { margin: 0 8px; }

/* ============================================================
   ===== دوره‌ها =====
   ============================================================ */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.course-card {
    background: var(--cream);
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    animation: floatUp 0.6s ease forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 260px;
}
.course-card:nth-child(1) { animation-delay: 0.1s; border-color: var(--green-soft); }
.course-card:nth-child(2) { animation-delay: 0.2s; border-color: var(--blue-soft); }
.course-card:nth-child(3) { animation-delay: 0.3s; border-color: var(--orange-soft); }
.course-card:nth-child(4) { animation-delay: 0.4s; border-color: var(--gold); }
.course-card:nth-child(5) { animation-delay: 0.5s; border-color: var(--pink); }
.course-card:nth-child(6) { animation-delay: 0.6s; border-color: var(--purple); }
.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 50px rgba(39, 174, 96, 0.2);
    border-color: var(--gold);
}
.course-card .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    color: var(--green-main);
}
.course-card h3 {
    color: var(--green-main);
    margin: 10px 0 6px;
    font-size: 20px;
    font-weight: 700;
}
.course-card p {
    color: #7a8f82;
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}
.course-card .btn-small { margin-top: 12px; }

/* ============================================================
   ===== وبلاگ =====
   ============================================================ */
.blog-posts {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.blog-item {
    background: var(--cream);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-right: 8px solid var(--gold);
    transition: all 0.3s ease;
    animation: floatUp 0.7s ease forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
}
.blog-item:nth-child(1) { animation-delay: 0.1s; }
.blog-item:nth-child(2) { animation-delay: 0.2s; }
.blog-item:nth-child(3) { animation-delay: 0.3s; }
.blog-item:nth-child(4) { animation-delay: 0.4s; }
.blog-item:nth-child(5) { animation-delay: 0.5s; }
.blog-item:nth-child(6) { animation-delay: 0.6s; }
.blog-item:hover {
    transform: translateX(-6px);
    border-right-color: var(--orange-main);
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.15);
}
.blog-item .date {
    color: var(--blue-soft);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}
.blog-item .date i { margin-left: 5px; }
.blog-item .tag {
    display: inline-block;
    background: var(--green-pastel);
    color: var(--text-dark);
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 12px;
    margin: 4px 0 10px;
    align-self: flex-start;
}
.blog-item .tag i { margin-left: 4px; }
.blog-item h4 {
    color: var(--text-dark);
    margin: 6px 0;
    font-size: 18px;
    font-weight: 700;
}
.blog-item p {
    color: #7a8f82;
    font-size: 14px;
    line-height: 1.8;
    flex: 1;
}
.blog-item .read-more {
    color: var(--blue-main);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: 0.3s;
    align-self: flex-start;
}
.blog-item .read-more:hover { color: var(--orange-main); }

/* ============================================================
   ===== آمار =====
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 50px auto 50px;
    padding: 0 20px;
}
.stat-item {
    background: var(--cream);
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--green-soft);
    transition: 0.3s;
    animation: floatUp 0.5s ease forwards;
    opacity: 0;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; border-bottom-color: var(--green-soft); }
.stat-item:nth-child(2) { animation-delay: 0.2s; border-bottom-color: var(--blue-soft); }
.stat-item:nth-child(3) { animation-delay: 0.3s; border-bottom-color: var(--orange-soft); }
.stat-item:nth-child(4) { animation-delay: 0.4s; border-bottom-color: var(--gold); }
.stat-item:hover { transform: translateY(-8px); }
.stat-item .number {
    font-size: 44px;
    font-weight: 900;
    color: var(--green-main);
    line-height: 1.2;
}
.stat-item .label {
    color: #7a8f82;
    font-size: 16px;
    margin-top: 8px;
    font-weight: 500;
}
.stat-item .label i { margin-left: 6px; font-size: 18px; }
.stat-item:nth-child(2) .number { color: var(--blue-main); }
.stat-item:nth-child(3) .number { color: var(--orange-main); }
.stat-item:nth-child(4) .number { color: var(--gold); }

/* ============================================================
   ===== درباره ما =====
   ============================================================ */
.about-section {
    max-width: 1100px;
    margin: 0 auto 35px;
    padding: 0 20px;
}
.about-content {
    background: var(--cream);
    border-radius: 30px;
    padding: 35px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    animation: fadeIn 0.8s ease;
}
.about-content .text h3 {
    color: var(--green-main);
    font-size: 24px;
    margin-bottom: 12px;
}
.about-content .text h3 i { margin-left: 8px; }
.about-content .text p {
    color: #5a7a6a;
    line-height: 2;
    font-size: 15px;
}
.about-content .image {
    background: linear-gradient(135deg, var(--green-pastel), var(--blue-pastel));
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    font-size: 60px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--green-main);
}
.about-content .image .name {
    font-size: 22px;
    color: var(--text-dark);
    font-weight: bold;
    margin-top: 8px;
}

/* ============================================================
   ===== اسلایدر مربیان (کارت پاسور) =====
   ============================================================ */
.teachers-slider-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    border: 2px solid var(--green-pastel);
    box-shadow: 0 4px 25px rgba(39, 174, 96, 0.08);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(4px);
}
.teachers-slider-wrapper ul,
.teachers-slider-wrapper ol,
.teachers-slider-wrapper li {
    display: none !important;
    list-style: none !important;
}
.teachers-slider-wrapper::after,
.teachers-slider-wrapper::before {
    display: none !important;
    content: none !important;
}
.teachers-slider-wrapper * {
    list-style: none !important;
}

.teachers-slider {
    display: flex;
    gap: 22px;
    height: 100%;
    align-items: center;
    width: max-content;
    transition: transform 0.01s linear;
}

/* ===== کارت پاسور ===== */
.teacher-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 0;
    text-align: center;
    min-width: 200px;
    max-width: 200px;
    box-shadow: 0 4px 18px rgba(39, 174, 96, 0.08);
    border: 2px solid var(--green-soft);
    flex-shrink: 0;
    transition: 0.3s ease;
    user-select: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.teacher-card:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 45px rgba(39, 174, 96, 0.16);
    border-color: var(--gold);
}

/* ===== عکس فول اسکرین (بدون هیچ حاشیه) ===== */
.teacher-card .teacher-avatar-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 3px solid var(--green-soft);
    background: var(--green-pastel);
}
.teacher-card:hover .teacher-avatar-img {
    border-bottom-color: var(--gold);
}

/* ===== بخش پایین: متن ===== */
.teacher-card .card-body {
    padding: 12px 10px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cream);
}
.teacher-card h4 {
    color: var(--text-dark);
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 700;
}
.teacher-card .role {
    color: var(--blue-main);
    font-size: 12px;
    font-weight: 500;
}
.teacher-card .class-badge {
    display: inline-block;
    background: var(--green-pastel);
    color: var(--text-dark);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-top: 4px;
    transition: 0.3s;
}
.teacher-card:hover .class-badge {
    background: var(--green-main);
    color: white;
}

.teachers-slider-wrapper:hover .teachers-slider {
    animation-play-state: paused;
}

/* ============================================================
   ===== پنل ادمین =====
   ============================================================ */
.panel-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    flex: 1;
}
.panel-header {
    background: var(--cream);
    border-radius: 30px;
    padding: 25px 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease;
}
.panel-header h2 {
    color: var(--green-main);
    font-size: 24px;
}
.panel-header h2 i { margin-left: 8px; }
.panel-header .user-badge {
    background: var(--green-pastel);
    padding: 6px 20px;
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}
.panel-header .user-badge i { margin-left: 6px; }

/* ============================================================
   ===== فرم‌های ادمین =====
   ============================================================ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.admin-stat-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--green-soft);
    transition: 0.3s;
}
.admin-stat-card:hover { transform: translateY(-5px); }
.admin-stat-card .number { font-size: 32px; font-weight: 900; color: var(--green-main); }
.admin-stat-card .label { color: #7a8f82; font-size: 14px; margin-top: 4px; }
.admin-stat-card:nth-child(2) { border-bottom-color: var(--blue-soft); }
.admin-stat-card:nth-child(2) .number { color: var(--blue-main); }
.admin-stat-card:nth-child(3) { border-bottom-color: var(--orange-soft); }
.admin-stat-card:nth-child(3) .number { color: var(--orange-main); }
.admin-stat-card:nth-child(4) { border-bottom-color: var(--gold); }
.admin-stat-card:nth-child(4) .number { color: var(--gold); }

.admin-box {
    background: var(--cream);
    border-radius: 24px;
    padding: 28px 30px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    border: 2px solid transparent;
    transition: 0.3s;
}
.admin-box:hover { border-color: var(--green-pastel); }
.admin-box .box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-pastel);
}
.admin-box .box-header i {
    font-size: 28px;
    color: var(--green-main);
    background: var(--green-pastel);
    padding: 10px;
    border-radius: 14px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-box .box-header h3 { color: var(--text-dark); font-size: 20px; font-weight: 700; }
.admin-box .box-header .badge-count { margin-right: auto; background: var(--green-main); color: white; padding: 2px 14px; border-radius: 20px; font-size: 13px; }

.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.admin-form .full-width { grid-column: span 2; }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid var(--green-pastel);
    border-radius: 16px;
    font-size: 14px;
    transition: 0.3s;
    background: white;
    font-family: inherit;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    border-color: var(--green-main);
    outline: none;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.08);
}
.admin-form textarea { min-height: 60px; resize: vertical; }
.admin-form .btn-submit {
    grid-column: span 2;
    padding: 12px;
    background: linear-gradient(135deg, var(--green-main), var(--blue-soft));
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.admin-form .btn-submit:hover { transform: scale(1.02); box-shadow: 0 6px 25px rgba(39, 174, 96, 0.25); }
.admin-form .btn-submit.btn-sm { padding: 8px 16px; font-size: 14px; }
.admin-form .btn-submit.btn-blue { background: var(--blue-main); }
.admin-form .btn-submit.btn-blue:hover { background: var(--blue-dark); }
.admin-form .btn-submit.btn-orange { background: var(--orange-main); }
.admin-form .btn-submit.btn-orange:hover { background: var(--orange-dark); }
.admin-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   ===== لیست‌های ادمین =====
   ============================================================ */
.admin-list { margin-top: 18px; }
.admin-list .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.5);
    border-radius: 14px;
    margin-bottom: 8px;
    transition: 0.3s;
    border-right: 4px solid var(--green-soft);
}
.admin-list .list-item:hover { background: white; transform: translateX(-4px); }
.admin-list .list-item .item-info { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.admin-list .list-item .item-info .name { font-weight: 700; color: var(--text-dark); }
.admin-list .list-item .item-info .detail { color: #7a8f82; font-size: 13px; }
.admin-list .list-item .item-info .badge-class { background: var(--green-pastel); padding: 2px 12px; border-radius: 12px; font-size: 12px; color: var(--text-dark); }
.admin-list .list-item .btn-delete {
    background: var(--red);
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.admin-list .list-item .btn-delete:hover { transform: scale(1.05); opacity: 0.85; }
.admin-list .list-item .teacher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

/* ============================================================
   ===== دانش‌آموزان =====
   ============================================================ */
.student-list .student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 2px solid var(--green-pastel);
    transition: 0.3s;
    cursor: pointer;
    border-radius: 15px;
}
.student-list .student-item:hover {
    background: rgba(168, 213, 186, 0.2);
    transform: translateX(-5px);
}
.student-list .student-item:last-child { border-bottom: none; }
.student-list .student-item .name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 17px;
}
.student-list .student-item .name i { margin-left: 8px; color: var(--gold); }
.student-list .student-item .status-badge {
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
}
.student-list .student-item .status-badge.done {
    background: var(--green-pastel);
    color: var(--green-dark);
}
.student-list .student-item .status-badge.pending {
    background: var(--orange-pastel);
    color: var(--orange-dark);
}
.student-list .student-item .action-btns {
    display: flex;
    gap: 8px;
}
.student-list .student-item .action-btns button {
    padding: 5px 14px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.student-list .student-item .action-btns .btn-status {
    background: var(--blue-pastel);
    color: var(--blue-dark);
}
.student-list .student-item .action-btns .btn-status:hover {
    background: var(--blue-main);
    color: white;
}

/* ============================================================
   ===== منوی وضعیت =====
   ============================================================ */
.status-menu {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--cream);
    border-radius: 30px 30px 0 0;
    padding: 25px 30px 30px;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUp 0.4s ease;
    max-height: 80vh;
    overflow-y: auto;
}
.status-menu.open { display: block; }
.status-menu .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.status-menu .menu-header h3 {
    color: var(--green-main);
    font-size: 20px;
}
.status-menu .menu-header h3 i { margin-left: 8px; }
.status-menu .menu-header .close-menu {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}
.status-menu .menu-header .close-menu:hover {
    opacity: 1;
    transform: rotate(90deg);
}
.status-menu .form-group {
    margin-bottom: 12px;
}
.status-menu .form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 4px;
}
.status-menu .form-group label i { margin-left: 6px; }
.status-menu .options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.status-menu .options button {
    padding: 6px 18px;
    border: 2px solid var(--green-pastel);
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
    font-weight: 500;
}
.status-menu .options button:hover {
    border-color: var(--green-main);
    background: var(--green-pastel);
}
.status-menu .options button.active {
    border-color: var(--green-main);
    background: var(--green-main);
    color: white;
}
.status-menu textarea {
    width: 100%;
    padding: 10px 14px;
    border: 3px solid var(--green-pastel);
    border-radius: 18px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}
.status-menu textarea:focus {
    border-color: var(--green-main);
    outline: none;
}
.status-menu .menu-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.status-menu .menu-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.status-menu .menu-actions .btn-save {
    background: var(--green-main);
    color: white;
}
.status-menu .menu-actions .btn-save:hover {
    background: var(--green-dark);
    transform: scale(1.02);
}

/* ============================================================
   ===== لاگین =====
   ============================================================ */
.login-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 20px;
    flex: 1;
}
.login-box {
    background: var(--cream);
    border-radius: 30px;
    padding: 40px 35px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: popIn 0.6s ease;
}
.login-box .login-logo {
    font-size: 36px;
    margin-bottom: 8px;
}
.login-box .login-logo .green { color: var(--green-main); }
.login-box .login-logo .blue { color: var(--blue-main); }
.login-box .login-logo .orange { color: var(--orange-main); }
.login-box .login-sub {
    color: #7a8f82;
    font-size: 15px;
    margin-bottom: 25px;
}
.login-box .role-select {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}
.login-box .role-select button {
    padding: 16px 8px;
    border: 3px solid var(--green-pastel);
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
    font-weight: 600;
}
.login-box .role-select button i {
    display: block;
    font-size: 32px;
    margin-bottom: 6px;
}
.login-box .role-select button:hover {
    border-color: var(--green-main);
    background: var(--green-pastel);
    transform: translateY(-3px);
}
.login-box .role-select button.active {
    border-color: var(--green-main);
    background: var(--green-main);
    color: white;
}
.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid var(--green-pastel);
    border-radius: 20px;
    font-size: 16px;
    margin-bottom: 14px;
    transition: 0.3s;
}
.login-box input:focus {
    border-color: var(--green-main);
    outline: none;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}
.login-box .login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--green-main), var(--blue-soft));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.login-box .login-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.3);
}

/* ============================================================
   ===== والدین =====
   ============================================================ */
.parents-dashboard {
    max-width: 1100px;
    margin: 0 auto 35px;
    padding: 0 20px;
    flex: 1;
}
.parents-dashboard .welcome {
    background: var(--cream);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease;
}
.parents-dashboard .welcome h2 {
    color: var(--green-main);
    font-size: 28px;
}
.parents-dashboard .welcome h2 i { margin-left: 8px; }
.parents-dashboard .welcome p {
    color: #5a7a6a;
    font-size: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.dash-card {
    background: var(--cream);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 5px solid var(--green-soft);
    transition: 0.3s;
    animation: floatUp 0.6s ease forwards;
    opacity: 0;
}
.dash-card:nth-child(1) { animation-delay: 0.1s; }
.dash-card:nth-child(2) { animation-delay: 0.2s; }
.dash-card:nth-child(3) { animation-delay: 0.3s; }
.dash-card:nth-child(4) { animation-delay: 0.4s; }
.dash-card:hover { transform: translateY(-5px); }
.dash-card .dash-icon {
    font-size: 38px;
    color: var(--green-main);
}
.dash-card h4 {
    color: var(--text-dark);
    margin: 8px 0 6px;
}
.dash-card p {
    color: #7a8f82;
    font-size: 13px;
}
.dash-card:nth-child(2) { border-bottom-color: var(--blue-soft); }
.dash-card:nth-child(2) .dash-icon { color: var(--blue-main); }
.dash-card:nth-child(3) { border-bottom-color: var(--orange-soft); }
.dash-card:nth-child(3) .dash-icon { color: var(--orange-main); }
.dash-card:nth-child(4) { border-bottom-color: var(--gold); }
.dash-card:nth-child(4) .dash-icon { color: var(--gold); }

/* ============================================================
   ===== گزارش =====
   ============================================================ */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.report-table th {
    background: var(--green-main);
    color: white;
    padding: 10px 12px;
    text-align: center;
}
.report-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 2px solid var(--green-pastel);
}
.report-table tr:nth-child(even) {
    background: rgba(168, 213, 186, 0.15);
}
.report-table .status-done {
    color: var(--green-main);
    font-weight: bold;
}
.report-table .status-done i { margin-left: 5px; }
.report-table .status-pending {
    color: var(--orange-main);
    font-weight: bold;
}
.report-table .status-pending i { margin-left: 5px; }

/* ============================================================
   ===== تماس =====
   ============================================================ */
.contact-section {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}
.contact-form {
    background: var(--cream);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.7s ease;
}
.contact-form .form-group {
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 15px;
}
.contact-form label i { margin-left: 8px; color: var(--green-main); }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 18px;
    border: 3px solid var(--green-pastel);
    border-radius: 18px;
    font-size: 15px;
    transition: 0.3s;
    background: white;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--green-main);
    outline: none;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.12);
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 38px;
    font-size: 18px;
    margin-top: 6px;
}
.contact-form h3 {
    color: var(--green-main);
    font-size: 28px;
    margin-bottom: 22px;
    text-align: center;
}
.contact-form h3 i { margin-left: 10px; color: var(--gold); }

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}
.contact-info .item {
    text-align: center;
    padding: 22px 15px;
    background: var(--cream);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-bottom: 4px solid var(--green-soft);
}
.contact-info .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.15);
}
.contact-info .item .icon {
    font-size: 30px;
    color: var(--green-main);
    display: block;
    margin-bottom: 8px;
}
.contact-info .item .label {
    color: #7a8f82;
    font-size: 13px;
    margin-top: 4px;
}
.contact-info .item .value {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 14px;
    margin-top: 2px;
}
.contact-info .item:nth-child(2) { border-bottom-color: var(--blue-soft); }
.contact-info .item:nth-child(2) .icon { color: var(--blue-main); }
.contact-info .item:nth-child(3) { border-bottom-color: var(--orange-soft); }
.contact-info .item:nth-child(3) .icon { color: var(--orange-main); }
.contact-info .item:nth-child(4) { border-bottom-color: var(--gold); }
.contact-info .item:nth-child(4) .icon { color: var(--gold); }

/* ============================================================
   ===== فوتر =====
   ============================================================ */
.footer {
    background: linear-gradient(135deg, var(--green-main), var(--blue-main));
    color: white;
    text-align: center;
    padding: 28px 20px;
    margin-top: auto;
    border-top: 6px solid var(--gold);
}
.footer .logo-footer {
    font-size: 20px;
    font-weight: 900;
}
.footer .logo-footer .gold { color: var(--gold); }
.footer .logo-footer i { margin: 0 4px; }
.footer .sub-footer {
    font-size: 13px;
    opacity: 0.8;
    margin: 4px 0 12px;
}
.footer .social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
}
.footer .social a {
    color: var(--orange-pastel);
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
    display: inline-block;
    background: rgba(255,255,255,0.08);
    padding: 5px 12px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.1);
}
.footer .social a:hover {
    color: white;
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
}
.footer .social a i { font-size: 18px; }
.footer .info {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.9;
}
.footer .info span {
    display: inline-block;
    margin: 0 10px;
}
.footer .info i { margin-left: 5px; }
.footer .copy {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.6;
}

/* ============================================================
   ===== خالی بودن =====
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #aaa;
}
.empty-state i {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    color: var(--green-pastel);
}
.empty-state h4 {
    color: var(--text-dark);
    font-size: 17px;
}
.empty-state p {
    font-size: 14px;
    margin-top: 4px;
}
.empty-state button {
    margin-top: 12px;
    padding: 8px 24px;
    background: var(--green-main);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}
.empty-state button:hover {
    background: var(--green-dark);
    transform: scale(1.05);
}

/* ============================================================
   ===== واکنش‌گرا =====
   ============================================================ */
@media (max-width: 992px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .blog-posts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-info { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .course-card { min-height: 230px; padding: 25px 16px; }
    .course-card .icon { font-size: 42px; }
    .course-card h3 { font-size: 18px; }
    .contact-form { padding: 30px 25px; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .admin-form { grid-template-columns: 1fr; }
    .admin-form .full-width { grid-column: span 1; }
    .admin-form .btn-submit { grid-column: span 1; }
    .admin-box { padding: 18px 16px; }
    .admin-list .list-item { flex-wrap: wrap; gap: 8px; }
    .admin-list .list-item .item-info { width: 100%; }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
    }
    .logo h1 { font-size: 26px; justify-content: center; }
    .logo-img { width: 60px; height: 60px; }
    .nav {
        justify-content: center;
        margin-top: 8px;
        gap: 3px;
    }
    .nav a {
        font-size: 12px;
        padding: 5px 10px;
    }
    .nav a i { font-size: 11px; }
    .hero h2 { font-size: 26px; }
    .hero .slogan { font-size: 16px; }
    .section-title { font-size: 22px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-item { padding: 20px 15px; min-height: 100px; }
    .stat-item .number { font-size: 32px; }
    .stat-item .label { font-size: 14px; }
    .about-content { grid-template-columns: 1fr; }
    .footer .info span { display: block; margin: 4px 0; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .report-table { font-size: 12px; }
    .report-table th, .report-table td { padding: 6px 8px; }
    .about-content .image { min-height: 130px; font-size: 40px; }
    .login-box .role-select { grid-template-columns: 1fr; }
    .panel-header { flex-direction: column; text-align: center; gap: 10px; }
    .student-list .student-item { flex-wrap: wrap; gap: 8px; }
    .student-list .student-item .action-btns { width: 100%; justify-content: center; }
    .status-menu { padding: 20px; }
    .status-menu .options button { padding: 5px 12px; font-size: 12px; }
    .dash-card {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        text-align: right !important;
        padding: 20px !important;
    }
    .dash-card .dash-icon { font-size: 32px !important; min-width: 50px; margin-bottom: 0 !important; }
    .dash-card .dash-content { flex: 1; }
    .dash-card h4 { font-size: 16px !important; margin: 0 0 4px 0 !important; }
    .dash-card p { font-size: 13px !important; margin: 0 0 6px 0 !important; }
    .dash-card .btn-small { font-size: 12px !important; padding: 6px 16px !important; margin-top: 0 !important; }
    .contact-info .item { padding: 16px 12px; }
    .contact-info .item .icon { font-size: 24px; }
    .contact-info .item .value { font-size: 13px; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .admin-list .list-item { flex-wrap: wrap; gap: 8px; }
    .admin-list .list-item .item-info { width: 100%; }
    .teacher-card { min-width: 160px; max-width: 160px; }
    .teacher-card h4 { font-size: 14px; }
    .teacher-card .role { font-size: 11px; }
    .teacher-card .class-badge { font-size: 10px; padding: 2px 10px; }
    .teachers-slider-wrapper { padding: 14px 16px; }
    .avatar-circle { width: 34px; height: 34px; font-size: 15px; line-height: 34px; }
    .avatar-dropdown { min-width: 150px; left: -10px; }
}

@media (max-width: 600px) {
    .course-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 15px; }
    .blog-posts { grid-template-columns: 1fr; gap: 16px; padding: 0 15px; }
    .course-card { min-height: 200px; padding: 22px 16px; border-radius: 22px; }
    .course-card .icon { font-size: 38px; }
    .course-card h3 { font-size: 17px; }
    .course-card p { font-size: 13px; }
    .course-card .btn-small { font-size: 13px; padding: 8px 22px; }
    .blog-item { padding: 20px; }
    .blog-item h4 { font-size: 16px; }
    .blog-item p { font-size: 13px; }
    .contact-section { padding: 0 15px; margin-bottom: 35px; }
    .contact-form { padding: 22px 18px; border-radius: 22px; }
    .contact-form h3 { font-size: 22px; margin-bottom: 18px; }
    .contact-form label { font-size: 14px; }
    .contact-form input, .contact-form textarea, .contact-form select { padding: 10px 14px; font-size: 14px; border-radius: 14px; }
    .contact-form textarea { min-height: 100px; }
    .contact-form .btn { font-size: 16px; padding: 12px 30px; }
    .contact-info { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dash-card { padding: 16px !important; gap: 12px !important; }
    .dash-card .dash-icon { font-size: 28px !important; min-width: 40px; }
    .dash-card h4 { font-size: 15px !important; }
    .dash-card p { font-size: 12px !important; }
    .dash-card .btn-small { font-size: 11px !important; padding: 5px 14px !important; }
    .stats { gap: 15px; }
    .stat-item { padding: 18px 12px; min-height: 80px; }
    .stat-item .number { font-size: 28px; }
    .stat-item .label { font-size: 13px; }
    .teacher-card { min-width: 140px; max-width: 140px; }
    .teacher-card h4 { font-size: 13px; }
    .teacher-card .role { font-size: 10px; }
    .teacher-card .class-badge { font-size: 9px; padding: 2px 8px; }
    .teachers-slider-wrapper { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .contact-info { grid-template-columns: 1fr; gap: 10px; }
    .contact-info .item {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: right;
        padding: 14px 12px;
        border-bottom: 3px solid var(--green-soft);
    }
    .contact-info .item .icon { font-size: 22px; margin-bottom: 0; min-width: 40px; }
    .contact-info .item .label { font-size: 11px; margin-top: 0; }
    .contact-info .item .value { font-size: 12px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
    .dash-card { padding: 14px 12px !important; gap: 10px !important; }
    .dash-card .dash-icon { font-size: 24px !important; min-width: 35px; }
    .dash-card h4 { font-size: 14px !important; }
    .dash-card p { font-size: 12px !important; }
    .dash-card .btn-small { font-size: 11px !important; padding: 4px 12px !important; }
    .stats { grid-template-columns: 1fr; gap: 12px; }
    .stat-item { padding: 14px 10px; min-height: 60px; }
    .stat-item .number { font-size: 24px; }
    .stat-item .label { font-size: 12px; }
    .course-grid { gap: 12px; padding: 0 10px; }
    .course-card { min-height: 180px; padding: 18px 12px; border-radius: 18px; }
    .course-card .icon { font-size: 32px; }
    .course-card h3 { font-size: 15px; margin: 6px 0 4px; }
    .course-card p { font-size: 12px; }
    .course-card .btn-small { font-size: 12px; padding: 6px 16px; }
    .blog-posts { gap: 12px; padding: 0 10px; }
    .blog-item { padding: 16px; border-right-width: 5px; }
    .blog-item h4 { font-size: 15px; }
    .blog-item p { font-size: 12px; }
    .blog-item .date { font-size: 11px; }
    .blog-item .tag { font-size: 11px; padding: 2px 12px; }
    .contact-form { padding: 16px 12px; border-radius: 18px; }
    .contact-form h3 { font-size: 19px; margin-bottom: 14px; }
    .contact-form label { font-size: 13px; }
    .contact-form input, .contact-form textarea, .contact-form select { padding: 8px 12px; font-size: 13px; border-radius: 12px; border-width: 2px; }
    .contact-form .btn { font-size: 14px; padding: 10px 24px; }
    .admin-stats { grid-template-columns: 1fr; gap: 10px; }
    .admin-box .box-header i { font-size: 20px; width: 40px; height: 40px; padding: 8px; }
    .admin-box .box-header h3 { font-size: 17px; }
    .teacher-card { min-width: 130px; max-width: 130px; }
    .teacher-card h4 { font-size: 12px; }
    .teacher-card .role { font-size: 10px; }
    .teacher-card .class-badge { font-size: 9px; padding: 1px 8px; }
    .teachers-slider-wrapper { padding: 10px 12px; }
    .section-title { font-size: 18px; }
    .brain-heart-icon { font-size: 30px; gap: 3px; }
    .brain-heart-icon .plus-icon,
    .brain-heart-icon .equals-icon { font-size: 16px; }
    .brain-heart-icon .hat-icon { font-size: 26px; }
    .about-content .image { min-height: 120px; font-size: 40px; }
    .logo-img { width: 50px; height: 50px; }
    .avatar-circle { width: 30px; height: 30px; font-size: 13px; line-height: 30px; }
    .avatar-dropdown { min-width: 130px; left: -15px; }
}