/* -------------------- برگه ها (Pages) -------------------- */


.page-content {
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    text-align: justify;
}

.page-content ul {
    padding-right: 0;
    margin-right: 10px;
    list-style-position: inside;
    /* برای اینکه نقطه‌ها هم بیاد توی متن */
}

.page-content-center {
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-weight: bold;
    line-height: 2;
    text-align: justify;
}


/* -------------------- دکمه (Button) -------------------- */

.page-content-center a.btn {
    display: inline-block;
    background-color: #033F61;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
    margin-top: auto;
    margin-bottom: 5px;
    margin-top: 10px;
}

.page-content-center a.btn:hover {
    background-color: #059FB7;
    transform: translateY(-2px);
}

.two-column-layout {
    display: flex;
    flex-direction: row-reverse;
    /* پیش‌فرض، سایدبار چپ */
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
}

.widget-area {
    width: 280px;
    flex-shrink: 0;
}

/* حالت موبایل: سایدبار زیر محتوا */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column-reverse;
    }

    .widget-area {
        width: 100%;
        margin-top: 30px;
    }
}



/* -------------------- Contact -------------------- */



:root {
    --bg: #0b1220;
    --card: rgba(255, 255, 255, .08);
    --stroke: rgba(255, 255, 255, .15);
    --txt: #f8fafc;
    --muted: #8a8888;
    --brand: #0ea5e9;
    --brand-2: #22d3ee;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35)
}

.contact-hero {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(34, 211, 238, .25), transparent 60%), radial-gradient(800px 400px at -10% 100%, rgba(14, 165, 233, .25), transparent 60%), var(--bg);
    color: var(--txt);
    padding: 48px 0;
    text-align: center
}

.contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.1fr .9fr;
    direction: rtl
}

@media (max-width:900px) {
    .contact-grid {
        grid-template-columns: 1fr
    }
}

.contact-card,
.contact-map {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px
}


.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.item {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04)
}

.icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .3), rgba(34, 211, 238, .25))
}

.item h3 {
    margin: 0 0 6px;
    font-size: 16px
}

.item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9
}

.actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}


.note {
    color: var(--muted);
    font-size: 12px;
    margin-inline-start: 8px
}

.map {
    min-height: 360px
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(1.05) contrast(1.02)
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6fbff;
        --card: #fff;
        --stroke: #e6eef4;
        --txt: #0b1220;
        --muted: #586a7a
    }


}



/* همه فیلدهای ورودی فرم */
.wpcf7 form input[type=text],
.wpcf7 form input[type=email],
.wpcf7 form input[type=tel],
.wpcf7 form input[type=url],
.wpcf7 form textarea,
.wpcf7 form select {
  width: 100%;        /* پر کنه فقط داخل والد خودش */
  max-width: 100%;    /* بیشتر از کانتینر نشه */
  box-sizing: border-box; /* padding/ border هم حساب بشه */
}


.wpcf7 form input,
.wpcf7 form textarea {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}






@media (max-width: 900px) {
    .contact-grid {
        /*
         * با تغییر grid-template-columns به 1fr، هر دو ستون به یک ستون کامل تبدیل میشن.
         * در نتیجه direction: rtl دیگه کاربردی نیست و بهتره به حالت عادی برگرده.
         */
        grid-template-columns: 1fr;
        direction: ltr; /* جهت رو به چپ به راست برمی‌گردونیم تا مشکلی پیش نیاد */
        padding: 0 10px; /* برای جلوگیری از overflow، از چپ و راست یکم فاصله میدیم */
    }

    .contact-card, .contact-map {
        /* پدینگ داخلی کارت‌ها رو برای صفحه‌های کوچیک‌تر کمتر می‌کنیم */
        padding: 10px; 
    }
}

/*
 * برای اینکه همه چیز روی صفحه‌های مختلف خوب به نظر بیاد، بهتره به کل بخش hero هم یکم پدینگ بدیم.
 */
.contact-hero {
    /* استایل‌های قبلی رو نگه میداریم */
    /* ... */
    padding: 25px 10px; /* از چپ و راست پدینگ اضافه می‌کنیم */
    box-sizing: border-box; /* این باعث میشه پدینگ به عرض کل المان اضافه نشه و از بیرون زدن جلوگیری کنه */
}

/*
 * برای اینکه محتوای داخل هر آیتم به هم نریزه، از flex-wrap استفاده می‌کنیم.
 */
.item {
    /* اگه محتوا جا نشد، به خط بعدی منتقل میشه */
    flex-wrap: wrap; 
    padding: 5px;
}



/* موبایل: هر ستون ۹۰٪ و وسط‌چین */
@media (max-width: 768px){
  .contact-grid{
    grid-template-columns: 1fr;      /* زیر هم */
    justify-items: center;           /* آیتم‌ها وسط */
  }
  .contact-grid > .contact-card,
  .contact-grid > .contact-map{
    width: 90%;                      /* ۹۰٪ عرض صفحه */
    max-width: 640px;                /* اختیاری، برای تبلت‌های باریک */
  }
  .contact-map .map iframe{
    height: 320px;
  }
}