/* Variable Font Setup - Direct Root Path */
@font-face {
    font-family: 'IRANYekanXVF';
    src: url('IRANYekanXVF.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --primary-color: #0071e3;
    --primary-hover: #005bb5;
    --accent-color: #d93025;
    --success-color: #38a169;
    --bg-gradient: #f4f6f9;
    --card-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #2d3748;
    --text-muted: #718096;
    --font-family: 'IRANYekanXVF', Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px;
}

.header-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-link img {
    display: block;
    width: 220px;
    height: auto;
}

.navbar {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary-color);
}

.nav-link.special {
    color: var(--accent-color);
    background: rgba(217, 48, 37, 0.08);
}

.nav-link.special:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Coupon Box Style */
.coupon-container {
    max-width: 1250px;
    width: 92%;
    margin: 30px auto 10px auto;
}

.coupon-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 2px dashed var(--primary-color);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.08);
}

.coupon-brand img {
    display: block;
    max-width: 160px;
    height: auto;
}

.coupon-text-wrap {
    flex: 1;
    min-width: 280px;
}

.coupon-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.coupon-desc {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.8;
}

.coupon-desc strong {
    color: var(--primary-color);
    font-size: 15px;
}

.coupon-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 6px 6px 6px 20px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    gap: 15px;
}

.coupon-code {
    font-family: monospace, sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: 1px;
    direction: ltr;
    display: inline-block;
}

.copy-btn {
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary-color);
}

/* Best Hosting Box (New) */
.best-hosting-box {
    background: linear-gradient(to left, #ffffff, #f4f8fc);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    border-right: 4px solid var(--primary-color);
}

.best-hosting-box img {
    max-width: 220px;
    height: auto;
}

.best-hosting-box p {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.8;
}

.best-hosting-box strong {
    color: var(--primary-color);
}

/* Coupon Page Specific Styles */
.coupon-page-hero {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}
.coupon-page-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 800;
}
.coupon-page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
.seo-content-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
}
.seo-heading {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color);
    padding-right: 12px;
    font-weight: 700;
}
.seo-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: justify;
}
.guide-steps {
    margin: 20px 0;
    padding-right: 20px;
}
.guide-steps li {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.7;
}
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}
.services-table th {
    background-color: #f7fafc;
    color: var(--text-main);
    font-weight: 700;
    padding: 12px;
    border: 1px solid #edf2f7;
    text-align: right;
}
.services-table td {
    padding: 12px;
    border: 1px solid #edf2f7;
    color: var(--text-main);
}
.services-table tr:nth-child(even) {
    background-color: #fcfdfd;
}
.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}
.faq-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}
.faq-answer {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Main Content & Grid */
.main-content {
    max-width: 1250px;
    width: 92%;
    margin: 30px auto 60px auto;
    flex: 1;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
}

.page-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.category-section {
    margin-bottom: 50px;
}

.section-heading {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-right: 4px solid var(--primary-color);
    padding-right: 12px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.product-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.product-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 50px;
}

.purchase-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}

.purchase-btn:hover {
    background: var(--primary-hover);
}

/* Footer Section */
.main-footer {
    background: #ffffff;
    border-top: 1px solid var(--glass-border);
    padding: 35px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: bold;
}

/* Mobile Responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .navbar.active { display: flex; }
    .header-container { position: relative; }
    .coupon-box { justify-content: center; text-align: center; }
}

@media (max-width: 500px) {
    .coupon-action {
        flex-direction: column;
        width: 100%;
        padding: 15px;
        gap: 10px;
    }
    .copy-btn {
        width: 100%;
    }
}

/* Animation */
.animate-fade {
    animation: fadeInUp 0.6s ease-out both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}