/* ==========================================================================
   TALIMZ EDTECH SAAS PORTAL & SCHOOL SHOWCASE STYLES
   Yagona Dizayn Tizimi: Premium Dark/Light Glassmorphism, Responsive Grid
   ========================================================================== */

/* ==========================================================================
   TALIMZ UNIVERSAL DESIGN TOKEN SYSTEM (Dark & Light Mode)
   Barcha sahifalar, foydalanuvchi panellari va yangi maktablar uchun yagona
   ========================================================================== */
:root {
    /* DEFAULT: DARK MODE TOKENS */
    --color-background: #060a14;
    --color-bg-base: #060a14;
    --color-bg-gradient: radial-gradient(circle at 50% 15%, #0d1a36 0%, #060a14 70%);
    --color-surface-card: rgba(10, 16, 31, 0.78);
    --color-surface-card-hover: rgba(13, 22, 42, 0.9);
    --color-surface-glass: rgba(8, 14, 28, 0.48);
    --color-surface-secondary: rgba(6, 10, 20, 0.6);
    --color-surface-input: rgba(6, 10, 20, 0.75);
    
    --color-border: rgba(56, 189, 248, 0.18);
    --color-border-hover: rgba(56, 189, 248, 0.45);
    --color-border-subtle: rgba(255, 255, 255, 0.08);

    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-text-white: #ffffff;

    --color-primary: #1668e8;
    --color-primary-hover: #1d4ed8;
    --color-primary-gradient: linear-gradient(135deg, #1668e8 0%, #0284c7 100%);
    
    --color-accent-cyan: #38bdf8;
    --color-accent-purple: #c084fc;
    --color-accent-emerald: #34d399;
    --color-accent-amber: #fbbf24;

    --color-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.25);
    --color-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --color-shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.5);
    --color-glow-primary: 0 0 35px rgba(22, 104, 232, 0.25);

    /* Legacy compatibility variables */
    --tp-primary: var(--color-primary);
    --tp-primary-hover: var(--color-primary-hover);
    --tp-primary-light: rgba(22, 104, 232, 0.15);
    --tp-cyan: var(--color-accent-cyan);
    --tp-purple: var(--color-accent-purple);
    --tp-emerald: var(--color-accent-emerald);
    --tp-amber: var(--color-accent-amber);
    --tp-bg-dark: var(--color-bg-base);
    --tp-card-bg: var(--color-surface-card);
    --tp-card-border: var(--color-border);
    --tp-card-hover-border: var(--color-border-hover);
    --tp-text-white: var(--color-text-white);
    --tp-text-muted: var(--color-text-secondary);
    --tp-shadow: var(--color-shadow-md);
}

