:root {
    --primary: #4361ee;
    --primary-hover: #3046b5;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --success: #2ec4b6;
    --warning: #f8961e;
    --danger: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Vazirmatn', Tahoma, sans-serif;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    background-color: #f9fafb;
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.farsi-digits {
    font-feature-settings: "ss01";
}


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

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: rotate(15deg);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.logo-icon i {
    color: #fff;
    font-size: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    opacity: 0.9;
    line-height: 1.2;
    margin-top: 2px;
}


.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-left,
.nav-right {
    flex: 0 0 auto;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    white-space: nowrap;
}

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

.nav-links a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -25px;
    right: 0;
    background-color: var(--primary);
    border-radius: 3px;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.nav-cta i {
    color: white !important;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
}

.mobile-actions {
    display: none;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
}


.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1002;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    border: none;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-links a {
    color: var(--dark);
    font-size: 1.1rem;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-links a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: var(--primary);
    padding-right: 15px;
    background: #f9f9f9;
}

.mobile-download-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
    text-align: center !important;
    border: none !important;
    width: 100% !important;
    cursor: pointer !important;
}

.mobile-download-btn i {
    color: white !important;
}

.mobile-download-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4) !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6);
}


.footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 0;
}

.footer .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
}

.footer-column:first-child {
    justify-content: flex-start;
}

.footer-column:last-child {
    justify-content: flex-end;
}

