@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
    --primary-blue: #0046b8;
    --primary-dark: #002d7a;
    --primary-gradient: linear-gradient(135deg, #0046b8 0%, #002561 100%);
    --secondary-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-glow: 0 0 20px rgba(59, 130, 246, 0.4);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 35px 60px -15px rgba(0, 70, 184, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Original Compat */
    --text-dark: var(--text-main);
    --text-gray: var(--text-muted);
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --border-light: #e2e8f0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-blue: #3b82f6;
    --primary-dark: #1e3a8a;
    --bg-white: #1e293b;
    --bg-light: #334155;
    --bg-page: #0f172a;
    --bg-gray: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #f8fafc;
    --text-gray: #94a3b8;
    --text-light: #cbd5e1;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

/* Dark Mode Overrides for UI Components */
[data-theme="dark"] .main-header,
[data-theme="dark"] .quick-links,
[data-theme="dark"] .quick-link-item,
[data-theme="dark"] .press-center,
[data-theme="dark"] .statistics-section,
[data-theme="dark"] .detail-content,
[data-theme="dark"] .section-light,
[data-theme="dark"] .bg-white {
    background: var(--bg-white) !important;
}

[data-theme="dark"] .quick-link-item:hover {
    background: var(--bg-light) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-light);
    border-color: var(--border-light);
    color: var(--text-dark);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-light);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-white) !important;
    border-color: var(--border-light);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--bg-light) !important;
    color: var(--primary-blue) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .tender-card {
    background-color: var(--bg-white);
    border-color: var(--border-light);
    color: var(--text-dark);
}

[data-theme="dark"] .table {
    color: var(--text-dark);
    border-color: var(--border-light);
}

[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
    color: var(--text-dark);
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-white);
    border-color: var(--border-light);
}

[data-theme="dark"] .section-title h2,
[data-theme="dark"] .page-header h1,
[data-theme="dark"] .quick-link-item h6,
[data-theme="dark"] .news-card-body h5,
[data-theme="dark"] .info-card h6 {
    color: var(--text-dark);
}

[data-theme="dark"] .page-header .breadcrumb-item.active,
[data-theme="dark"] .page-header .breadcrumb-item a,
[data-theme="dark"] .text-muted {
    color: var(--text-gray) !important;
}

[data-theme="dark"] .info-card {
    background: var(--bg-light);
    border-color: var(--border-light);
    color: var(--text-dark);
}

[data-theme="dark"] .pagination .page-link {
    background-color: var(--bg-white);
    border-color: var(--border-light);
    color: var(--text-dark);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .company-name {
    color: var(--primary-blue);
}

/* ─── Premium Components ───────────────────────────────────── */
.glass-nav {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.main-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark) !important;
    padding: 1.2rem 1rem !important;
    position: relative;
    transition: var(--transition-smooth);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.8rem;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 10px;
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Hero Section WOW */
.hero-carousel {
    height: 85vh;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 31, 94, 0.85), rgba(0, 56, 168, 0.4), transparent);
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick Links Premium */
.quick-link-item {
    background: white;
    padding: 2rem 1rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-link-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-blue);
}

.quick-link-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: white;
    transition: var(--transition-smooth);
}

/* Dark Mode Tweaks */
[data-theme="dark"] .glass-nav {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .quick-link-item {
    background: #1e293b;
}

/* Premium Statistics Section */
.wow-stats-bg {
    padding: 100px 0;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.wow-stats-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/images/pattern-grid.svg') center / 300px repeat;
    opacity: 0.1;
}

.premium-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    color: white;
    transition: var(--transition-smooth);
    height: 100%;
}

.premium-glass:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon-wrap {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-orange);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.stat-number-wrap {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-size: 1.2rem;
    margin-left: 5px;
    opacity: 0.8;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Global WOW improvements */
.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 10px;
}

[data-theme="dark"] .btn-outline-custom:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

[data-theme="dark"] .list-unstyled a.text-decoration-none {
    color: var(--text-gray);
}

[data-theme="dark"] .list-unstyled a.text-decoration-none:hover {
    color: var(--primary-blue);
}

