/* =========================================
   DOWNLOAD PAGE
========================================= */

.didaf-download-page {
    width: 100%;
    direction: rtl;
    background: #fff;
    padding: 0 0 80px;
}


/* =========================================
   CONTAINER
========================================= */

.didaf-download-container {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}


/* =========================================
   INTRO
========================================= */

.didaf-download-intro {
    text-align: center;
    padding: 45px 20px 35px;
}


.didaf-download-small-title {
    color: #ed1c24;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 15px;
    font-weight: 700;

    margin-bottom: 5px;
}


.didaf-download-intro h1 {
    margin: 0 0 12px;

    color: #252525;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 32px;
    font-weight: 800;
}


.didaf-download-intro p {
    max-width: 850px;

    margin: 0 auto;

    color: #777;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 16px;
    line-height: 2.2;
}


/* =========================================
   DOWNLOAD BOX
========================================= */

.didaf-download-box {
    position: relative;

    background: #f2f2f2;

    border: 1px solid #ed1c24;

    padding: 90px 18px 35px;

    margin-top: 25px;
}


/* =========================================
   قسمت بالای مورب
========================================= */

.didaf-download-box::before {
    content: "";

    position: absolute;

    top: -1px;
    left: -1px;

    width: calc(100% + 2px);

    height: 55px;

    background: #fff;

    clip-path: polygon(
        0 0,
        50% 100%,
        100% 0
    );

    pointer-events: none;
}


/* =========================================
   TABS
========================================= */

.didaf-download-tabs {
    position: absolute;

    top: -1px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    align-items: flex-start;

    z-index: 5;
}


.didaf-download-tab {
    position: relative;

    min-width: 115px;
    height: 58px;

    padding: 0 28px;

    background: transparent;

    border: 1px solid transparent;
    border-bottom: none;

    color: #777;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;

    transition: all .25s ease;
}


/* تب فعال */

.didaf-download-tab.active {
    height: 59px;

    background: #f2f2f2;

    border-color: #ed1c24;

    color: #222;

    font-weight: 700;
}


/* =========================================
   TABLE
========================================= */

.didaf-download-table {
    width: 100%;

    border: 1px solid #e4e4e4;

    background: #f5f5f5;
}


/* =========================================
   HEADER
========================================= */

.didaf-download-header {
    display: grid;

    grid-template-columns:
        23%
        1fr
        12%;

    min-height: 52px;

    border-bottom: 1px solid #e3e3e3;

    color: #333;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 15px;
    font-weight: 700;

    text-align: center;
}


.didaf-download-header > div {
    display: flex;

    align-items: center;
    justify-content: center;

    border-left: 1px solid #e3e3e3;
}


.didaf-download-header > div:last-child {
    border-left: none;
}


/* =========================================
   ROW
========================================= */

.didaf-download-row {
    display: grid;

    grid-template-columns:
        23%
        1fr
        12%;

    min-height: 108px;

    border-bottom: 1px solid #e4e4e4;

    color: #777;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;
}


.didaf-download-row:last-child {
    border-bottom: none;
}


/* =========================================
   SYSTEM
========================================= */

.didaf-download-system {
    display: flex;

    align-items: center;
    justify-content: center;

    border-left: 1px solid #e4e4e4;
}


/* =========================================
   SOFTWARE NAME
========================================= */

.didaf-download-name {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 15px 25px;

    text-align: center;

    font-size: 15px;

    line-height: 2;

    border-left: 1px solid #e4e4e4;
}


/* =========================================
   DOWNLOAD
========================================= */

