﻿/* ==============================
   Policy Page
================================= */

.pagepolicy {
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.5rem clamp(0px, 3vw, 2.5rem);
    box-sizing: border-box;
}

.pagepolicy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==============================
   Policy Card
================================= */

.pagepolicy-list .list-pg-li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 1.25rem;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.pagepolicy-list .list-pg-li:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

/* ==============================
   Policy Title
================================= */

.pagepolicy-list .list-pg-li h3 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 65px;
    margin: 0;
    color: #334155;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.8;
    transition: color 0.2s ease;
}

.pagepolicy-list .list-pg-li h3 span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1976d2;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

/* ==============================
   Policy Content
================================= */

.pagepolicy-list .list-pg-li .pagepolicy-content {
    position: relative;
    height: 95px;
    overflow: hidden;
    padding: 0 0.25rem 1.5rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 2.1;
    text-align: justify;
    transition: height 0.25s ease;
}

/* Fade Effect */

.pagepolicy-list .list-pg-li .pagepolicy-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 65px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90%);
    z-index: 2;
    pointer-events: none;
}

/* Expand Icon */

.pagepolicy-list .list-pg-li .pagepolicy-content::before {
    content: "\e90e";
    font-family: "nisafarme" !important;
    font-size: 16px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(50%);
    color: #1976d2;
    z-index: 3;
}

/* ==============================
   Typography
================================= */

.pagepolicy-list .pagepolicy-content h1,
.pagepolicy-list .pagepolicy-content h2,
.pagepolicy-list .pagepolicy-content h3,
.pagepolicy-list .pagepolicy-content h4,
.pagepolicy-list .pagepolicy-content h5,
.pagepolicy-list .pagepolicy-content h6 {
    font-size: 0.93rem;
    line-height: 2;
    font-weight: 700;
    margin: 1.25rem 0 0.65rem;
    color: #334155;
}

.pagepolicy-list .pagepolicy-content h1 {
    font-size: 1.05rem;
    color: #1565c0;
}

.pagepolicy-list .pagepolicy-content h4 {
    color: #1565c0;
}

.pagepolicy-list .pagepolicy-content p {
    margin: 0 0 0.85rem;
}

.pagepolicy-list .pagepolicy-content a {
    color: #0875c9;
    text-decoration: none;
}

.pagepolicy-list .pagepolicy-content a:hover {
    text-decoration: underline;
}

/* ==============================
   Lists
================================= */

.pagepolicy-list .pagepolicy-content ol,
.pagepolicy-list .pagepolicy-content ul {
    padding-right: 1.5rem;
    padding-left: 0;
    margin: 0.5rem 0 1rem;
    line-height: 2.1;
}

.pagepolicy-list .pagepolicy-content ol {
    list-style-type: persian;
}

.pagepolicy-list .pagepolicy-content ul {
    list-style-type: disc;
}

.pagepolicy-list .pagepolicy-content li {
    padding-right: 0.2rem;
    margin-bottom: 0.35rem;
}

.pagepolicy-list .pagepolicy-content li::marker {
    color: #1976d2;
    font-weight: 700;
}

/* ==============================
   Active Card
================================= */

.pagepolicy-list .list-pg-li.active {
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    cursor: default;
    box-shadow: 0 4px 18px rgba(21, 101, 192, 0.07);
}

.pagepolicy-list .list-pg-li.active h3 {
    color: #1565c0;
    border-bottom: 1px solid #e2eaf5;
}

.pagepolicy-list .list-pg-li.active h3 span {
    background: #1565c0;
    color: #fff;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: auto;
    overflow: visible;
    padding: 0.75rem 0.25rem 1.25rem;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content::after,
.pagepolicy-list .list-pg-li.active .pagepolicy-content::before {
    display: none;
}

/* ==============================
   Tables
================================= */

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table {
    width: 100%;
    min-width: 850px;
    direction: ltr;
    border-collapse: collapse;
    text-align: center;
    background: #fff;
    font-size: 0.8rem;
    line-height: 1.8;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table .tblLaw-head {
    background: #1565c0 !important;
    color: #fff;
    font-weight: 700;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.5rem;
    box-sizing: border-box;
    vertical-align: middle;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table tr:nth-child(even) {
    background: #f8fafc;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table tr:nth-child(odd):not(.tblLaw-head) {
    background: #fff;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table tr:hover:not(.tblLaw-head) {
    background: #eff6ff;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table tr.lastRow td {
    border-bottom-color: #cbd5e1;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table td.airline {
    border-bottom-color: #cbd5e1;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table td a {
    display: inline-block;
    min-width: 75px;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: #fff;
    background: #087e70;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table td a:hover {
    background: #065f54;
    text-decoration: none;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table td.singleRow {
    border-bottom-color: #cbd5e1;
}

.pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent .tableNotice {
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #334155;
    font-size: 0.85rem;
}

/* ==============================
   Responsive
================================= */

@media screen and (max-width: 768px) {
    .pagepolicy {
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }

    .pagepolicy-list {
        gap: 0.75rem;
    }

    .pagepolicy-list .list-pg-li {
        padding: 0 0.9rem;
        border-radius: 10px;
    }

    .pagepolicy-list .list-pg-li h3 {
        min-height: 58px;
        font-size: 0.9rem;
        gap: 0.65rem;
    }

    .pagepolicy-list .list-pg-li h3 span {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .pagepolicy-list .list-pg-li .pagepolicy-content {
        font-size: 0.85rem;
        line-height: 2;
    }

    .pagepolicy-list .list-pg-li.active .pagepolicy-content {
        padding: 0.5rem 0 1rem;
    }

    .pagepolicy-list .list-pg-li.active .pagepolicy-content .tblLaw-parent table {
        min-width: 800px;
    }
}

@media screen and (max-width: 390px) {
    .pagepolicy {
        padding: 1rem 0.25rem;
    }

    .pagepolicy-list .list-pg-li {
        padding: 0 0.75rem;
    }
}
