/* ===== تنظیمات کلی ===== */



*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    direction:rtl;

    font-family:"B Titr",Tahoma,sans-serif;

    background:#f7f5fc;

    color:#333;

}

/* ===== کانتینر ===== */

.container{

    width:90%;

    max-width:1300px;

    margin:auto;

}

/* ===== هدر ===== */

.header {
    background-image:
        linear-gradient(
            90deg,
            rgba(45, 15, 90, 0.15),
            rgba(45, 15, 90, 0.05)
        ),
        url("../images/header-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #fff;

    box-shadow: 0 3px 15px rgba(0,0,0,.12);
}

.header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo h2{

    font-size:34px;

}

nav a{

    color:white;

    text-decoration:none;

    margin-left:30px;

    font-size:20px;

    transition:.3s;

}

nav a:hover{

    color:#ffe88d;

}

/* ===== بنر ===== */

.hero{

    background:linear-gradient(135deg,#7b4dff,#9b6dff);

    color:white;

    text-align:center;

    padding:120px 20px;

}

.hero h1{

    font-size:52px;

    margin-bottom:25px;

}

.hero p{

    font-size:22px;

    opacity:.95;

    margin-bottom:40px;

}

.btn{

    background:white;

    color:#7b4dff;

    padding:18px 45px;

    border-radius:12px;

    text-decoration:none;

    font-size:22px;

    font-weight:bold;

    transition:.3s;

}

.btn:hover{

    background:#f1e9ff;

}

/* ===== بخش دروس ===== */

.courses{

    padding:80px 0;

}

.courses h2{

    text-align:center;

    font-size:42px;

    margin-bottom:50px;

}

/* ===== کارت ها ===== */

.cards{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.card{

    background:white;

    border-radius:18px;

    padding:35px;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.35s;

}

.card:hover{

    transform:translateY(-10px);

    box-shadow:0 18px 45px rgba(123,77,255,.20);

}

.card h3{

    color:#7b4dff;

    font-size:30px;

    margin-bottom:25px;

}

.card ul{

    list-style:none;

}

.card li{

    margin:14px 0;

}

.card a{

    color:#444;

    text-decoration:none;

    font-size:21px;

}

.card a:hover{

    color:#7b4dff;

}

/* ===== فوتر ===== */

.footer{

    margin-top:80px;

    background:#fff;

    padding:35px;

    text-align:center;

    color:#666;

    border-top:1px solid #ececec;

}


.start-btn{

    display:block;

    margin-top:30px;

    text-align:center;

    background:#7b4dff;

    color:white;

    text-decoration:none;

    padding:14px;

    border-radius:10px;

    font-size:20px;

    transition:.3s;

}

.start-btn:hover{

    background:#5d2de2;

}

.card ul{

    margin-top:20px;

}

.card li{

    margin:15px 0;

    border-bottom:1px solid #eee;

    padding-bottom:10px;

}

@media (max-width: 768px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .subscription-plans {
        grid-template-columns: 1fr;
    }

    .result-details {
        flex-direction: column;
        gap: 6px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    button,
    input,
    textarea,
    select {
        max-width: 100%;
    }

}


/* =====================================================
   Teta Header Hero
   ===================================================== */

.header-hero {
    position: relative;
    z-index: 2;
}

.header-hero-content {
    width: 55%;
    padding-top: 35px;
    padding-bottom: 55px;

    direction: rtl;
    text-align: right;

    color: #fff;

    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.header-hero-content h1 {
    margin: 0 0 18px;

    font-size: 38px;
    font-weight: 900;

    color: #fff;
}

.header-hero-content p {
    margin: 7px 0;

    font-size: 18px;
    line-height: 1.8;

    color: #f4edff;
}


/* =====================================================
   Mobile
   ===================================================== */

@media (max-width: 768px) {

    .header-hero-content {
        width: 100%;

        padding-top: 20px;
        padding-bottom: 35px;

        text-align: center;
    }

    .header-hero-content h1 {
        font-size: 28px;
    }

    .header-hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

}


/* =====================================================
   Small Mobile
   ===================================================== */

@media (max-width: 480px) {

    .header-hero-content {
        padding-top: 15px;
        padding-bottom: 25px;
    }

    .header-hero-content h1 {
        font-size: 24px;
    }

    .header-hero-content p {
        font-size: 14px;
    }

}

.teta-logo {
    font-size: 70px !important;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}
@media (max-width: 768px) {
    .teta-logo {
        font-size: 50px !important;
    }
}

/* رنگ لینک‌های هدر */
.header-actions a,
.header-actions a:visited,
.header-actions a:hover,
.header-actions a:active {
    color: #ffffff !important;
    text-decoration: none;
}

/* نام کاربر */
.header-profile {
    color: #ffffff !important;
}

/* اشتراک */
.header-subscription {
    color: #ffffff !important;
}

/* خروج */
.header-logout {
    color: #ffffff !important;
}

/* ورود */
.header-login {
    color: #ffffff !important;
}
.header-subscription {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

/* =========================================
   Teta Feature Cards
   ========================================= */

.teta-features {
    width: 100%;
    padding: 35px 0;
    background: #fff;
}

.teta-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    direction: rtl;
}

.teta-feature-card {
    text-align: center;
    padding: 15px;
    border-radius: 18px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.teta-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(80, 40, 140, .12);
}

.teta-feature-card img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0 auto 10px;
}

.teta-feature-card h3 {
    margin: 5px 0 0;
    color: #5b2bbd;
    font-size: 17px;
    font-weight: 700;
}


/* موبایل */

@media (max-width: 768px) {

    .teta-features {
        padding: 25px 10px;
    }

    .teta-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .teta-feature-card {
        padding: 8px;
    }

    .teta-feature-card img {
        max-width: 160px;
    }

    .teta-feature-card h3 {
        font-size: 14px;
    }

}


/* موبایل خیلی کوچک */

@media (max-width: 480px) {

    .teta-features-grid {
        gap: 8px;
    }

    .teta-feature-card img {
        max-width: 145px;
    }

    .teta-feature-card h3 {
        font-size: 13px;
    }

}

.tk-user-menu {
    display: flex;
    align-items: center;
    gap: 6px;

    background: #ffffff;

    padding: 7px 9px;

    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);

    width: fit-content;
}

/* باکس سفید منوی کاربر */
.header-actions .tk-user-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: #ffffff !important;
    padding: 7px 9px;
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);

    width: auto;
}

/* متن لینک‌ها */
.header-actions .tk-user-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    color: #4c1d95 !important;

    text-decoration: none !important;

    padding: 8px 12px;
    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;
}

