/*
Theme Name: myClass
Theme URI: http://localhost/wp
Author: Abolfazl Emami
Author URI:
Description: قالب اختصاصی کلاس ابتدایی
Version: 1.0
Text Domain: class-six
*/

/* =========================
   Reset
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    font-family: "B Titr", Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   MYCLASS DASHBOARD
========================================================= */

.dashboard-container {
    padding-top: 40px;
    padding-bottom: 70px;
}

/* ---------------------------------------------------------
   Welcome
--------------------------------------------------------- */

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 30px 35px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff, #f7faf8);
    border-radius: 24px;
    border: 1px solid #e7eee9;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.welcome-content {
    min-width: 0;
}

.welcome-small {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #6b7280;
}

.welcome-content h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    color: #1f2937;
}

.welcome-content p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.welcome-class {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 18px 25px;
    border-radius: 18px;
    background: #eef8f0;
}

.welcome-class span {
    font-size: 14px;
    color: #66736a;
    margin-bottom: 5px;
}

.welcome-class strong {
    font-size: 24px;
    color: #2f7d4a;
}

/* ---------------------------------------------------------
   Title
--------------------------------------------------------- */

.dashboard-title {
    margin-bottom: 22px;
}

.dashboard-title h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
}

.dashboard-title p {
    margin: 0;
    color: #737b75;
    font-size: 15px;
}

/* ---------------------------------------------------------
   Grid
--------------------------------------------------------- */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* ---------------------------------------------------------
   Card
--------------------------------------------------------- */

.dashboard-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 145px;
    padding: 24px;
    text-decoration: none;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.055);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
    text-decoration: none;
}

/* ---------------------------------------------------------
   Icon
--------------------------------------------------------- */

.dashboard-card-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 32px;
}

/* ---------------------------------------------------------
   Content
--------------------------------------------------------- */

.dashboard-card-content {
    min-width: 0;
}

.dashboard-card-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
}

.dashboard-card-content span {
    font-size: 13px;
    color: #7b817d;
}

/* ---------------------------------------------------------
   Card colors
--------------------------------------------------------- */

