/* ======================================== */
/* متغیرها و پایه                            */
/* ======================================== */
:root {
    --primary: #e41b23;
    --primary-dark: #b0151b;
    --secondary: #1a1a2e;
    --accent: #ffc107;
    --dark: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --gradient: linear-gradient(135deg, #e41b23 0%, #ff4757 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--light);
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================== */
/* هدر                                       */
/* ======================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--secondary);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

/* ======================================== */
/* دکمه‌ها                                   */
/* ======================================== */
.btn-primary {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    line-height: 1.4;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(228, 27, 35, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    line-height: 1.4;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 17px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--white);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    line-height: 1.4;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-white.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.7);
}

.btn-white.btn-ghost:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* گروه دکمه‌ها در هیرو */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ======================================== */
/* کشوی زبان                                */
/* ======================================== */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropbtn {
    background: var(--light);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.lang-dropbtn:hover {
    background: #e9ecef;
    border-color: var(--primary);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--white);
    min-width: 160px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid #eee;
}

.lang-dropdown-content.show {
    display: block;
}

.lang-dropdown-content a {
    color: var(--secondary);
    padding: 12px 16px;
    display: block;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.lang-dropdown-content a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

/* ======================================== */
/* هیرو                                      */
/* ======================================== */
.hero {
    background: var(--dark);
    color: var(--white);
    padding: 90px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23e41b23" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    max-width: 850px;
    margin: 0 auto 10px;
    opacity: 0.92;
}

/* ======================================== */
/* بخش‌های عمومی                             */
/* ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.section-header p {
    font-size: 17px;
    color: var(--gray);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ======================================== */
/* بخش ویژگی‌ها / کارت‌ها                     */
/* ======================================== */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--white);
    font-weight: 900;
    flex-shrink: 0;
}

/* برای آیکون‌های عددی (مراحل ۱، ۲، ۳) */
.feature-icon.number {
    font-size: 36px;
    font-family: 'Vazirmatn', sans-serif;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
    flex: 1;
}

/* ======================================== */
/* بخش درباره / راهنما                       */
/* ======================================== */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--secondary);
    line-height: 1.6;
}

.about-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 25px 0 12px;
    color: var(--secondary);
    line-height: 1.6;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.95;
}

.about-text .btn-primary,
.about-text .btn-outline {
    margin-top: 15px;
}

/* برای وقتی about-text داخلش section-header باشد */
.about-text .section-header {
    text-align: right;
    margin-bottom: 0;
}

.about-text .section-header h2 {
    margin-bottom: 20px;
    font-size: 30px;
}

.about-text .section-header p {
    margin: 0 0 15px;
    max-width: 100%;
    font-size: 16px;
}

.about-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

/* ======================================== */
/* بخش قیمت‌ها                               */
/* ======================================== */
.pricing {
    padding: 80px 0;
    background: var(--light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    border-color: var(--primary);
    transform: scale(1.03);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.price-card.popular:hover {
    transform: scale(1.03) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background: var(--gradient);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--secondary);
}

.price {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    margin: 20px 0;
    line-height: 1.2;
}

.price small {
    font-size: 16px;
    color: var(--gray);
    font-weight: 400;
}

.price-card ul {
    list-style: none;
    text-align: right;
    margin: 20px 0;
    flex: 1;
}

.price-card ul li {
    padding: 8px 0;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #eee;
    line-height: 1.7;
}

.price-card ul li i {
    color: var(--success);
    margin-left: 8px;
}

.price-card .btn-primary,
.price-card .btn-outline {
    width: 100%;
    margin-top: auto;
}

/* ======================================== */
/* سوالات متداول                             */
/* ======================================== */
.faq {
    padding: 80px 0;
    background: var(--light);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    gap: 15px;
    color: var(--secondary);
    line-height: 1.6;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--primary);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

/* برای پاسخ‌های طولانی FAQ جدید - max-height بیشتر */
.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 2000px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer p {
    color: #555;
    font-size: 15px;
    line-height: 2;
    text-align: justify;
}

/* ======================================== */
/* بخش وبلاگ                                 */
/* ======================================== */
.blog-posts {
    padding: 80px 0;
    background: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.post-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--secondary);
    line-height: 1.6;
}

.post-date {
    display: block;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 12px;
}

.post-date i {
    margin-left: 5px;
    color: var(--primary);
}

.post-card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
    flex: 1;
}

.post-card-content .btn-outline {
    align-self: flex-start;
    margin-top: auto;
}

