
/* ===== پایه کلی صفحه ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    text-align: center;
    direction: rtl;
    font-family: IRANSansX, system-ui, -apple-system, BlinkMacSystemFont, "IRANSans", sans-serif;
    background-color: #f4f6ff; /* مثل استایل دوم */
    margin: 0;
    padding: 0;
    color: #111827;
}

@font-face {
    font-family: B Titr;
    src: url(ghalamfile/database/font/BTitrBold_0.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}





/* ====== بخش کوییز – همون قبلی، بدون تغییر ساختاری ====== */
/* کانتینر اصلی کوییز */
#quiz-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    max-width: 720px;
    margin: 30px auto;
    border: 1px solid #e5e7eb;
    display: none;
    box-sizing: border-box;
}

/* متن سوال داخل کوییز */
#question {
    font-size: 20px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #111827;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* باکس سوال */
.question-box {
    border: 2px solid #2563eb;
    border-radius: 14px;
    padding: 18px 16px;
    margin: 32px 0 24px;
    background: linear-gradient(145deg, #f9fafb, #eff6ff);
    font-size: 18px;
    color: #0f172a;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

/* حالت پایه برای همه گزینه‌ها */
.option,
.option2,
.option3 {
    display: block;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition:
        box-shadow 0.25s ease,
        transform 0.15s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
    direction: rtl;
    text-align: right;
}

/* گزینه نوع اول */
.option {
    border: 1px solid #6b7280;
    background-color: #ffe4ec;
}

/* گزینه نوع دوم */
.option2 {
    border: 1px solid #e3e56b;
    border-radius: 15px;
    padding: 10px 14px;
    margin: 10px 0;
    background-color: #e5e7ff;
}

/* گزینه نوع سوم */
.option3 {
    border: 1px solid #e3e56b;
    border-radius: 15px;
    padding: 10px 14px;
    margin: 10px 0;
    background-color: #d0e2ff;
}

/* حالت hover برای گزینه‌ها */
.option:hover,
.option2:hover,
.option3:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

/* جدول خلاصه نتایج */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    table-layout: fixed;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.summary-table td {
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
    word-wrap: break-word;
    font-size: 14px;
    color: #111827;
}

.summary-table a {
    display: block;
    margin: 6px 0;
    word-wrap: break-word;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.summary-table a:hover {
    text-decoration: underline;
}

/* ریسپانسیو کوییز */
@media (max-width: 768px) {
    #quiz-container {
        padding: 16px;
        margin: 16px auto;
        border-radius: 12px;
    }

    #question {
        font-size: 18px;
        padding: 10px 12px;
    }

    .question-box {
        font-size: 16px;
        padding: 12px 12px;
        margin: 20px 0 16px;
    }

    .option,
    .option2,
    .option3 {
        font-size: 14px;
        padding: 10px 12px;
        margin: 8px 0;
    }

    .summary-table td {
        font-size: 12px;
        padding: 8px 6px;
    }
}

/* ===== پیام خطا و موفقیت (کارت‌های زیبا) ===== */

.error-boxvip,
.success-boxvip {
    padding: 16px 18px;
    border-radius: 12px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.7;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.error-boxvip {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.success-boxvip {
    background-color: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ===== لینک‌ها و دکمه کپی ===== */

.link-container {
    margin-bottom: 10px;
}

.copy-btn {
    margin-left: 10px;
    cursor: pointer;
    color: #2563eb;
    text-decoration: underline;
    font-size: 0.85rem;
}

/* ===== نتیجه ===== */

#result {
    margin-top: 20px;
    font-size: 18px;
}

/* ===== هدر اصلی (جایگزین main-header قدیمی، ولی با همان کلاس) ===== */

.main-header {
    background: linear-gradient(135deg, #003366, #0ea5e9);
    color: #fff;
    padding: 8px 16px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.main-header img {
    height: 40px;
    margin-right: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.5);
}

.main-header .nav-buttons {
    display: flex;
    align-items: center;
}

.main-header .button {
    color: #fff;
    margin: 0 4px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(191, 219, 254, 0.8);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.main-header .button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
    transform: translateY(-1px);
}

.main-header .separator {
    color: #e5e7eb;
    margin: 0 10px;
    font-size: 0.84rem;
}

.main-content {
    padding-top: 80px; /* فاصله از هدر ثابت */
}

/* ===== جعبه‌های tb و دکمه‌ها (باکس کارت‌طور) ===== */

.tb {
    width: 90%;
    max-width: 700px;
    background-color: #ffffff;
    color: #111827;
    padding: 20px;
    border-radius: 16px;
    margin: 24px auto 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.tb2 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: B Titr, IRANSansX, sans-serif;
}

.button-tb2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    font-family: B Titr, IRANSansX, sans-serif;
    width: 90%;
    max-width: 700px;
    background-color: #fce1c1;
    color: #3c1221;
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* دکمه داخل .x (اگر استفاده شود) */
.x .button {
    color: #fff;
    margin: 0 5px;
    padding: 8px 16px;
    background-color: #004080;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

.x .button:hover {
    background-color: #00264d;
}

/* ===== دسترسی سریع (quick-access) ===== */

.quick-access {
    background-image: url(../photo/azmon1.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 20px;
    border-radius: 18px;
    margin: 24px auto;
    border: 2px solid #004080;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    position: relative;
    width: 90%;
    max-width: 1000px;
}

.quick-access h2 {
    margin-top: 0;
    padding: 10px 20px;
    color: #1275f7;
    background-color: #c2f9a7;
    border: 2px solid #004080;
    border-radius: 999px;
    display: inline-block;
    font-size: 1rem;
}

.quick-access .button,
.buttonme {
    display: inline-block;
    margin: 5px;
    background-color: #2c6f41;
    padding: 10px 20px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    border: 2px solid #004080;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.quick-access .button:hover,
.buttonme:hover {
    background-color: #1b4d2d;
    border-color: #003366;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quick-access .text-box {
    background-color: rgba(15, 23, 42, 0.5);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #f9fafb;
    margin-top: 10px;
}

/* ===== تیترها ===== */

h1, h2 {
    color: #003366;
}

/* ===== بخش چرا گروه قلم ===== */

.why-ghalam {
    padding: 40px 20px;
    margin: 24px auto;
    position: relative;
    background-image: url(../photo/3.jpeg);
    background-size: cover;
    background-position: center;
    border: 5px solid #e53935;
    border-radius: 16px;
    width: 90%;
    max-width: 1100px;
}

.why-ghalam .content {
    background-color: rgba(200, 168, 255, 0.85);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #d1a4f0;
}

.why-ghalam h2 {
    display: inline-block;
    background-color: #e1bee7;
    color: #4a148c;
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid #ce93d8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    font-size: 1.2rem;
    text-align: center;
}

/* باکس ویدیو‌ها */
.why-ghalam .video-box {
    display: inline-block;
    width: 48%;
    margin: 15px;
    vertical-align: top;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f8f8;
    max-width: 400px;
}

.why-ghalam .video-box video {
    width: 100%;
    height: auto;
    max-height: 600px;
}

/* ریسپانسیو چرا قلم */
@media (max-width: 768px) {
    .why-ghalam .video-box {
        width: 100%;
        margin: 10px 0;
        max-width: none;
    }

    .why-ghalam .video-box video {
        max-height: none;
    }
}

/* ===== معرفی خدمات زیرمجموعه ===== */

.services {
    padding: 40px 20px;
    margin: 24px auto;
    position: relative;
    background-image: url(../photo/4.jpg);
    background-size: cover;
    background-position: center;
    border: 5px solid #d1a4f0;
    border-radius: 16px;
    width: 90%;
    max-width: 1100px;
}

.services .content {
    background-color: rgba(255, 255, 255, 0.94);
    padding: 20px;
    border-radius: 12px;
    border: 3px solid #e53935;
}

.services h2 {
    color: #111827;
    background-color: #c2f9a7;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid #d1a4f0;
    display: inline-block;
}

/* آیتم‌های خدمات */
.service-item {
    margin-top: 20px;
}

.service-item img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
}

.service-item p {
    margin-top: 10px;
    line-height: 1.7;
}

.service-item a {
    color: #2563eb;
    text-decoration: none;
}

.service-item a:hover {
    text-decoration: underline;
}

/* ===== معرفی خدمات آمار ===== */

.statistics {
    padding: 40px 20px;
    margin: 24px auto;
    position: relative;
    background-image: url(../photo/8.jpg);
    background-size: cover;
    background-position: center;
    border: 5px solid #a0c4f4;
    border-radius: 16px;
    width: 90%;
    max-width: 1100px;
}

.statistics .content {
    background-color: rgba(255, 255, 255, 0.94);
    padding: 20px;
    border-radius: 12px;
    border: 3px solid #f3d76d;
}

.statistics h2 {
    color: #111827;
    background-color: #c2f9a7;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid #a0c4f4;
    display: inline-block;
}

.stat-item {
    display: inline-block;
    width: 30%;
    margin: 10px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.stat-item img {
    width: 50px;
    height: 50px;
}

/* ===== فوتر قدیمی – بازطراحی شبیه site-footer ===== */

footer {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #e5e7eb;
    padding: 24px 0 28px;
    margin-top: 40px;
    border-radius: 0;
}

footer p {
    margin: 0;
}

footer .contact-info {
    text-align: center;
    margin-top: 12px;
}

footer .contact-info img {
    width: 24px;
    margin: 0 5px;
}

/* ===== انیمیشن‌ها ===== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

img {
    animation: fadeIn 2s ease-in-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-section {
    animation: slideDown 1s ease-out forwards;
    opacity: 0;
}

.quick-access { animation-delay: 0.2s; }
.why-ghalam   { animation-delay: 0.5s; }
.services     { animation-delay: 0.5s; }
.statistics   { animation-delay: 1s; }

/* ===== دکمه بازگشت به بالا ===== */

.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    background-color: #003366;
}

/* ===== دکمه منو و منوی کناری ===== */

.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#openMenu {
    background-color: #004080;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background: radial-gradient(circle at top right, #1e293b 0%, #020617 60%);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.8);
}

.sidenav a {
    padding: 12px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #f1f5f9;
    display: block;
    transition: 0.3s;
    text-align: right;
    margin: 10px 20px;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 10px;
}

.sidenav a:hover {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    border-color: rgba(191, 219, 254, 0.95);
}

.closebtn {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 24px;
    color: #f9fafb;
    background-color: #91082d;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 999px;
}

/* hover روی دکمه‌ها */
#openMenu:hover,
.closebtn-bottom:hover {
    background-color: #00264d;
}

.sidenav .closebtn-bottom:hover {
    background-color: #001a33;
}

.pay-form{
  display:flex;
  justify-content:center;
  margin-top:18px;
  width:100%;
}

/* دکمه اصلی */
.pay-btn{
  -webkit-appearance:none;
  appearance:none;
  border:0 !important;
  outline:0;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  width:min(520px, 92vw);  /* موبایل: تقریبا تمام عرض */
  padding:16px 22px;
  border-radius:16px;

  font-family: IRANSansX, tahoma, sans-serif;
  font-size:18px;
  font-weight:800;

  color:#fff;
  background: linear-gradient(135deg, #1e88e5 0%, #26c6da 55%, #43a047 100%);
  box-shadow: 0 14px 30px rgba(30, 136, 229, .28);

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  user-select:none;
}

/* آیکن */
.pay-btn__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:42px;
  height:42px;
  border-radius:12px;

  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  font-size:20px;
}

/* متن */
.pay-btn__text{
  letter-spacing: .2px;
}

/* هاور/اکتیو */
.pay-btn:hover{
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(30, 136, 229, .34);
}
.pay-btn:active{
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(30, 136, 229, .26);
}
.pay-btn:focus-visible{
  box-shadow: 0 0 0 4px rgba(38, 198, 218, .25), 0 14px 30px rgba(30, 136, 229, .28);
}

/* دسکتاپ بزرگ‌تر */
@media (min-width: 900px){
  .pay-btn{
    font-size:20px;
    padding:18px 26px;
    width:520px;
  }
  .pay-btn__icon{
    width:46px;
    height:46px;
    font-size:22px;
  }
}