/* حالت رفتن موس */
.header-actions .tk-user-menu a:hover {
    background: #f3e8ff !important;
    color: #6d28d9 !important;
}

/* موبایل */
@media (max-width: 600px) {

    .header-actions .tk-user-menu {
        gap: 3px;
        padding: 5px 6px;
        border-radius: 12px;
    }

    .header-actions .tk-user-menu a {
        padding: 7px 8px;
        font-size: 12px;
        color: #4c1d95 !important;
    }
}


.tk-user-menu a:hover {
    background: #f3e8ff;
    color: #7c3aed;
}

@media (max-width: 600px) {

    .tk-user-menu {
        gap: 3px;
        padding: 5px 6px;
        border-radius: 12px;
        max-width: 100%;
    }

    .tk-user-menu a {
        padding: 7px 8px;
        font-size: 12px;
    }

}

.tk-subscription-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.tk-subscription-history-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
}

.tk-history-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tk-history-status {
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.tk-history-status.active {
    background: #dcfce7;
    color: #15803d;
}

.tk-history-status.expired {
    background: #f3f4f6;
    color: #6b7280;
}

.tk-history-date {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

@media (max-width: 600px) {

    .tk-subscription-history-item {
        padding: 13px;
    }

    .tk-history-plan {
        align-items: flex-start;
    }

    .tk-history-date {
        flex-direction: column;
        gap: 6px;
    }

}

/* =====================================================
   Teta Blog - Vertical Posts
   ===================================================== */

.teta-blog-page {
    direction: rtl;
    text-align: right;
    padding: 50px 20px;
}

.teta-blog {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* عنوان وبلاگ */

.teta-blog-header {
    text-align: center;
    margin-bottom: 45px;
}

.teta-blog-header h1 {
    color: #5b2bbd;
    font-size: 42px;
    margin-bottom: 10px;
}

.teta-blog-header p {
    color: #777;
    font-size: 18px;
}

/* هر پست */

.teta-blog-post {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
}

/* عنوان پست */

.teta-post-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.teta-post-header h2 {
    color: #4c1d95;
    font-size: 30px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.teta-post-date {
    color: #999;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
}

/* متن کامل پست */

.teta-post-content {
    color: #444;
    font-family: Tahoma, sans-serif;
    font-size: 16px;
    line-height: 2.2;
}

.teta-post-content p {
    margin-bottom: 20px;
}

/* تصاویر داخل پست */

.teta-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 14px;
}

/* بخش لایک و کامنت */

.teta-post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* دکمه لایک */

.teta-like-button,
.teta-comments-toggle {
    border: 0;
    cursor: pointer;
    background: #f7f5fc;
    color: #555;
    padding: 10px 15px;
    border-radius: 12px;
    font-family: Tahoma, sans-serif;
    transition: .2s;
}

.teta-like-button:hover,
.teta-comments-toggle:hover {
    background: #f0e9ff;
}

/* وقتی کاربر لایک کرده */

.teta-like-button.liked {
    background: #fff0f2;
    color: #d6336c;
}

.teta-like-icon {
    font-size: 20px;
    margin-left: 4px;
}

.teta-like-count {
    font-weight: bold;
    margin-right: 4px;
}

/* بخش نظرات */

.teta-comments-box {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.teta-comments-box.open {
    display: block;
}

/* پیام بسته بودن نظرات */

.teta-comments-disabled {
    color: #888;
    text-align: center;
}

/* صفحه بندی */

.teta-blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.teta-blog-pagination .page-numbers {
    padding: 8px 13px;
    border-radius: 9px;
    background: #fff;
    color: #5b2bbd;
    text-decoration: none;
}

.teta-blog-pagination .page-numbers.current {
    background: #7b4dff;
    color: #fff;
}

/* موبایل */

@media (max-width: 600px) {

    .teta-blog-page {
        padding: 30px 10px;
    }

    .teta-blog {
        width: 100%;
    }

    .teta-blog-post {
        padding: 20px;
        border-radius: 14px;
    }

    .teta-post-header h2 {
        font-size: 24px;
    }

    .teta-post-content {
        font-size: 15px;
    }

    .teta-post-actions {
        flex-wrap: wrap;
    }

}

/* =========================================
   TestKade Profile Dashboard
========================================= */

.tk-profile-dashboard {
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
    direction: rtl;
}


/* =========================================
   Profile Header
========================================= */

.tk-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;

    background: #ffffff;

    padding: 25px;

    border-radius: 18px;

    border: 1px solid #eeeeee;

    box-shadow: 0 5px 20px rgba(0,0,0,0.06);

    margin-bottom: 22px;
}

.tk-profile-avatar {
    width: 70px;
    height: 70px;

    min-width: 70px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1edff;

    font-size: 34px;
}

.tk-profile-info h2 {
    margin: 0 0 12px;
}

.tk-profile-meta {
    display: flex;
    gap: 25px;

    flex-wrap: wrap;

    color: #666;

    font-size: 14px;
}


/* =========================================
   Grid
========================================= */

.tk-profile-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 20px;
}


/* =========================================
   Cards
========================================= */

.tk-profile-card {

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    padding: 24px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.06);

    box-sizing: border-box;
}

.tk-profile-card h2 {

    margin-top: 0;

    margin-bottom: 20px;

    font-size: 20px;
}


/* کارت تمام عرض */

.tk-full-card {

    margin-bottom: 20px;
}


/* =========================================
   اطلاعات اشتراک
========================================= */

.tk-info-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 0;

    border-bottom: 1px solid #eeeeee;

    font-size: 14px;
}

