/* ==========================================
   THEME EXTRAS - Section header, breadcrumb, preloader
   (Cacheable, single request)
   ========================================== */

/* ---------- ISFI SECTION HEADER ---------- */
.isfi-section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out forwards;
}
.isfi-section-header.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(65, 105, 225, 0.08);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(65, 105, 225, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.section-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.15);
    border-color: rgba(65, 105, 225, 0.4);
    background: rgba(65, 105, 225, 0.12);
}
.section-badge:hover::before { left: 100%; }
.section-badge span {
    font-size: 13px;
    font-weight: 700;
    color: #4169E1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
}
.section-badge i { color: #4169E1; font-size: 14px; }
.section-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #182f61;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0.7;
    font-family: 'Montserrat', sans-serif;
    display: block;
}
.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #1a202c;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    position: relative;
    font-family: 'Inter', sans-serif;
}
.title-highlight {
    background: linear-gradient(135deg, #4169E1 0%, #2744B7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}
.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(132, 124, 252, 0.3) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-15deg);
}
.section-description {
    font-size: 18px;
    line-height: 1.7;
    color: #555c6b;
    margin-bottom: 0;
    max-width: 700px;
    font-weight: 400;
}
.isfi-section-header.text-center .section-description { margin-left: auto; margin-right: auto; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991px) {
    .isfi-section-header { margin-bottom: 50px; }
    .section-title { font-size: clamp(32px, 6vw, 44px); }
    .section-description { font-size: 16px; }
}
@media (max-width: 767px) {
    .isfi-section-header { text-align: center !important; margin-bottom: 40px; }
    .isfi-section-header .section-description { margin-left: auto; margin-right: auto; }
    .section-badge { padding: 6px 20px; }
    .section-title { font-size: clamp(28px, 8vw, 36px); }
}
.isfi-section-header.on-dark .section-subtitle { color: rgba(255, 255, 255, 0.6); }
.isfi-section-header.on-dark .section-title { color: #ffffff; }
.isfi-section-header.on-dark .section-description { color: rgba(255, 255, 255, 0.75); }
.isfi-section-header.on-dark .section-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}
.isfi-section-header.on-dark .section-badge span,
.isfi-section-header.on-dark .section-badge i { color: #a29dfc; }
.isfi-section-header.on-dark .section-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(162, 157, 252, 0.5);
}

/* ---------- BREADCRUMB SECTION (shared) ---------- */
.uni-breadcrumb-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}
.uni-breadcrumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.uni-breadcrumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 47, 97, 0.93) 0%, rgba(15, 30, 61, 0.95) 100%);
    z-index: 2;
}
.uni-breadcrumb-pattern { position: absolute; inset: 0; opacity: 0.05; z-index: 3; }
.pattern-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}
.uni-breadcrumb-container { position: relative; z-index: 4; }
.uni-breadcrumb-content { text-align: center; }
.uni-breadcrumb-header { margin-bottom: 28px; }
.uni-breadcrumb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.2) 0%, rgba(65, 105, 225, 0.08) 100%);
    backdrop-filter: blur(10px);
    color: var(--isfi-accent-purple-light, #a29dfc);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(65, 105, 225, 0.4);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.uni-breadcrumb-badge:hover {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.3) 0%, rgba(65, 105, 225, 0.2) 100%);
    border-color: #4169E1;
    transform: translateY(-2px);
}
.uni-breadcrumb-badge i { font-size: 14px; }
.uni-breadcrumb-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.uni-breadcrumb-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}
.uni-breadcrumb-nav { display: flex; justify-content: center; }
.uni-breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 12px 24px;
    margin: 0;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.uni-breadcrumb-item { display: flex; align-items: center; }
.uni-breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}
.uni-breadcrumb-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.uni-breadcrumb-link i { font-size: 13px; }
.uni-breadcrumb-divider { display: flex; align-items: center; color: rgba(255, 255, 255, 0.3); font-size: 11px; }
.uni-breadcrumb-item.active span { color: #fff; font-weight: 600; font-size: 14px; }

/* ---------- PRELOADER (Premium: circle + to'q ko'k 50% blur + skeleton) ---------- */
:root {
    --pl-bg: rgba(11, 31, 59, 0.5);
    --pl-accent: #4169E1;
    --pl-text: #fff;
}
.mp-preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.55s ease-out, visibility 0.55s ease-out;
}
.mp-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pl-backdrop {
    position: absolute;
    inset: 0;
    background: var(--pl-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.pl-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
}
.pl-spinner-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}
.pl-spinner {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--pl-accent);
    border-radius: 50%;
    animation: plSpin 0.9s linear infinite;
}
.pl-spinner-wrap::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid transparent;
    border-right-color: rgba(65, 105, 225, 0.5);
    border-radius: 50%;
    animation: plSpin 1.4s linear infinite reverse;
}
.pl-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(65, 105, 225, 0.4);
}
.pl-status {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 28px 0;
    animation: plPulse 2.2s ease-in-out infinite;
}
.pl-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 200px;
}
.pl-skeleton-line {
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: plShimmer 1.6s ease-in-out infinite;
}
.pl-skeleton-line--1 { width: 100%; }
.pl-skeleton-line--2 { width: 85%; animation-delay: 0.15s; }
.pl-skeleton-line--3 { width: 70%; animation-delay: 0.3s; }
@keyframes plSpin {
    to { transform: rotate(360deg); }
}
@keyframes plPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
@keyframes plShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- TELEFONDA MATN VA IKONKA ARALASHMASLIGI (global) ---------- */
a i.fas, a i.far, a i.fab,
.btn i, .theme-btn i, button i {
    flex-shrink: 0;
}
.btn, .theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}
.btn span, .theme-btn span {
    min-width: 0;
}
@media (max-width: 991px) {
    a[href] i.fas, a[href] i.far, a[href] i.fab,
    .btn i, .theme-btn i, button i,
    .af-footer-section a i, .af-link-item i,
    .uni-breadcrumb-link i {
        flex-shrink: 0;
        width: 1em;
        text-align: center;
    }
    .af-link-item {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }
    .af-link-item i {
        margin-right: 0;
    }
    .af-contact-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .af-contact-item .af-icon-box,
    .af-contact-item i {
        flex-shrink: 0;
    }
    .uni-breadcrumb-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}