[data-theme="dark"] .badge.bg-light {
    background-color: var(--bg-gray) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .detail-content {
    color: var(--text-dark);
}

/* Premium Multi-step Survey Styling (TPP.uz Style) */
.survey-section {
    padding: 100px 0;
    background-color: #f0f4f8;
}

[data-theme="dark"] .survey-section {
    background-color: #0f172a;
}

.survey-card {
    background: var(--bg-white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.survey-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-blue) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
}

.survey-step {
    display: none;
}

.survey-step.active {
    display: block;
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.survey-step-header {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.step-indicator {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.survey-question-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.3;
}

[data-theme="dark"] .survey-question-text {
    color: #fff;
}

.survey-options-grid {
    display: grid;
    gap: 15px;
}

.custom-survey-option {
    position: relative;
    cursor: pointer;
}

.custom-survey-option input {
    position: absolute;
    opacity: 0;
}

.option-box {
    padding: 20px 25px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 15px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.custom-survey-option:hover .option-box {
    background: var(--bg-white);
    border-color: var(--secondary-blue);
    transform: translateX(5px);
}

.custom-survey-option input:checked + .option-box {
    background: #e0e7ff;
    border-color: var(--primary-blue);
}

[data-theme="dark"] .custom-survey-option input:checked + .option-box {
    background: rgba(59, 130, 246, 0.1);
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.custom-survey-option input:checked + .option-box .radio-circle {
    border-color: var(--primary-blue);
}

.custom-survey-option input:checked + .option-box .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.option-text {
    font-weight: 600;
}

.survey-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-container {
    flex-grow: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 10px;
    margin: 0 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 70, 184, 0.3);
}

.survey-nav-btns {
    display: flex;
    gap: 15px;
}

.btn-survey {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-smooth);
    border: none;
}

.btn-survey-next {
    background: var(--primary-blue);
    color: white;
}

/* Premium Footer Upgrade */
.footer-main {
    padding: 80px 0 50px;
    background: #001a4d;
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 70, 184, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    color: #e2e8f0;
}

.footer-logo-area p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-title {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* BVI (Visually Impaired) Mode Variables and Overrides */
[data-bvi="true"] {
    --primary-blue: #000000;
    --primary-dark: #000000;
    --accent-orange: #000000;
    --accent-red: #000000;
    --bg-white: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #ffffff;
    --text-dark: #000000;
    --text-gray: #000000;
    --text-light: #000000;
    --border-light: #000000;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    filter: contrast(150%) saturate(0) !important;
}

[data-bvi="true"] * {
    font-size: 110% !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

[data-bvi="true"] img,
[data-bvi="true"] .hero-slide::before {
    filter: grayscale(100%);
}

/* ─── Global Reset & Base ─────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg-page);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23c8d6e8' stroke-width='0.7' opacity='0.4'%3E%3Ccircle cx='200' cy='200' r='180'/%3E%3Ccircle cx='200' cy='200' r='140'/%3E%3Ccircle cx='200' cy='200' r='100'/%3E%3Ccircle cx='200' cy='200' r='60'/%3E%3Cline x1='20' y1='200' x2='380' y2='200'/%3E%3Cline x1='200' y1='20' x2='200' y2='380'/%3E%3Cline x1='70' y1='70' x2='330' y2='330'/%3E%3Cline x1='330' y1='70' x2='70' y2='330'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 400px 400px;
    background-repeat: repeat;
    background-position: center;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    zoom: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── TOP BAR — minimal, like tpp.uz ─────────────────────── */
.top-bar {
    background: #f0f4f8;
    border-bottom: 1px solid #dde3ec;
    padding: 5px 0;
    font-size: 12px;
}

.top-bar .top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.top-bar-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* icons and text in top-bar: gray, small */
.top-bar-icons a,
.theme-toggle,
.accessibility-url {
    color: var(--text-gray);
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 4px;
    line-height: 1;
}

.top-bar-icons a:hover,
.theme-toggle:hover,
.accessibility-url:hover {
    color: var(--primary-blue);
}

/* Language switcher — tpp.uz style: UZ | RU | EN */
.lang-switcher {
    display: flex;
    gap: 0;
    border-left: 1px solid #dde3ec;
    padding-left: 12px;
    ml: 5px;
}

.lang-switcher a {
    padding: 2px 7px;
    border-radius: 3px;
    color: var(--text-gray);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--primary-blue);
    background: rgba(0, 48, 135, 0.08);
}

/* ─── MAIN HEADER ─────────────────────────────────────────── */
.main-header {
    background: #ffffff;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-blue);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-area .logo-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-area:hover .logo-icon {
    transform: scale(1.04);
}

.logo-area .logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-area .company-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.25;
    max-width: 280px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 30px;
}

.trust-phone {
    text-align: right;
}

.trust-phone .label {
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.phone-number-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.trust-phone .phone-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.trust-phone .phone-number:hover {
    color: var(--accent-red);
}

.trust-phone .phone-number i {
    font-size: 13px;
    color: var(--accent-red);
}

/* Social icons — tpp.uz style: circular with border */
.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 14px;
    transition: var(--transition);
    border: 1.5px solid var(--border-light);
}

.social-icons a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ─── NAVIGATION ──────────────────────────────────────────── */
.main-nav {
    background: #003087;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 96px;
    z-index: 999;
}

.main-nav .navbar {
    padding: 0;
}

.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 12px;
    padding: 16px 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.08);
}

.main-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-orange);
    transition: var(--transition);
}

