/* ==========================================================================
   GovSchemeRules - 100% Full-Width Fluid Responsive Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Hind:wght@400;500;600;700&display=swap');

:root {
    --primary-navy: #0B2545;
    --primary-navy-dark: #061A23;
    --primary-blue: #134074;
    --accent-gold: #EE9B00;
    --saffron: #FF9933;
    --emerald-green: #138808;
    --crimson: #C5221F;
    --bg-light: #F4F6F9;
    --card-bg: #FFFFFF;
    --text-primary: #1E293B;
    --text-muted: #64748B;
    --border-color: #CBD5E1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-navy);
}

/* Accessibility Scaling */
:root {
    --font-scale: 1;
}
body.font-small {
    --font-scale: 0.9;
    zoom: 0.9;
}
body.font-large {
    --font-scale: 1.12;
    zoom: 1.12;
}
body.font-xlarge {
    --font-scale: 1.25;
    zoom: 1.25;
}

/* High Contrast Dark Theme */
body.high-contrast {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

body.high-contrast .header,
body.high-contrast .menu,
body.high-contrast .content-panel,
body.high-contrast .menu-footer,
body.high-contrast .detail-container,
body.high-contrast .form-container,
body.high-contrast .contact-container {
    background: #121212 !important;
    border-color: #FFFF00 !important;
    color: #FFFFFF !important;
}

body.high-contrast a,
body.high-contrast .menuitem,
body.high-contrast .panel-header {
    color: #FFFF00 !important;
}

/* Base Styles & Full Page Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Hind', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* MasterPage Structural Layout Containers */
.top-gov-ribbon,
.header,
.menu,
.menu-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Full Width Fluid Container */
.container, .master-page-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 clamp(10px, 2.5vw, 30px) !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   TOP ACCESSIBILITY RIBBON & LIVE CLOCK
   ========================================================================== */
.top-gov-ribbon {
    width: 100%;
    background: #FFFFFF;
    border-top: 4px solid var(--saffron);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.top-gov-container {
    width: 100%;
    max-width: 100%;
    padding: 6px clamp(10px, 2.5vw, 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-gov-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--primary-navy);
}

.gov-live-clock {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 13px;
    background: rgba(19, 64, 116, 0.06);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(19, 64, 116, 0.12);
}

.top-gov-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.acc-btn-group {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 4px;
    padding: 2px 4px;
    border: 1px solid var(--border-color);
}

.acc-btn {
    background: transparent;
    border: none;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.acc-btn:hover {
    background: var(--primary-navy);
    color: #FFFFFF;
}

.helpline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 34, 31, 0.1);
    color: var(--crimson);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(197, 34, 31, 0.2);
    transition: all 0.2s ease;
}

.helpline-pill:hover {
    background: var(--crimson);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(197, 34, 31, 0.3);
}

/* ==========================================================================
   NATIONAL GOVERNMENT TOP UTILITY RIBBON
   ========================================================================== */
.top-gov-ribbon {
    width: 100%;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #334155;
    padding: 4px 0;
}

.top-gov-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(10px, 2.5vw, 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
}

.top-ribbon-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-ribbon-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: color 0.2s ease;
}

.top-ribbon-link:hover {
    color: #0056B3;
    text-decoration: underline;
}

.top-ribbon-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ribbon-sep {
    color: #94A3B8;
    font-size: 11px;
}

.ribbon-sub-sep {
    color: #CBD5E1;
    margin: 0 4px;
}

/* Color Theme Swatches */
.theme-swatch-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.theme-swatch {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
}

.theme-swatch:hover {
    transform: scale(1.2);
}

.theme-brown {
    background: #8D4B26;
}

.theme-orange {
    background: #E65100;
}

.theme-blue {
    background: #0056B3;
}

/* Font Resizer Buttons */
.font-resizer-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.font-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 3px;
    color: #1E293B;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-btn:hover,
.font-btn.active-font-btn {
    background: #0056B3 !important;
    color: #FFFFFF !important;
    border-color: #0056B3 !important;
}

/* Dynamic Font Scaling Accessibility Rules */
body.font-small {
    font-size: 90% !important;
}

body.font-large {
    font-size: 112% !important;
}

body.font-xlarge {
    font-size: 125% !important;
}

/* Date & Website Updated Box */
.ribbon-date-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #1E293B;
}

/* Theme Classes Applied to Body (Background remains 100% pure white) */
body,
body.theme-brown,
body.theme-orange,
body.theme-blue {
    background-color: #FFFFFF !important;
}

body.theme-brown .header {
    border-bottom-color: #8D4B26 !important;
}

body.theme-orange .header {
    border-bottom-color: #E65100 !important;
}

body.theme-blue .header {
    border-bottom-color: #0056B3 !important;
}

/* ==========================================================================
   HEADER BRANDING
   ========================================================================== */