.footer-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-icon {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.footer-logo .logo-icon i {
    color: #adb5bd;
}

.footer-logo .logo-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.footer-logo .logo-text-footer {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-logo .logo-main {
    color: #ffffff;
}

.footer-logo .logo-sub {
    color: #adb5bd;
    margin-top: 4px;
}

.footer-resources {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-resources a {
    color: #adb5bd;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.footer-resources a:hover {
    color: #ffffff;
}

.footer-resources a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    right: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-resources a:hover::after {
    width: 100%;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.15), rgba(255,255,255,0));
    margin: 30px 0 20px 0;
    border: none;
}

.copyright {
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
    padding: 20px 0 30px;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}


.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-primary i {
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-secondary i {
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.btn-secondary:hover i {
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}


.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    position: relative;
    overflow: hidden;
}

.hero:before,
.hero:after,
.page-header:before,
.page-header:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.hero:before {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(67,97,238,0.1) 0%, rgba(58,12,163,0.05) 100%);
    top: -300px;
    left: -300px;
}

.hero:after {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(247,37,133,0.1) 0%, rgba(76,201,240,0.05) 100%);
    bottom: -200px;
    right: -200px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-badge {
    display: inline-block;
    background: rgba(247,37,133,0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    display: block;
    margin-top: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.features,
.download-section,
.resources-section {
    padding: 100px 0;
    background: white;
}

.quick-install,
.changelog-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background: #f9fafb;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #eef1ff;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
}

.steps-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    position: relative;
}

.step-number {
    position: absolute;
    top: -25px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(67,97,238,0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(67,97,238,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 2rem;
}

.download-wrapper {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.download-info {
    flex: 1;
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(67,97,238,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.main-download {
    text-align: center;
    margin-bottom: 30px;
}

.download-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 10px;
}

.download-version {
    flex: 1;
    display: flex;
    justify-content: center;
}

.version-card {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(67,97,238,0.2);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.version-header h3 {
    font-size: 1.8rem;
}

.version-badge {
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.version-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.changelog-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.version-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.version-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.change-category {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    border-right: 4px solid var(--primary);
}

.change-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.change-list {
    list-style: none;
    padding-right: 20px;
}

.change-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    color: var(--gray);
    font-size: 0.95rem;
}

.change-list li:last-child {
    border-bottom: none;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.resource-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--border);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: rgba(67,97,238,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 2rem;
}


.page-header {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    padding: 100px 0 60px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 900px;
}

.tutorial-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.tutorial-section {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 120px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

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

.requirement-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.requirement-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.req-icon {
    width: 70px;
    height: 70px;
    background: rgba(67,97,238,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2rem;
}

.req-list {
    list-style: none;
}

.req-list li {
    margin-bottom: 10px;
    padding-right: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.req-list li strong {
    color: var(--primary);
}

.sub-item {
    padding-right: 20px !important;
    font-size: 0.85rem;
}

.info-box,
.warning-box {
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-box {
    background: rgba(46,196,182,0.08);
    border-right: 4px solid var(--success);
}

.warning-box {
    background: rgba(248,150,30,0.08);
    border-right: 4px solid var(--warning);
}

.info-box i {
    color: var(--success);
}

.warning-box i {
    color: var(--warning);
}

.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 25px;
    background: var(--light);
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.install-step {
    padding: 30px;
    background: var(--light);
    border-radius: var(--radius);
}

.code-box {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    margin: 15px 0;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
}

.update-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.update-step {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    border-right: 4px solid var(--primary);
}

.update-tips {
    list-style: none;
    padding: 0;
}

.update-tips li {
    padding: 5px 20px 5px 0;
    position: relative;
    color: var(--gray);
}

.update-tips li:before {
    content: '•';
    color: var(--primary);
    position: absolute;
    right: 0;
}

.accordion {
    margin: 30px 0;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    background: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header:hover {
    background: #f0f4ff;
}

.accordion-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 500px;
}

.accordion-item.active .accordion-header i:last-child {
    transform: rotate(180deg);
}

.solution-list {
    list-style: none;
}

.solution-list li {
    padding: 8px 0 8px 0;
    padding-right: 25px;
    position: relative;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.solution-list li:before {
    content: '✓';
    color: var(--success);
    position: absolute;
    right: 0;
}


.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.theme-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.theme-screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}

.no-screenshot {
    width: 100%;
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    border-bottom: 3px solid var(--border);
}

.theme-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.theme-name {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: capitalize;
}

.theme-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.preview-button {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-decoration: none;
    display: none; 
}

.preview-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,176,155,0.4);
}

.download-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(67,97,238,0.4);
}

.download-button.disabled {
    background: #ccc;
    pointer-events: none;
    opacity: 0.6;
}

.details-button {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.details-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,176,155,0.4);
}


.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s;
    font-family: var(--font-main);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-main);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
    background: rgba(230,57,70,0.1);
}

.modal-body {
    padding: 25px;
    line-height: 1.8;
    color: var(--dark);
    font-family: var(--font-main);
}

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

.modal-body code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
}

.modal-body pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: var(--radius);
    overflow-x: auto;
}


.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
}

.page-item.disabled .page-link {
    background: var(--light);
    color: var(--gray);
    border-color: var(--border);
    cursor: not-allowed;
    opacity: 0.6;
}

.stats {
    background: var(--light);
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.filter-container {
    max-width: 400px;
    margin: 20px auto 30px;
}

.category-select {
    width: 100%;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    background: white;
}


.blog-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.blog-main {
    flex: 2.5;
    min-width: 0;
}

.blog-sidebar {
    flex: 1.2;
    min-width: 250px;
}

.index-post-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    transition: transform 0.5s ease;
}

.index-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.index-post-thumb-wrapper {
    width: 280px;
    height: 186px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.index-post-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.index-post-card:hover .index-post-thumb-wrapper img {
    transform: scale(1.05);
}

.index-post-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.index-post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.index-post-title a {
    color: var(--dark);
}

.index-post-title a:hover {
    color: var(--primary);
}

.index-post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.index-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.index-post-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.index-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.index-read-more:hover {
    gap: 10px;
}

.single-post-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid #eef2f6;
    margin-bottom: 30px;
}

.single-post-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.single-post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4a4a4a;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem auto;
    display: block;
}

.single-post-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px dashed var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-post-tag-item {
    background: var(--light);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.single-post-tag-item:hover {
    background: var(--primary);
    color: white;
}

.single-author-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fdfdfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 50px;
}

