﻿/* Kutby site page CSS — grades (split from site-pages.css) */
/* Do not edit site-pages.css for page styles; edit this file. */

/* ---- grades ---- */

.home-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eaed;
    padding: 16px 16px 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    width: 100%;
}

.home-cards-grid {
    display: grid;
    gap: 12px;
}

.home-cards-grid.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-cards-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-cards-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-cards-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-cards-grid > * {
    min-width: 0;
}

.home-cards-grid .phv2-item,
.home-cards-grid > a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-cards-grid .phv2-item > a,
.home-cards-grid > a {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-cards-grid .phv2-card {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .home-cards-grid.cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-cards-grid.cols-3,
    .home-cards-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-cards-grid.cols-5,
    .home-cards-grid.cols-3,
    .home-cards-grid.cols-4,
    .home-cards-grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}



.edu-home-page,
.blog-page {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

.edu-home-page .edu-page-title,
.blog-page .blog-hero-title,
.blog-page .blog-article-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.blog-page .blog-hero-title {
    font-size: 28px;
}

.blog-page .blog-article-title {
    font-size: clamp(18px, 3vw, 22px);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-page .blog-article-lead {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
}

.blog-page .blog-article-body {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    color: #475569;
}

.blog-page .blog-article-body h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.blog-page .blog-article-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
}

.blog-page .blog-article-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    line-height: 1.45;
}

.blog-page .blog-article-body h5 {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
}

.edu-home-page .edu-page-kicker {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 6px;
    line-height: 1.3;
}

.edu-home-page .edu-page-desc,
.blog-page .blog-hero-desc {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.blog-page .blog-hero-desc {
    font-size: 15px;
    color: #475569;
    margin-bottom: 16px;
}

.edu-home-page .edu-section-title,
.blog-page .blog-feed-title h2,
.blog-page .blog-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.edu-home-page .edu-section-link,
.blog-page .blog-feed-count {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.edu-home-page .edu-empty-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    text-align: center;
    padding: 24px 0;
}

.blog-page .blog-breadcrumb {
    font-weight: 500;
}

@media (max-width: 640px) {
    .blog-page .blog-hero-title {
        font-size: 22px;
    }

    .blog-page .blog-hero-desc {
        font-size: 13px;
    }
}



.edu-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    direction: rtl;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    line-height: 1.4;
}

.edu-breadcrumb::-webkit-scrollbar {
    display: none;
}

.edu-breadcrumb-link,
.edu-breadcrumb-current,
.edu-breadcrumb-sep {
    flex-shrink: 0;
    white-space: nowrap;
}

.edu-breadcrumb-link {
    color: #2563eb;
    text-decoration: none;
}

.edu-breadcrumb-link:hover {
    text-decoration: underline;
}

.edu-breadcrumb-sep {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1;
}

.edu-breadcrumb-current {
    color: #64748b;
}

.edu-breadcrumb-current.is-current {
    color: #334155;
    font-weight: 600;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}



.grade-thumb {
    --thumb-from: #5b8fdb;
    --thumb-to: #4a7cc8;
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--thumb-from) 0%, var(--thumb-to) 100%);
    color: #fff;
}

.grade-thumb--primary {
    --thumb-from: #5b8fdb;
    --thumb-to: #4a7cc8;
}

.grade-thumb--middle {
    --thumb-from: #4faf8c;
    --thumb-to: #3d9475;
}

.grade-thumb--secondary {
    --thumb-from: #9b7fd4;
    --thumb-to: #7e63b8;
}

.grade-thumb__orb {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
}

.grade-thumb__orb--1 {
    width: 72px;
    height: 72px;
    top: -18px;
    right: 12px;
    opacity: 0.1;
}

.grade-thumb__orb--2 {
    width: 88px;
    height: 88px;
    bottom: -28px;
    left: 8px;
    opacity: 0.07;
}

.grade-thumb__orb--3 {
    width: 32px;
    height: 32px;
    top: 14px;
    left: 18px;
    opacity: 0.12;
}

.grade-thumb__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    padding: 14px 16px 12px;
    direction: rtl;
}

.grade-thumb__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
}

.grade-thumb__icon svg {
    width: 46px;
    height: 46px;
}

.grade-thumb__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.grade-thumb__number {
    font-family: Tajawal, 'Segoe UI', system-ui, sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
}

.grade-thumb__title {
    font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.grade-thumb__stage {
    font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.94;
    margin-top: 2px;
}

.grade-thumb__line {
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
}

@media (max-width: 640px) {
    .grade-thumb {
        height: 120px;
        border-radius: 14px;
    }

    .grade-thumb__icon {
        width: 44px;
        height: 44px;
    }

    .grade-thumb__icon svg {
        width: 38px;
        height: 38px;
    }

    .grade-thumb__number {
        font-size: 42px;
    }

    .grade-thumb__title {
        font-size: 13px;
    }

    .grade-thumb__stage {
        font-size: 11px;
    }
}



.grade-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.grade-card {
    position: relative;
}

.grade-image {
    margin: 10px 12px 8px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fb;
    line-height: 0;
}

.grade-image .grade-thumb {
    display: block;
}

.grade-image-img {
    width: 100%;
    height: 140px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.grade-card-body {
    padding: 10px 14px 14px;
}

.grade-card-stage {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #0369a1;
    text-align: center;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.grade-card-name {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.35;
    margin: 0 0 10px;
}

.grade-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
    margin-bottom: 5px;
}

.grade-card-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #dcfce7;
    flex-shrink: 0;
}

.grade-card-meta-text {
    font-size: 11px;
    font-weight: 500;
    color: #047857;
}

.grade-card-divider {
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .grade-image {
        border-radius: 14px;
    }

    .grade-image-img {
        height: 120px;
        border-radius: 14px;
    }
}



.site-search-field {
    position: relative;
    width: 100%;
}

.site-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
}

.site-search-suggest-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color .12s ease;
}

.site-search-suggest-item:hover,
.site-search-suggest-item.is-active {
    background: #eff6ff;
}

.site-search-suggest-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.site-search-suggest-meta {
    font-size: 11px;
    color: #64748b;
}

.site-search-suggest-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.header-search-container {
    position: relative;
}

.header-search-container .site-search-suggest {
    top: calc(100% + 8px);
}

.hero-search-form .site-search-field {
    flex: 1;
    min-width: 0;
}