.tk-info-row:last-child {
    border-bottom: none;
}


/* =========================================
   Subscription
========================================= */

.subscription-active {

    background: #eaf8ef;

    color: #198754;

    padding: 10px 14px;

    border-radius: 10px;

    font-size: 14px;

    margin-bottom: 15px;
}

.subscription-expired {

    background: #fff0f0;

    color: #dc3545;

    padding: 12px 14px;

    border-radius: 10px;
}


/* =========================================
   Forms
========================================= */

.tk-profile-card label {

    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 600;
}

.tk-profile-card input {

    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    margin-bottom: 15px;

    border: 1px solid #dddddd;

    border-radius: 10px;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition: 0.2s;
}

.tk-profile-card input:focus {

    border-color: #8b6fd8;

    box-shadow:
        0 0 0 3px rgba(139,111,216,0.10);
}


/* =========================================
   Buttons
========================================= */

.tk-primary-btn,
.tk-secondary-btn {

    border: none;

    border-radius: 10px;

    padding: 11px 18px;

    font-family: inherit;

    cursor: pointer;

    font-size: 14px;

    transition: 0.2s;
}

.tk-primary-btn {

    background: #6f42c1;

    color: #ffffff;
}

.tk-primary-btn:hover {

    transform: translateY(-1px);

    opacity: 0.9;
}