.single-author-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.single-author-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.single-author-bio {
    color: var(--gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-author-socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.single-author-socials a {
    width: 36px;
    height: 36px;
    background: #f1f3f5;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
}

.single-author-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    right: 0;
    border-radius: 3px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 12px;
}

.sidebar-widget ul li a {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.sidebar-category-count {
    margin-right: auto;
    font-size: 0.8rem;
    background: var(--light);
    padding: 2px 8px;
    border-radius: 20px;
}


.page-forum .nav-links a[href*="forum"],
.page-forum .mobile-menu-links a[href*="forum"] {
    color: var(--primary) !important;
}
.page-forum .nav-links a[href*="forum"]:after,
.page-forum .mobile-menu-links a[href*="forum"]:after {
    width: 100% !important;
}

.page-home .nav-links a[href="index.php"],
.page-home .nav-links a[href="/index.php"],
.page-home .nav-links a[href="/"],
.page-home .mobile-menu-links a[href="index.php"] {
    color: var(--primary) !important;
}
.page-home .nav-links a[href="index.php"]:after,
.page-home .nav-links a[href="/index.php"]:after,
.page-home .nav-links a[href="/"]:after,
.page-home .mobile-menu-links a[href="index.php"]:after {
    width: 100% !important;
}

.page-install .nav-links a[href*="install.php"],
.page-install .mobile-menu-links a[href*="install.php"] {
    color: var(--primary) !important;
}
.page-install .nav-links a[href*="install.php"]:after,
.page-install .mobile-menu-links a[href*="install.php"]:after {
    width: 100% !important;
}

.page-themes .nav-links a[href*="themes.php"],
.page-themes .mobile-menu-links a[href*="themes.php"] {
    color: var(--primary) !important;
}
.page-themes .nav-links a[href*="themes.php"]:after,
.page-themes .mobile-menu-links a[href*="themes.php"]:after {
    width: 100% !important;
}

.page-plugins .nav-links a[href*="plugins.php"],
.page-plugins .mobile-menu-links a[href*="plugins.php"] {
    color: var(--primary) !important;
}
.page-plugins .nav-links a[href*="plugins.php"]:after,
.page-plugins .mobile-menu-links a[href*="plugins.php"]:after {
    width: 100% !important;
}

.page-blog .nav-links a[href*="blog/index.php"],
.page-blog .mobile-menu-links a[href*="blog/index.php"] {
    color: var(--primary) !important;
}
.page-blog .nav-links a[href*="blog/index.php"]:after,
.page-blog .mobile-menu-links a[href*="blog/index.php"]:after {
    width: 100% !important;
}


@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-cta {
        display: none !important;
    }
    .mobile-actions {
        display: flex;
    }
    .mobile-download-btn {
        display: flex !important;
    }
    .hero-content,
    .download-wrapper {
        flex-direction: column;
    }
    .requirements-grid,
    .update-grid {
        grid-template-columns: 1fr;
    }
    .blog-wrapper {
        flex-direction: column;
    }
    .index-post-card {
        flex-direction: column;
    }
    .index-post-thumb-wrapper {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .hero {
        padding: 150px 0 80px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .download-stats {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column,
    .footer-column:first-child,
    .footer-column:last-child {
        justify-content: center !important;
        width: 100%;
    }
    .footer-resources {
        justify-content: center;
    }
    .page-title {
        font-size: 2rem;
    }
    .page-subtitle {
        font-size: 1.1rem;
    }
    .single-post-card {
        padding: 25px;
    }
    .single-author-box {
        flex-direction: column;
        text-align: center;
    }
    .theme-actions {
        flex-direction: column;
    }
    .preview-button,
    .download-button,
    .details-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
}

.feature-card, .step-card, .resource-card,
.requirement-card, .update-step, .accordion-item,
.theme-card, .download-card, .forum-resource-card,
.index-post-card, .single-post-card {
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}


.sidebar-search-form {
    display: flex;
    gap: 5px;
}

.sidebar-search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.sidebar-search-btn {
    padding: 10px 15px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.sidebar-search-btn:hover {
    background: #1976d2;
}


.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 8px;
}

.categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list li a:hover {
    background: #e3f2fd;
    color: #2196f3;
}

.categories-list li a.active {
    background: #2196f3;
    color: white;
}

.categories-list li a i {
    margin-left: 8px;
}

.category-count {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

.categories-list li a.active .category-count {
    background: rgba(255,255,255,0.2);
    color: white;
}


.index-post-category {
    margin-bottom: 10px;
}

.post-category-badge {
    display: inline-block;
    background: #2196f3;
    color: white;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
}

.post-category-link {
    color: #2196f3;
    text-decoration: none;
}

.post-category-link:hover {
    text-decoration: underline;
}

/* فقط برای صفحات پوسته و افزونه */
.page-themes .themes-grid,
.page-plugins .themes-grid {
    direction: ltr;
}

.page-themes .theme-card,
.page-plugins .theme-card {
    direction: rtl;
    text-align: right;
}