/* ویجت صفحه دانش‌آموز قلم‌چی */
.gk-student-page {
    --gk-green: #00a651;
    --gk-blue: #004a99;
    --gk-red: #e53935;
    --gk-teal: #2ca993;
    --gk-teal-dark: #1c7565;
    --gk-gold: #c49a2c;
    --gk-badge-bg: #dceef8;
    --gk-border: #d8e6f0;
    --gk-text: #1a1a2e;
    --gk-text-muted: #6b7c8f;
    --gk-bg-soft: #f0f6fa;
    --gk-radius: 16px;
    --gk-shadow: 0 2px 14px rgba(0, 74, 153, 0.07);
    font-family: inherit;
    direction: rtl;
    max-width: 100%;
}

.gk-student-page * {
    box-sizing: border-box;
}

.gk-student-section {
    margin-bottom: 28px;
}

/* ── بردکرامب ── */
.gk-student-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--gk-text-muted);
    background-color: #edf4ff;
    border-radius: 12px;
}

.gk-student-breadcrumb a {
    color: #f7941d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gk-student-breadcrumb a:hover {
    color: #d97706;
    text-decoration: none;
}

.gk-student-breadcrumb__sep {
    color: #999;
    font-size: 10px;
}

.gk-student-breadcrumb__current {
    color: var(--gk-text);
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── سکشن ۱ و ۲: کارت ثبت‌نام ── */
.gk-student-reg-card {
    background: linear-gradient(180deg, #eef7fb 0%, #fff 28%);
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius);
    padding: 18px 16px 16px;
    box-shadow: var(--gk-shadow);
}

.gk-student-reg-title-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.gk-student-page .gk-student-reg-title-wrap .gk-student-reg-title {
    display: block;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

.gk-student-page .gk-student-reg-title-wrap .gk-student-reg-brand-icon img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
}

.gk-student-reg-brand-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gk-student-reg-brand-icon img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    background: none;
    border: none;
    box-shadow: none;
}

.gk-student-reg-brand-text {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--gk-text);
    line-height: 1.4;
    white-space: nowrap;
}

.gk-student-reg-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--gk-text);
    line-height: 1.7;
    margin: 0;
}

.gk-student-reg-subtitle {
    font-size: 13px;
    color: var(--gk-text-muted);
    line-height: 1.8;
    margin: 0 0 14px;
}

.gk-student-reg-title .gk-red,
.gk-student-reg-subtitle .gk-red,
.gk-student-reg-features .gk-red,
.gk-student-package-features .gk-red {
    color: var(--gk-red);
    font-weight: 700;
}

.gk-student-reg-features {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.gk-student-reg-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--gk-text);
    margin-bottom: 4px;
}

.gk-student-reg-features li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300a651'%3E%3Cpath d='M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm-1 15l-5-5 1.41-1.41L9 12.17l7.59-7.59L18 6l-9 9z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.gk-student-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
    line-height: 1.5;
}

.gk-student-btn:hover {
    opacity: 0.92;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.gk-student-btn--green {
    background: var(--gk-green);
}

.gk-student-btn--blue {
    background: var(--gk-blue);
}

.gk-student-btn--teal {
    background: var(--gk-teal-dark);
}

/* ── سکشن ۳: کاروسل بنر ── */
.gk-student-banner-carousel {
    position: relative;
}

.gk-student-banner-track-wrap {
    overflow: hidden;
    border-radius: var(--gk-radius);
}

.gk-student-banner-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}

.gk-student-banner-track::-webkit-scrollbar {
    display: none;
}

.gk-student-banner-slide {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    min-width: calc(50% - 6px);
}

.gk-student-banner-link {
    display: block;
    position: relative;
    border-radius: var(--gk-radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    background: linear-gradient(160deg, var(--gk-teal) 0%, var(--gk-teal-dark) 100%);
}

.gk-student-banner-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gk-student-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gk-student-banner-placeholder svg {
    width: 60%;
    max-width: 100px;
    opacity: 0.5;
}

.gk-student-banner-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.gk-student-banner-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gk-border);
    background: #fff;
    color: var(--gk-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    font-family: inherit;
}

.gk-student-banner-nav button:hover {
    background: var(--gk-blue);
    color: #fff;
    border-color: var(--gk-blue);
}

.gk-student-banner-nav button svg {
    width: 16px;
    height: 16px;
}

/* ── سکشن ۴: کتاب‌ها ── */
.gk-student-books-box {
    background: linear-gradient(180deg, #e6f5f8 0%, #d9eff4 100%);
    border-radius: 18px;
    padding: 16px 12px 12px;
    border: 1px solid #c5e4ec;
}

.gk-student-books-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gk-teal-dark);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.6;
}

.gk-student-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.gk-student-book-item {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: #fff;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.gk-student-book-item:hover {
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.15);
}

.gk-student-book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gk-student-book-empty {
    width: 100%;
    height: 100%;
    background: #fff;
}

/* ── سکشن ۵: جدیدترین مطالب ── */
.gk-student-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.gk-student-posts-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gk-text);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.gk-student-posts-viewall {
    font-size: 13px;
    color: var(--gk-blue);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}

.gk-student-posts-viewall:hover {
    text-decoration: underline;
    color: var(--gk-blue);
}

.gk-student-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gk-student-post-card {
    background: #fff;
    border: 1px solid var(--gk-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.gk-student-post-card:hover {
    box-shadow: 0 4px 14px rgba(0, 74, 153, 0.12);
    text-decoration: none;
}

.gk-student-post-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gk-bg-soft);
}

.gk-student-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gk-student-post-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gk-student-post-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gk-blue);
    line-height: 1.7;
    margin: 0 0 8px;
    flex: 1;
}

