/*
=========================================
HUQUQIY ASOS (LEGAL) SAHIFASI - PREMIUM STYLE
=========================================
*/

/* 1. HERO MOSLASHTIRISH */
.legal-hero {
    /* Rasmiy bino (Oliy Majlis yoki shunga o'xshash) foni */
    background: url('https://images.unsplash.com/photo-1555421689-491a97ff2040?q=80&w=2070') no-repeat center center / cover !important;
}

.highlight-text-premium::before {
    content: 'HUJJATLAR' !important;
}

/* 2. HUJJAT KARTASI (OFFICIAL PAPER) */
.legal-doc-card {
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(7, 0, 107, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(7, 0, 107, 0.05);
    /* Qog'oz teksturasi effekti */
    background-image: linear-gradient(#fdfdfd 2px, transparent 2px), linear-gradient(90deg, #fdfdfd 2px, transparent 2px), linear-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

/* Watermark */
.doc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: rgba(7, 0, 107, 0.03);
    z-index: 0;
    pointer-events: none;
}

.doc-icon {
    text-align: center;
    font-size: 50px;
    color: #07006b;
    margin-bottom: 30px;
}

.doc-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    color: #07006b;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.doc-meta {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.doc-number,
.doc-date {
    display: inline-block;
    background: #f0f4ff;
    color: #07006b;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 5px;
}

.doc-content {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.lead-text {
    font-size: 1.25rem;
    color: #07006b;
    text-align: center;
    margin-bottom: 25px;
}

/* Maxsus Alert bloki */
.alert-legal {
    background: linear-gradient(135deg, #07006b 0%, #000b55 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(7, 0, 107, 0.2);
}

.alert-legal i {
    font-size: 30px;
    color: #FFC107;
}

/* 3. SERTIFIKAT KARTASI (FRAMED STYLE) - TUZATILDI */
.certificate-card-elite {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    /* Karta butun balandlikni egallasin */
}

.certificate-card-elite:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(7, 0, 107, 0.2);
}

.cert-frame {
    position: relative;
    border: 10px solid #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);

    /* --- MUHIM O'ZGARISH: QAT'IY BALANDLIK --- */
    height: 700px;
    /* Barcha sertifikatlar bir xil bo'yi 500px bo'ladi */
    width: 100%;
}

.cert-img {
    width: 100%;
    height: 100%;
    /* Ramkani to'liq egallaydi */

    /* --- MUHIM O'ZGARISH: RASMNI SIG'DIRISH --- */
    object-fit: cover;
    /* Rasm cho'zilib ketmasligi uchun qirqib moslaydi */
    object-position: top center;
    /* Rasmning eng muhim (tepa) qismini ko'rsatadi */

    display: block;
    transition: 0.5s;
}

/* ... QOLGAN KODLAR O'ZGARISHSIZ ... */
.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 0, 107, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: 0.4s;
}

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: 0.4s;
}

.overlay-content i {
    font-size: 40px;
    color: #FFC107;
    margin-bottom: 15px;
}

.overlay-content h5 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.certificate-card-elite:hover .cert-overlay {
    opacity: 1;
}

.certificate-card-elite:hover .overlay-content {
    transform: translateY(0);
}

.certificate-card-elite:hover .cert-frame {
    border-color: #FFC107;
}

.cert-footer {
    text-align: center;
    margin-top: 15px;
    font-weight: 700;
    color: #07006b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. YUKLAB OLISH TUGMALARI */
.download-buttons-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-download-legal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #07006b;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(7, 0, 107, 0.2);
}

.btn-download-legal:hover {
    background: #FFC107;
    color: #07006b;
    transform: translateY(-3px);
}

.btn-download-legal.outline {
    background: transparent;
    border: 2px solid #07006b;
    color: #07006b;
    box-shadow: none;
}

.btn-download-legal.outline:hover {
    background: #07006b;
    color: white;
}

/* MOBIL MOSLASHUV */
@media (max-width: 768px) {
    .legal-doc-card {
        padding: 30px 20px;
    }

    .doc-watermark {
        font-size: 150px;
    }

    .download-buttons-group {
        flex-direction: column;
    }

    .btn-download-legal {
        width: 100%;
        justify-content: center;
    }
}