.didaf-download-action {
    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================
   DOWNLOAD BUTTON
========================================= */

.didaf-download-button {
    position: relative;

    display: flex;

    align-items: center;

    width: 145px;
    height: 48px;

    background: #333;

    border: 2px solid #ed1c24;
    border-radius: 5px;

    color: #fff;

    text-decoration: none;

    overflow: visible;

    transition: all .25s ease;
}


.didaf-download-button:hover {
    background: #222;

    transform: translateY(-2px);
}


/* =========================================
   ARROW
========================================= */

.didaf-download-arrow {
    position: absolute;

    right: -7px;
    top: -9px;

    width: 34px;
    height: 67px;

    background: #ed1c24;

    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 42px;
    font-weight: 900;

    line-height: 58px;

    text-align: center;

    clip-path: polygon(
        35% 0,
        100% 0,
        100% 62%,
        68% 62%,
        68% 100%,
        0 68%,
        68% 36%,
        68% 0
    );
}


/* =========================================
   BUTTON TEXT
========================================= */

.didaf-download-button-text {
    display: flex;

    flex-direction: column;

    justify-content: center;

    margin-right: 42px;

    line-height: 1.25;

    direction: rtl;
}


.didaf-download-button-text strong {
    font-size: 14px;
    font-weight: 700;
}


.didaf-download-button-text small {
    font-size: 12px;
    font-weight: 500;

    margin-top: 2px;
}


/* =========================================
   IMAGE SYSTEM ICON
========================================= */

.didaf-os-image {
    display: block;

    width: 48px;
    height: 48px;

    object-fit: contain;

    margin: 0 auto;
}





/* =========================================
   TAB CONTENT
========================================= */

.didaf-download-content {
    display: none;
}


.didaf-download-content.active {
    display: block;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .didaf-download-container {
        max-width: calc(100% - 30px);
    }

    .didaf-download-box {
        padding-left: 10px;
        padding-right: 10px;
    }

    .didaf-download-header,
    .didaf-download-row {
        grid-template-columns: 22% 1fr 14%;
    }

    .didaf-download-name {
        font-size: 14px;
        padding: 12px;
    }

}


@media (max-width: 650px) {

    .didaf-download-intro {
        padding-top: 30px;
    }

    .didaf-download-intro h1 {
        font-size: 25px;
    }

    .didaf-download-intro p {
        font-size: 14px;
    }

    .didaf-download-box {
        padding-top: 75px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .didaf-download-tab {
        min-width: 90px;

        padding: 0 15px;

        font-size: 14px;
    }

    .didaf-download-header,
    .didaf-download-row {
        grid-template-columns: 25% 1fr 18%;
    }

    .didaf-download-header {
        font-size: 12px;
    }

    .didaf-download-row {
        min-height: 90px;
    }

    .didaf-download-name {
        font-size: 12px;
        line-height: 1.8;
        padding: 8px;
    }

   

    .didaf-download-button {
        width: 90px;
        height: 40px;
    }

    .didaf-download-button-text {
        margin-right: 25px;
    }

    .didaf-download-button-text strong {
        font-size: 10px;
    }

    .didaf-download-button-text small {
        font-size: 9px;
    }

    .didaf-download-arrow {
        width: 25px;
        height: 52px;
        font-size: 30px;
    }

}

/* =========================================
   فرم گارانتی
========================================= */

.didaf-guarantee-section {
    width: 100%;
    background: #fff;

    direction: rtl;

    padding: 55px 0 70px;
}


/* =========================================
   کانتینر
========================================= */

.didaf-guarantee-container {
    width: 1200px;
    max-width: calc(100% - 40px);

    margin: 0 auto;
}


/* =========================================
   عنوان
========================================= */

.didaf-guarantee-heading {
    display: flex;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 10px;

    margin-bottom: 8px;
}


.didaf-guarantee-heading h2 {
    margin: 0;

    color: #59636d;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 30px;

    font-weight: 800;

    line-height: 1.5;

    white-space: nowrap;
}


/* خط قرمز */

.didaf-guarantee-heading span {
    display: block;

    width: 165px;
    height: 3px;

    background: #ed1c24;

    margin-top: 30px;
}


/* =========================================
   توضیحات
========================================= */

.didaf-guarantee-description {
    width: 100%;

    margin: 0;

    color: #858585;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 16px;

    font-weight: 400;

    line-height: 2.4;

    text-align: right;
}


/* =========================================
   دکمه
========================================= */

.didaf-guarantee-button-wrapper {
    display: flex;

    justify-content: center;
    align-items: center;

    margin-top: 30px;
}


/* =========================================
   BUTTON
========================================= */

.didaf-guarantee-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    width: 180px;
    height: 44px;

    background: linear-gradient(
        90deg,
        #ff1d3d,
        #f5092e
    );

    border-radius: 4px;

    color: #fff;

    font-family:
        "yekan-bakh-fn",
        "IRANYekan",
        Tahoma,
        sans-serif !important;

    font-size: 16px;

    font-weight: 700;

    text-decoration: none;

    box-shadow: none;

    transition: all .25s ease;
}


/* آیکون دانلود */

.didaf-guarantee-download-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    background: #fff;

    color: #f31535;

    border-radius: 50%;

    font-family: Arial, sans-serif;

    font-size: 15px;

    font-weight: bold;

    line-height: 18px;
}


