/*
Theme Name: Texnikum
Author: Mirjalol G'aybullayev
Version: 8.0 (Senior UI/UX Edition)
Description: Buxoro shahar 2-son texnikumi uchun maxsus, zamonaviy, to'liq funksional va moslashuvchan (responsive) mavzu.
*/

/* ==========================================================================
   1. ASOSIY O'ZGARUVCHILAR (CSS VARIABLES)
   ========================================================================== */
:root {
    --primary: #003366;      /* Asosiy To'q ko'k */
    --primary-dark: #002244; /* Hover uchun to'qroq ko'k */
    --accent: #f39c12;       /* Urg'u rangi (Oltinrang) */
    --accent-hover: #e67e22; /* Oltinrang hover */
    --light-bg: #f8f9fa;     /* Och kulrang (Fon) */
    --text-dark: #2d3748;    /* Asosiy matn rangi */
    --text-muted: #718096;   /* Ikkilamchi matn rangi */
    
    /* Soyalar (Shadows) */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,51,102,0.12);
}

/* ==========================================================================
   2. GLOBAL SOZLAMALAR
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
    padding-top: 85px; /* Fixed Navbar uchun joy */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. UTILITY VA ANIMATSIYA KLASSLAR (SENIOR UI/UX)
   ========================================================================== */
.transition-all { transition: all 0.3s ease-in-out !important; }
.transition-transform { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease !important; }

/* Hover effektlar */
.hover-elevate { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-elevate:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover) !important; 
}
.hover-scale { transition: transform 0.4s ease; }
.hover-scale:hover { transform: scale(1.05); }
.hover-primary:hover { color: var(--primary) !important; }

/* Matn qisqartirish (Ellipsis) */
.line-clamp-2 { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.line-clamp-3 { 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Tipografiya yordamchilari */
.tracking-wider { letter-spacing: 0.05em; }
.fw-black { font-weight: 900; }
.w-32 { width: 32px; }
.h-32 { height: 32px; }

/* Asosiy Animatsiyalar */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.animate-up {
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}
.animate-bounce {
    animation: bounce 2s infinite;
}

/* Animatsiya kechikishlari (Delays) */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ==========================================================================
   4. NAVBAR (MENYU)
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 60px; 
    width: 60px; 
    object-fit: cover;
    border-radius: 50%; 
    border: 2px solid var(--primary);
    padding: 2px; 
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 5px !important;
    margin: 0 10px;
}

/* Link tagi chizig'i animatsiyasi */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.current-menu-item .nav-link::after {
    width: 100%;
}

/* ==========================================================================
   5. ASOSIY EKRAN (HERO SECTION)
   ========================================================================== */
.hero-section {
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,34,68,0.4) 100%);
    pointer-events: none;
}

/* ==========================================================================
   6. POSTLAR VA ARXIV (YANGILIKLAR)
   ========================================================================== */
.card {
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-img-wrap {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

/* Paginatsiya (Sahifalash) dizayni */
.custom-pagination { gap: 10px; flex-wrap: wrap; }
.custom-pagination .page-numbers { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 10px 20px; 
    border-radius: 50px; 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    color: var(--primary); 
    font-weight: 600; 
    box-shadow: var(--shadow-sm);
}
.custom-pagination .page-numbers.current { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary); 
    box-shadow: 0 4px 15px rgba(0,51,102,0.25);
}
.custom-pagination .page-numbers:hover:not(.current) { 
    background: var(--light-bg);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. SINGLE POST (TO'LIQ MAQOLA SAHIFASI)
   ========================================================================== */
.post-content {
    font-size: 1.15rem;
    color: #4a5568;
}

.post-content img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 12px; 
    margin: 30px 0; 
    box-shadow: var(--shadow-md); 
}

.post-content h2, .post-content h3, .post-content h4 { 
    color: var(--primary); 
    margin-top: 40px; 
    margin-bottom: 20px; 
    font-weight: 800; 
}

.post-content ul, .post-content ol { 
    margin-bottom: 25px; 
    padding-left: 25px; 
}

.post-content li { 
    margin-bottom: 12px; 
}

.post-content blockquote { 
    border-left: 5px solid var(--accent); 
    padding: 20px 25px; 
    font-style: italic; 
    color: var(--primary-dark); 
    background: #fff8eb; /* Oltinrangning juda och rangi */
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ==========================================================================
   8. FOOTER (QAYD QISMI)
   ========================================================================== */
footer {
    background-color: var(--primary-dark);
    color: #cbd5e0;
    padding-top: 60px;
    padding-bottom: 30px;
}

footer h4 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

footer a {
    color: #cbd5e0 !important;
}

footer a:hover {
    color: var(--accent) !important;
    padding-left: 5px; /* Hoverda ozgina o'ngga siljish */
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--accent);
    color: #fff !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   9. MEDIA QUERIES (MOSLASHUVCHANLIK / RESPONSIVE)
   ========================================================================== */
@media (max-width: 991.98px) {
    body { padding-top: 70px; }
    
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        margin-top: 15px;
    }
    
    .hero-section h1 { font-size: 2.5rem !important; }
    .stat-item { margin-bottom: 20px; }
}

@media (max-width: 767.98px) {
    .hero-section h1 { font-size: 2rem !important; }
    .hero-section .lead { font-size: 1.1rem !important; }
    
    .post-content { font-size: 1.05rem; }
    .post-content blockquote { font-size: 1.1rem; padding: 15px; }
}
/* --- OCHIQ MA'LUMOTLAR SAHIFASI --- */
.data-card {
    transition: all 0.3s ease;
}
.data-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}
.list-group-item {
    transition: 0.2s ease;
    border-radius: 8px !important;
}
.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px !important;
}
.list-group-item .btn {
    opacity: 0.5;
    transition: 0.3s;
}
.list-group-item:hover .btn {
    opacity: 1;
    background-color: var(--primary);
    color: white;
}