﻿/* ============================================================
   CFAR Layout CSS (Improved Clean Version)
   ============================================================ */

/* ================= VARIABLES ================= */

:root {
    --c-navy: #0d2137;
    --c-navy-mid: #1a3a5c;
    --c-navy-light: #2d5986;
    --c-gold: #c9a84c;
    --c-gold-light: #e2bc6a;
    --c-bg: #f6f7fb;
    --c-border: #e5e5e5;
    --c-text: #1c2d3e;
    --c-radius: 10px;
    --nav-height: 68px;
}

/* ================= BASE ================= */

* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: var(--c-bg);
    margin: 0;
    color: var(--c-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ================= NAVBAR ================= */

.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg,#0d2137,#1a3a5c);
    border-bottom: 3px solid var(--c-gold);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 -2px 6px rgba(255,255,255,0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= BRAND ================= */

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg,var(--c-gold),var(--c-gold-light));
    color: #0d2137;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.6);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text-en {
    font-size: 21px;
    font-weight: 900;
    color: var(--c-gold);
    letter-spacing: 1.5px;
}

.brand-text-fa {
    font-size: 12.5px;
    color: #d7e4f3;
    line-height: 1.35;
}

.brand-slogan {
    font-size: 11px;
    color: #c9d6e5;
    opacity: .85;
    font-style: italic;
    letter-spacing: .3px;
}

/* ================= MENU ================= */

.ulcustom {
    display: flex;
    align-items: center;
}

.licustom {
    position: relative;
}

    /* menu button */

    .licustom > a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 12px 16px;
        font-size: 14px;
        color: #fff;
        border-radius: 8px;
        background: linear-gradient(145deg,#1a3a5c,#10263f);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 2px rgba(255,255,255,0.08);
        transition: all .25s ease;
    }

        .licustom > a:hover {
            background: linear-gradient(145deg,#2d5986,#1a3a5c);
            border: 1px solid var(--c-gold);
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 0 6px rgba(201,168,76,0.4);
        }

/* ================= DROPDOWN ================= */

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: auto;
    text-align: right;
    background: linear-gradient(180deg,#ffffff,#eef3f9);
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid var(--c-gold);
    padding: 8px 0;
    z-index: 2000;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* show dropdown */

.licustom:hover .dropdown-menu-custom {
    display: block;
}

/* dropdown items */

.dropdown-menu-custom li {
    width: 100%;
}

.dropdown-menu-custom a {
    display: block;
    width: 100%;
    padding: 10px 18px;
    font-size: 14px;
    color: #0d2137;
    font-weight: 500;
    transition: all .2s;
}

    .dropdown-menu-custom a:hover {
        background: linear-gradient(90deg,var(--c-gold-light),var(--c-gold));
        color: #0d2137;
        padding-right: 24px;
    }

/* ================= LOGIN ================= */

.login-section {
    display: flex;
    align-items: center;
}

.btn-login {
    background: linear-gradient(145deg,var(--c-gold),var(--c-gold-light));
    color: #0d2137;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.6);
    transition: all .25s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    }

/* ================= USER MENU ================= */

.user-menu-container {
    position: relative;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

    .user-menu.open {
        display: block;
    }

    .user-menu a {
        display: block;
        padding: 10px 15px;
        font-size: 14px;
        color: #444;
    }

        .user-menu a:hover {
            background: #f3f3f3;
        }

/* ================= MOBILE ================= */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
}

@media(max-width:992px) {

    .mobile-menu-toggle {
        display: block;
    }

    .ulcustom {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        right: 0;
        background: linear-gradient(180deg,#0d2137,#1a3a5c);
        border-top: 2px solid var(--c-gold);
        padding: 10px;
    }

        .ulcustom.mobile-open {
            display: flex;
        }

    .licustom > a {
        width: 100%;
        margin-bottom: 6px;
    }

    .dropdown-menu-custom {
        position: static;
        box-shadow: none;
        background: #f8fbff;
    }
}

/* ================= MAIN ================= */

.main-content {
    min-height: 70vh;
    padding-top: 20px;
}

.content-wrapper {
    padding-bottom: 40px;
}

/* ================= FOOTER ================= */

.site-footer {
    background: linear-gradient(135deg, var(--c-navy), var(--c-navy-mid));
    border-top: 3px solid var(--c-gold);
    margin-top: 40px;
    color: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
}

    .site-footer a {
        color: var(--c-gold-light);
        transition: .2s;
    }

        .site-footer a:hover {
            color: #fff;
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.25);
    color: #e8eef7;
}


/* ================= LOADER ================= */

.wz-loader-container {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-circle {
    width: 40px;
    height: 40px;
    position: relative;
}

.sk-child {
    position: absolute;
    width: 100%;
    height: 100%;
}

    .sk-child:before {
        content: '';
        display: block;
        margin: auto;
        width: 15%;
        height: 15%;
        background: var(--c-navy);
        border-radius: 100%;
        animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
    }

@keyframes sk-circleBounceDelay {

    0%,80%,100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* ================= MODAL ================= */

.cfar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.cfar-overlay-open {
    display: flex;
}

.cfar-modal-box {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
}

.cfar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--c-navy);
    color: #fff;
}

.cfar-modal-body {
    padding: 20px;
}

.cfar-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.cfar-input {
    border: none;
    padding: 10px;
    flex: 1;
}

.cfar-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.cfar-btn-primary {
    background: var(--c-gold);
    color: #fff;
}

.cfar-btn-secondary {
    background: var(--c-navy-light);
    color: #fff;
}

.cfar-btn-ghost {
    background: #f5f5f5;
}
/* ----------- کارت اصلی ---------- */
.page-card {
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.08);
    border: 1px solid #e0e6ed;
    transition: 0.25s;
}

    .page-card:hover {
        box-shadow: 0 12px 32px rgba(0,0,0,0.11);
    }

/* ----------- عنوان کارت ---------- */
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-navy-mid);
    margin-bottom: 28px;
    text-align: center;
}

