/* =========================
   1) Reset & Base
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url('../images/bg.jpg') center center / cover no-repeat fixed;
    color: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================
   2) Header
========================= */
.site-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.navbar a:hover {
    color: #a2d2ff;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================
   3) Main Content
========================= */
main {
    flex: 1;
    padding: 40px 0;
}

.content-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    text-align: right;
}

.content-card h1,
.content-card h2,
.content-card h3 {
    color: #fff;
    margin-bottom: 15px;
}

.content-card p,
.content-card li,
.content-card div {
    color: #fff;
}

.content-card strong,
.content-card b {
    color: #a2d2ff;
    font-weight: bold;
}

/* =========================
   4) Special Page Layouts (ساختار صفحات شما حفظ شده)
========================= */

/* About & Services - عکس گوشه سمت چپ */
.about-page .content-card,
.services-page .content-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 30px;
}

.about-page .content-card img,
.services-page .content-card img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    align-self: flex-start;
    margin-top: 0;
}

/* Home & Appointment - وسط‌چین */
.home-page .content-card,
.appointment-page .content-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.home-page .content-card p,
.home-page .content-card h1,
.home-page .content-card h2,
.appointment-page .content-card p,
.appointment-page .content-card h1,
.appointment-page .content-card h2 {
    text-align: center;
}

.contact-page .content-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: right;
}

/* =========================
   5) Forms & FAQ (بخش شیشه‌ای شده)
========================= */
.faq-box {
    background: rgba(255, 255, 255, 0.12) !important; /* شیشه‌ای */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff !important;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-box summary {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-box summary::after {
    content: '▼';
    float: left;
    font-size: 12px;
    opacity: 0.7;
}

.faq-content {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.1); /* پس‌زمینه تیره ملایم برای متن */
    line-height: 1.8;
}

/* فیلدها و اینپوت‌های شیشه‌ای */
.custom-input,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    color: #fff !important;
    font-family: Tahoma, sans-serif;
    backdrop-filter: blur(5px);
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn, .submit-btn, .btn-submit, button[type="submit"] {
    display: inline-block;
    background: #0077b6;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* =========================
   6) QA Page & Messages
========================= */
.message-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-right: 4px solid #f39c12;
    backdrop-filter: blur(10px);
}

.admin-reply {
    margin-top: 15px;
    padding: 15px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
    border-right: 3px solid #2ecc71;
}

/* بقیه استایل‌های تماس و مپ... */
.contact-layout { display: flex; gap: 20px; margin-top: 20px; }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.contact-item { background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 16px; }
.contact-map { flex: 1; min-height: 360px; border-radius: 16px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; }

/* =========================
   7) Responsive
========================= */
@media (max-width: 768px) {
    .about-page .content-card, .services-page .content-card { flex-direction: column; text-align: center; }
    .about-page .content-card img, .services-page .content-card img { max-width: 100%; }
    .navbar, .logo-wrapper, .header-content { justify-content: center; align-items: center; }
    .contact-layout { flex-direction: column; }
}

.site-footer {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}
