/* ======================
   FONT
====================== */
@font-face {
    font-family: "Bahij_Zar";
    src: url("font/Bahij_Zar.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ======================
   Reset
====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================
   Base
====================== */
html, body {
    font-family: "Bahij_Zar", Tahoma, sans-serif;
    font-size: 18px;
}

body {
    background: #0b2a52;   /* آبی تیره حرفه‌ای */
    color: #ffffff;       /* متن روی آبی */
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
}

/* ======================
   Links
====================== */
a {
    color: #0b2a52;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ======================
   Topbar
====================== */
.topbar {
    background: #0b2a52;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.topbar .logo {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-links a {
    color: #ffffff;
    font-size: 18px;
}

/* ======================
   Layout
====================== */
.main-wrapper {
    padding: 40px 15px 60px;
}

.container {
    max-width: 1000px;
    margin: auto;
    background: #ffffff;
    color: #000000;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ======================
   Search Box
====================== */
.search-box {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #0b2a52;
}

/* Brand title */
.search-box h1 {
    font-size: 30px;
    color: #0b2a52; /* طلایی برند */
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.search-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 40px;
    border: 2px solid #0b2a52;
    font-size: 16px;
    color: #000000;
    background: #ffffff;
}

.search-input-wrapper input::placeholder {
    color: #555;
}

.search-input-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(11,42,82,0.3);
}

.search-input-wrapper button {
    padding: 14px 28px;
    border-radius: 40px;
    border: none;
    background: #0b2a52;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.search-input-wrapper button:hover {
    background: #103a73;
}

/* ======================
   Sections
====================== */
.section {
    margin-top: 30px;
    padding: 25px;
    background: #f8fbff;
    color: #000000;
    border-radius: 10px;
    border-right: 6px solid #0b2a52;
}

.section h2 {
    color: #0b2a52;
    margin-bottom: 15px;
}

.section p {
    color: #000000;
    line-height: 1.9;
    font-size: 17px;
}

/* ======================
   Footer
====================== */
.footer {
    background: #0b2a52;
    color: #ffffff;
    text-align: center;
    padding: 15px;
}

.footer a {
    color: #ffffff;
}

/* ======================
   Responsive
====================== */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
    }

    .container {
        padding: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ======================
   Force font
====================== */
input,
button,
textarea,
select {
    font-family: "Bahij_Zar", Tahoma, Arial, sans-serif;
}
/* ======================
   Mobile Topbar Fix
====================== */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 12px 10px;
    }

    .topbar .logo {
        font-size: 22px;
        line-height: 1.3;
    }

    .nav-links {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 16px;
        padding: 4px 8px;
    }
}