/* ----------- ورودی جستجو ---------- */
.search-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    transition: 0.25s;
    background: #fafafa;
}

    .search-input:focus {
        border-color: var(--c-gold);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(255,194,97,0.18);
        outline: none;
    }

/* ----------- دکمه اصلی ---------- */
.btn-search {
    background: linear-gradient(145deg, var(--c-gold), var(--c-gold-light));
    color: #0d2137;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}

    .btn-search:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    }

/* ---------- جدول حرفه‌ای ---------- */
.modern-table {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

    .modern-table thead {
        background: linear-gradient(135deg, var(--c-navy), var(--c-navy-mid));
        color: #fff;
    }

    .modern-table th {
        padding: 14px;
        font-size: 15px;
        font-weight: 600;
    }

    .modern-table td {
        padding: 14px;
        border-bottom: 1px solid #e5e7eb;
    }

    .modern-table tr:hover td {
        background: #f7f9fc;
    }

    /* سطرهای زوج */
    .modern-table tr:nth-child(even) td {
        background: #fafafa;
    }

/* ---------- حالت بدون نتیجه ---------- */
.empty-state {
    text-align: center;
    font-size: 17px;
    padding: 25px;
    color: #788596;
}
/* فونت حرفه‌ای */
body, .page-wrapper {
    font-family: 'IRANYekanX', 'IRANSans', sans-serif !important;
}

/* ساختار کلی صفحه */
.page-wrapper {
    padding: 40px 10px;
}

/* سکشن هدر صفحه */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-navy-deep);
}

.hero-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* گرید محتوایی */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* کارت‌های محتوا */
.info-card {
    padding: 25px 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border: 1px solid #e4e4e4;
}

.info-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--c-navy-mid);
    font-weight: 700;
}

.info-text {
    line-height: 2;
    color: #333;
    margin-bottom: 14px;
}

/* لیست ارزش‌ها */
.value-list {
    padding-right: 20px;
    line-height: 2.2;
    color: #444;
}

/* سکشن تماس با ما */
.contact-section {
    text-align: center;
    margin-top: 60px;
}

.contact-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--c-navy-mid);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}