/* Hover */

.didaf-guarantee-button:hover {
    color: #fff;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(237, 28, 36, .18);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .didaf-guarantee-section {
        padding: 40px 0 50px;
    }

    .didaf-guarantee-container {
        max-width: calc(100% - 30px);
    }

    .didaf-guarantee-heading h2 {
        font-size: 24px;
    }

    .didaf-guarantee-heading span {
        width: 90px;

        margin-top: 24px;
    }

    .didaf-guarantee-description {
        font-size: 14px;

        line-height: 2.1;
    }

    .didaf-guarantee-button {
        width: 165px;
        height: 42px;

        font-size: 15px;
    }

}

/* تنظیمات اصلی کارت‌های دانلود */
.cam-apps {
    --cam-red: #d71920;
    --cam-red-dark: #ad1018;
    --cam-black: #191919;
    --cam-gray: #707070;
    --cam-border: #e5e5e5;
    --cam-light: #f5f5f5;
    --cam-white: #ffffff;

    width: 100%;
    max-width: 1400px;
    margin: 25px auto;
    padding: 10px 15px;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}

.cam-apps *,
.cam-apps *::before,
.cam-apps *::after {
    box-sizing: border-box;
}

/* چهار کارت در یک ردیف دسکتاپ */
.cam-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}

/* بدنه کارت */
.cam-apps .cam-app-card {
    min-width: 0;
    padding: 17px 14px;
    overflow: hidden;
    background: #f8f9fb;
    border: 1px solid #dfe3e9;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(25, 35, 50, 0.06);
    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

/* نوار قرمز بالای کارت */
.cam-apps .cam-app-card::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin: -17px -14px 16px auto;
    background: var(--cam-red);
    border-radius: 0 0 4px 4px;
    transition: width .25s ease;
}

/* هاور کارت */
.cam-apps .cam-app-card:hover {
    background: #ffffff;
    border-color: #cbd1da;
    box-shadow: 0 9px 24px rgba(25, 35, 50, 0.11);
    transform: translateY(-4px);
}

.cam-apps .cam-app-card:hover::before {
    width: calc(100% + 28px);
}

/* لوگو و اطلاعات کنار هم */
.cam-app-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cam-app-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #a29d9d;
    border-radius: 12px;
    background: var(--cam-light);
    transition: background .25s ease;
}

.cam-app-brand > span {
    position: relative;
    z-index: 1;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 900;
}

.cam-brand-hieasy > span,
.cam-brand-uyc > span {
    color: var(--cam-red);
}

.cam-brand-guard > span,
.cam-brand-cloud > span {
    color: var(--cam-black);
}

.cam-app-brand-lines {
    position: absolute;
    left: -12px;
    bottom: -15px;
    width: 55px;
    height: 30px;
    border: 4px solid rgba(215, 25, 32, .12);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.cam-app-card:hover .cam-app-brand {
    background: #eeeeee;
}

.cam-app-info {
    flex: 1;
    min-width: 0;
}

.cam-app-title {
    margin: 0 0 4px !important;
    color: var(--cam-black) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    direction: ltr;
    text-align: right;
    overflow-wrap: anywhere;
}

.cam-app-desc {
    margin: 0 !important;
    min-height: 0;
    color: var(--cam-gray);
    font-size: 11px;
    line-height: 1.8;
}

/* جداکننده */
.cam-app-divider {
    margin: 15px 0 12px;
}

/* عنوان دانلود */
.cam-app-platform-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--cam-black);
    font-size: 12px;
    font-weight: 800;
}

