/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: A child theme for Hello Elementor
Author: Your Name
Author URI: https://yourwebsite.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-child
*/

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-primary);
    border-radius: 20px;
}

input {
    font-family: "IRANSans", Sans-serif;
}


* {
  box-sizing: border-box;
  outline: none;
  margin: 0;
  padding: 0;
  direction: rtl;
}


.form .wpforms-field {
  padding: 10px !important;
}

div.wpforms-container-full select:not([multiple])>option:not(.placeholder):checked {
  font-weight: 500 !important;
}

.contact-form select {
  -webkit-appearance: none !important;
}

.form .wpforms-title {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
}

.form .wpforms-field-large {
  border: none !important;
  background-color: #f0f0f1 !important;
  color: #322a2a;

  font-weight: 500 !important;
  font-size: 14px;
  appearance: auto;
}

.form .wpforms-field-large:focus {
  box-shadow: none !important;
}

.form .wpforms-submit-container {
  width: 100%;
  padding-right: 10px;
}

.form button {
  width: 100% !important;
  font-weight:600 !important;
}

form .comment-form-cookies-consent {
    display:none;
}

@media only screen and (max-width: 600px) {
    .form .wpforms-field-label {
        font-size: 13px !important;
    }
}

@media only screen and (max-width: 600px) {
    .form .wpforms-field-large {
        font-size: 13px !important;
    }
}