.main-nav .nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}

.main-nav .dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 260px;
    margin-top: 0;
    background: var(--bg-white) !important;
}

.main-nav .dropdown-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav .dropdown-item:hover {
    background: var(--bg-light) !important;
    color: var(--primary-blue) !important;
    padding-left: 20px;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-search-btn {
    color: white;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 14px 16px;
    transition: var(--transition);
}

.nav-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ─── HERO / BANNER CAROUSEL ─────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 48, 135, 0.85) 0%,
            rgba(0, 31, 92, 0.7) 40%,
            rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.hero-pattern {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.08;
    z-index: 1;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5;
    width: 30px;
    height: 4px;
    border-radius: 4px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-orange) !important;
    width: 50px;
}

/* ─── FLOATING SIDEBAR WIDGETS ────────────────────────────── */
.floating-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.floating-sidebar a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: white;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.floating-sidebar a:hover {
    width: 56px;
    box-shadow: var(--shadow-lg);
}

.floating-sidebar .reception-btn {
    background: var(--accent-orange);
}

.floating-sidebar .telegram-btn {
    background: #0088cc;
}

.floating-sidebar .chat-btn {
    background: var(--accent-red);
}

/* ─── SECTION BASE STYLES ─────────────────────────────────── */
.section {
    padding: 60px 0;
}

/* White card-like sections sitting on the page pattern background */
.section-light {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

/* Press-center and main content sections get white backgrounds */
.press-center,
.quick-links,
.statistics-section,
.detail-content {
    background: #ffffff;
}


.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 4px;
}

.section-title p {
    color: var(--text-gray);
    margin-top: 10px;
    font-size: 15px;
}

/* ─── QUICK LINKS GRID — tpp.uz style ────────────────────── */
.quick-links {
    padding: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Each link item: white card with bottom border highlight on hover */
.quick-link-item {
    text-align: center;
    padding: 30px 16px 24px;
    background: #ffffff;
    border-right: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    position: relative;
}

.quick-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: var(--transition);
}

.quick-link-item:hover {
    background: #f7faff;
}

.quick-link-item:hover::after {
    transform: scaleX(1);
}

/* Icon: line-art style, not filled background — like tpp.uz */
.quick-link-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--primary-blue);
    font-size: 32px;
    transition: var(--transition);
}

.quick-link-item:hover .quick-link-icon {
    color: var(--accent-red);
    transform: scale(1.1);
}

.quick-link-item h6 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* ─── NEWS / PRESS CENTER — tpp.uz style ─────────────────── */
.press-center {
    padding: 50px 0 60px;
    background: #ffffff;
}

/* Section title with left-aligned red underline — tpp.uz style */
.section-title.tpp-style {
    text-align: left;
    margin-bottom: 30px;
}

.section-title.tpp-style h2 {
    font-size: 1.6rem;
    display: block;
    padding-bottom: 12px;
}

.section-title.tpp-style h2::after {
    left: 0;
    transform: none;
    width: 50px;
    height: 3px;
    background: var(--accent-red);
}

.press-tabs .nav-tabs {
    border: none;
    margin-bottom: 30px;
    gap: 5px;
}

.press-tabs .nav-link {
    border: 1px solid var(--border-light);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-gray);
    background: #ffffff;
    transition: var(--transition);
}

.press-tabs .nav-link:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.press-tabs .nav-link.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}


.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-img .news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.news-card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 50px;
}