.header {
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    padding: 4px clamp(10px, 2.5vw, 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 3px solid #C5221F;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.header-left a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.header-left img {
    max-height: clamp(95px, 9.5vw, 125px);
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.header-left img:hover {
    transform: scale(1.02);
}

.portal-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.portal-dept-hindi {
    font-family: 'Hind', 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-size: clamp(17px, 2.1vw, 23px);
    font-weight: 800;
    line-height: 1.0;
    word-spacing: 5px;
    letter-spacing: 0.3px;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.portal-main-name {
    font-family: 'Inter', 'Hind', sans-serif;
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 900;
    line-height: 1.0;
    margin: -3px 0 0 0;
    padding: 0;
    word-spacing: 3px;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.08);
}

.brand-blue {
    color: #0056B3 !important;
}

.brand-green {
    color: #138808 !important;
}

.brand-neutral {
    color: #334155 !important;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-meta-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    padding: 4px 14px;
    box-shadow: 0 2px 5px rgba(11, 37, 69, 0.05);
    font-size: 12.5px;
    color: #1E293B;
    font-weight: 600;
}

.header-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.header-meta-divider {
    width: 1px;
    height: 14px;
    background: #CBD5E1;
}

.header-search-wrapper {
    position: relative;
    width: clamp(260px, 25vw, 340px);
    max-width: 100%;
}

.header-search-input {
    width: 100%;
    padding: 8px 38px 8px 16px;
    border-radius: 20px;
    border: 1.5px solid #0056B3;
    background: #FFFFFF;
    font-size: 13.5px;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.06);
    transition: all 0.2s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.15);
}

.header-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 15px;
    cursor: pointer;
}

/* Global Live Search Dropdown */
.portal-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: clamp(320px, 35vw, 450px);
    max-height: 420px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(11, 37, 69, 0.2);
    z-index: 99999;
    overflow-y: auto;
    padding: 6px 0;
    box-sizing: border-box;
    text-align: left;
}

.portal-search-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748B;
    background: #F8FAFC;
    padding: 6px 14px;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    margin-top: 4px;
}

.portal-search-group-title:first-child {
    margin-top: 0;
    border-top: none;
}

.portal-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: #1E293B !important;
    transition: background 0.2s ease, padding-left 0.2s ease;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
}

.portal-search-item:last-child {
    border-bottom: none;
}

.portal-search-item:hover,
.portal-search-item.active-item {
    background: #F0F4F8;
    color: #134074 !important;
    padding-left: 18px;
}

.portal-search-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(19, 64, 116, 0.08);
    color: #134074;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.portal-search-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.portal-search-text {
    font-size: 14px;
    font-weight: 600;
    color: #0B2545;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-search-sub {
    font-size: 12px;
    color: #64748B;
}

.portal-search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: #64748B;
    font-size: 14px;
}

/* ==========================================================================
   PRIMARY NAVIGATION MENU & UNCONDITIONAL HOVER DROPDOWNS
   ========================================================================== */
.menu {
    width: 100%;
    max-width: 100%;
    background: var(--primary-navy);
    min-height: 50px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menuitem {
    color: #FFFFFF;
    font-size: clamp(13px, 1.1vw, 16.5px);
    font-weight: 600;
    padding: 12px clamp(6px, 0.75vw, 13px);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.4vw, 6px);
    white-space: nowrap;
    height: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.menuitem:hover {
    background: var(--primary-blue);
    color: var(--accent-gold);
}

.menu a {
    text-decoration: none;
}

.menuitem-right {
    margin-left: auto;
}

.menuitem-right .menuitem {
    background: rgba(238, 155, 0, 0.25);
}

.menuitem-right .menuitem:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* Mobile Icon Toggle */
.menu .icon {
    display: none;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    background-color: var(--primary-navy-dark);
    width: 100%;
}

/* Submenu Dropdowns */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    min-width: 320px;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    padding: 6px 0;
}

.menuitem:hover .submenu {
    display: block !important;
}

.submenu-item,
.submenu-item-title {
    color: var(--text-primary) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-item:hover,
.submenu-item-title:hover {
    background: #F8FAFC;
    color: var(--primary-blue) !important;
    padding-left: 22px;
}

/* Nested Submenu */
.nested-menu-item {
    position: static; /* Positions nested-submenu relative to main .submenu master menu panel */
}

.nested-submenu {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    height: 100%;
    background: #FFFFFF;
    min-width: 350px;
    overflow-y: auto;
    z-index: 1001;
    border-radius: 0 8px 8px 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    padding: 6px 0;
    box-sizing: border-box;
}

.nested-submenu::-webkit-scrollbar {
    width: 6px;
}

.nested-submenu::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 0 8px 8px 0;
}

.nested-submenu::-webkit-scrollbar-thumb {
    background: #0B2545;
    border-radius: 3px;
}

.nested-submenu::-webkit-scrollbar-thumb:hover {
    background: #134074;
}

.nested-menu-item:hover .nested-submenu {
    display: block !important;
}

.nested-submenu-item {
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 16px;
    border-bottom: 1px solid #F1F5F9;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nested-submenu-item:hover {
    background: #F8FAFC;
    color: var(--primary-blue) !important;
    padding-left: 20px;
}

/* ==========================================================================
   VIBRANT & COLORFUL QUICK ACCESS ACTION CARDS
   ========================================================================== */
.quick-access-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.2vw, 18px);
    margin-top: 25px;
}

@media screen and (max-width: 1100px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}

.quick-card {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    border-radius: 12px;
    padding: clamp(12px, 1.3vw, 18px) clamp(12px, 1.4vw, 20px);
    display: flex;
    align-items: center;
    gap: clamp(10px, 1vw, 16px);
    text-decoration: none !important;
    color: #FFFFFF !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11, 37, 69, 0.2);
}

/* Individual Gradient Themes for Cards */
.card-schemes {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.28) !important;
}