.book-page {
    display: none;
    width: 100%;
}
.book-page.active-page {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.book {
    position: relative;
    width: 100%;
    height: 350px;
    z-index: 9999;
    border-radius: 10px 10px 0 0;
    background-color: #fff;
    transform: preserve-3d;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    color: #000;
    text-align: center;
}

.content {
    padding: 27px 35px;
    border-radius: 0 10px 10px 0;
    box-shadow: 8px 8px 16px rgba(174, 179, 204, 0.7),
                -8px -8px 16px rgba(255, 255, 255, 0.8),
                inset 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.cover {
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;  
    background: linear-gradient(45deg, #1e3a49, #3a6c8e);
    background-size: cover;
    transform-origin: left; 
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: transform 0.5s ease;
    cursor: grab;
    transform: rotateY(0deg);
        z-index: 999;
}

.cover h2 {
    color: white;
}

.cover p {
    color: white;
    padding: 0 15px;
}

.content .book-page p {
    text-align: justify;
    line-height: 2.5rem;
    font-size: 15px;
    color: var(--e-global-color-text);
}

.content .book-page h2 {
    font-size: 19px;
    text-align: justify;
    color:#13707c;
    line-height: 2.3rem;
}

.cover > h2 > span {
    color: #1076c9;
    font-size: 28px;
    font-weight: bolder;
    position: absolute;
    bottom: 20px;
    color: white;
}

.content > p {
    margin-bottom: 10px;
}

.book-navigation {
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.book-navigation button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1d9e0;
    background-color: #ffffff;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.book-navigation button:hover:not(:disabled) {
    background-color: #0a2a43;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.book-navigation button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-navigation button:disabled {
    background-color: #f0f3f5;
    color: #b0b8c0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#commentform {
	display: flex;
    flex-direction: column;
    gap: 10px;
}
.elementor-1061 .elementor-element.elementor-element-b52ad52 input {
	width: 100%;
    height: 60px;
}

.list-header .elementor-icon-list-icon {
    background: #3A6C8E;
    padding: 8px 5px 8px 7px;
    border-radius: 5000px;
}

@media (max-width: 768px) {
    .book {
        height: auto;
        min-height: 350px; 
        perspective: 1500px;
    }
    
    .list-header .elementor-icon-list-items {
        gap: 25px 0;
        justify-content: space-between;
    }

    .content {
        padding: 20px; 
    }

    .content .book-page h2 {
        font-size: 17px;
        line-height: 1.8rem;
    }

    .cover h2 {
        font-size: 1.3rem;
    }

    .cover p {
        font-size: 0.9rem;
    }
    .hidden-book {
        overflow: hidden !important;
    }
    .box-services:last-child {
        grid-column: span 2;
    }
}


.posts h2 {
    color: var( --e-global-color-primary ) !important;
	    margin-top: 20px;
	    margin-bottom: 5px;
	font-size: 20px;
}

.posts h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8em;
    margin-bottom: 5px;
	color: #FF7400;
}

.posts h4 {
    color: #000 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6em;
    margin-bottom: 0;
    margin-top: 20px;
}

.posts h5 {
    color: #000 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6em;
    margin-bottom: 0;
    margin-top: 20px;
}

.posts p[style*="text-align: center"] {
    background-color: #f2f5f5;
    border-right: 6px solid var(--e-global-color-primary);
    margin: 10px 0;
    border-radius: 5px;
    padding: 6px;
    text-align: right !important;

}

.posts p:has(img) {
    display: flex
;
    flex-direction: column;
    align-items: center;
}

.posts p[style*="text-align: center"] span {
    background-color: transparent !important;

}

.posts img {
    border-radius: 10px !important;
	  margin-bottom: 10px;
}

/* ============================================
   بخش ۱: استایل‌های دسکتاپ (جدول استاندارد)
============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
}

table thead tr {
    background-color: #3A6C8E;
    color: #ffffff;
    text-align: center;
    border-radius: 5px 5px 0 0;
    padding: 5px;
}

table th,
table td {
    padding: 12px 15px;
    text-align: center;
}

table tbody tr {
    border-bottom: 1px solid #dddddd;
}

table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* ==========================================================
   بخش ۲: استایل آکاردئون برای موبایل (طرح جدید)
==========================================================
  - این استایل در صفحه‌های با عرض کمتر از 768 پیکسل فعال می‌شود.
*/
@media screen and (max-width: 768px) {

    table thead tr {
        display: flex;
        justify-content: space-between;
    }

    table tbody,
    table tr,
    table td {
        display: block;
        /* تبدیل همه چیز به بلاک */
    }

    table tr {
        border: 1px solid #e0e0e0;
        overflow: hidden;
    }

    /* استایل هدر هر آیتم آکاردئون */
    table tr td:first-child {
        display: flex;
        justify-content: space-between;
        /* متن و آیکون را از هم جدا می‌کند */
        align-items: center;
        flex-direction: row-reverse;
        /* آیکون را در سمت چپ قرار می‌دهد */
        width: 100%;
        cursor: pointer;
        background-color: #ffffff;
        font-weight: bold;
        padding: 5px 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    /* استایل آیکون (طرح جدید) */
    table tr td:first-child::before {
        content: '‹';
        /* آیکون شورون */
        font-weight: bold;
        color: #007bff;
        transition: transform 0.3s ease;
        /* انیمیشن نرم برای چرخش */
    }

    /* چرخش آیکون در حالت باز شده */
    table tr.is-expanded td:first-child::before {
        transform: rotate(-90deg);
    }

    /* استایل بخش محتوا (پاسخ آکاردئون) */
    table td:not(:first-child) {
        padding: 5px 15px;
        /* ایجاد فاصله داخلی */
        background-color: #f9f9f9;
        text-align: right;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
    }

    /* استایل عنوان هر بخش از محتوا (شرح مشکل، راهنما و...) */
    table td:not(:first-child)::before {
        content: attr(data-header) ':';
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #333;
        position: static;
        /* حذف حالت absolute */
        width: auto;
    }

    table tr td:last-child {
        border-bottom: none;
    }

    /* مخفی کردن محتوا در حالت بسته */
    table tr:not(.is-expanded) td:not(:first-child) {
        display: none;
    }
}


.posts p {
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 2.4rem;
	  margin-block-end: unset;
	  margin-bottom:5px;
}

.posts p span {
	font-size: 16px !important;
}

.posts a {
	font-size: 17px;
    color: var( --e-global-color-accent );
    font-weight: 600;
    background-color: transparent !important;
}

.posts ul {
    padding: 0px 7px 0px 7px;
    display: flex;
    flex-direction: column;
}

.posts ol {
	  padding: 0px 7px 0px 7px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media only screen and (max-width: 600px) {
    .posts h2 {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.7em;
        margin-bottom: 0px;
        margin-top: 3px;
    }
}

@media only screen and (max-width: 600px) {
    .posts h3 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 0px;
        margin-right: -4px;
        margin-left: -17px;
    }
}

@media only screen and (max-width: 600px) {
    .posts h4 {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5em;
        margin-bottom: 0px;
        margin-right: -4px;
        margin-top: 10px;
    }
}

@media only screen and (max-width: 600px) {
    .posts p {
        margin-bottom: 0px;
        margin-top: 3px;
    }

    .posts p[style*="text-align: center"] span {
        font-size: 12px !important;
        font-weight: 700;
    }
    .posts p[style*="text-align: center"] a {
        font-size: 14px !important;
    }
}

.posts ul li {
    display: flex;
    align-items: baseline;
    position: relative;
    padding: 5px 0px 5px 0px;
}

.posts ul li b {
	    color: black;
}
.posts ol li {

    align-items: baseline;
    position: relative;
    padding: 5px 0px 5px 0px;
}

.posts ul li:before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #FE0207;
    border-radius: 50%;
    margin-left: 10px;
    border: 2px solid #FE0207;
}

#ez-toc-container {
	display:none;
}