.news-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-body .category-badge {
    display: inline-block;
    background: rgba(0, 48, 135, 0.08);
    color: var(--primary-blue);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-card-body h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body .read-more {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 13px;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card-body .read-more:hover {
    gap: 10px;
}

/* ─── STATISTICS / KEY INDICATORS ─────────────────────────── */
.statistics-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/images/pattern-grid.svg') center / 300px repeat;
    opacity: 0.05;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-orange);
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* ─── HISTORY TIMELINE ────────────────────────────────────── */
.history-section {
    padding: 70px 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--accent-orange);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 4px rgba(230, 133, 15, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-year {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ─── BRANCHES MAP ────────────────────────────────────────── */
.branches-section {
    padding: 70px 0;
    background: var(--bg-light);
}

.branch-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.branch-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.branch-card h5 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.branch-card .branch-info {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.branch-card .branch-info i {
    color: var(--accent-orange);
    width: 16px;
}

/* ─── SURVEY ──────────────────────────────────────────────── */
.survey-section {
    padding: 70px 0;
}

.survey-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.survey-card h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
}

.survey-option {
    padding: 12px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.survey-option:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 48, 135, 0.03);
}

.survey-option input[type="radio"] {
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
}

.survey-option label {
    cursor: pointer;
    font-weight: 500;
    flex-grow: 1;
}

.survey-result-bar {
    height: 8px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.survey-result-bar .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    border-radius: 4px;
    transition: width 1s ease;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 48, 135, 0.3);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-orange), #d47a0e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 133, 15, 0.3);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--primary-blue);
    color: white;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.main-footer {
    background: linear-gradient(180deg, #001f5e 0%, #000d30 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 55px 0 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/images/footer-pattern.svg') center / cover no-repeat;
    opacity: 0.03;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon-sm {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo h5 {
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1.3;
}

.footer-section h6 {
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 9px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-section ul li a i {
    font-size: 11px;
    color: var(--accent-red);
}

.footer-contact-info {
    font-size: 13px;
    line-height: 1.8;
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact-info p i {
    color: var(--accent-red);
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 16px 0;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* Footer Social Icons — like tpp.uz */
.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    transform: translateY(-2px);
}

/* ─── PAGE HEADER / BREADCRUMB ────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/images/pattern-grid.svg') center / 200px repeat;
    opacity: 0.05;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.page-header .breadcrumb-item.active {
    color: var(--accent-orange);
    font-size: 13px;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ─── DETAIL PAGES ────────────────────────────────────────── */
.detail-content {
    padding: 50px 0;
}

.detail-content .article-body {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.detail-content .article-body img {
    border-radius: var(--radius-md);
    margin: 15px 0;
}

.detail-content .article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.detail-content .article-meta i {
    color: var(--accent-orange);
    margin-right: 5px;
}

/* ─── LEADER CARDS ────────────────────────────────────────── */
.leader-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.leader-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.leader-card-photo {
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card-photo .photo-placeholder {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.2);
}

.leader-card-body {
    padding: 25px;
}

.leader-card-body h5 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.leader-card-body .position {
    color: var(--accent-orange);
    font-size: 13px;
    font-weight: 500;
}

/* ─── TENDER & VACANCY CARDS ─────────────────────────────── */
.listing-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-blue);
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-orange);
}

.listing-card h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.listing-card .meta {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.listing-card .meta i {
    color: var(--accent-orange);
    margin-right: 5px;
}

.listing-card .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

/* ─── FAQ ACCORDION ───────────────────────────────────────── */
.faq-accordion .accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    padding: 18px 24px;
    font-size: 15px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(0, 48, 135, 0.03);
    color: var(--primary-blue);
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003087'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ─── VIDEO CARDS ─────────────────────────────────────────── */
.video-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.video-card .video-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-card .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 24px;
    transition: var(--transition);
}

.video-card:hover .video-play-btn {
    transform: scale(1.1);
    background: var(--accent-orange);
    color: white;
}

.video-card-body {
    padding: 15px 20px;
    background: var(--bg-white);
}

.video-card-body h6 {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
}

/* ─── CONTACT PAGE ────────────────────────────────────────── */
.contact-info-cards .info-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.contact-info-cards .info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-info-cards .info-card i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-info-cards .info-card h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-info-cards .info-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ─── FORM STYLES ─────────────────────────────────────────── */
.form-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-control,
.form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

/* ─── DOCUMENTS TABLE ─────────────────────────────────────── */
.doc-table {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.doc-table .table {
    margin: 0;
}

.doc-table .table th {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 14px 20px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-table .table td {
    padding: 14px 20px;
    font-size: 14px;
    vertical-align: middle;
    border-color: var(--bg-gray);
}

.doc-table .download-btn {
    color: var(--primary-blue);
    font-size: 18px;
    transition: var(--transition);
}

.doc-table .download-btn:hover {
    color: var(--accent-orange);
    transform: scale(1.2);
}

/* ─── NEWSLETTER ──────────────────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, var(--accent-orange), #d47a0e);
    padding: 50px 0;
}

.newsletter-section h4 {
    color: white;
    font-weight: 700;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 14px;
}

.newsletter-form button {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ─── SEARCH MODAL ────────────────────────────────────────── */
.search-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
}

.search-modal .search-input {
    border: none;
    font-size: 18px;
    padding: 20px;
}

.search-modal .search-input:focus {
    box-shadow: none;
}

/* ─── PAGINATION ──────────────────────────────────────────── */
.pagination .page-link {
    border: 1px solid var(--border-light);
    color: var(--primary-blue);
    padding: 10px 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin: 0 3px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ─── MESSAGES / ALERTS ───────────────────────────────────── */
.alert-custom {
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success-custom {
    background: #d4edda;
    color: #155724;
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-slide {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .header-contact {
        display: none;
    }

    .company-name {
        display: none;
    }

    .floating-sidebar {
        display: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    .stat-value {
        font-size: 2rem;
    }

    .main-nav {
        top: 0;
        position: relative;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 320px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .quick-link-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 30px;
    }
}

/* ─── ALBUMS / GALLERY ────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-overlay {
    background: var(--bg-white);
    padding: 15px 20px;
}

.gallery-item .gallery-overlay h6 {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.gallery-item .gallery-overlay .photo-count {
    font-size: 12px;
    color: var(--text-gray);
}

/* ─── COUNTER ANIMATION ───────────────────────────────────── */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ─── YOUTUBE / IFRAME EMBEDS ─────────────────────────────── */
/**
 * When admins paste YouTube <iframe> embed code into CKEditor
 * rich-text fields (news, about, etc.), force them to be responsive.
 * The hard-coded width/height from YouTube's embed snippet is overridden.
 */
.ck-content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius-md);
    margin: 1.5rem auto;
}

/* Ensure iframes inside Bootstrap ratio containers fill correctly */
.ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   TPP CARD — Shared card pattern for media galleries
   Used by: Videos, Albums, Presentations pages
   ═══════════════════════════════════════════════════════════════ */
.tpp-card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}
@media (min-width: 576px)  { .tpp-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .tpp-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tpp-card-grid { grid-template-columns: repeat(4, 1fr); } }

.tpp-card {
    position: relative;
    aspect-ratio: 1 / 1.3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    text-decoration: none;
    color: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.tpp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

.tpp-card__badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: fit-content;
    text-align: center;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.tpp-card__badge .day {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.tpp-card__badge .month-year {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tpp-card__badge .icon {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.tpp-card__badge .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tpp-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Palette matching tpp.uz — Ko'k, Binafsha-ko'k, Qizil, Yashil */
.bg-tpp-1 { background-color: #003087; }  /* Navy blue   */
.bg-tpp-2 { background-color: #5c6bc0; }  /* Indigo-blue */
.bg-tpp-3 { background-color: #e31e24; }  /* Red         */
.bg-tpp-4 { background-color: #2e7d32; }  /* Green       */
.bg-tpp-5 { background-color: #0047ba; }  /* Bright blue */
.bg-tpp-6 { background-color: #c62828; }  /* Dark red    */
.bg-tpp-7 { background-color: #1b5e20; }  /* Dark green  */
.bg-tpp-8 { background-color: #283593; }  /* Dark indigo */


/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE PRESS CENTER TABS
   ═══════════════════════════════════════════════════════════════ */
.press-tabs .nav-tabs {
    border-bottom: none;
    gap: 15px;
    margin-bottom: 30px;
}
.press-tabs .nav-link {
    border: 1px solid var(--border-light);
    border-radius: 30px;
    color: var(--text-dark);
    padding: 10px 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--bg-white);
}
.press-tabs .nav-link:hover {
    border-color: var(--primary-blue);
}
.press-tabs .nav-link.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.press-tabs-content-wrapper {
    background: var(--bg-white);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    margin-bottom: 50px;
}

/* ═══════════════════════════════════════════════════════════════
   LOGO IDEALIZATION
   ═══════════════════════════════════════════════════════════════ */
.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-area img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.company-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: var(--primary-blue);
    max-width: 300px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN INTERACTIVE ANIMATIONS (UI/UX BOOST)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Pulse Animation for Floating Widgets */
@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 165, 224, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(44, 165, 224, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(44, 165, 224, 0);
    }
}

.floating-sidebar a {
    animation: softPulse 2s infinite;
}

.floating-sidebar a:hover {
    animation: none;
    transform: scale(1.15) translateY(-5px);
    background: var(--accent-orange) !important;
}

/* 2. Interactive Card Hovers (Lift + Glow) */
.tpp-card, .news-card, .video-card, .info-card, .service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tpp-card:hover, .news-card:hover, .info-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 48, 135, 0.1) !important;
    border-color: rgba(0, 48, 135, 0.1);
}

.video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.video-card:hover .video-play-btn i, .video-card:hover .fa-play {
    transform: scale(1.2);
    color: var(--accent-orange) !important;
}

/* 3. Button Hover Effects (Ripple/Glow) */
.btn-primary-custom, .btn-outline-custom {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    box-shadow: 0 8px 25px rgba(0, 48, 135, 0.3);
    transform: translateY(-2px);
}

/* 4. Animated Gradient Hero Background */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,25,70,0.8) 0%, transparent 100%);
    z-index: 1;
}

/* 5. Download Card UI (TPP.uz style) */
.download-card {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

.download-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.download-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.download-icon.pdf {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.download-icon.doc {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.download-icon.xls {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.download-info {
    flex-grow: 1;
}

.download-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-meta {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    gap: 15px;
}

.download-action {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.download-card:hover .download-action {
    opacity: 1;
}

.download-card:hover .download-action i {
    transform: translateY(3px);
}

/* 6. Form Custom File Upload (Contact) */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 48, 135, 0.05);
}

.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-upload .upload-btn {
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none; /* Let clicks pass through to input */
    transition: var(--transition);
}

.custom-file-upload:hover .upload-btn {
    background: var(--accent-orange);
    transform: scale(1.05);
}

.custom-file-upload .file-name {
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

/* ═══════════════════════════════════════════════════════════════
   7. ACCESSIBILITY PANEL
   ═══════════════════════════════════════════════════════════════ */

#accessibility-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    padding: 0;
    transition: var(--transition);
}

#accessibility-toggle:hover {
    color: var(--primary-blue);
}

.accessibility-panel {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    overflow: hidden;
    animation: accSlideIn 0.3s ease;
}

@keyframes accSlideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.acc-panel-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-panel-header i {
    font-size: 20px;
}

.acc-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.acc-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.acc-panel-body {
    padding: 18px 20px;
}

.acc-group {
    margin-bottom: 16px;
}

.acc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.acc-btn-row {
    display: flex;
    gap: 8px;
}

.acc-btn {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--border-light);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-dark);
}

.acc-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(0, 48, 135, 0.05);
}

.acc-btn.active {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: #fff;
}

.acc-btn-reset {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    width: 100%;
}

.acc-btn-reset:hover {
    background: #d4760d;
    color: #fff;
}

/* Accessibility: Grayscale (B/W) Mode */
body[data-contrast="bw"] {
    filter: grayscale(100%) !important;
}

body[data-contrast="bw"] img {
    filter: grayscale(100%) !important;
}

/* Accessibility: Dark Contrast Mode */
body[data-contrast="dark"] {
    background: #000 !important;
    color: #ff0 !important;
}

body[data-contrast="dark"] .main-header,
body[data-contrast="dark"] .main-nav,
body[data-contrast="dark"] .top-bar,
body[data-contrast="dark"] footer {
    background: #111 !important;
    color: #ff0 !important;
}

body[data-contrast="dark"] a {
    color: #ff0 !important;
}

body[data-contrast="dark"] .tpp-card,
body[data-contrast="dark"] .stat-card,
body[data-contrast="dark"] .survey-card,
body[data-contrast="dark"] .info-card {
    background: #222 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

body[data-contrast="dark"] .page-header {
    background: #111 !important;
}

body[data-contrast="dark"] .accessibility-panel {
    background: #222 !important;
    color: #ff0 !important;
}

body[data-contrast="dark"] .acc-btn {
    background: #333 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

/* Accessibility: Font Size Levels */
body[data-fontsize="-2"] { zoom: 0.75; }
body[data-fontsize="-1"] { zoom: 0.85; }
body[data-fontsize="1"] { zoom: 1.15; }
body[data-fontsize="2"] { zoom: 1.30; }
body[data-fontsize="3"] { zoom: 1.45; }