/* ==========================================================
گومرکا دهۆک - ستايلێ گشتی، شاهانە و مۆبایل (Full Royal & Mobile 
CSS)   ========================================================== */

body, html {
    height: 100%;
    margin: 0;
    background: linear-gradient(135deg, #0b1329 0%, #131c38 100%) !important;
    font-family: Tahoma, sans-serif !important;
    color: #f8fafc !important;
}

/* کانتێنەرا سەرەکی بۆ هەمیشە ناڤەند و گونجای بۆ هەمی شاشەیان */
.container, .container-fluid {
    width: 100%;
    padding-right: var(--bs-gutter-x, 1rem);
    padding-left: var(--bs-gutter-x, 1rem);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1520px !important;
    }
}

/* 1. ستايلێ شاهانە و خۆکار بۆ پەیجا سەرەکی (Royal Welcome Screen) */
.royal-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.royal-card {
    background: rgba(19, 28, 56, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 135, 34, 0.35);
    border-radius: 24px;
    padding: 35px 25px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.royal-card img.header-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.royal-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.royal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.royal-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border: none;
    border-radius: 50px;
    padding: 14px 30px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.royal-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.6);
    color: #f59e0b;
}

/* 2. شێوازی کارتێن گشتی و وردەکاریان */
.custom-card {
    background: linear-gradient(145deg, #162032, #101726) !important;
    border: 1px solid rgba(184, 135, 34, 0.3) !important;
    border-radius: 24px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100% !important;
    height: 100%;
    min-height: 340px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
    box-sizing: border-box;
}

.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #b88722, #f59e0b, #b88722);
    opacity: 0.95;
}

.article-card {
    background: #131c38 !important;
    border-radius: 24px !important;
    border: 1px solid rgba(184, 135, 34, 0.3) !important;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    color: #f8fafc !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* 3. ڕێکخستنا تایبەت بۆ مۆبایلی ب شێوەیەکێ یەکجار ئەنیق و پڕ (Mobile Ultra Sleek) */
@media (max-width: 768px) {
    body, html {
        height: 100vh;
        overflow-x: hidden;
    }

    .royal-wrapper {
        min-height: 100vh;
        width: 100%;
        padding: 10px !important;
    }

    .royal-card {
        background: rgba(19, 28, 56, 0.95) !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(184, 135, 34, 0.4) !important;
        border-radius: 20px !important;
        padding: 25px 15px !important;
        max-width: 100% !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8) !important;
    }

    .royal-card img.header-img {
        max-height: 160px !important;
        margin-bottom: 15px !important;
    }

    .royal-logo {
        width: 75px !important;
        height: 75px !important;
        margin-bottom: 10px !important;
    }

    .royal-title {
        font-size: 1.25rem !important;
        margin-bottom: 20px !important;
    }

    .royal-btn {
        padding: 12px 20px !important;
        font-size: 1rem !important;
        border-radius: 40px !important;
    }

    .custom-card {
        min-height: auto !important;
        padding: 15px !important;
    }

    .article-card {
        padding: 20px !important;
    }
}