.card-yellow .dashboard-card-icon { background: #fff6cf; }
.card-orange .dashboard-card-icon { background: #ffead7; }
.card-blue .dashboard-card-icon { background: #e0efff; }
.card-purple .dashboard-card-icon { background: #eee7ff; }
.card-green .dashboard-card-icon { background: #def5e6; }
.card-red .dashboard-card-icon { background: #ffe3e3; }
.card-pink .dashboard-card-icon { background: #ffe3f0; }
.card-cyan .dashboard-card-icon { background: #dff7f8; }

/* ---------------------------------------------------------
   Guest
--------------------------------------------------------- */

.dashboard-guest {
    max-width: 650px;
    margin: 70px auto;
    padding: 55px 35px;
    text-align: center;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e7eee9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.guest-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.dashboard-guest h1 {
    margin: 0 0 15px;
    font-size: 28px;
    color: #1f2937;
}

.dashboard-guest p {
    margin: 0 auto 28px;
    max-width: 500px;
    line-height: 1.9;
    color: #6b7280;
}

.dashboard-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 13px 25px;
    border-radius: 13px;
    background: #2f7d4a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-login-button:hover {
    background: #25663b;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 650px) {
    .dashboard-container {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
    }

    .welcome-content h1 {
        font-size: 24px;
    }

    .welcome-class {
        align-items: flex-start;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-card {
        min-height: 110px;
        padding: 18px;
    }

    .dashboard-card-icon {
        width: 55px;
        height: 55px;
        font-size: 27px;
    }

    .dashboard-card-content h3 {
        font-size: 16px;
    }

    .dashboard-guest {
        margin: 40px auto;
        padding: 40px 22px;
    }

    .dashboard-guest h1 {
        font-size: 23px;
    }
}

.myclass-header .nav-icon {
    animation: none !important;
    transform: none !important;
}

.myclass-header .myclass-nav-item {
    animation: none !important;
}

/* =========================================================
   MYCLASS HOME
========================================================= */

.myclass-home {
    width: 100%;
    position: relative;
}

/* =========================================================
   HERO — فقط عکس، بدون هیچ محتوای متنی روش
   ارتفاع کاملاً از خود عکس میاد، پس در هیچ سایزی فضای اضافه نمی‌سازه.
========================================================= */

.myclass-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.myclass-hero-bg {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   بخش کارت‌ها
========================================================= */

.myclass-features {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 25px 25px 35px;
    background: transparent;
}

/* =========================================================
   Grid کارت‌ها
========================================================= */

.myclass-features-grid {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    direction: rtl;
    align-items: stretch;
}

/* =========================================================
   CARD
========================================================= */

.myclass-feature-card {
    position: relative;
    min-width: 0;
    min-height: 340px;
    overflow: hidden;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, .9);
    text-align: center;
    box-shadow: 0 8px 18px rgba(42, 70, 100, .12), 0 2px 5px rgba(42, 70, 100, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    isolation: isolate;
}

.myclass-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 32px rgba(42, 70, 100, .18), 0 4px 8px rgba(42, 70, 100, .08);
}

/* =========================================================
   قسمت بالایی کارت
========================================================= */

.myclass-card-icon {
    position: relative;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
}

/* دایره پشت آیکون */

.myclass-card-icon span {
    width: 105px;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 56px;
    line-height: 1;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .10), inset 0 4px 8px rgba(255, 255, 255, .35);
    transition: transform .25s ease;
}

/* حرکت بسیار ملایم هنگام hover */

.myclass-feature-card:hover .myclass-card-icon span {
    transform: scale(1.08) rotate(-3deg);
}

/* =========================================================
   بدنه سفید کارت
========================================================= */

.myclass-card-body {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    min-height: 190px;
    padding: 20px 14px 14px;
    border-radius: 23px;
    background: #ffffff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   عنوان کارت
========================================================= */

.myclass-card-body h2 {
    margin: 0 0 8px;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 900;
    color: #173d70;
}

/* رنگ عنوان هر کارت هم‌رنگ خود کارت */

.myclass-feature-card.yellow .myclass-card-body h2 { color: #f5b511; }
.myclass-feature-card.orange .myclass-card-body h2 { color: #ff9d16; }
.myclass-feature-card.green .myclass-card-body h2 { color: #65bf25; }
.myclass-feature-card.blue .myclass-card-body h2 { color: #319de9; }
.myclass-feature-card.purple .myclass-card-body h2 { color: #8b4cda; }
.myclass-feature-card.pink .myclass-card-body h2 { color: #e94f91; }
.myclass-feature-card.cyan .myclass-card-body h2 { color: #29b6ba; }
.myclass-feature-card.teal .myclass-card-body h2 { color: #25b493; }

/* =========================================================
   توضیح کارت
========================================================= */

.myclass-card-body p {
    width: 100%;
    min-height: 60px;
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 600;
    color: #344b66;
}

/* =========================================================
   دکمه کارت
========================================================= */

.myclass-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    margin-top: auto;
    padding: 10px 25px;
    border-radius: 30px;
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .13);
    transition: transform .2s ease, box-shadow .2s ease;
}

.myclass-card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .18);
}

/* =========================================================
   رنگ کارت‌ها
========================================================= */

/* ⭐ امتیازات */
.myclass-feature-card.yellow { background: #fff2b9; }
.myclass-feature-card.yellow .myclass-card-icon span { background: #ffc928; }
.myclass-feature-card.yellow .myclass-card-button { background: #f5b511; }

/* 🏆 نفرات برتر */
.myclass-feature-card.orange { background: #ffe4b6; }
.myclass-feature-card.orange .myclass-card-icon span { background: #ffb52d; }
.myclass-feature-card.orange .myclass-card-button { background: #ff9d16; }

/* 👥 گروه‌ها */
.myclass-feature-card.green { background: #e4f7c9; }
.myclass-feature-card.green .myclass-card-icon span { background: #7bd12f; }
.myclass-feature-card.green .myclass-card-button { background: #65bf25; }

/* 📝 امتحانات */
.myclass-feature-card.blue { background: #d9efff; }
.myclass-feature-card.blue .myclass-card-icon span { background: #4aabed; }
.myclass-feature-card.blue .myclass-card-button { background: #319de9; }

/* 🧪 آزمایشات */
.myclass-feature-card.purple { background: #eadcff; }
.myclass-feature-card.purple .myclass-card-icon span { background: #9d63e7; }
.myclass-feature-card.purple .myclass-card-button { background: #8b4cda; }

/* 📋 حضور و غیاب */
.myclass-feature-card.pink { background: #ffe0ec; }
.myclass-feature-card.pink .myclass-card-icon span { background: #ed68a0; }
.myclass-feature-card.pink .myclass-card-button { background: #e94f91; }

/* 🖼️ گالری */
.myclass-feature-card.cyan { background: #d9f7f7; }
.myclass-feature-card.cyan .myclass-card-icon span { background: #42c6ca; }
.myclass-feature-card.cyan .myclass-card-button { background: #29b6ba; }

/* 📊 گزارش */
.myclass-feature-card.teal { background: #d8f5ed; }
.myclass-feature-card.teal .myclass-card-icon span { background: #38c5a5; }
.myclass-feature-card.teal .myclass-card-button { background: #25b493; }

/* 🎬 ویدئوهای آموزشی */
.myclass-feature-card.red {background: #ffe0e0;}
.myclass-feature-card.red .myclass-card-body h2 {color: #e05252;}
.myclass-feature-card.red .myclass-card-icon span {background: #f06b6b;}
.myclass-feature-card.red .myclass-card-button {background: #e05252;}

/* 📚 نمونه سؤالات */
.myclass-feature-card.indigo {background: #e3e5ff;}
.myclass-feature-card.indigo .myclass-card-body h2 {color: #5964d9;}
.myclass-feature-card.indigo .myclass-card-icon span {background: #717bea;}
.myclass-feature-card.indigo .myclass-card-button {background: #5964d9;}

/* 📖 کتابخانه */
.myclass-feature-card.brown {background: #f3e5d5;}
.myclass-feature-card.brown .myclass-card-body h2 {color: #9a6a42;}
.myclass-feature-card.brown .myclass-card-icon span {background: #b9855b;}
.myclass-feature-card.brown .myclass-card-button {background: #9a6a42;}

/* =========================================================
   پیام انگیزشی پایین
========================================================= */

.myclass-motivation {
    width: 100%;
    padding: 20px 20px 45px;
    text-align: center;
}

.myclass-motivation-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 90%;
    padding: 14px 32px;
    border-radius: 40px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(42, 70, 100, .12);
    color: #173d70;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
}

.motivation-star {
    display: inline-block;
    font-size: 25px;
    animation: myclass-star 2s ease-in-out infinite;
}

@keyframes myclass-star {
    0%, 100% {
        transform: scale(1) rotate(0);
    }
    50% {
        transform: scale(1.12) rotate(8deg);
    }
}

/* =========================================================
   تبلت
========================================================= */

@media (max-width: 1250px) {
    .myclass-features-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 950px;
    }
}

/* =========================================================
   تبلت کوچک
========================================================= */

@media (max-width: 800px) {
    .myclass-features {
        padding-left: 18px;
        padding-right: 18px;
    }

    .myclass-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .myclass-feature-card {
        min-height: 320px;
    }
}

/* =========================================================
   موبایل
========================================================= */

@media (max-width: 600px) {
    .myclass-features {
        padding: 20px 12px 30px;
    }

    .myclass-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .myclass-feature-card {
        min-height: 285px;
        border-radius: 22px;
    }

    .myclass-card-icon {
        height: 120px;
    }

    .myclass-card-icon span {
        width: 78px;
        height: 78px;
        font-size: 42px;
    }

    .myclass-card-body {
        left: 6px;
        right: 6px;
        bottom: 6px;
        min-height: 165px;
        padding: 15px 8px 10px;
        border-radius: 19px;
    }

    .myclass-card-body h2 {
        font-size: 18px;
    }

    .myclass-card-body p {
        min-height: 52px;
        font-size: 12px;
        line-height: 1.7;
    }

    .myclass-card-button {
        min-width: 95px;
        padding: 8px 15px;
        font-size: 13px;
    }

    .myclass-motivation {
        padding: 15px 10px 30px;
    }

    .myclass-motivation-box {
        gap: 8px;
        padding: 10px 17px;
        font-size: 13px;
    }

    .motivation-star {
        font-size: 19px;
    }
}

/* =========================================================
   موبایل خیلی کوچک
========================================================= */

@media (max-width: 380px) {
    .myclass-features-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .myclass-feature-card {
        min-height: 300px;
    }
}