/* ══════════════════════════════════════════════════════════════════
   TEACHERS PAGE: Authentic Islamic Tone ("The Golden Scholars")
   ══════════════════════════════════════════════════════════════════ */

/* --- Hero --- */
.tc-hero {
    position: relative;
    padding: var(--space-6xl) 0 var(--space-4xl);
    background: var(--ic-emerald);
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.tc-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 100%;
    background: radial-gradient(ellipse at top, rgba(201,168,76,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.tc-hero-title {
    font-family: var(--font-arabic-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--ic-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}
.tc-hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-family: var(--font-arabic);
    line-height: 1.8;
}

/* --- Scholar Grid (Parchment) --- */
.tc-grid-section {
    padding: var(--space-5xl) 0;
    background-color: var(--ic-parchment);
    position: relative;
}
.tc-grid-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}
.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* --- The Scholar Card (Authentic Manuscript Style) --- */
.tc-card {
    background: rgba(251, 245, 230, 0.95);
    border: 2px solid rgba(201,168,76,0.25);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(13,43,31,0.07);
}
.tc-card::before, .tc-card::after {
    content: '';
    position: absolute;
    width: 25px; height: 25px;
    border: 2px solid var(--ic-gold);
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.4s ease;
}
.tc-card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.tc-card::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.tc-card:hover {
    transform: translateY(-10px);
    border-color: var(--ic-gold);
    box-shadow: 0 25px 60px rgba(13,43,31,0.15);
}
.tc-card:hover::before, .tc-card:hover::after { opacity: 1; width: 35px; height: 35px; }

/* Scholar Avatar — Radiant Arch Frame */
.tc-avatar-frame {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.tc-avatar-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(var(--ic-gold) 0%, transparent 40%, var(--ic-gold) 60%, transparent 80%, var(--ic-gold) 100%);
    animation: slowRotate 12s linear infinite;
    opacity: 0.8;
}
.tc-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ic-parchment);
    position: relative;
    z-index: 1;
    filter: sepia(0.15);
}
.tc-name {
    font-family: var(--font-arabic-heading);
    font-size: 1.6rem;
    color: var(--ic-emerald-dark);
    margin-bottom: 0.35rem;
}
.tc-specialization {
    font-size: 1rem;
    color: var(--ic-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(201,168,76,0.4);
}
.tc-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ic-emerald);
    color: var(--ic-gold);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.tc-bio {
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--ic-ink);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--ic-emerald-dark);
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--ic-emerald-dark);
    width: 100%;
}
.tc-btn:hover {
    background: var(--ic-emerald-dark);
    color: var(--ic-gold);
}

/* ══════════════════════════════════════════════════════════════════
   BLOG PAGE: Authentic Islamic Tone ("Ancient Scrolls")
   ══════════════════════════════════════════════════════════════════ */

/* --- Blog Hero --- */
.bl-hero {
    position: relative;
    padding: var(--space-6xl) 0 var(--space-4xl);
    background: var(--ic-emerald);
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.bl-hero::before {
    content: '\0635\062d\064a\0641\0629'; /* Arabic "Sahifa" watermark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-arabic-verse);
    font-size: 30vw;
    color: rgba(201,168,76,0.04);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}
.bl-hero-title {
    font-family: var(--font-arabic-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--ic-gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.bl-hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-family: var(--font-arabic);
    line-height: 1.8;
}

/* --- Blog Grid (Parchment) --- */
.bl-grid-section {
    padding: var(--space-5xl) 0;
    background-color: var(--ic-parchment);
    position: relative;
}
.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* --- The Scroll Card (Article) --- */
.bl-card {
    background: rgba(251, 245, 230, 0.95);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(13,43,31,0.07);
    cursor: pointer;
}
.bl-card::before, .bl-card::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border: 2px solid var(--ic-gold);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 2;
}
.bl-card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.bl-card::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.bl-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201,168,76,0.6);
    box-shadow: 0 25px 60px rgba(13,43,31,0.15);
}
.bl-card:hover::before, .bl-card:hover::after { opacity: 1; }

/* Blog Image */
.bl-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: sepia(0.2);
    transition: transform 0.5s ease, filter 0.5s ease;
}
.bl-card:hover .bl-card-img { transform: scale(1.05); filter: sepia(0); }

.bl-card-img-wrapper {
    overflow: hidden;
    position: relative;
}
.bl-card-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--ic-gold);
    color: var(--ic-emerald-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
}
html[lang="en"] .bl-card-category-badge { right: auto; left: 1rem; }

/* Blog Card Body */
.bl-card-body { padding: 2rem; }
.bl-card-date {
    font-size: 0.9rem;
    color: rgba(var(--ic-ink-rgb, 45, 30, 15), 0.5);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bl-card-title {
    font-family: var(--font-arabic-heading);
    font-size: 1.5rem;
    color: var(--ic-emerald-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.bl-card-excerpt {
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--ic-ink);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bl-card-link {
    color: var(--ic-gold);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}
.bl-card-link:hover { color: var(--ic-emerald-dark); }
