﻿body {
}
/* Modern Feed Container (Bootstrap 3.3.5 Compatible) */
.feed-wrapper {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 25px;
}

/* Hero Banner */
.feed-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 20px 22px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feed-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.badge-whats-new {
    background-color: #f59e0b;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.feed-hero h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 14px 0;
    color: #ffffff;
    line-height: 1.3;
}

/* Live Search Bar inside Hero */
.feed-search-box {
    position: relative;
}

    .feed-search-box input {
        width: 100%;
        height: 40px;
        padding: 8px 14px 8px 38px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background-color: rgba(255, 255, 255, 0.95);
        color: #0f172a;
        font-size: 14px;
        box-shadow: none;
    }

        .feed-search-box input:focus {
            outline: none;
            border-color: #f59e0b;
            background-color: #ffffff;
        }

.feed-search-icon {
    position: absolute;
    left: 12px;
    top: 11px;
    color: #64748b;
    font-size: 14px;
}

/* Modern Pill Tabs (Overrides Bootstrap 3 nav-pills) */
.modern-tabs {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .modern-tabs > li {
        float: none;
        margin: 0;
    }

        .modern-tabs > li > a {
            border-radius: 6px;
            padding: 7px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #475569;
            background-color: #ffffff;
            border: 1px solid #e2e8f0;
            transition: all 0.15s ease;
        }

            .modern-tabs > li > a:hover,
            .modern-tabs > li > a:focus {
                background-color: #eff6ff;
                color: #1d4ed8;
                border-color: #bfdbfe;
            }

        .modern-tabs > li.active > a,
        .modern-tabs > li.active > a:hover,
        .modern-tabs > li.active > a:focus {
            background-color: #1e3a8a;
            color: #ffffff;
            border-color: #1e3a8a;
        }

/* Category Cards */
.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.category-header {
    padding: 14px 18px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .category-header.accent-gst {
        border-left-color: #dc2626;
    }

    .category-header.accent-customs {
        border-left-color: #2563eb;
    }

    .category-header.accent-excise {
        border-left-color: #059669;
    }

    .category-header.accent-st {
        border-left-color: #7c3aed;
    }

    .category-header.accent-others {
        border-left-color: #d97706;
    }

.category-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.see-more-btn {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none !important;
    padding: 5px 12px;
    border-radius: 5px;
    background-color: #eff6ff;
    white-space: nowrap;
}

    .see-more-btn:hover {
        background-color: #dbeafe;
        color: #1d4ed8;
    }

/* Clean DataList Styling */
.modern-datalist {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .modern-datalist td {
        padding: 0 !important;
        border-bottom: 1px solid #f1f5f9;
    }

    .modern-datalist tr:last-child td {
        border-bottom: none;
    }

.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    transition: background-color 0.15s ease;
}

    .doc-item:hover {
        background-color: #f8fafc;
    }

.doc-index {
    flex-shrink: 0;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.doc-content {
    flex: 1;
    text-align: left;
}

.doc-subject {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 6px;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.meta-pill {
    background-color: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.read-more-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: auto;
}

    .read-more-link:hover {
        text-decoration: underline !important;
    }

.no-results-msg {
    display: none;
    text-align: center;
    padding: 30px 15px;
    color: #64748b;
    font-size: 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}
/* Sidebar Container */
.sidebar-wrapper {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 25px;
}

/* Shared Sidebar Card */
.sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

    .sidebar-card:last-child {
        margin-bottom: 0;
    }

.sidebar-card-header {
    padding: 13px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    border-left: 4px solid #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .sidebar-card-header.accent-green {
        border-left-color: #059669;
    }

    .sidebar-card-header.accent-gold {
        border-left-color: #d97706;
    }

.sidebar-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sidebar-card-body {
    padding: 16px;
}

/* Login Form Styling */
.modern-login-group {
    margin-bottom: 12px;
}

    .modern-login-group label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #475569;
        margin-bottom: 4px;
    }

    .modern-login-group .form-control {
        height: 38px;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
        box-shadow: none;
        font-size: 14px;
    }

        .modern-login-group .form-control:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
        }

.login-remember {
    margin: 10px 0 14px 0;
    font-size: 13px;
    color: #475569;
}

    .login-remember input[type="checkbox"] {
        margin-right: 6px;
        vertical-align: middle;
    }

/* Style custom Referencer:RolloverButton cleanly */
.login-submit-wrap input[type="submit"],
.login-submit-wrap input[type="image"],
.login-submit-wrap button {
    width: 100%;
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .login-submit-wrap input[type="submit"]:hover,
    .login-submit-wrap button:hover {
        background-color: #1d4ed8;
    }

.login-error-alert {
    display: block;
    margin-top: 10px;
    padding: 8px 10px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
}

    .login-error-alert:empty {
        display: none;
    }

.validator-msg {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.login-helper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.helper-link-btn {
    display: block;
    text-align: center;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

    .helper-link-btn:hover {
        background-color: #eff6ff;
        color: #1d4ed8;
        border-color: #bfdbfe;
    }

/* Logged-In State */
.welcome-banner {
    background-color: #eff6ff;
    color: #1e3a8a;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.loggedin-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

/* Baggage Rules Card */
.baggage-img-link {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

    .baggage-img-link img {
        width: auto;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

.sidebar-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    background-color: #059669;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    border: none;
    transition: background-color 0.15s ease;
}

    .sidebar-cta-btn:hover {
        background-color: #047857;
    }

/* Gold Import Duty Card */
.duty-datalist {
    width: 100%;
    border-collapse: collapse;
}

    .duty-datalist td {
        padding: 0 !important;
    }

.duty-subbanner {
    background-color: #fffbeb;
    border-bottom: 1px solid #fde68a;
    padding: 10px 16px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}

    .duty-subbanner strong {
        display: block;
        font-size: 13px;
        color: #78350f;
    }

.duty-table {
    width: 100%;
    margin: 0;
    font-size: 13px;
}

    .duty-table tr {
        border-bottom: 1px solid #f1f5f9;
    }

        .duty-table tr:last-child {
            border-bottom: none;
        }

    .duty-table td {
        padding: 10px 16px !important;
        vertical-align: middle;
    }

.duty-label {
    color: #475569;
}

.duty-rate-tag {
    display: inline-block;
    background-color: #f1f5f9;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 3px;
}

.duty-amount {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.duty-total-row {
    background-color: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

    .duty-total-row td {
        font-weight: 700;
        color: #1e3a8a;
        font-size: 14px;
    }
/* Gold Chart Toggle & Container */
.chart-section-box {
    padding: 14px 16px 16px 16px;
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.chart-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.chart-toggle-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.chart-pill-switch {
    display: inline-flex;
    background-color: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
}

.chart-pill-btn {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .chart-pill-btn.active {
        background-color: #ffffff;
        color: #1e3a8a;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

.chart-frame {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    background-color: #ffffff;
    margin-bottom: 12px;
    transition: border-color 0.15s ease;
}

    .chart-frame:hover {
        border-color: #93c5fd;
    }

.gold-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    background-color: #d97706;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

    .gold-cta-btn:hover {
        background-color: #b45309;
    }
/* Silver Accent Overrides */
.sidebar-card-header.accent-silver {
    border-left-color: #475569;
}

.duty-subbanner.silver-subbanner {
    background-color: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
    color: #334155;
}

    .duty-subbanner.silver-subbanner strong {
        color: #0f172a;
    }

.silver-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    background-color: #475569;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

    .silver-cta-btn:hover {
        background-color: #334155;
    }
/* Exchange Rates & GST Revenue Card Accents */
.sidebar-card-header.accent-cyan {
    border-left-color: #0891b2;
}

.sidebar-card-header.accent-emerald {
    border-left-color: #16a34a;
}

.cyan-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    background-color: #0891b2;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

    .cyan-cta-btn:hover {
        background-color: #0e7490;
    }

.emerald-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    background-color: #16a34a;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

    .emerald-cta-btn:hover {
        background-color: #15803d;
    }
/* ==========================================================================
   7. INDIAN CUSTOMS HOLIDAYS CALENDAR CARD
   ========================================================================== */
.sidebar-card-header.accent-indigo {
    border-left-color: #4f46e5;
}

.modern-calendar-wrap {
    padding: 14px 16px 16px 16px;
}

/* Override ASP.NET Calendar Table Output */
.modern-asp-calendar {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    overflow: hidden;
    font-family: "Segoe UI", Roboto, sans-serif;
    margin-bottom: 12px;
}

    /* Month Title Header */
    .modern-asp-calendar .cal-title-bar {
        background-color: #1e3a8a !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        padding: 8px 6px !important;
        border: none !important;
    }

        .modern-asp-calendar .cal-title-bar td {
            padding: 6px 8px !important;
            color: #ffffff !important;
            border: none !important;
        }

    .modern-asp-calendar .cal-next-prev a {
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.15);
        display: inline-block;
    }

        .modern-asp-calendar .cal-next-prev a:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

    /* Day Names Row (Sun, Mon, Tue...) */
    .modern-asp-calendar .cal-day-header {
        background-color: #f8fafc !important;
        color: #475569 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        font-style: normal !important;
        text-transform: uppercase;
        padding: 7px 2px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        text-align: center !important;
    }

    /* Individual Day Cells */
    .modern-asp-calendar .cal-day {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #1e293b;
        padding: 6px 2px !important;
        border: 1px solid #f1f5f9 !important;
        text-align: center !important;
        vertical-align: top !important;
        height: 38px;
    }

    .modern-asp-calendar .cal-weekend {
        background-color: #fafafa !important;
        color: #be123c !important;
    }

    .modern-asp-calendar .cal-other-month {
        color: #cbd5e1 !important;
        background-color: #ffffff !important;
        font-weight: 400 !important;
    }

    .modern-asp-calendar .cal-today {
        background-color: #fef3c7 !important;
        color: #92400e !important;
        border: 1px solid #f59e0b !important;
        font-weight: 800 !important;
    }

/* Holiday Legend Pills */
.holiday-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 10px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 12px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-badge-h {
    background-color: #ffe4e6;
    color: #e11d48;
    font-weight: 800;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
}

.legend-badge-r {
    background-color: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
}

.indigo-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    background-color: #4f46e5;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

    .indigo-cta-btn:hover {
        background-color: #4338ca;
    }
/* ==========================================================================
   8 & 9. DA RATES & GPF INTEREST RATES CARDS
   ========================================================================== */
.sidebar-card-header.accent-rose {
    border-left-color: #e11d48;
}

.sidebar-card-header.accent-teal {
    border-left-color: #0d9488;
}

.rate-highlight-box {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-bottom: 1px solid #fecdd3;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .rate-highlight-box.teal-highlight {
        background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
        border-bottom: 1px solid #99f6e4;
    }

.rate-highlight-label {
    font-size: 12px;
    color: #475569;
    line-height: 1.3;
}

    .rate-highlight-label strong {
        display: block;
        font-size: 13px;
        color: #0f172a;
    }

.rate-highlight-value {
    font-size: 22px;
    font-weight: 800;
    color: #e11d48;
    background-color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #fecdd3;
}

.rate-highlight-box.teal-highlight .rate-highlight-value {
    color: #0f766e;
    border-color: #99f6e4;
}

.rate-scroll-box {
    max-height: 220px;
    overflow-y: auto;
    border-bottom: 1px solid #e2e8f0;
}

.modern-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0;
}

    .modern-rate-table thead th {
        position: sticky;
        top: 0;
        background-color: #f8fafc;
        color: #475569;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        padding: 8px 16px;
        border-bottom: 1px solid #e2e8f0;
        z-index: 1;
    }

    .modern-rate-table tbody tr {
        border-bottom: 1px solid #f1f5f9;
        transition: background-color 0.15s ease;
    }

        .modern-rate-table tbody tr:hover {
            background-color: #f8fafc;
        }

    .modern-rate-table td {
        padding: 8px 16px;
        color: #1e293b;
    }

.rate-pill {
    display: inline-block;
    font-weight: 700;
    color: #0f172a;
    background-color: #f1f5f9;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
}

    .rate-pill.active-rate {
        background-color: #ffe4e6;
        color: #be123c;
    }

    .rate-pill.active-gpf {
        background-color: #ccfbf1;
        color: #0f766e;
    }

    .rate-pill.covid-frozen {
        background-color: #f8fafc;
        color: #94a3b8;
        border: 1px dashed #cbd5e1;
    }

.rate-card-footer {
    padding: 12px 16px 14px 16px;
    background-color: #ffffff;
}

.rate-footnote {
    font-size: 11px;
    color: #64748b;
    margin: 0 0 10px 0;
    font-style: italic;
}

.rose-cta-btn,
.teal-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

.rose-cta-btn {
    background-color: #e11d48;
}

    .rose-cta-btn:hover {
        background-color: #be123c;
    }

.teal-cta-btn {
    background-color: #0d9488;
}

    .teal-cta-btn:hover {
        background-color: #0f766e;
    }
/* ==========================================================================
   PUBLICATIONS / BOOKS SHOWCASE CARDS
   ========================================================================== */
.sidebar-card-header.accent-amber {
    border-left-color: #b45309;
}

.book-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .book-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    }

.book-card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    padding: 12px 16px;
}

.book-edition-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 5px;
}

.book-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.book-cover-wrap {
    background-color: #f1f5f9;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

    .book-cover-wrap img {
        max-height: 190px;
        width: auto;
        margin: 0 auto;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        display: inline-block;
    }

.book-card-body {
    padding: 14px 16px 16px 16px;
}

.book-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 12px 0;
    text-align: left;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-btn-row {
    display: flex;
    gap: 8px;
}

.book-btn-primary {
    display: block;
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    background-color: #f59e0b;
    color: #0f172a !important;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

    .book-btn-primary:hover {
        background-color: #d97706;
        color: #ffffff !important;
    }

.book-btn-secondary {
    display: block;
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    background-color: #eff6ff;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

    .book-btn-secondary:hover {
        background-color: #dbeafe;
    }

.book-kindle-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb !important;
    padding: 4px 0;
    text-decoration: none !important;
}

    .book-kindle-link:hover {
        text-decoration: underline !important;
    }
/* Two-Volume Book Grid (Import Docks Officers Vol I & II) */
.book-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background-color: #f1f5f9;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.book-vol-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .book-vol-col img {
        max-height: 155px;
        width: auto;
        border-radius: 4px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
    }

.book-vol-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 8px;
    background-color: #f59e0b;
    color: #0f172a !important;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

    .book-vol-btn:hover {
        background-color: #d97706;
        color: #ffffff !important;
    }
/* ==========================================================================
   MAIN PANE: DGFT, DISCUSSION BOARD & NEWS & VIEWS CARDS
   ========================================================================== */
.category-header.accent-dgft {
    border-left-color: #0284c7;
}

.category-header.accent-discussion {
    border-left-color: #ea580c;
}

.category-header.accent-news {
    border-left-color: #0d9488;
}

/* Discussion Board Item Styling */
.discussion-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    transition: background-color 0.15s ease;
    text-align: left;
}

    .discussion-item:hover {
        background-color: #f8fafc;
    }

.discussion-text {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.55;
    margin: 0;
}

.discussion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.date-badge {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11.5px;
}

/* News & Views Article Cards */
.news-list-wrap {
    display: flex;
    flex-direction: column;
}

.news-article-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
    text-align: left;
}

    .news-article-row:last-child {
        border-bottom: none;
    }

    .news-article-row:hover {
        background-color: #f8fafc;
    }

.news-thumb-box {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .news-thumb-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-body {
    flex: 1;
    min-width: 0;
}

.news-title-link {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a !important;
    line-height: 1.4;
    margin-bottom: 4px;
    text-decoration: none !important;
}

    .news-title-link:hover {
        color: #1d4ed8 !important;
    }

.news-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 6px;
}

.news-excerpt {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.news-read-more {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: 4px;
}

    .news-read-more:hover {
        text-decoration: underline !important;
    }
/* Latest Headlines & Corruption News Card Accents */
.category-header.accent-headlines {
    border-left-color: #2563eb;
}

.category-header.accent-corruption {
    border-left-color: #dc2626;
}

.news-date.corruption-date {
    color: #dc2626;
}
/* ==========================================================================
   11. SC JUDGEMENTS ON SERVICE MATTERS CARD
   ========================================================================== */
.category-header.accent-judgements {
    border-left-color: #6d28d9;
}

.judgement-list {
    display: flex;
    flex-direction: column;
}

.judgement-item {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
    text-align: left;
}

    .judgement-item:last-child {
        border-bottom: none;
    }

    .judgement-item:hover {
        background-color: #f8fafc;
    }

.judgement-top-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.judgement-date-pill {
    flex-shrink: 0;
    background-color: #f3e8ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 5px;
    margin-top: 2px;
}

.judgement-case-title {
    flex: 1;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a !important;
    line-height: 1.4;
    text-decoration: none !important;
}

    .judgement-case-title:hover {
        color: #6d28d9 !important;
        text-decoration: underline !important;
    }

.judgement-summary {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 8px 0;
}

.judgement-footer {
    display: flex;
    justify-content: flex-end;
}

.caselaw-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #6d28d9 !important;
    background-color: #f5f3ff;
    border: 1px solid #ddd6fe;
    padding: 4px 10px;
    border-radius: 5px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

    .caselaw-btn:hover {
        background-color: #6d28d9;
        color: #ffffff !important;
    }
/* ==========================================================================
   HOMEPAGE TYPOGRAPHY SCALE-UP (LARGE / COMFORTABLE READING)
   ========================================================================== */

/* Main Feed: Hero Banner & Category Filter Tabs */
.feed-hero h1 {
    font-size: 28px !important;
}

.feed-hero p {
    font-size: 16.5px !important;
}

.feed-search-box input {
    font-size: 16px !important;
    height: 46px;
}

.modern-tabs > li > a {
    font-size: 15px !important;
    padding: 9px 16px !important;
}

/* Main Feed: Card Headers & Buttons */
.category-title {
    font-size: 19px !important;
}

.see-more-btn {
    font-size: 14.5px !important;
    padding: 6px 14px !important;
}

/* Main Feed: Document Subjects & Metadata (GST, Customs, Excise, ST, DGFT, Others) */
.doc-index {
    min-width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 14px !important;
}

.doc-subject {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

.doc-meta {
    font-size: 14.5px !important;
}

.meta-pill {
    font-size: 13.5px !important;
    padding: 3px 10px !important;
}

.read-more-link {
    font-size: 14.5px !important;
}

/* Main Feed: Discussion Board, News & Views, Headlines & SC Judgements */
.discussion-text {
    font-size: 17px !important;
    line-height: 1.65 !important;
}

.discussion-footer {
    font-size: 14.5px !important;
}

.date-badge {
    font-size: 13px !important;
}

.news-title-link {
    font-size: 18px !important;
    line-height: 1.45 !important;
}

.news-date {
    font-size: 13.5px !important;
}

.news-excerpt {
    font-size: 16.5px !important;
    line-height: 1.6 !important;
}

.judgement-date-pill {
    font-size: 13px !important;
}

.judgement-case-title {
    font-size: 17.5px !important;
    line-height: 1.45 !important;
}

.judgement-summary {
    font-size: 16.5px !important;
    line-height: 1.6 !important;
}

.caselaw-btn {
    font-size: 14.5px !important;
    padding: 5px 12px !important;
}

/* Left Sidebar: Card Titles, Duty Tables, DA/GPF Tables & Books */
.sidebar-card-title {
    font-size: 17.5px !important;
}

.duty-subbanner {
    font-size: 14.5px !important;
}

.duty-table td {
    font-size: 15px !important;
}

.duty-rate-tag {
    font-size: 12.5px !important;
}

.duty-total-row td {
    font-size: 15.5px !important;
}

.modern-rate-table {
    font-size: 15.5px !important;
}

.rate-pill {
    font-size: 13.5px !important;
}

.book-card-title {
    font-size: 16.5px !important;
}

.book-desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.book-btn-primary,
.book-btn-secondary,
.book-kindle-link {
    font-size: 14px !important;
}
/* Search Box Inner Cancel (×) Button */
.feed-search-box {
    position: relative;
}

    .feed-search-box input {
        padding-right: 42px !important;
    }

.feed-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    display: none;
    padding: 0;
    z-index: 3;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .feed-clear-btn:hover {
        background-color: #cbd5e1;
        color: #0f172a;
    }
.ssl-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-right: 8px;
}
/* ==========================================================================
   HOMEPAGE MOBILE FIT FIX (CHARTS, TABLES & LONG TEXT <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .sidebar-card,
    .category-card,
    .book-card,
    .feed-hero {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

        /* Scale ASP.NET Chart PNGs cleanly to fit phone width */
        .chart-wrap img,
        .sidebar-card img {
            max-width: 100% !important;
            width: 100% !important;
            height: auto !important;
        }

    /* Wrap long File Numbers, Court Case Titles & URLs cleanly */
    .doc-subject,
    .doc-meta,
    .judgement-case-title,
    .judgement-summary,
    .news-title-link,
    .news-excerpt,
    .discussion-text {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* Allow wide tables (like Gold/Silver GridView1) to scroll inside card */
    .rate-scroll-box,
    .duty-table-wrap {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
/* ==========================================================================
   MOBILE COMPACT SERIAL NUMBER & FULL-WIDTH CONTENT (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* Reduce outer card padding on mobile so text gets full width */
    .doc-item {
        padding: 12px 10px !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    /* Compact Sr. No. badge on mobile */
    .doc-index {
        min-width: 22px !important;
        width: 22px !important;
        height: 22px !important;
        line-height: 22px !important;
        font-size: 12px !important;
        margin-top: 2px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    /* Let document text & metadata expand across remaining 92%+ width */
    .doc-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Also tighten padding on Discussion, News & SC Judgements cards on mobile */
    .discussion-item,
    .news-article-row,
    .judgement-item {
        padding: 12px 10px !important;
        gap: 10px !important;
    }

    .category-header {
        padding: 12px 12px !important;
    }

    .feed-hero {
        padding: 16px 12px !important;
    }
}
@media (max-width: 767px) {
    .feed-hero {
        padding: 14px 8px !important;
        border-radius: 6px !important;
    }

    .category-card,
    .sidebar-card,
    .book-card {
        border-radius: 6px !important;
        margin-bottom: 14px !important;
    }

    .category-header,
    .sidebar-card-header {
        padding: 10px 8px !important;
    }

    .doc-item {
        padding: 10px 6px !important;
        gap: 6px !important;
    }

    .doc-index {
        min-width: 20px !important;
        width: 20px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 11.5px !important;
    }

    .discussion-item,
    .news-article-row,
    .judgement-item,
    .sidebar-card-body {
        padding: 10px 6px !important;
        gap: 8px !important;
    }
}
@media (max-width: 767px) {
    .judgement-top-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .judgement-date-pill {
        margin-top: 0 !important;
    }

    .judgement-case-title {
        display: block !important;
        width: 100% !important;
    }
}
@media (max-width: 767px) {
    /* Stack News & Views / Headlines / Corruption News vertically on mobile */
    .news-article-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .news-thumb-box {
        width: 64px !important;
        height: 64px !important;
    }

    .news-body {
        width: 100% !important;
    }

    .news-title-link,
    .news-date,
    .news-excerpt {
        display: block !important;
        width: 100% !important;
    }

    /* Stack Discussion Board Date & Thread Link cleanly on mobile */
    .discussion-item {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .discussion-footer {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
    }
}