.card-employee {
    background: linear-gradient(135deg, #1E3C72 0%, #2A5298 100%) !important;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.28) !important;
}

.card-forms {
    background: linear-gradient(135deg, #11998E 0%, #38EF7D 100%) !important;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.28) !important;
}

.card-rghs {
    background: linear-gradient(135deg, #E52D27 0%, #B31217 100%) !important;
    box-shadow: 0 8px 20px rgba(229, 45, 39, 0.28) !important;
}

/* Card Hover Elevation & Glow */
.quick-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.card-schemes:hover {
    box-shadow: 0 16px 32px rgba(255, 107, 107, 0.45) !important;
}

.card-employee:hover {
    box-shadow: 0 16px 32px rgba(30, 60, 114, 0.45) !important;
}

.card-forms:hover {
    box-shadow: 0 16px 32px rgba(17, 153, 142, 0.45) !important;
}

.card-rghs:hover {
    box-shadow: 0 16px 32px rgba(229, 45, 39, 0.45) !important;
}

/* Icon Circular Badge */
.quick-card-icon {
    width: clamp(40px, 3.6vw, 52px);
    height: clamp(40px, 3.6vw, 52px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(5px);
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(17px, 1.5vw, 22px);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.quick-card:hover .quick-card-icon {
    transform: scale(1.15) rotate(6deg);
    background: #FFFFFF;
}

.card-schemes:hover .quick-card-icon { color: #FF6B6B !important; }
.card-employee:hover .quick-card-icon { color: #1E3C72 !important; }
.card-forms:hover .quick-card-icon { color: #11998E !important; }
.card-rghs:hover .quick-card-icon { color: #E52D27 !important; }

.quick-card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.quick-card-title {
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    font-size: clamp(14.5px, 1.25vw, 19px);
    color: #FFFFFF !important;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.quick-card-sub {
    font-size: clamp(11.5px, 0.9vw, 13px);
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.3;
}

.quick-card-arrow {
    font-size: clamp(13px, 1.1vw, 16px);
    color: rgba(255, 255, 255, 0.8) !important;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.quick-card:hover .quick-card-arrow {
    transform: translateX(6px);
    color: #FFFFFF !important;
}

/* ==========================================================================
   TICKER BAR
   ========================================================================== */
.ticker-container-wrapper {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 48px;
    margin-top: 0;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.ticker-badge-pill {
    background: var(--crimson);
    color: #FFFFFF;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
    flex-shrink: 0;
}

.ticker-badge-pill i {
    animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.ticker-marquee-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.ticker-scroll-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: smoothTickerScroll 160s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

.ticker-marquee-container:hover .ticker-scroll-track {
    animation-play-state: paused;
}

@keyframes smoothTickerScroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-text-item {
    color: #D11124 !important;
    font-weight: 700;
    font-size: 15px;
    margin-right: 60px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ticker-text-item:hover {
    color: #991B1B !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   CONTENT PANELS & CARDS
   ========================================================================== */
.content-panel {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.06);
    background-color: var(--card-bg);
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.25s ease;
}

.content-panel:hover {
    border-color: rgba(19, 64, 116, 0.3);
    box-shadow: 0 8px 20px rgba(11, 37, 69, 0.1);
}

.panel-header {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    padding: 12px 18px !important;
    color: #FFFFFF;
    font-family: 'Hind', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--accent-gold);
}

.panel-data {
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-primary);
}

.panel-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-data li {
    padding: 8px 0;
    border-bottom: 1px dashed #E2E8F0;
}

.panel-data li:last-child {
    border-bottom: none;
}

.panel-data li a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
}

.panel-data li a i {
    font-size: 16px !important;
}

.panel-data li a:hover {
    color: var(--primary-blue) !important;
    transform: translateX(3px) !important;
}

/* News List Items */
.news-item {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 6px;
    background: #FAFBFD;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: #F1F5F9;
}

.news-date {
    color: var(--emerald-green);
    font-weight: 700;
    font-size: 14.5px !important;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i {
    font-size: 14px;
}

.news-subject {
    color: #3E2723 !important; /* Dark Coffee */
    font-weight: 700 !important;
    font-size: 15.5px !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    transition: color 0.2s ease;
}

.news-subject:hover {
    color: #1F110B !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   FLOATING 181 HELPDESK BUTTON
   ========================================================================== */
.gov-floating-help {
    display: none !important;
}

.gov-floating-help:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(197, 34, 31, 0.6);
    background: linear-gradient(135deg, #E52E2A 0%, var(--crimson) 100%);
}

.gov-floating-help i {
    font-size: 18px;
    animation: pulseIcon 1.5s infinite;
}

/* ==========================================================================
   OFFICIAL 4-COLUMN GOVERNMENT FOOTER
   ========================================================================== */
.menu-footer {
    width: 100%;
    max-width: 100%;
    background: var(--primary-navy-dark);
    color: #FFFFFF;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 4px solid var(--saffron);
}

.footer-top-grid {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(15px, 3vw, 40px) 30px clamp(15px, 3vw, 40px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-family: 'Hind', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 14px;
    border-bottom: 2px solid var(--saffron);
    padding-bottom: 6px;
    display: inline-block;
}

.footer-col p {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #CBD5E1 !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--accent-gold) !important;
    transform: translateX(3px);
}

.footer-badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.gov-badge-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #E2E8F0;
}

/* ==========================================================================
   OFFICIAL COMPACT INLINE VISITOR COUNTER
   ========================================================================== */
.footer-visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 2px 8px;
    border-radius: 16px;
    color: #CBD5E1;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}

.inline-odometer {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.visitor-digit-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 18px;
    background: #0F172A;
    color: #F8FAFC;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    border: 1px solid #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.footer-bottom-bar {
    width: 100%;
    background: #02080D;
    padding: 18px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 13px;
}

.footer-bottom-bar a {
    color: #94A3B8 !important;
    margin: 0 8px;
    text-decoration: none;
}

.footer-bottom-bar a:hover {
    color: var(--accent-gold) !important;
}

/* ==========================================================================
   FORMS & DETAIL CONTAINERS
   ========================================================================== */
.detail-container,
.form-container,
.contact-container {
    width: 100%;
    max-width: 1200px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: clamp(15px, 3vw, 35px);
    margin: 20px auto;
}

.form-name,
.contact-title {
    font-family: 'Hind', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: var(--primary-navy);
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.form-btn,
.contact-submit-btn,
.view-all-btn {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.form-btn:hover,
.contact-submit-btn:hover,
.view-all-btn:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-navy) 100%) !important;
    text-decoration: none !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (min-width: 1600px) {
    .content { gap: 30px; }
    .under-content-side { flex: 1 1 25%; }
    .under-content-middle { flex: 1 1 46%; }
    .slider-container { height: auto !important; max-height: none !important; }
}

@media screen and (max-width: 1200px) {
    .under-content-side { flex: 1 1 30%; }
    .under-content-middle { flex: 1 1 36%; }
}

@media screen and (max-width: 1024px) {
    .header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .header-right { width: 100%; }
    .header-search-wrapper { width: 100%; }
    .content { flex-direction: column; }
    .under-content-side, .under-content-middle { width: 100% !important; flex: 1 1 100% !important; }
    .slider-container { height: auto !important; max-height: none !important; }

    /* Responsive Tablet & Mobile Menu Toggle (<= 1024px) */
    .menu {
        flex-wrap: wrap;
    }
    .menu .menuitem { 
        display: none; 
    }
    .menu a.icon { 
        display: flex; 
        align-items: center; 
        justify-content: flex-start;
        gap: 10px;
        padding: 13px 18px;
        font-size: 16px;
        font-weight: 700;
        box-sizing: border-box;
    }
    .menu.responsive { 
        display: flex;
        flex-direction: column; 
        width: 100%;
    }
    .menu.responsive .menuitem-right {
        margin-left: 0;
        width: 100%;
    }
    .menu.responsive .menuitem { 
        display: block; 
        width: 100%; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.12); 
        padding: 13px 18px; 
        color: #FFFFFF;
        font-size: 15px;
        box-sizing: border-box;
        text-align: left;
        white-space: normal;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .top-gov-container { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 6px; 
        padding: 6px 12px; 
    }
    .top-gov-left { 
        flex-direction: column; 
        gap: 4px; 
    }
    .top-ribbon-left, .top-ribbon-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Mobile Menu Container & Toggle */
    .menu .menuitem { 
        display: none; 
    }
    .menu a.icon { 
        display: flex; 
        align-items: center; 
        justify-content: flex-start;
        gap: 10px;
        padding: 13px 18px;
        font-size: 16px;
        font-weight: 700;
        box-sizing: border-box;
    }
    .menu.responsive { 
        display: flex;
        flex-direction: column; 
        width: 100%;
    }
    .menu.responsive .menuitem { 
        display: block; 
        width: 100%; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.12); 
        padding: 13px 18px; 
        color: #FFFFFF;
        font-size: 15px;
        box-sizing: border-box;
        text-align: left;
        position: relative;
    }
    .menu.responsive a {
        text-decoration: none;
    }
    .menu.responsive a .menuitem {
        color: #FFFFFF;
    }
    .menu.responsive .menuitem:hover {
        background: var(--primary-blue);
        color: var(--accent-gold);
    }
    .menuitem-right { 
        margin-left: 0; 
    }

    /* Mobile Submenu Accordion Dropdowns */
    .menu.responsive .submenu { 
        position: static !important; 
        width: 100% !important; 
        min-width: 100% !important; 
        box-shadow: none !important; 
        background: #071F36 !important; 
        display: none !important; 
        border-radius: 0 !important; 
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 10px;
        margin-bottom: -5px;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .menu.responsive .submenu.show-mobile { 
        display: block !important; 
    }
    
    /* High-contrast mobile submenu links */
    .menu.responsive .submenu-item,
    .menu.responsive .submenu-item-title {
        color: #F8FAFC !important;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        padding: 11px 16px 11px 22px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: #071F36 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
    }
    .menu.responsive .submenu-item:hover,
    .menu.responsive .submenu-item-title:hover {
        background: #134074 !important;
        color: #FFD700 !important;
        padding-left: 28px !important;
    }
    
    /* Mobile Nested Submenus */
    .menu.responsive .nested-submenu {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        background: #041424 !important;
        display: none !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .menu.responsive .nested-submenu.show-mobile {
        display: block !important;
    }
    .menu.responsive .nested-submenu-item {
        color: #CBD5E1 !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        padding: 10px 16px 10px 36px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        background: #041424 !important;
        display: block !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
    }
    .menu.responsive .nested-submenu-item:hover {
        background: #0B2545 !important;
        color: #FFD700 !important;
        padding-left: 42px !important;
    }

    .slider-container { height: auto !important; max-height: none !important; margin: 0 !important; }
    .slide-card { max-width: 100%; padding: 12px 16px; }
    .slide-card-name { font-size: 17px; }
    .slide-card-desc { font-size: 12px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 15px; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    
    .quick-access-grid { grid-template-columns: 1fr; }
    
    .gov-floating-help { bottom: 15px; right: 15px; padding: 10px 18px; font-size: 13px; }
    .footer-top-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media screen and (max-width: 480px) {
    .header-left { flex-direction: column; align-items: flex-start; gap: 8px; }
    .header-left img { max-height: 80px; }
    .portal-dept-hindi { font-size: 16px; }
    .portal-main-name { font-size: 24px; }
    .slider-container { height: auto !important; max-height: none !important; }
    .header-search-wrapper { width: 100%; }
}

/* ==========================================================================
   OFFICIAL GOVERNMENT PORTALS BANNER CAROUSEL BAR
   ========================================================================== */
.gov-banner-carousel-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 30px auto 35px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.gov-banner-carousel-container {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid #CCCCCC;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    position: relative;
}

.gov-banner-arrow {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 28px;
    cursor: pointer;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    z-index: 5;
}

.gov-banner-arrow:hover {
    color: #0B2545;
    transform: scale(1.25);
}

.gov-banner-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gov-banner-track::-webkit-scrollbar {
    display: none;
}

.gov-banner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.gov-banner-item:hover {
    transform: translateY(-3px) scale(1.02);
}

.gov-banner-item img {
    height: 72px;
    max-height: 78px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media screen and (max-width: 768px) {
    .gov-banner-carousel-container {
        padding: 10px 12px;
    }
    .gov-banner-arrow {
        font-size: 22px;
        padding: 4px 6px;
    }
    .gov-banner-item img {
        height: 50px;
        max-height: 54px;
    }
}

/* ==========================================================================
   AUTHENTIC GOVERNMENT NOTIFICATIONS & NEWS TABLES
   ========================================================================== */
.notifications-table-wrapper {
    width: 100%;
    overflow-x: hidden !important;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.08);
    background: #FFFFFF;
    margin-top: 15px;
}

.news-table,
.gov-data-table {
    width: 100%;
    border-collapse: collapse !important;
    margin: 0 !important;
    background: #FFFFFF;
}

.news-table thead tr,
.gov-data-table thead tr {
    background: linear-gradient(135deg, #0B2545 0%, #134074 100%) !important;
}

.news-table th,
.gov-data-table th {
    background: linear-gradient(135deg, #0B2545 0%, #134074 100%) !important;
    color: #FFFFFF !important;
    font-family: 'Hind', 'Inter', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    padding: 16px 22px !important;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 2px solid #0B2545 !important;
    letter-spacing: 0.4px;
    white-space: nowrap !important;
}

.news-table th:last-child,
.gov-data-table th:last-child {
    border-right: none !important;
    width: 160px !important;
    min-width: 160px !important;
    text-align: center !important;
}

.news-table th:first-child,
.gov-data-table th:first-child {
    width: 90px !important;
    min-width: 90px !important;
    text-align: center !important;
}

.news-table th.center,
.news-table td.center {
    text-align: center !important;
}

.news-table tbody tr,
.gov-data-table tbody tr {
    border-bottom: 1px solid #E2E8F0 !important;
    transition: background 0.2s ease;
}

.news-table tbody tr:nth-child(even),
.gov-data-table tbody tr:nth-child(even) {
    background-color: #F8FAFC !important;
}

.news-table tbody tr:hover,
.gov-data-table tbody tr:hover {
    background-color: #F0F4F8 !important;
}

.news-table td,
.gov-data-table td {
    padding: 16px 22px !important;
    font-size: 18px !important;
    color: #1E293B !important;
    border-right: 1px solid #F1F5F9 !important;
    vertical-align: middle;
}

.news-table td:last-child,
.gov-data-table td:last-child {
    border-right: none !important;
    white-space: nowrap !important;
    width: 160px !important;
    min-width: 160px !important;
    text-align: center !important;
}

.news-table td:first-child,
.gov-data-table td:first-child {
    white-space: nowrap !important;
    width: 90px !important;
    min-width: 90px !important;
    text-align: center !important;
}

.news-table .news-subject,
.gov-data-table .news-subject {
    color: #E65100 !important; /* Vibrant Orange */
    font-size: 17px !important;
    line-height: 1.5 !important;
    font-family: 'Hind', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    word-break: break-word !important;
    transition: color 0.2s ease;
}

.news-table .news-subject:hover,
.gov-data-table .news-subject:hover {
    color: #BF360C !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   AUTHENTIC GOVERNMENT APPS & PORTAL DIRECTORY GRID
   ========================================================================== */
.gov-apps-main-box {
    width: 100%;
    max-width: 1350px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.gov-apps-header-banner {
    background: linear-gradient(135deg, #0B2545 0%, #134074 100%);
    border-radius: 12px;
    padding: 22px 25px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.15);
}

.gov-apps-header-banner h1 {
    font-family: 'Hind', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.gov-apps-directory-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 8px 30px rgba(11, 37, 69, 0.08);
}

.gov-apps-search-bar-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 35px auto;
    display: flex;
    align-items: center;
}

.gov-apps-search-input {
    width: 100%;
    padding: 13px 92px 13px 22px;
    font-family: 'Hind', sans-serif;
    font-size: 17px;
    color: #1E293B;
    background: #F8FAFC;
    border: 2px solid #3D52A0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(61, 82, 160, 0.1);
    box-sizing: border-box;
}

.gov-apps-search-input:focus {
    background: #FFFFFF;
    border-color: #FF9933;
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.25);
}

.gov-apps-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #3D52A0;
    font-size: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
    z-index: 5;
}

.gov-apps-search-btn i {
    pointer-events: none;
}

.gov-apps-search-btn:hover {
    color: #FF9933;
    background: rgba(61, 82, 160, 0.08);
    transform: translateY(-50%) scale(1.12);
}

.gov-apps-search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gov-apps-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #3D52A0;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gov-apps-search-clear {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 19px;
    cursor: pointer;
    display: none;
    transition: all 0.2s ease;
    padding: 4px;
    z-index: 5;
}

.gov-apps-search-clear:hover {
    color: #d11124;
    transform: translateY(-50%) scale(1.15);
}

.gov-apps-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 20px !important;
}

@media screen and (max-width: 1200px) {
    .gov-apps-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 992px) {
    .gov-apps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 768px) {
    .gov-apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 480px) {
    .gov-apps-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

.gov-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.06);
    box-sizing: border-box;
    text-align: center;
}

.gov-app-card.hidden {
    display: none !important;
}

.gov-app-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #3D52A0;
    box-shadow: 0 16px 35px rgba(61, 82, 160, 0.18);
    background: #FAFCFF;
}

.gov-app-icon-wrapper {
    height: 105px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    background: #F8FAFC !important;
    border-radius: 10px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    border: 1px solid #F1F5F9 !important;
}

.gov-app-logo-img {
    max-height: 85px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.gov-app-card:hover .gov-app-logo-img {
    transform: scale(1.06) !important;
}

.gov-app-icon-wrapper .fa {
    font-size: 50px !important;
    color: #3D52A0 !important;
}

.gov-app-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0B2545 !important;
    margin-bottom: 8px !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    font-family: 'Hind', sans-serif !important;
}

.gov-app-desc {
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    font-family: 'Hind', sans-serif !important;
}

/* ==========================================================================
   GOVSCHEMERULES PORTAL LOGIN PAGE STYLES
   ========================================================================== */

.login-wrapper {
    width: 100%;
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 40%, #EDF2F7 100%);
    position: relative;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 30%, rgba(19, 64, 116, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(11, 37, 69, 0.12), 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(203, 213, 225, 0.8);
    position: relative;
    overflow: hidden;
    padding: 38px 32px 30px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 25px 55px rgba(11, 37, 69, 0.16), 0 6px 18px rgba(0, 0, 0, 0.06);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0B2545 0%, #134074 45%, #FF9933 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 26px;
}

.login-logo-wrapper {
    width: 135px;
    height: 135px;
    margin: 0 auto 16px auto;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 8px 18px rgba(11, 37, 69, 0.08);
}

.login-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    color: #0B2545;
    font-family: 'Hind', 'Inter', sans-serif;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 13.5px;
    color: #64748B;
    font-weight: 500;
    line-height: 1.4;
}

.login-alert-msg:empty {
    display: none !important;
}

.login-alert-msg {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 22px;
    display: block;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field-group {
    display: flex;
    flex-direction: column;
}

.login-field-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.login-input-wrapper {
    position: relative;
    width: 100%;
}

.login-field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #64748B;
    transition: color 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

.login-input-wrapper:focus-within .login-field-icon {
    color: #134074;
}

.login-input {
    width: 100% !important;
    padding: 12px 14px 12px 44px !important;
    font-size: 14.5px !important;
    color: #0F172A !important;
    background-color: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
}

.login-input:focus {
    background-color: #FFFFFF !important;
    border-color: #134074 !important;
    box-shadow: 0 0 0 4px rgba(19, 64, 116, 0.12) !important;
}

.login-button-wrapper {
    margin-top: 6px;
}

.login-btn-custom {
    width: 100% !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #0B2545 0%, #134074 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25) !important;
    transition: all 0.25s ease !important;
    text-transform: uppercase !important;
    font-family: 'Inter', sans-serif !important;
}

.login-btn-custom:hover {
    background: linear-gradient(135deg, #134074 0%, #1E518A 100%) !important;
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.35) !important;
    transform: translateY(-2px) !important;
}

.login-btn-custom:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(11, 37, 69, 0.2) !important;
}

.login-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.forgot-password-link:hover {
    background-color: #F1F5F9;
}

.handsign-icon {
    height: 18px;
    width: auto;
    vertical-align: middle;
}

.forgot-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #1E293B;
    transition: color 0.2s ease;
}

.forgot-password-link:hover .forgot-text {
    color: #134074;
    text-decoration: underline;
}

.security-badge {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-badge i {
    color: #138808;
}

/* High Contrast Adjustments */
body.high-contrast .login-card {
    background: #121212 !important;
    border-color: #FFFF00 !important;
}

body.high-contrast .login-title,
body.high-contrast .login-field-label,
body.high-contrast .forgot-text {
    color: #FFFF00 !important;
}

body.high-contrast .login-input {
    background-color: #000000 !important;
    border-color: #FFFF00 !important;
    color: #FFFFFF !important;
}

/* Calculator Total Summary Table Row Styles */
.si-total-row,
tr.si-total-row {
    background: #0B2545 !important;
    color: #FFFFFF !important;
}

.si-total-row td,
tr.si-total-row td {
    color: #FFFFFF !important;
    font-weight: 800 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .login-card {
        padding: 28px 20px 24px 20px;
        border-radius: 12px;
    }
    .login-wrapper {
        padding: 30px 14px;
    }
}

/* Employee Services Modal Popup & 4-Icon Cards */
.emp-services-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.emp-services-modal-container {
    background: #ffffff;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    animation: empModalPop 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes empModalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.emp-services-modal-header {
    background: linear-gradient(135deg, #1E3C72 0%, #2A5298 100%);
    color: #ffffff;
    padding: 22px 28px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Page Section for Employee Services (Direct On Page Display) */
.emp-services-page-section {
    background: #ffffff;
    border-radius: 20px;
    margin: 25px 0 35px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
}

.emp-services-page-header {
    background: linear-gradient(135deg, #1E3C72 0%, #2A5298 100%);
    color: #ffffff;
    padding: 18px 24px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon {
    font-size: 32px;
    color: #FFD700;
}

.section-main-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.section-sub-title {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #E2E8F0;
    opacity: 0.9;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header-icon {
    font-size: 34px;
    color: #FFD700;
}

.modal-header-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.modal-header-sub {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #E2E8F0;
    opacity: 0.9;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 26px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.emp-services-grid {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .emp-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .emp-services-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }
}

.emp-4icon-card {
    text-decoration: none !important;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 180px;
    box-sizing: border-box;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.emp-4icon-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 1. GPF Card - Light Mint Emerald */
.card-gpf-theme {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1.5px solid #A7F3D0;
    border-left: 5px solid #10B981;
}
.card-gpf-theme:hover { border-color: #34D399; }
.card-gpf-theme .emp-card-icon-box {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.22);
}
.card-gpf-theme .emp-card-badge {
    background: #065F46;
    color: #FFFFFF;
}
.card-gpf-theme .emp-card-full-form {
    color: #064E3B;
}
.card-gpf-theme .emp-card-hindi {
    color: #047857;
}
.card-gpf-theme .emp-card-desc {
    color: #065F46;
}
.card-gpf-theme .emp-card-footer {
    border-top: 1px solid rgba(6, 95, 70, 0.15);
    color: #047857;
}

/* 2. SI Card - Light Sky Blue */
.card-si-theme {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1.5px solid #BFDBFE;
    border-left: 5px solid #2563EB;
}
.card-si-theme:hover { border-color: #3B82F6; }
.card-si-theme .emp-card-icon-box {
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}
.card-si-theme .emp-card-badge {
    background: #1E40AF;
    color: #FFFFFF;
}
.card-si-theme .emp-card-full-form {
    color: #1E3A8A;
}
.card-si-theme .emp-card-hindi {
    color: #1D4ED8;
}
.card-si-theme .emp-card-desc {
    color: #1E40AF;
}
.card-si-theme .emp-card-footer {
    border-top: 1px solid rgba(30, 64, 175, 0.15);
    color: #1D4ED8;
}

/* 3. NPS Card - Light Soft Purple */
.card-nps-theme {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border: 1.5px solid #DDD6FE;
    border-left: 5px solid #8B5CF6;
}
.card-nps-theme:hover { border-color: #A78BFA; }
.card-nps-theme .emp-card-icon-box {
    background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.22);
}
.card-nps-theme .emp-card-badge {
    background: #5B21B6;
    color: #FFFFFF;
}
.card-nps-theme .emp-card-full-form {
    color: #4C1D95;
}
.card-nps-theme .emp-card-hindi {
    color: #6D28D9;
}
.card-nps-theme .emp-card-desc {
    color: #5B21B6;
}
.card-nps-theme .emp-card-footer {
    border-top: 1px solid rgba(91, 33, 182, 0.15);
    color: #6D28D9;
}

/* 4. GPS Card - Light Amber Gold */
.card-gps-theme {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #FDE68A;
    border-left: 5px solid #F59E0B;
}
.card-gps-theme:hover { border-color: #FBBF24; }
.card-gps-theme .emp-card-icon-box {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.22);
}
.card-gps-theme .emp-card-badge {
    background: #92400E;
    color: #FFFFFF;
}
.card-gps-theme .emp-card-full-form {
    color: #78350F;
}
.card-gps-theme .emp-card-hindi {
    color: #B45309;
}
.card-gps-theme .emp-card-desc {
    color: #92400E;
}
.card-gps-theme .emp-card-footer {
    border-top: 1px solid rgba(146, 64, 14, 0.15);
    color: #B45309;
}

.emp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.emp-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.emp-card-badge {
    font-weight: 800;
    font-size: 11.5px;
    padding: 4px 12px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.emp-card-full-form {
    margin: 8px 0 2px 0;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.emp-card-hindi {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.emp-card-desc {
    font-size: 12px;
    margin: 0 0 10px 0;
    line-height: 1.35;
    font-weight: 500;
}

.emp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    font-size: 12.5px;
    font-weight: 800;
}

.emp-card-footer i {
    transition: transform 0.25s ease;
}

.emp-4icon-card:hover .emp-card-footer i {
    transform: translateX(6px);
}

/* ==========================================================================
   DOITC RAJASTHAN STYLE MOVING IMAGE SLIDER (ABOVE FOOTER)
   ========================================================================== */
.doitc-slider-panel {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #07192F 0%, #0B2545 60%, #134074 100%);
    border-top: 3px solid #38BDF8;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    margin-top: 40px;
    box-shadow: 0 -6px 25px rgba(11, 37, 69, 0.15), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.doitc-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: doitcMarquee 40s linear infinite;
    will-change: transform;
}

.doitc-slider-panel:hover .doitc-track {
    animation-play-state: paused;
}

@keyframes doitcMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.doitc-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.doitc-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 10px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    min-width: 225px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.doitc-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #38BDF8);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.doitc-item a:hover {
    border-color: #38BDF8;
    background: #FFFFFF;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

.doitc-item a:hover::before {
    opacity: 1;
}

.app-icon-wrap {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 1.5px solid #DBEAFE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.doitc-item a:hover .app-icon-wrap {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transform: scale(1.08) rotate(2deg);
}

.app-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.app-info-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
    white-space: nowrap;
}

.app-title-eng {
    font-size: 14px;
    font-weight: 800;
    color: #0B2545;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
}

.app-title-hin {
    font-size: 11.5px;
    font-weight: 600;
    color: #2563EB;
    line-height: 1.2;
    margin-top: 2px;
    font-family: 'Hind', sans-serif;
}

@media (max-width: 768px) {
    .doitc-slider-header {
        padding: 0 16px;
        margin-bottom: 10px;
    }
    .slider-title-main {
        font-size: 13.5px;
    }
    .slider-title-sub {
        display: none;
    }
    .slider-header-right {
        display: none;
    }
    .doitc-track {
        gap: 12px;
    }
    .doitc-item a {
        min-width: 175px;
        padding: 8px 14px;
    }
    .app-icon-wrap {
        width: 36px;
        height: 36px;
    }
    .app-title-eng {
        font-size: 12.5px;
    }
    .app-title-hin {
        font-size: 10px;
    }
}

/* ==========================================================================
   Anti-Copy & Content Protection Rules
   ========================================================================== */
body:not(.admin-body),
.rule-card, .rule-card *, 
.news-item, .news-item *, 
.scheme-card, .scheme-card *, 
.table-container, .table-container *, 
.detail-container, .detail-container *, 
.rule-section, .rule-section *, 
.rule-body-text, .rule-body-text *,
.rule-section-content, .rule-section-content *,
.rule-heading, .rule-heading *,
.rule-section-heading, .rule-section-heading *,
.description-content, .description-content *,
.description-content-normal, .description-content-normal *,
.chapter-box, .chapter-box *, 
.rule-desc, .rule-desc *,
.custom-scheme-table, .custom-scheme-table *,
.panel-data, .panel-data *,
.sidebar-list, .sidebar-list *,
.accordion-content, .accordion-content *,
.merged-content, .merged-content *,
.under_description, .under_description *,
.details-content-area, .details-content-area *,
.portal-content-protect, .portal-content-protect * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Ensure all form inputs, admin interfaces, rich text editors and editable elements remain fully selectable & editable */
input, textarea, select, button,
[contenteditable="true"], [contenteditable="true"] *,
.note-editor, .note-editor *,
.note-editable, .note-editable *,
.note-editing-area, .note-editing-area *,
.admin-card, .admin-card *,
.admin-container, .admin-container *,
.admin-form-group, .admin-form-group *,
.menu-update-page, .menu-update-page *,
.admin-input, .admin-select,
.header-search-input,
.login-input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* Anti-Copy Center Pop-Up Modal */
.anti-copy-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.anti-copy-popup-overlay.popup-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.anti-copy-popup-box {
    background: #FFFFFF !important;
    border-radius: 18px !important;
    max-width: 440px !important;
    width: 100% !important;
    padding: 30px 24px 24px 24px !important;
    text-align: center !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1.5px #E2E8F0 !important;
    transform: scale(0.9) translateY(15px) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    font-family: 'Hind', 'Inter', sans-serif !important;
}

.anti-copy-popup-overlay.popup-visible .anti-copy-popup-box {
    transform: scale(1) translateY(0) !important;
}

.anti-copy-popup-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
    color: #D97706 !important;
    font-size: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px auto !important;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2) !important;
}

.anti-copy-popup-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0B2545 !important;
    margin: 0 0 10px 0 !important;
}

.anti-copy-popup-msg {
    font-size: 16.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    line-height: 1.5 !important;
    margin: 0 0 22px 0 !important;
}

.anti-copy-popup-btn {
    background: linear-gradient(135deg, #0B2545 0%, #134074 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 25px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25) !important;
    transition: all 0.2s ease !important;
}

.anti-copy-popup-btn:hover {
    background: linear-gradient(135deg, #134074 0%, #1D4ED8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.35) !important;
}

/* Print Protection: Prevent copying via browser print preview / PDF save on content cards */
@media print {
    .rule-card, .news-item, .scheme-card, .detail-container, .description-content, .details-content-area, .rule-section-content {
        display: none !important;
    }
}

/* Description Content Tables Styling */
.table-responsive-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px 0 !important;
}

.table-responsive-wrapper table,
.rule-desc table,
.description-content table,
.details-content-area table,
.merged-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 12px 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    background-color: #ffffff !important;
}

.table-responsive-wrapper table th,
.table-responsive-wrapper table td,
.rule-desc table th,
.rule-desc table td,
.description-content table th,
.description-content table td,
.details-content-area table th,
.details-content-area table td,
.merged-content table th,
.merged-content table td {
    border: 1px solid #cbd5e1 !important;
    padding: 8px 12px !important;
    vertical-align: middle !important;
    word-break: break-word !important;
}

.table-responsive-wrapper table th,
.rule-desc table th,
.description-content table th,
.details-content-area table th,
.merged-content table th {
    background-color: #f1f5f9 !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}