/* ==========================================================================
   Sanmarg Prakashan - Modern Premium Policy Pages Styling
   File: policy.css
   ========================================================================== */

:root {
    --policy-primary: #b42231;
    --policy-primary-hover: #981725;
    --policy-primary-subtle: rgba(180, 34, 49, 0.06);
    --policy-primary-border: rgba(180, 34, 49, 0.16);
    --policy-accent-gold: #c8963e;
    --policy-text-dark: #1e293b;
    --policy-text-body: #334155;
    --policy-text-muted: #64748b;
    --policy-card-bg: #ffffff;
    --policy-bg-warm: #fcfbfa;
    --policy-border: #e2e8f0;
    --policy-border-subtle: #edf2f7;
    --policy-shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.05);
    --policy-shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --policy-shadow-hover: 0 16px 36px -6px rgba(180, 34, 49, 0.12), 0 6px 16px -3px rgba(0, 0, 0, 0.04);
    --policy-radius: calc(18 * 100vw / 1705);
    --policy-radius-sm: calc(10 * 100vw / 1705);
}


/* --------------------------------------------------------------------------
   1. Page Layout & Wrapper
   -------------------------------------------------------------------------- */

.policy-page-wrapper {
    background: linear-gradient(180deg, #faf7f2 0%, #ffffff 400px, #ffffff 100%);
    padding: calc(35 * 100vw / 1705) 0 calc(80 * 100vw / 1705);
    min-height: 70vh;
}

.policy-container {
    max-width: calc(1440 * 100vw / 1705);
    margin: 0 auto;
    padding: 0 calc(15 * 100vw / 1705);
}


/* --------------------------------------------------------------------------
   2. Sticky Sidebar Quick Navigation (Policy Hub)
   -------------------------------------------------------------------------- */

.policy-sidebar-col {
    position: relative;
}

.policy-nav-sticky {
    position: sticky;
    top: calc(95 * 100vw / 1705);
    z-index: 10;
}

.policy-nav-card {
    background: var(--policy-card-bg);
    border: 1px solid var(--policy-border);
    border-radius: var(--policy-radius);
    padding: calc(22 * 100vw / 1705);
    box-shadow: var(--policy-shadow-md);
    transition: all 0.3s ease;
}

.policy-nav-card:hover {
    border-color: var(--policy-primary-border);
}

.policy-nav-header {
    display: flex;
    align-items: center;
    gap: calc(12 * 100vw / 1705);
    padding-bottom: calc(16 * 100vw / 1705);
    margin-bottom: calc(14 * 100vw / 1705);
    border-bottom: 1px solid var(--policy-border-subtle);
}

.policy-nav-header .nav-icon {
    width: calc(36 * 100vw / 1705);
    height: calc(36 * 100vw / 1705);
    border-radius: calc(10 * 100vw / 1705);
    background: var(--policy-primary-subtle);
    color: var(--policy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-20);
    flex-shrink: 0;
}

.policy-nav-header .nav-title {
    font-size: var(--fs-17);
    font-weight: 700;
    color: var(--policy-text-dark);
    margin: 0;
    line-height: 1.3;
}

.policy-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: calc(6 * 100vw / 1705);
}

.policy-nav-item {
    margin: 0;
}

.policy-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10 * 100vw / 1705) calc(14 * 100vw / 1705);
    border-radius: var(--policy-radius-sm);
    color: var(--policy-text-body);
    font-size: var(--fs-14);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.policy-nav-link .link-left {
    display: flex;
    align-items: center;
    gap: calc(10 * 100vw / 1705);
}

.policy-nav-link .link-icon {
    font-size: var(--fs-18);
    color: var(--policy-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.policy-nav-link .link-arrow {
    font-size: var(--fs-15);
    color: #cbd5e1;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.policy-nav-link:hover {
    background: #fdf8f7;
    color: var(--policy-primary);
    border-color: rgba(180, 34, 49, 0.12);
}

.policy-nav-link:hover .link-icon {
    color: var(--policy-primary);
    transform: scale(1.1);
}

.policy-nav-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--policy-primary);
}