/* UNIVERSAL LIGHT MODE TOKENS */
[data-theme="light"] {
    --color-background: #F1F4F9;
    --color-bg-base: #F1F4F9;
    --color-bg-gradient: radial-gradient(circle at 50% 15%, #e2edfb 0%, #edf3fc 70%);
    --color-surface-card: rgba(248, 250, 253, 0.94);
    --color-surface-card-hover: #F8FAFD;
    --color-surface-glass: rgba(247, 249, 252, 0.86);
    --color-surface-secondary: #EDF2F8;
    --color-surface-input: #EDF2F8;
    
    --color-border: rgba(37, 99, 235, 0.18);
    --color-border-hover: rgba(37, 99, 235, 0.4);
    --color-border-subtle: rgba(0, 0, 0, 0.08);

    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-text-white: #0f172a;

    --color-primary: #1668e8;
    --color-primary-hover: #1d4ed8;
    --color-primary-gradient: linear-gradient(135deg, #1668e8 0%, #0284c7 100%);
    
    --color-accent-cyan: #0284c7;
    --color-accent-purple: #7c3aed;
    --color-accent-emerald: #059669;
    --color-accent-amber: #d97706;

    --color-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --color-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --color-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.09);
    --color-glow-primary: 0 0 35px rgba(37, 99, 235, 0.12);

    /* Legacy mapped tokens */
    --tp-bg-dark: #F1F4F9;
    --tp-card-bg: rgba(248, 250, 253, 0.94);
    --tp-card-border: rgba(37, 99, 235, 0.18);
    --tp-card-hover-border: rgba(37, 99, 235, 0.4);
    --tp-text-white: #0f172a;
    --tp-text-muted: #475569;
    --tp-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}


/* Global Reset & Typography */
* {
    box-sizing: border-box;
}

body.talimz-portal-body {
    background-color: var(--tp-bg-dark);
    color: var(--tp-text-white);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   1. TALIMZ UNIVERSAL UNIFIED GLASSMORPHISM HEADER (GlobalHeader)
   Yagona shaffof to'q ko'k Glassmorphism konteyner ichida barcha elementlar:
   [ LOGO + Ta'limZ + AI EDUCATION ] [ 🌙 ] [ Kabinetga kirish → ]
   Alohida ichki card/qutilarsiz, tabiiy, nafis va to'liq responsive
   ========================================================================== */
.talimz-universal-header, .talimz-nav, .talimz-subpage-nav {
    position: sticky;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: all 0.3s ease;
}

/* Scroll qilinganda ham aynan shu yagona shaffof Glassmorphism saqlanadi */
.talimz-universal-header.is-scrolled, 
.talimz-nav.is-scrolled, 
.talimz-subpage-nav.is-scrolled {
    top: 8px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* YAGONA UMUMIY SHAFSHOF GLASSMORPHISM BLOKI (KONTEYNERI) */
.talimz-header-inner, .talimz-directory-nav-inner, .talimz-subpage-nav-inner {
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 22px 10px 16px;
    border-radius: 22px;
    background: rgba(8, 14, 28, 0.48) !important; /* Shaffofligi yuqori to'q ko'k fon */
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.talimz-header-inner:hover {
    background: rgba(8, 14, 28, 0.58) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 10px 36px rgba(22, 104, 232, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

[data-theme="light"] .talimz-header-inner,
[data-theme="light"] .talimz-directory-nav-inner,
[data-theme="light"] .talimz-subpage-nav-inner {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Chap tomon: Qutisiz, umumiy konteynerda tabiiy turuvchi Logo + Matn */
.talimz-brand-clean, .talimz-nav-brand, .talimz-subpage-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    outline: none !important;
    position: relative;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.talimz-brand-clean:hover, .talimz-nav-brand:hover, .talimz-subpage-brand:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.talimz-brand-clean::before, .talimz-nav-brand::before, .talimz-subpage-brand::before {
    display: none !important; /* Alohida kartochka/chegara yo'q */
}

/* Logo o'lchami (52px Desktop) */
.talimz-brand-logo-glow-wrapper, .talimz-nav-logo, .talimz-subpage-logo-box {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    flex-shrink: 0;
}

/* Toza logo tasviri */
.talimz-brand-logo-icon, .talimz-nav-logo img, .talimz-subpage-logo-box img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}

/* Radial Glow */
.talimz-brand-ambient-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 75%);
    filter: blur(12px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: talimzBrandGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes talimzBrandGlowPulse {
    0% { transform: scale(0.94); opacity: 0.6; }
    100% { transform: scale(1.06); opacity: 0.95; }
}

.talimz-brand-text-block, .talimz-subpage-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.talimz-brand-heading, .talimz-nav-title, .talimz-subpage-title {
    font-size: 1.48rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    transition: color 0.3s ease;
    white-space: nowrap;
}

[data-theme="light"] .talimz-brand-heading,
[data-theme="light"] .talimz-nav-title,
[data-theme="light"] .talimz-subpage-title {
    color: #0f172a;
}

.talimz-brand-subheading, .talimz-nav-subtitle, .talimz-subpage-tagline {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #38bdf8;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

[data-theme="light"] .talimz-brand-subheading,
[data-theme="light"] .talimz-nav-subtitle,
[data-theme="light"] .talimz-subpage-tagline {
    color: #0284c7;
}

/* O'ng tomon: Qutisiz, umumiy konteynerda tabiiy turuvchi boshqaruvlar */
.talimz-header-controls, .talimz-nav-actions, .talimz-subpage-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    flex-shrink: 0;
}

.talimz-ctrl-theme-btn, .talimz-theme-btn, .talimz-subpage-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.talimz-ctrl-theme-btn:hover, .talimz-theme-btn:hover, .talimz-subpage-theme-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    transform: scale(1.05);
}

[data-theme="light"] .talimz-ctrl-theme-btn,
[data-theme="light"] .talimz-theme-btn,
[data-theme="light"] .talimz-subpage-theme-btn {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.talimz-ctrl-auth-btn, .talimz-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1668e8 0%, #0284c7 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 15px rgba(22, 104, 232, 0.3);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.talimz-ctrl-auth-btn:hover, .talimz-auth-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
    box-shadow: 0 6px 20px rgba(22, 104, 232, 0.45);
    transform: translateY(-1px);
}

/* ==========================================================================
   2. HERO SECTION — HEADER BILAN UYG'UNLASHGAN (Ixcham masofa)
   ========================================================================== */
.talimz-hero {
    position: relative;
    z-index: 10;
    padding: 32px 24px 44px; /* Yuqori bo'shliq 80px dan 32px ga qisqartirildi */
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.talimz-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--tp-cyan);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.talimz-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
    color: #ffffff;
}

.talimz-hero-title .highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.talimz-hero-desc {
    max-width: 800px;
    margin: 0 auto 36px;
    font-size: 1.2rem;
    line-height: 1.65;
    color: #94a3b8;
    font-weight: 500;
}

.talimz-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.talimz-btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1668e8, #0ea5e9);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    transition: all 0.25s ease;
}

.talimz-btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.6);
    filter: brightness(1.1);
}

/* ==========================================================================
   3. TALIMZ IMKONIYATLARI (8 TA ASOSIY MODUL)
   ========================================================================== */
.talimz-section-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 24px;
}

.talimz-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.talimz-section-tag {
    display: inline-block;
    color: var(--tp-cyan);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.talimz-section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.talimz-section-subtitle {
    font-size: 1.08rem;
    color: var(--tp-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.talimz-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.talimz-feature-card {
    background: rgba(13, 21, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    padding: 28px 24px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.talimz-feature-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.talimz-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    background: rgba(22, 104, 232, 0.15);
    border: 1px solid rgba(22, 104, 232, 0.3);
}

.talimz-feature-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

.talimz-feature-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--tp-text-muted);
    margin: 0;
}

/* ==========================================================================
   4. TALIMZ AFZALLIKLARI (5 TA ASOSIY AFZALLIK)
   ========================================================================== */
.talimz-advantages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.talimz-adv-card {
    background: rgba(13, 21, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 26px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.talimz-adv-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.talimz-adv-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.talimz-adv-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.talimz-adv-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--tp-text-muted);
    margin: 0;
}

/* ==========================================================================
   5. TALIMZ HAQIDA (MISSIYA, MUAMMOLAR VA KELAJAK)
   ========================================================================== */
.talimz-about-container {
    background: rgba(13, 21, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 44px 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.talimz-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.talimz-about-pillar {
    background: rgba(6, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 26px;
}

.talimz-pillar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.talimz-pillar-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

/* ==========================================================================
   6. PLATFORMA BILAN HAMKOR MAKTABLAR (KATALOG & REYTING)
   ========================================================================== */
.talimz-filter-bar {
    background: rgba(13, 21, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 18px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.talimz-search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.talimz-search-box input {
    width: 100%;
    padding: 13px 18px 13px 44px;
    border-radius: 12px;
    background: rgba(6, 10, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.talimz-search-box input:focus {
    border-color: var(--tp-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.talimz-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tp-cyan);
    pointer-events: none;
}

.talimz-filters-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.talimz-select {
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(6, 10, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.talimz-select:focus {
    border-color: var(--tp-cyan);
}

/* Schools Grid */
.talimz-schools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* ==========================================================================
   TALIMZ UNIVERSAL SCHOOL CARD STYLES
   100% Kontrastli, Professional Dark/Light Glassmorphism Karta
   Hech qanday qora/o'qilmaydigan matnsiz, har qanday maktab uchun universal
   ========================================================================== */
.talimz-school-card {
    position: relative;
    background: rgba(10, 16, 31, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    overflow: hidden;
    animation: talimzCardFadeIn 0.5s ease-out;
}

@keyframes talimzCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.talimz-school-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(22, 104, 232, 0.25);
}

[data-theme="light"] .talimz-school-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 1. YUQORI QISM: REYTING VA BALL */
.talimz-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.talimz-card-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fbbf24;
    font-size: 0.88rem;
    font-weight: 700;
}

.talimz-score-star {
    font-size: 0.95rem;
}

.talimz-score-value {
    color: #fef08a;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.talimz-score-text {
    color: rgba(251, 191, 36, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Reyting o'rni (TOP-3 medallar va standart) */
.talimz-card-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.talimz-card-rank-badge.rank-top-1 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fef08a;
    box-shadow: 0 2px 14px rgba(245, 158, 11, 0.28);
}

.talimz-card-rank-badge.rank-top-2 {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.25), rgba(100, 116, 139, 0.35));
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #f1f5f9;
    box-shadow: 0 2px 14px rgba(148, 163, 184, 0.22);
}

.talimz-card-rank-badge.rank-top-3 {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(180, 83, 9, 0.35));
    border: 1px solid rgba(217, 119, 6, 0.6);
    color: #fed7aa;
    box-shadow: 0 2px 14px rgba(217, 119, 6, 0.22);
}

.talimz-card-rank-badge.rank-standard {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

.talimz-card-rank-badge.rank-unrated {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #38bdf8;
}

[data-theme="light"] .talimz-card-rank-badge.rank-standard {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #334155;
}

/* 2. MARKAZIY QISM: LOGOTIP VA IDENTIFIKATSIYA */
.talimz-card-identity-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.talimz-card-logo-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.talimz-card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.35));
}

[data-theme="light"] .talimz-card-logo-wrap {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.talimz-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.talimz-card-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.talimz-card-school-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

[data-theme="light"] .talimz-card-school-name {
    color: #0f172a;
}

.talimz-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.talimz-card-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #38bdf8;
    font-size: 0.84rem;
    font-weight: 600;
}

[data-theme="light"] .talimz-card-location {
    color: #0284c7;
}

.talimz-card-location svg {
    color: inherit;
    flex-shrink: 0;
}

.talimz-card-motto {
    font-size: 0.86rem;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.45;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="light"] .talimz-card-motto {
    color: #64748b;
}

.talimz-card-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.talimz-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #a5b4fc;
}

/* 3. STATISTIK QISM: IXCHAM VA CHIROYLI 2x2 GRID */
.talimz-card-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 20px;
}

.talimz-metric-cell {
    background: rgba(6, 10, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.25s ease;
}

.talimz-metric-cell:hover {
    background: rgba(10, 16, 31, 0.75);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

[data-theme="light"] .talimz-metric-cell {
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.talimz-metric-val {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.1;
}

.talimz-metric-val.val-blue { color: #38bdf8; }
.talimz-metric-val.val-purple { color: #c084fc; }
.talimz-metric-val.val-green { color: #34d399; }
.talimz-metric-val.val-amber { color: #fbbf24; }

[data-theme="light"] .talimz-metric-val.val-blue { color: #0284c7; }
[data-theme="light"] .talimz-metric-val.val-purple { color: #7c3aed; }
[data-theme="light"] .talimz-metric-val.val-green { color: #059669; }
[data-theme="light"] .talimz-metric-val.val-amber { color: #d97706; }

.talimz-metric-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

[data-theme="light"] .talimz-metric-name {
    color: #475569;
}

/* 4. PASTKI QISM: TUGMA */
.talimz-card-action-wrap {
    margin-top: auto;
}

.talimz-card-btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1668e8 0%, #0284c7 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(22, 104, 232, 0.35);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.talimz-card-btn-view:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
    box-shadow: 0 6px 24px rgba(22, 104, 232, 0.55);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. SCHOOL SHOWCASE / PROFILE PAGE STYLES (No Login Form!)
   ========================================================================== */
.school-hero-container {
    max-width: 1140px;
    margin: 40px auto 30px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.school-hero-card {
    background: rgba(13, 21, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    gap: 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.school-hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: #ffffff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.school-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-hero-details {
    flex: 1;
}

.school-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.school-hero-motto {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0 0 16px;
    font-style: italic;
}

.school-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.school-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-rank {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-location {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Prestige Stats Strip */
.school-prestige-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1140px;
    margin: 0 auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.prestige-box {
    background: rgba(13, 21, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.prestige-box-num {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 6px;
}

.prestige-box-num.color-green {
    color: #34d399;
}

.prestige-box-num.color-blue {
    color: #38bdf8;
}

.prestige-box-num.color-purple {
    color: #c084fc;
}

.prestige-box-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tp-text-muted);
    line-height: 1.4;
}

/* Info Grid */
.school-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.school-info-card {
    background: rgba(13, 21, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px;
}

.school-card-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 24px;
}

.specializations-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.specialization-item {
    background: rgba(6, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.specialization-icon {
    font-size: 1.5rem;
    background: rgba(56, 189, 248, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.specialization-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.specialization-desc {
    font-size: 0.88rem;
    color: var(--tp-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* School Official Contacts Section */
.school-contact-section {
    max-width: 1140px;
    margin: 0 auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.school-contact-card {
    background: rgba(13, 21, 39, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.contact-item-box {
    background: rgba(6, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 20px;
}

.contact-item-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tp-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.contact-item-val {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    word-break: break-all;
}

.contact-item-val a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item-val a:hover {
    color: var(--tp-cyan);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .talimz-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .talimz-advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .talimz-about-grid {
        grid-template-columns: 1fr;
    }
    .talimz-schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .school-prestige-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .school-info-grid {
        grid-template-columns: 1fr;
    }
    .contact-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .talimz-nav {
        padding: 12px 18px;
    }
    .talimz-hero {
        padding: 40px 16px 20px;
    }
    .talimz-hero-title {
        font-size: 2.3rem;
    }
    .talimz-hero-desc {
        font-size: 1rem;
    }
    .talimz-features-grid {
        grid-template-columns: 1fr;
    }
    .talimz-advantages-grid {
        grid-template-columns: 1fr;
    }
    .talimz-schools-grid {
        grid-template-columns: 1fr;
    }
    .talimz-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .talimz-filters-group {
        flex-direction: column;
    }
    .talimz-select {
        width: 100%;
    }
    .school-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }
    .school-hero-title {
        font-size: 1.7rem;
    }
    .school-badges-row {
        justify-content: center;
    }
    .school-prestige-strip {
        grid-template-columns: 1fr;
    }
    .school-info-card {
        padding: 22px 18px;
    }
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   INTERACTIVE SCHOOL DIRECTORY ACCORDION
   ========================================================================== */
.talimz-catalog-trigger-card {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(13, 21, 39, 0.92) 0%, rgba(22, 38, 70, 0.88) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 24px;
    padding: 42px 32px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
    transition: all 0.35s ease;
    user-select: none;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.talimz-catalog-trigger-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);
    pointer-events: none;
}

.talimz-catalog-trigger-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 20px 50px rgba(22, 104, 232, 0.3);
}

.talimz-catalog-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1668e8 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(22, 104, 232, 0.45);
    transition: all 0.3s ease;
}

.talimz-catalog-pill-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(22, 104, 232, 0.6);
}

.talimz-catalog-collapsible {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.talimz-catalog-collapsible.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.talimz-btn-close-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.talimz-btn-close-catalog:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ==========================================================================
   DYNAMIC SCHOOL PROFILES & THEMES
   ========================================================================== */
.school-theme-tech_ai {
    --theme-accent: #38bdf8;
    --theme-gradient: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18));
}
.school-theme-science {
    --theme-accent: #10b981;
    --theme-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
}
.school-theme-languages {
    --theme-accent: #a855f7;
    --theme-gradient: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.18));
}
.school-theme-sport {
    --theme-accent: #f59e0b;
    --theme-gradient: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.18));
}
.school-theme-general {
    --theme-accent: #2563eb;
    --theme-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(79, 70, 229, 0.18));
}

/* Compact Interactive Education Directions Grid */
.directions-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.direction-compact-card {
    background: rgba(13, 21, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.direction-compact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.direction-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ==========================================================================
   LEAD GENERATION (BEPUL MASLAHAT OLISH)
   ========================================================================== */
.talimz-lead-section {
    background: linear-gradient(135deg, rgba(13, 21, 39, 0.95), rgba(22, 38, 70, 0.92));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 24px;
    padding: 48px 36px;
    margin: 50px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.talimz-lead-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.talimz-lead-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
}

.talimz-lead-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.5);
}

/* Modal Form Styles */
.talimz-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.talimz-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.talimz-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.talimz-modal-overlay.is-active .talimz-modal-card {
    transform: scale(1);
}

.talimz-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.talimz-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.talimz-form-input, .talimz-form-select, .talimz-form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 21, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s ease;
}

.talimz-form-input:focus, .talimz-form-select:focus, .talimz-form-textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}


/* Responsive Header Styles (Mobile: 396x617, 360px, 430px) */
@media (max-width: 640px) {
    .talimz-universal-header, .talimz-nav, .talimz-subpage-nav {
        top: 8px !important;
        padding: 0 10px !important;
    }
    .talimz-header-inner, .talimz-directory-nav-inner, .talimz-subpage-nav-inner {
        padding: 6px 12px 6px 10px !important;
        border-radius: 16px !important;
        gap: 8px !important;
    }
    .talimz-brand-clean, .talimz-nav-brand, .talimz-subpage-brand {
        gap: 8px !important;
    }
    .talimz-brand-logo-glow-wrapper, .talimz-nav-logo, .talimz-subpage-logo-box {
        width: 38px !important;
        height: 38px !important;
    }
    .talimz-brand-logo-icon, .talimz-nav-logo img, .talimz-subpage-logo-box img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    .talimz-brand-ambient-glow {
        inset: -6px !important;
        filter: blur(8px) !important;
    }
    .talimz-brand-heading, .talimz-nav-title, .talimz-subpage-title {
        font-size: 1.15rem !important;
    }
    .talimz-brand-subheading, .talimz-nav-subtitle, .talimz-subpage-tagline {
        font-size: 0.58rem !important;
        letter-spacing: 0.08em !important;
    }
    .talimz-header-controls, .talimz-nav-actions, .talimz-subpage-actions {
        gap: 6px !important;
    }
    .talimz-ctrl-theme-btn, .talimz-theme-btn, .talimz-subpage-theme-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }
    .talimz-ctrl-auth-btn, .talimz-auth-btn {
        padding: 7px 11px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
        gap: 5px !important;
    }
    .talimz-ctrl-auth-btn svg, .talimz-auth-btn svg {
        width: 13px !important;
        height: 13px !important;
    }
}

@media (max-width: 400px) {
    .talimz-universal-header, .talimz-nav, .talimz-subpage-nav {
        top: 6px !important;
        padding: 0 6px !important;
    }
    .talimz-header-inner, .talimz-directory-nav-inner, .talimz-subpage-nav-inner {
        padding: 5px 8px 5px 8px !important;
        border-radius: 14px !important;
        gap: 6px !important;
    }
    .talimz-brand-clean, .talimz-nav-brand, .talimz-subpage-brand {
        gap: 6px !important;
    }
    .talimz-brand-logo-glow-wrapper, .talimz-nav-logo, .talimz-subpage-logo-box {
        width: 34px !important;
        height: 34px !important;
    }
    .talimz-brand-logo-icon, .talimz-nav-logo img, .talimz-subpage-logo-box img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    .talimz-brand-heading, .talimz-nav-title, .talimz-subpage-title {
        font-size: 1.05rem !important;
    }
    .talimz-brand-subheading, .talimz-nav-subtitle, .talimz-subpage-tagline {
        font-size: 0.52rem !important;
    }
    .talimz-ctrl-theme-btn, .talimz-theme-btn, .talimz-subpage-theme-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.88rem !important;
    }
    .talimz-ctrl-auth-btn, .talimz-auth-btn {
        padding: 6px 9px !important;
        font-size: 0.74rem !important;
        gap: 4px !important;
    }
    .talimz-ctrl-auth-btn svg, .talimz-auth-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
}


/* ==========================================================================
   TALIMZ UNIVERSAL LIGHT MODE SUITE
   Barcha bo'limlar, modullar, formalar va elementlar uchun mukammal Light Mode
   ========================================================================== */

/* 1. Body & Global Typography */
[data-theme="light"] body.talimz-portal-body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
}

/* 2. Hero Section */
[data-theme="light"] .talimz-hero-title {
    color: #0f172a;
}

[data-theme="light"] .talimz-hero-desc {
    color: #475569;
}

[data-theme="light"] .talimz-hero-badge {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #0284c7;
}

/* 3. Section Sarlavhalari va Taglar */
[data-theme="light"] .talimz-section-title {
    color: #0f172a;
}

[data-theme="light"] .talimz-section-subtitle {
    color: #475569;
}

/* 4. TalimZ Imkoniyatlari (Features Grid) */
[data-theme="light"] .talimz-feature-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .talimz-feature-card:hover {
    border-color: rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08), 0 0 25px rgba(37, 99, 235, 0.12) !important;
}

[data-theme="light"] .talimz-feature-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-feature-desc {
    color: #475569 !important;
}

[data-theme="light"] .talimz-feature-icon-box {
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    color: #1668e8 !important;
}

/* 5. TalimZ Afzalliklari (Advantages Grid) */
[data-theme="light"] .talimz-advantage-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .talimz-advantage-card:hover {
    border-color: rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .talimz-advantage-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-advantage-desc {
    color: #475569 !important;
}

[data-theme="light"] .talimz-advantage-num {
    color: rgba(37, 99, 235, 0.25) !important;
}

/* 6. TalimZ Haqida (About Story & Stats) */
[data-theme="light"] .talimz-about-story,
[data-theme="light"] .talimz-about-stats-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .talimz-story-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-story-p {
    color: #475569 !important;
}

[data-theme="light"] .talimz-stat-box {
    background: rgba(241, 245, 249, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .talimz-stat-lbl {
    color: #64748b !important;
}

/* 7. Hamkor Maktablar Trigger Card */
[data-theme="light"] .talimz-catalog-trigger-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06) !important;
}

/* 8. Maktab Profili (School Profile Page) */
[data-theme="light"] .talimz-profile-hero {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .talimz-profile-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-profile-motto {
    color: #64748b !important;
}

[data-theme="light"] .talimz-spec-card,
[data-theme="light"] .talimz-staff-card,
[data-theme="light"] .talimz-contact-card,
[data-theme="light"] .talimz-form-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

[data-theme="light"] .talimz-form-input,
[data-theme="light"] .talimz-form-select,
[data-theme="light"] .talimz-form-textarea {
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 235, 0.22) !important;
    color: #0f172a !important;
}

[data-theme="light"] .talimz-form-label {
    color: #334155 !important;
}

/* ==========================================================================
   TALIMZ UNIVERSAL FOOTER — FLOATING CAPSULE WITH CURVED EDGES (Yoy-simon)
   Ikki chetdan qisqartirilgan, yoy-simon burchakli shaffof Glassmorphism footer
   ========================================================================== */
.talimz-portal-footer {
    position: relative;
    z-index: 10;
    width: calc(100% - 48px);
    max-width: 1240px;
    margin-top: auto !important;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
    padding: 38px 28px 26px;
    background: rgba(8, 14, 28, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.talimz-portal-footer:hover {
    background: rgba(8, 14, 28, 0.55);
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 16px 42px rgba(22, 104, 232, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.talimz-footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.talimz-footer-brand-title {
    font-weight: 800;
    font-size: 1.28rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.talimz-footer-badge {
    font-size: 0.74rem;
    color: var(--color-accent-cyan, #38bdf8);
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    display: inline-block;
}

.talimz-footer-text {
    font-size: 0.92rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

.talimz-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 4px 0 8px;
}

.talimz-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.talimz-footer-link:hover {
    color: #38bdf8;
    transform: translateY(-1px);
}

.talimz-footer-divider {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    user-select: none;
}

.talimz-footer-bottom {
    font-size: 0.82rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

/* Light Mode Footer Styles — Floating Capsule */
[data-theme="light"] .talimz-portal-footer {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-radius: 28px !important;
}

[data-theme="light"] .talimz-portal-footer:hover {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(37, 99, 235, 0.32) !important;
}

[data-theme="light"] .talimz-footer-brand-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-footer-badge {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08) !important;
    border-color: rgba(2, 132, 199, 0.2) !important;
}

[data-theme="light"] .talimz-footer-text {
    color: #475569 !important;
}

[data-theme="light"] .talimz-footer-link {
    color: #334155 !important;
}

[data-theme="light"] .talimz-footer-link:hover {
    color: #1668e8 !important;
}

[data-theme="light"] .talimz-footer-divider {
    color: rgba(15, 23, 42, 0.18) !important;
}

[data-theme="light"] .talimz-footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #64748b !important;
}

@media (max-width: 768px) {
    .talimz-portal-footer {
        width: calc(100% - 32px);
        margin-bottom: 20px;
        padding: 30px 20px 22px;
        border-radius: 22px;
    }
    .talimz-footer-inner {
        gap: 14px;
    }
    .talimz-footer-links {
        gap: 14px;
        font-size: 0.84rem;
    }
    .talimz-footer-text {
        font-size: 0.86rem;
    }
}

@media (max-width: 480px) {
    .talimz-portal-footer {
        width: calc(100% - 20px);
        margin-bottom: 16px;
        padding: 24px 14px 18px;
        border-radius: 18px;
    }
    .talimz-footer-links {
        gap: 10px;
        font-size: 0.8rem;
    }
}

/* 10. Smooth Global Theme Transition */
body.talimz-portal-body,
.talimz-universal-header,
.talimz-header-inner,
.talimz-school-card,
.talimz-filter-toolbar,
.talimz-feature-card,
.talimz-advantage-card,
.talimz-about-story,
.talimz-about-stats-card,
.talimz-catalog-trigger-card,
.talimz-portal-footer {
    transition: background-color 0.35s ease, background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}


/* ==========================================================================
   11. TALIMZ UNIVERSAL EDUCATION DIRECTIONS & SCHOOL PROFILE REFINEMENTS
   Reusable Lucide SVG Component, 100% Emoji-Free, Responsive, Dark & Light Mode
   ========================================================================== */

/* Container widths aligned with portal (1240px) so 2-column direction cards have optimal breathing room */
.school-hero-container,
.school-prestige-strip,
.school-info-grid,
.school-contact-section,
.school-lead-wrapper {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.school-info-grid {
    grid-template-columns: 1.95fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Badges in Hero Card */
.school-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
}

.school-badge-item svg {
    flex-shrink: 0;
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-code {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

/* Section Headings with Professional Lucide Icon Box */
.school-card-heading {
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.school-directions-heading {
    margin-top: 32px;
    margin-bottom: 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.school-heading-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.school-heading-icon.variant-sky {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.28);
    color: #38bdf8;
}

.school-heading-icon.variant-emerald {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    color: #10b981;
}

.school-heading-icon.variant-amber {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #f59e0b;
}

.school-about-text {
    font-size: 0.98rem;
    line-height: 1.72;
    color: #cbd5e1;
    margin: 0;
}

/* ==========================================================================
   REUSABLE EDUCATION DIRECTIONS GRID & CARDS (.talimz-directions-grid)
   Structure:
   [IKONKA]  Aniq va tabiiy fanlar
             [Chuqurlashtirilgan]
             Matematika, fizika, kimyo va biologiya...
   ========================================================================== */
.talimz-directions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.talimz-directions-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.talimz-direction-card {
    --dir-accent: #38bdf8;
    --dir-bg-tint: rgba(56, 189, 248, 0.12);
    --dir-border-tint: rgba(56, 189, 248, 0.26);
    --dir-hover-border: rgba(56, 189, 248, 0.45);

    background: rgba(8, 14, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    height: 100%;
}

.talimz-direction-card:hover {
    transform: translateY(-3px);
    border-color: var(--dir-hover-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    background: rgba(11, 19, 36, 0.82);
}

/* Semantic Color Variants per Direction */
.talimz-direction-card.variant-emerald {
    --dir-accent: #10b981;
    --dir-bg-tint: rgba(16, 185, 129, 0.12);
    --dir-border-tint: rgba(16, 185, 129, 0.28);
    --dir-hover-border: rgba(16, 185, 129, 0.45);
}

.talimz-direction-card.variant-teal {
    --dir-accent: #14b8a6;
    --dir-bg-tint: rgba(20, 184, 166, 0.12);
    --dir-border-tint: rgba(20, 184, 166, 0.28);
    --dir-hover-border: rgba(20, 184, 166, 0.45);
}

.talimz-direction-card.variant-sky {
    --dir-accent: #38bdf8;
    --dir-bg-tint: rgba(56, 189, 248, 0.12);
    --dir-border-tint: rgba(56, 189, 248, 0.28);
    --dir-hover-border: rgba(56, 189, 248, 0.45);
}

.talimz-direction-card.variant-indigo {
    --dir-accent: #818cf8;
    --dir-bg-tint: rgba(129, 140, 248, 0.12);
    --dir-border-tint: rgba(129, 140, 248, 0.28);
    --dir-hover-border: rgba(129, 140, 248, 0.45);
}

.talimz-direction-card.variant-violet {
    --dir-accent: #a855f7;
    --dir-bg-tint: rgba(168, 85, 247, 0.12);
    --dir-border-tint: rgba(168, 85, 247, 0.28);
    --dir-hover-border: rgba(168, 85, 247, 0.45);
}

.talimz-direction-card.variant-amber {
    --dir-accent: #f59e0b;
    --dir-bg-tint: rgba(245, 158, 11, 0.12);
    --dir-border-tint: rgba(245, 158, 11, 0.28);
    --dir-hover-border: rgba(245, 158, 11, 0.45);
}

.talimz-direction-card.variant-rose {
    --dir-accent: #f43f5e;
    --dir-bg-tint: rgba(244, 63, 94, 0.12);
    --dir-border-tint: rgba(244, 63, 94, 0.28);
    --dir-hover-border: rgba(244, 63, 94, 0.45);
}

.talimz-direction-card.variant-cyan {
    --dir-accent: #06b6d4;
    --dir-bg-tint: rgba(6, 182, 212, 0.12);
    --dir-border-tint: rgba(6, 182, 212, 0.28);
    --dir-hover-border: rgba(6, 182, 212, 0.45);
}

.talimz-direction-card.variant-pink {
    --dir-accent: #ec4899;
    --dir-bg-tint: rgba(236, 72, 153, 0.12);
    --dir-border-tint: rgba(236, 72, 153, 0.28);
    --dir-hover-border: rgba(236, 72, 153, 0.45);
}

.talimz-direction-card.variant-blue {
    --dir-accent: #60a5fa;
    --dir-bg-tint: rgba(96, 165, 250, 0.12);
    --dir-border-tint: rgba(96, 165, 250, 0.28);
    --dir-hover-border: rgba(96, 165, 250, 0.45);
}

/* Icon Container (46x46 uniform rounded square) */
.talimz-direction-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--dir-bg-tint);
    border: 1px solid var(--dir-border-tint);
    color: var(--dir-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.talimz-direction-card:hover .talimz-direction-icon {
    transform: scale(1.04);
}

/* Card Body: Vertical hierarchy (Title -> Badge -> Description) */
.talimz-direction-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.talimz-direction-title {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.32;
    letter-spacing: -0.01em;
    word-break: normal;
    overflow-wrap: break-word;
    width: 100%;
}

.talimz-direction-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--dir-bg-tint);
    color: var(--dir-accent);
    border: 1px solid var(--dir-border-tint);
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.talimz-direction-desc {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.56;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Right Column: Teacher Qualifications & Achievements */
.school-quals-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.school-qual-box {
    background: rgba(6, 10, 20, 0.55);
    padding: 15px 18px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.school-qual-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.school-qual-tag.color-cyan {
    color: #38bdf8;
}

.school-qual-tag.color-amber {
    color: #f59e0b;
}

.school-qual-val {
    font-size: 1.18rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 3px;
}

.school-qual-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 2px;
}

.school-subheading {
    font-size: 1.04rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
}

.school-achievements-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.school-achievement-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border-left: 3px solid #38bdf8;
}

.school-achievement-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.school-achievement-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 3px;
}

.school-achievements-empty {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 0.88rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.55;
}

/* Lead Section Classes */
.talimz-lead-title {
    font-size: 2.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.talimz-lead-desc {
    font-size: 1.02rem;
    color: #cbd5e1;
    max-width: 760px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.talimz-lead-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.talimz-modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES FOR SCHOOL PROFILE & DIRECTION CARDS
   ========================================================================== */
[data-theme="light"] .school-hero-card,
[data-theme="light"] .prestige-box,
[data-theme="light"] .school-info-card,
[data-theme="light"] .school-contact-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .school-hero-title,
[data-theme="light"] .school-card-heading,
[data-theme="light"] .school-subheading,
[data-theme="light"] .prestige-box-num {
    color: #0f172a !important;
}

[data-theme="light"] .prestige-box-num.color-green { color: #059669 !important; }
[data-theme="light"] .prestige-box-num.color-blue { color: #0284c7 !important; }
[data-theme="light"] .prestige-box-num.color-purple { color: #7c3aed !important; }

[data-theme="light"] .school-hero-motto,
[data-theme="light"] .school-about-text,
[data-theme="light"] .prestige-box-label {
    color: #475569 !important;
}

[data-theme="light"] .badge-neutral,
[data-theme="light"] .badge-code {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #334155 !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}

[data-theme="light"] .badge-location {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .badge-active {
    background: rgba(5, 150, 105, 0.1) !important;
    color: #059669 !important;
    border-color: rgba(5, 150, 105, 0.25) !important;
}

[data-theme="light"] .badge-rank {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(217, 119, 6, 0.3) !important;
}

[data-theme="light"] .school-directions-heading {
    border-top-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .talimz-direction-card {
    background: rgba(248, 250, 252, 0.92) !important;
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .talimz-direction-card:hover {
    background: #ffffff !important;
    border-color: var(--dir-hover-border) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07) !important;
}

[data-theme="light"] .talimz-direction-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-direction-desc {
    color: #475569 !important;
}

[data-theme="light"] .school-qual-box,
[data-theme="light"] .contact-item-box {
    background: rgba(241, 245, 249, 0.85) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .school-qual-val,
[data-theme="light"] .contact-item-val,
[data-theme="light"] .contact-item-val a,
[data-theme="light"] .school-achievement-title {
    color: #0f172a !important;
}

[data-theme="light"] .school-qual-sub,
[data-theme="light"] .school-achievement-meta,
[data-theme="light"] .school-achievements-empty {
    color: #475569 !important;
}

[data-theme="light"] .school-achievement-item,
[data-theme="light"] .school-achievements-empty {
    background: rgba(241, 245, 249, 0.75) !important;
}

[data-theme="light"] .talimz-lead-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.92)) !important;
    border: 1px solid rgba(37, 99, 235, 0.22) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .talimz-lead-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-lead-desc,
[data-theme="light"] .talimz-lead-note {
    color: #475569 !important;
}

[data-theme="light"] .talimz-modal-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .talimz-modal-title {
    color: #0f172a !important;
}

[data-theme="light"] .talimz-modal-cancel-btn {
    background: rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR DIRECTION CARDS & SCHOOL PROFILE
   ========================================================================== */
@media (max-width: 1120px) {
    .school-info-grid {
        grid-template-columns: 1fr;
    }
    .talimz-directions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .school-hero-container,
    .school-prestige-strip,
    .school-info-grid,
    .school-contact-section,
    .school-lead-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .talimz-directions-grid,
    .talimz-directions-grid.cols-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .talimz-direction-card {
        padding: 18px;
        gap: 14px;
    }

    .talimz-direction-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .talimz-direction-title {
        font-size: 1rem;
    }

    .talimz-direction-desc {
        font-size: 0.86rem;
    }

    .school-card-heading {
        font-size: 1.15rem;
    }

    .talimz-lead-section {
        padding: 32px 20px;
    }

    .talimz-lead-title {
        font-size: 1.55rem;
    }

    .talimz-modal-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   TALIMZ UNIVERSAL LUCIDE SVG ICON UTILITIES
   ========================================================================== */
.tz-icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
    pointer-events: none;
}