.tk-secondary-btn {

    background: #f1edff;

    color: #6f42c1;
}

.tk-secondary-btn:hover {

    background: #e7defd;
}


/* =========================================
   Email
========================================= */

.tk-current-email {

    background: #f8f8fb;

    border-radius: 10px;

    padding: 13px;

    font-size: 14px;

    word-break: break-word;

    margin-bottom: 15px;
}

.tk-current-email span {

    display: block;

    color: #777;

    margin-bottom: 5px;
}

.tk-current-email strong {

    display: block;
}


/* =========================================
   Referral
========================================= */

.referral-code {

    background: #f7f4ff;

    border: 2px dashed #8b6fd8;

    border-radius: 12px;

    text-align: center;

    padding: 15px;

    font-size: 22px;

    font-weight: bold;

    letter-spacing: 2px;

    color: #6f42c1;

    margin: 15px 0;
}

.referral-reward-text {

    font-size: 13px;

    line-height: 1.9;

    color: #666;
}


/* =========================================
   Subscription History
========================================= */

.tk-subscription-history {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.tk-subscription-history-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px;

    background: #fafafa;

    border-radius: 12px;

    border: 1px solid #eeeeee;
}

.tk-history-plan {

    display: flex;

    align-items: center;

    gap: 10px;
}

.tk-history-status {

    padding: 4px 9px;

    border-radius: 7px;

    font-size: 12px;
}

.tk-history-status.active {

    background: #eaf8ef;

    color: #198754;
}

.tk-history-status.expired {

    background: #f1f1f1;

    color: #777;
}

.tk-history-date {

    display: flex;

    gap: 25px;

    font-size: 13px;

    color: #666;
}


/* =========================================
   Discount Codes
========================================= */

.profile-discount-list {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.profile-discount-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 15px;

    border-radius: 12px;

    background: #fafafa;

    border: 1px solid #eeeeee;
}

.discount-info {

    display: flex;

    align-items: center;

    gap: 15px;
}

.discount-code {

    background: #f1edff;

    color: #6f42c1;

    padding: 6px 10px;

    border-radius: 7px;

    font-weight: bold;

    direction: ltr;
}

.discount-status {

    padding: 5px 10px;

    border-radius: 7px;

    font-size: 12px;
}

.discount-status.active {

    background: #eaf8ef;

    color: #198754;
}

.discount-status.used {

    background: #f1f1f1;

    color: #777;
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {

    .tk-profile-dashboard {

        margin: 20px auto;

        padding: 0 12px;
    }


    .tk-profile-header {

        flex-direction: column;

        text-align: center;

        padding: 20px;
    }


    .tk-profile-meta {

        flex-direction: column;

        align-items: center;

        gap: 8px;
    }


    .tk-profile-grid {

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .tk-profile-card {

        padding: 18px;
    }


    .tk-profile-card h2 {

        font-size: 18px;
    }


    .tk-subscription-history-item {

        flex-direction: column;

        align-items: flex-start;
    }


    .tk-history-date {

        flex-direction: column;

        gap: 6px;
    }


    .profile-discount-item {

        flex-direction: column;

        align-items: flex-start;
    }


    .discount-info {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }


    .discount-status {

        align-self: flex-start;
    }

}

.tk-negative-bar {
    background: #dc3545;
}