.policy-nav-link.active {
    background: linear-gradient(135deg, #b42231 0%, #981725 100%);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 calc(4 * 100vw / 1705) calc(14 * 100vw / 1705) rgba(180, 34, 49, 0.28);
}

.policy-nav-link.active .link-icon,
.policy-nav-link.active .link-arrow {
    color: #ffffff !important;
    opacity: 1;
    transform: none;
}


/* Sidebar Contact Support Widget */

.policy-help-card {
    margin-top: calc(18 * 100vw / 1705);
    background: linear-gradient(135deg, #fbf7f4 0%, #fff 100%);
    border: 1px dashed var(--policy-primary-border);
    border-radius: var(--policy-radius);
    padding: calc(18 * 100vw / 1705);
    text-align: center;
}

.policy-help-card .help-icon {
    width: calc(42 * 100vw / 1705);
    height: calc(42 * 100vw / 1705);
    border-radius: 50%;
    background: var(--policy-primary-subtle);
    color: var(--policy-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-22);
    margin-bottom: calc(10 * 100vw / 1705);
}

.policy-help-card h4 {
    font-size: var(--fs-15);
    font-weight: 700;
    color: var(--policy-text-dark);
    margin-bottom: calc(4 * 100vw / 1705);
}

.policy-help-card p {
    font-size: var(--fs-12-5);
    color: var(--policy-text-muted);
    margin-bottom: calc(12 * 100vw / 1705);
    line-height: 1.4;
}

.policy-help-card .help-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(6 * 100vw / 1705);
    padding: calc(7 * 100vw / 1705) calc(16 * 100vw / 1705);
    background: #ffffff;
    border: 1px solid var(--policy-primary);
    color: var(--policy-primary);
    font-size: var(--fs-13);
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.policy-help-card .help-btn:hover {
    background: var(--policy-primary);
    color: #ffffff;
    box-shadow: 0 calc(4 * 100vw / 1705) calc(12 * 100vw / 1705) rgba(180, 34, 49, 0.22);
}


/* --------------------------------------------------------------------------
   3. Main Policy Article Card
   -------------------------------------------------------------------------- */

.policy-main-card {
    background: var(--policy-card-bg);
    border: 1px solid var(--policy-border);
    border-radius: var(--policy-radius);
    padding: calc(38 * 100vw / 1705) calc(44 * 100vw / 1705);
    box-shadow: var(--policy-shadow-md);
    position: relative;
}


/* Top Meta Banner inside Card */

.policy-meta-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: calc(16 * 100vw / 1705);
    padding-bottom: calc(24 * 100vw / 1705);
    margin-bottom: calc(28 * 100vw / 1705);
    border-bottom: 1px solid var(--policy-border-subtle);
}

.policy-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: calc(7 * 100vw / 1705);
    background: var(--policy-primary-subtle);
    border: 1px solid var(--policy-primary-border);
    color: var(--policy-primary);
    font-size: var(--fs-12-5);
    font-weight: 600;
    padding: calc(6 * 100vw / 1705) calc(14 * 100vw / 1705);
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.policy-meta-badge iconify-icon {
    font-size: var(--fs-16);
}

.policy-last-updated {
    display: inline-flex;
    align-items: center;
    gap: calc(6 * 100vw / 1705);
    font-size: var(--fs-13);
    color: var(--policy-text-muted);
}

.policy-last-updated iconify-icon {
    font-size: var(--fs-16);
    color: var(--policy-accent-gold);
}


/* --------------------------------------------------------------------------
   4. Rich Typography & Content Show
   -------------------------------------------------------------------------- */

.policydatashow {
    color: var(--policy-text-body);
    font-size: var(--fs-15-5);
    line-height: 1.8;
    word-break: break-word;
}


/* Headings */

.policydatashow h1,
.policydatashow h2,
.policydatashow h3,
.policydatashow h4,
.policydatashow h5,
.policydatashow h6 {
    color: var(--policy-text-dark);
    font-weight: 700;
    margin-top: calc(32 * 100vw / 1705);
    margin-bottom: calc(14 * 100vw / 1705);
    line-height: 1.35;
    position: relative;
}

.policydatashow h1:first-child,
.policydatashow h2:first-child,
.policydatashow h3:first-child {
    margin-top: 0;
}

.policydatashow h1 {
    font-size: var(--fs-28);
    padding-bottom: calc(12 * 100vw / 1705);
    border-bottom: 2px solid var(--policy-primary-subtle);
}

.policydatashow h2 {
    font-size: var(--fs-22);
    padding-left: calc(14 * 100vw / 1705);
    border-left: calc(3.5 * 100vw / 1705) solid var(--policy-primary);
}

.policydatashow h3 {
    font-size: var(--fs-18);
    color: #1e293b;
}

.policydatashow h4 {
    font-size: var(--fs-16);
}


/* Paragraphs & Text */

.policydatashow p {
    margin-bottom: calc(18 * 100vw / 1705);
    color: var(--policy-text-body);
    line-height: 1.82;
    font-size: var(--fs-15-5);
}

.policydatashow strong,
.policydatashow b {
    color: var(--policy-text-dark);
    font-weight: 600;
}

.policydatashow a {
    color: var(--policy-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.policydatashow a:hover {
    color: var(--policy-primary-hover);
}


/* Lists */

.policydatashow ul,
.policydatashow ol {
    margin: calc(16 * 100vw / 1705) 0 calc(22 * 100vw / 1705) 0;
    padding-left: calc(24 * 100vw / 1705);
}

.policydatashow ul li,
.policydatashow ol li {
    margin-bottom: calc(10 * 100vw / 1705);
    line-height: 1.7;
    position: relative;
    padding-left: calc(4 * 100vw / 1705);
}

.policydatashow ul {
    list-style: none;
    padding-left: 0;
}

.policydatashow ul li {
    padding-left: calc(24 * 100vw / 1705);
}

.policydatashow ul li::before {
    content: '';
    position: absolute;
    left: calc(4 * 100vw / 1705);
    top: calc(10 * 100vw / 1705);
    width: calc(7 * 100vw / 1705);
    height: calc(7 * 100vw / 1705);
    border-radius: 50%;
    background: var(--policy-primary);
    box-shadow: 0 0 0 3px rgba(180, 34, 49, 0.15);
}

.policydatashow ol {
    list-style-type: decimal;
    padding-left: calc(22 * 100vw / 1705);
}

.policydatashow ol li::marker {
    color: var(--policy-primary);
    font-weight: 700;
}


/* Blockquotes */

.policydatashow blockquote {
    background: #fdfaf6;
    border-left: calc(4 * 100vw / 1705) solid var(--policy-primary);
    border-radius: 0 calc(12 * 100vw / 1705) calc(12 * 100vw / 1705) 0;
    padding: calc(16 * 100vw / 1705) calc(22 * 100vw / 1705);
    margin: calc(24 * 100vw / 1705) 0;
    color: #475569;
    font-style: italic;
    font-size: var(--fs-15);
}


/* Tables in Policy */

.policydatashow table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: calc(24 * 100vw / 1705) 0;
    border: 1px solid var(--policy-border);
    border-radius: var(--policy-radius-sm);
    overflow: hidden;
}

.policydatashow table th {
    background: #f8fafc;
    color: var(--policy-text-dark);
    font-weight: 600;
    padding: calc(12 * 100vw / 1705) calc(16 * 100vw / 1705);
    border-bottom: 2px solid var(--policy-border);
    text-align: left;
    font-size: var(--fs-14);
}

.policydatashow table td {
    padding: calc(12 * 100vw / 1705) calc(16 * 100vw / 1705);
    border-bottom: 1px solid var(--policy-border-subtle);
    font-size: var(--fs-14-5);
}

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

.policydatashow table tr:nth-child(even) {
    background-color: #fafbfc;
}


/* Horizontal Rule */

.policydatashow hr {
    border: none;
    height: 1px;
    background: var(--policy-border);
    margin: calc(32 * 100vw / 1705) 0;
}


/* --------------------------------------------------------------------------
   5. Bottom Policy Card Footer
   -------------------------------------------------------------------------- */

.policy-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: calc(16 * 100vw / 1705);
    margin-top: calc(36 * 100vw / 1705);
    padding-top: calc(24 * 100vw / 1705);
    border-top: 1px solid var(--policy-border-subtle);
}

.policy-footer-note {
    font-size: var(--fs-13);
    color: var(--policy-text-muted);
}

.policy-footer-note a {
    color: var(--policy-primary);
    text-decoration: none;
    font-weight: 600;
}

.policy-footer-note a:hover {
    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   6. Print Styles
   -------------------------------------------------------------------------- */

@media print {
    .sanmarg-header,
    .sanmarg-footer,
    .breadcrumb-area,
    .policy-sidebar-col,
    .policy-footer-actions {
        display: none !important;
    }
    .policy-page-wrapper {
        background: none !important;
        padding: 0 !important;
    }
    .policy-main-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}


/* ==========================================================================
   Desktop Responsive Breakpoints
   ========================================================================== */

@media only screen and (min-width: 2000px) and (max-width: 2200px) {}

@media only screen and (min-width: 1800px) and (max-width: 2000px) {}

@media only screen and (min-width: 1400px) and (max-width: 1600px) {}

@media only screen and (min-width: 1300px) and (max-width: 1399px) {}

@media only screen and (min-width: 1200px) and (max-width: 1299px) {}

@media only screen and (min-width: 1100px) and (max-width: 1199px) {}

@media only screen and (min-width: 1025px) and (max-width: 1099px) {}

@media only screen and (min-width: 993px) and (max-width: 1025px) {}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .policy-sidebar-col {
        margin-bottom: 24px;
    }
    .policy-nav-sticky {
        position: static;
    }
}


/* ==========================================================================
   7. Mobile Responsive Adaptations (Preserved Unchanged)
   ========================================================================== */

@media (max-width: 991.98px) {
    .policy-nav-sticky {
        position: static;
        margin-bottom: 24px;
    }
    .policy-main-card {
        padding: 26px 20px;
    }
    .policy-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .policydatashow {
        font-size: 14.5px;
    }
    .policydatashow h1 {
        font-size: 23px;
    }
    .policydatashow h2 {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .policy-page-wrapper {
        padding: 18px 0 35px;
        background: #ffffff;
    }
    .policy-container {
        padding: 0 15px;
        max-width: unset;
    }
    /* Hide the top/sidebar policy menu navigation completely on mobile */
    .policy-nav-card {
        display: none !important;
    }
    /* Move sidebar column below the policy article and render only the questions card */
    .policy-sidebar-col {
        display: contents;
    }
    .policy-nav-sticky {
        display: contents;
    }
    /* Remove boxed container styling on mobile: full screen seamless view */
    .policy-main-card {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .policy-meta-header {
        padding-bottom: 14px;
        margin-bottom: 18px;
        gap: 8px;
        border-bottom: 1px solid var(--policy-border-subtle);
    }
    .policy-meta-badge {
        font-size: 11.5px;
        padding: 4px 10px;
    }
    .policy-last-updated {
        font-size: 12px;
        color: var(--policy-text-muted);
    }
    .policydatashow {
        font-size: 12px;
        line-height: 1.75;
    }
    .policydatashow h1 {
        font-size: 22px;
        margin-top: 20px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .policydatashow h2 {
        font-size: 18px;
        margin-top: 18px;
        margin-bottom: 8px;
        padding-left: 10px;
        border-left-width: 3px;
    }
    .policydatashow h3 {
        font-size: 16px;
        margin-top: 14px;
        margin-bottom: 6px;
    }
    .policydatashow p {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 14px;
    }
    .policydatashow ul,
    .policydatashow ol {
        margin: 12px 0 16px;
        padding-left: 0;
    }
    .policydatashow ul li {
        padding-left: 18px;
        margin-bottom: 8px;
        font-size: 14px;
    }
    .policydatashow ul li::before {
        left: 2px;
        top: 8px;
        width: 6px;
        height: 6px;
    }
    .policydatashow table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 16px 0;
        border-radius: 8px;
    }
    .policydatashow table th,
    .policydatashow table td {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    .policy-footer-actions {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid var(--policy-border-subtle);
    }
    .policy-footer-note {
        font-size: 13px;
    }
    /* Have Questions card: displayed at the bottom after policy content with refined premium design */
    .policy-help-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 28px;
        padding: 22px 18px;
        border-radius: 16px;
        background: linear-gradient(135deg, #fffcf9 0%, #faf3ec 100%);
        border: 1.5px dashed rgba(180, 34, 49, 0.22);
        box-shadow: 0 4px 16px rgba(180, 34, 49, 0.04);
        width: 100%;
    }
    .policy-help-card .help-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 50%;
        background: rgba(180, 34, 49, 0.1);
        color: var(--policy-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }
    .policy-help-card h4 {
        font-size: 17px;
        font-weight: 700;
        color: var(--policy-text-dark);
        margin-bottom: 6px;
    }
    .policy-help-card p {
        font-size: 13.5px;
        line-height: 1.55;
        color: var(--policy-text-body);
        margin-bottom: 14px;
        max-width: 320px;
    }
    .policy-help-card .help-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 24px;
        background: #ffffff;
        border: 1.5px solid var(--policy-primary);
        color: var(--policy-primary);
        font-size: 13.5px;
        font-weight: 700;
        border-radius: 999px;
        text-decoration: none;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(180, 34, 49, 0.08);
    }
    .policy-help-card .help-btn:hover {
        background: var(--policy-primary);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(180, 34, 49, 0.25);
    }
}

@media (max-width: 575.98px) {
    .policy-page-wrapper {
        padding: 14px 0 30px;
    }
}