/* ======================================== */
/* صفحه پست تکی                              */
/* ======================================== */
.single-post {
    padding: 60px 0;
    background: var(--white);
    min-height: 60vh;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h1 {
    font-size: 36px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.post-meta {
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 14px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.post-meta i {
    color: var(--primary);
    margin-left: 5px;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-body {
    font-size: 16px;
    line-height: 2.1;
    color: #444;
    text-align: justify;
}

.post-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
    margin: 35px 0 15px;
    line-height: 1.6;
}

.post-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin: 25px 0 12px;
    line-height: 1.6;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-right: 25px;
}

.post-body ul li,
.post-body ol li {
    margin-bottom: 10px;
    line-height: 1.9;
}

.post-body a {
    color: var(--primary);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.post-body a:hover {
    border-bottom-color: var(--primary);
}

.post-body blockquote {
    border-right: 4px solid var(--primary);
    background: #fff5f5;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-body table th {
    background: var(--secondary);
    color: white;
    padding: 14px 16px;
    text-align: right;
    font-weight: 600;
}

.post-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.post-body table tr:nth-child(even) {
    background: #f9f9f9;
}

.post-body pre {
    background: var(--dark);
    color: #f8f8f2;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 25px 0;
    direction: ltr;
    text-align: left;
}

.post-body code {
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary);
}

/* ======================================== */
/* بخش CTA                                   */
/* ======================================== */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .hero-buttons {
    margin-top: 30px;
}

/* ======================================== */
/* فرم تمدید                                 */
/* ======================================== */
.renew-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 45px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.renew-form-wrapper h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 10px;
    text-align: center;
}

.renew-form-wrapper .form-desc {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.9;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(228, 27, 35, 0.1);
}

.form-group input[dir="ltr"],
.form-group textarea[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ======================================== */
/* جدول سازگاری رسیورها                      */
/* ======================================== */
.compat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.compat-table th {
    background: var(--secondary);
    color: var(--white);
    padding: 15px 18px;
    text-align: right;
    font-weight: 700;
    font-size: 15px;
}

.compat-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #444;
}

.compat-table tr:last-child td {
    border-bottom: none;
}

.compat-table tr:nth-child(even) {
    background: #fafafa;
}

.compat-table .check {
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

/* ======================================== */
/* فوتر                                      */
/* ======================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 19px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 800;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
    color: #aaa;
    font-size: 15px;
}

.footer ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer ul li i {
    margin-left: 8px;
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 14px;
}

/* ======================================== */
/* ابزارهای کمکی                             */
/* ======================================== */
.center-image {
    display: block;
    margin: 20px auto;
    border-radius: 5px;
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* ======================================== */
/* ریسپانسیو                                 */
/* ======================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 17px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .post-content h1 {
        font-size: 28px;
    }

    .about-content {
        gap: 35px;
    }

    .about-text h2 {
        font-size: 26px;
    }

    .renew-form-wrapper {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.5;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.9;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn-white {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text .section-header {
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .price-card.popular {
        transform: scale(1);
    }

    .price-card.popular:hover {
        transform: translateY(-10px);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card-image {
        height: 200px;
    }

    .post-content h1 {
        font-size: 24px;
    }

    .post-body {
        font-size: 15px;
        line-height: 2;
    }

    .post-body h2 {
        font-size: 22px;
    }

    .post-body h3 {
        font-size: 19px;
    }

    .lang-dropdown-content {
        right: auto;
        left: 0;
        min-width: 140px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-section .btn-white {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 10px auto;
        padding: 14px 20px;
        font-size: 16px;
    }

    .renew-form-wrapper {
        padding: 25px 20px;
    }

    .renew-form-wrapper h2 {
        font-size: 22px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 20px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    .compat-table {
        font-size: 13px;
    }

    .compat-table th,
    .compat-table td {
        padding: 10px 12px;
    }

    /* جدول در موبایل قابل اسکرول افقی */
    .compat-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .about-text h2 {
        font-size: 22px;
    }

    .about-text h3 {
        font-size: 17px;
    }

    .about-text p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 15px;
    }

    .price {
        font-size: 32px;
    }

    .price-card {
        padding: 30px 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

    .feature-icon.number {
        font-size: 30px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .about-text h2 {
        font-size: 20px;
    }

    .about-text h3 {
        font-size: 16px;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer h4 {
        font-size: 17px;
    }

    .renew-form-wrapper {
        padding: 20px 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-submit-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* ======================================== */
/* چاپ                                       */
/* ======================================== */
@media print {
    .header,
    .footer,
    .cta-section,
    .hero-buttons,
    .mobile-menu-btn {
        display: none;
    }

    body {
        background: #fff;
    }

    .container {
        max-width: 100%;
    }
}

/* =========================================================
   CTA - Glass buttons / Mobile alignment fix
   The CTA buttons are direct children of .cta-section, not
   .hero-buttons, so they need their own responsive rules.
   ========================================================= */
.cta-section > .container > .btn-white {
    box-sizing: border-box;
    display: block;
    width: min(100%, 545px);
    margin: 12px auto 0 !important;
    text-align: center;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 50px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-section > .container > .btn-white:first-of-type {
    margin-top: 28px !important;
}

.cta-section > .container > .btn-white:hover,
.cta-section > .container > .btn-white:focus-visible {
    background: rgba(255, 255, 255, 0.26) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

@media (max-width: 768px) {
    .cta-section > .container {
        width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .cta-section > .container > .btn-white,
    .cta-section > .container > .btn-white:first-of-type {
        width: 100%;
        max-width: 545px;
        min-width: 0;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 14px 18px;
        font-size: 16px;
        line-height: 1.5;
    }

    .cta-section > .container > .btn-white:first-of-type {
        margin-top: 22px !important;
    }

    .cta-section > .container > .btn-white + .btn-white {
        margin-top: 12px !important;
    }
}