.cam-app-platform-line {
    flex: 1;
    height: 1px;
    background: var(--cam-border);
}

/* دکمه‌های دانلود */
.cam-app-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.cam-apps .cam-app-btn {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 51px;
    padding: 8px 9px;
    border: 1px solid var(--cam-red) !important;
    border-radius: 10px;
    background: var(--cam-white) !important;
    color: var(--cam-black) !important;
    text-decoration: none !important;
    box-shadow: 0 3px 0 rgba(173, 16, 24, .12);
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.cam-apps .cam-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--cam-red) !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    transition: background .2s ease, color .2s ease;
}

.cam-apps .cam-btn-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
    line-height: 1.4;
}

.cam-apps .cam-btn-text small {
    color: #666666 !important;
    font-size: 10px;
    font-weight: 600;
    transition: color .2s ease;
}

.cam-apps .cam-btn-text strong {
    color: var(--cam-black) !important;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    transition: color .2s ease;
}

.cam-apps .cam-btn-arrow {
    margin-right: auto;
    color: var(--cam-red) !important;
    font-size: 18px;
    font-weight: 900;
    transition: color .2s ease, transform .2s ease;
}

/* هاور و فوکوس دکمه: قرمز با نوشته سفید */
.cam-apps .cam-app-btn:hover,
.cam-apps .cam-app-btn:focus-visible {
    background: var(--cam-red) !important;
    border-color: var(--cam-red) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 13px rgba(215, 25, 32, .22);
    transform: translateY(-2px);
}

.cam-apps .cam-app-btn:hover .cam-btn-icon,
.cam-apps .cam-app-btn:focus-visible .cam-btn-icon {
    background: #ffffff !important;
    color: var(--cam-red) !important;
}

.cam-apps .cam-app-btn:hover .cam-btn-text small,
.cam-apps .cam-app-btn:focus-visible .cam-btn-text small {
    color: #ffe0e0 !important;
}

.cam-apps .cam-app-btn:hover .cam-btn-text strong,
.cam-apps .cam-app-btn:focus-visible .cam-btn-text strong,
.cam-apps .cam-app-btn:hover .cam-btn-arrow,
.cam-apps .cam-app-btn:focus-visible .cam-btn-arrow {
    color: #ffffff !important;
}

.cam-apps .cam-app-btn:hover .cam-btn-arrow,
.cam-apps .cam-app-btn:focus-visible .cam-btn-arrow {
    transform: translate(-2px, -2px);
}

/* حالت فشردن دکمه */
.cam-apps .cam-app-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(215, 25, 32, .16);
}

/* لپ‌تاپ‌های کوچک و تبلت */
@media (max-width: 1050px) {
    .cam-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .cam-app-card {
        padding: 18px;
    }

    .cam-app-card::before {
        margin-right: -18px;
    }

    .cam-app-card:hover::before {
        width: calc(100% + 36px);
    }

    .cam-app-title {
        font-size: 18px !important;
    }

    .cam-app-desc {
        font-size: 12px;
    }

    .cam-app-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* موبایل */
@media (max-width: 520px) {
    .cam-apps-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cam-app-card {
        padding: 18px;
    }

    .cam-app-card::before {
        margin-right: -18px;
    }

    .cam-app-card:hover::before {
        width: calc(100% + 36px);
    }

    .cam-app-title {
        font-size: 19px !important;
    }

    .cam-app-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* احترام به تنظیم کاهش حرکت در دستگاه کاربر */
@media (prefers-reduced-motion: reduce) {
    .cam-apps *,
    .cam-apps *::before,
    .cam-apps *::after {
        transition: none !important;
    }
}