.gk-student-post-date {
    font-size: 11px;
    color: var(--gk-text-muted);
    margin: 0;
}

/* ── سکشن ۶: پکیج‌های ویژه ── */
.gk-student-packages-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gk-teal-dark);
    margin: 0 0 14px;
    line-height: 1.7;
    text-align: center;
}

.gk-student-packages-title .gk-red {
    color: var(--gk-red);
}

.gk-student-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
}

.gk-student-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 6px;
    border-radius: 10px;
    border: 1.5px solid var(--gk-blue);
    background: #fff;
    color: var(--gk-blue);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.gk-student-tab.is-active {
    background: var(--gk-blue);
    color: #fff;
    border-color: var(--gk-blue);
}

.gk-student-package-panel {
    display: none;
}

.gk-student-package-panel.is-active {
    display: block;
}

.gk-student-package-card {
    background: #fff;
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius);
    padding: 18px 16px 16px;
    box-shadow: var(--gk-shadow);
}

.gk-student-package-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.gk-student-package-heading {
    flex: 1;
}

.gk-student-package-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gk-blue);
    margin: 0 0 4px;
    line-height: 1.6;
}

.gk-student-package-subtitle {
    font-size: 12px;
    color: var(--gk-text-muted);
    margin: 0;
    line-height: 1.7;
}

.gk-student-package-diamond {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: var(--gk-blue);
}

.gk-student-package-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.gk-student-package-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--gk-text);
    margin-bottom: 4px;
}

.gk-student-package-features li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300a651'%3E%3Cpath d='M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm-1 15l-5-5 1.41-1.41L9 12.17l7.59-7.59L18 6l-9 9z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ── سکشن ۷: گرید ۹ تایی ── */
.gk-student-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gk-student-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border: 1px solid var(--gk-border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: var(--gk-text);
    transition: box-shadow 0.2s, border-color 0.2s;
    min-height: 100px;
}

.gk-student-quick-item:hover {
    box-shadow: 0 3px 12px rgba(0, 74, 153, 0.1);
    border-color: #b8d4e8;
    text-decoration: none;
    color: var(--gk-text);
}

.gk-student-quick-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gk-student-quick-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gk-student-quick-icon i,
.gk-student-quick-icon svg {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--gk-teal);
}

.gk-student-quick-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
}

/* ── سکشن ۸: سوالات متداول ── */
.gk-student-faq-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gk-gold);
    margin: 0 0 14px;
    line-height: 1.6;
    text-align: center;
}

.gk-student-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gk-student-faq-item {
    background: #fff;
    border: 1px solid var(--gk-border);
    border-radius: 12px;
    overflow: hidden;
}

.gk-student-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--gk-text);
    text-align: right;
    font-family: inherit;
    line-height: 1.7;
}

.gk-student-faq-question:hover {
    background: var(--gk-bg-soft);
}

.gk-student-faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.25s;
    color: var(--gk-text-muted);
}

.gk-student-faq-item.is-open .gk-student-faq-chevron {
    transform: rotate(180deg);
}

.gk-student-faq-answer {
    display: none;
    padding: 0 16px 14px;
    font-size: 13px;
    color: var(--gk-text-muted);
    line-height: 1.9;
}

.gk-student-faq-item.is-open .gk-student-faq-answer {
    display: block;
}

/* ── نوار شناور موبایل ── */
.gk-student-floating-nav {
    display: none;
}

.gk-student-floating-nav__list {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
}

.gk-student-floating-nav__item {
    flex: 1 1 0;
    min-width: 0;
}

.gk-student-floating-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 6px 2px;
    text-decoration: none;
    color: var(--gk-text-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.gk-student-floating-nav__link:active {
    transform: scale(0.96);
}

.gk-student-floating-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gk-blue);
    opacity: 0.72;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gk-student-floating-nav__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.gk-student-floating-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-student-floating-nav__link.is-featured {
    position: relative;
    margin-top: -10px;
    color: var(--gk-text);
}

.gk-student-floating-nav__link.is-featured .gk-student-floating-nav__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #00b85c, var(--gk-green));
    color: #fff;
    opacity: 1;
    box-shadow: 0 6px 18px rgba(0, 166, 81, 0.35);
}

.gk-student-floating-nav__link.is-featured .gk-student-floating-nav__icon svg {
    width: 20px;
    height: 20px;
}

.gk-student-floating-nav__link.is-active {
    color: var(--gk-blue);
}

.gk-student-floating-nav__link.is-active .gk-student-floating-nav__icon {
    opacity: 1;
}

@media (max-width: 991px) {
    .gk-student-floating-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9990;
        display: block;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(0, 74, 153, 0.08);
        box-shadow: 0 -6px 28px rgba(0, 74, 153, 0.1);
    }

    .gk-student-page {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── ریسپانسیو دسکتاپ ── */
@media (min-width: 768px) {
    .gk-student-page {
        max-width: 720px;
        margin: 0 auto;
    }

    .gk-student-banner-slide {
        flex: 0 0 calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
    }

    .gk-student-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gk-student-reg-title {
        font-size: 19px;
    }

    .gk-student-books-grid {
        gap: 12px;
    }

    .gk-student-reg-brand-icon img {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
    }

    .gk-student-tab {
        font-size: 12px;
        padding: 10px 8px;
    }

    .gk-student-quick-grid {
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .gk-student-page {
        max-width: 900px;
    }

    .gk-student-banner-slide {
        flex: 0 0 calc(25% - 9px);
        min-width: calc(25% - 9px);
    }
}

/* جلوگیری از تداخل دکمه scroll-top تم با ناوبری شناور ویجت */
body:has(.gk-student-page) .pweb-scroll-top {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
