/* =====================================================
   Responsive CSS — Mobile First & Universal Device System
   Naresh Online Center Bilaigarh
   ===================================================== */

/* ── Universal Base & Horizontal Scroll Prevention ── */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

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

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* ── Compact Desktop / Small Laptop (1025px - 1280px) ── */
@media (min-width: 1025px) and (max-width: 1280px) {
  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }
  .nav {
    gap: 4px;
  }
  .nav-link {
    padding: 6px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
  .btn-cta {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
}

/* ── Tablet & Small Laptops (max 1024px) ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero h2 { font-size: 2.1rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Nav Drawer on Tablet & Mobile */
  .header {
    height: 64px;
  }
  .header-inner {
    padding: 0 16px;
    height: 100%;
  }
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    box-shadow: 0 16px 36px rgba(15, 35, 71, 0.22);
    transform: translateY(-120%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    gap: 6px;
    border-bottom: 3px solid var(--orange, #FF6B35);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.dark-mode .nav {
    background: #1E293B;
    border-bottom-color: #38BDF8;
  }
  .nav.open { transform: translateY(0); }
  .nav-link {
    padding: 11px 14px;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 8px;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #F8FAFC;
    border-radius: 8px;
    margin-top: 4px;
    padding: 6px;
    display: none;
  }
  body.dark-mode .dropdown {
    background: #0F172A;
  }
  .nav-item.open .dropdown {
    display: block;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
  }
  body.dark-mode .nav-item.open .dropdown {
    border-color: #334155;
  }
  .hamburger { display: flex; }
  .btn-cta { display: none; }
  .btn-admin-header { padding: 5px 9px; font-size: 0.74rem; }
}

/* ── Mobile & Small Screens (max 768px) ── */
@media (max-width: 768px) {

  /* 1. Fully hide bulky topbar on mobile to eliminate header clutter */
  .topbar {
    display: none !important;
  }

  /* 2. Compact, single-line statutory disclaimer so real content is immediately visible */
  .gov-disclaimer-strip {
    padding: 4px 10px !important;
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    min-height: unset !important;
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: none !important;
  }
  body.dark-mode .gov-disclaimer-strip {
    background: #1E293B !important;
    color: #FCD34D !important;
  }
  .gov-disclaimer-strip strong {
    display: none !important; /* Hides bulky prefix 'महत्वपूर्ण सूचना (Statutory Disclaimer):' */
  }
  .gov-disclaimer-strip i {
    margin-right: 4px !important;
  }

  /* 3. Hide intrusive social proof toaster popup on mobile */
  .live-toast-widget,
  #liveActivityToaster {
    display: none !important;
  }

  /* 4. Hide redundant decorative badges & stickers on mobile */
  .badge-float-anim,
  .hero-badge-pill-extra,
  .laplap-glow-extra,
  .dot-laplap-large {
    display: none !important;
  }

  /* 5. Mobile Header, Logo & Hamburger Ergonomics */
  .header {
    height: 56px !important;
    min-height: 56px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(15, 35, 71, 0.06) !important;
  }
  body.dark-mode .header {
    background: rgba(15, 23, 42, 0.96) !important;
    border-bottom-color: rgba(51, 65, 85, 0.8) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  }
  .header-inner {
    padding: 0 12px !important;
    height: 100% !important;
    min-height: 56px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .logo {
    gap: 8px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: calc(100vw - 115px) !important;
    text-decoration: none !important;
  }
  .logo-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15) !important;
  }
  .logo-text {
    min-width: 0 !important;
  }
  .logo-text h1 {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: var(--blue-dark, #0F2347) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.dark-mode .logo-text h1 {
    color: #FFFFFF !important;
  }
  .logo-text p {
    display: none !important;
  }

  /* Header Right Actions */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .btn-cta {
    display: none !important;
  }
  .btn-admin-header {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    min-height: 34px !important;
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
    text-decoration: none !important;
  }
  body.dark-mode .btn-admin-header {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #E2E8F0 !important;
  }
  .btn-admin-header i {
    color: #2563EB !important;
  }
  body.dark-mode .btn-admin-header i {
    color: #38BDF8 !important;
  }

  /* Hamburger Touch Target */
  .hamburger {
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    cursor: pointer !important;
    padding: 0 !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
  }
  body.dark-mode .hamburger {
    background: #1E293B !important;
    border-color: #334155 !important;
  }
  .hamburger span {
    background: #0F2347 !important;
    width: 19px !important;
    height: 2px !important;
    border-radius: 2px !important;
    transition: all 0.25s ease !important;
    display: block !important;
  }
  body.dark-mode .hamburger span {
    background: #FFFFFF !important;
  }
  .hamburger.active span:nth-child(1),
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px) !important;
  }
  .hamburger.active span:nth-child(2),
  .hamburger.open span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0.2) !important;
  }
  .hamburger.active span:nth-child(3),
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px) !important;
  }

  /* Mobile Drawer Menu */
  .nav {
    top: 56px !important;
    max-height: calc(100vh - 56px) !important;
    border-radius: 0 0 16px 16px !important;
    padding: 12px 14px 24px !important;
    box-shadow: 0 16px 36px rgba(15, 35, 71, 0.25) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .nav-link {
    padding: 10px 12px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .nav-link:hover, .nav-link.active {
    background: #EFF6FF !important;
    color: #2563EB !important;
  }
  body.dark-mode .nav-link:hover, body.dark-mode .nav-link.active {
    background: #1E3A5F !important;
    color: #38BDF8 !important;
  }

  /* Mobile Dropdown Submenus */
  .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #F8FAFC !important;
    border-radius: 10px !important;
    margin: 4px 0 6px 0 !important;
    padding: 6px !important;
    display: none !important;
    grid-template-columns: 1fr !important;
  }
  .nav-item.open .dropdown {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    border: 1px solid #E2E8F0 !important;
  }
  body.dark-mode .dropdown {
    background: #0B132B !important;
  }
  body.dark-mode .nav-item.open .dropdown {
    border-color: #1E293B !important;
  }
  .dropdown a {
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #334155 !important;
    text-decoration: none !important;
  }
  body.dark-mode .dropdown a {
    color: #CBD5E1 !important;
  }
  .dropdown a:hover, .dropdown a:active {
    background: #EFF6FF !important;
    color: #2563EB !important;
  }
  body.dark-mode .dropdown a:hover {
    background: #1E293B !important;
    color: #38BDF8 !important;
  }

  /* 3. Hero Sections Across All Pages */
  .hero, .pt-hero-section, .yindex-hero, .nj-hero,
  .ap-hero, .dept-hero, .sv-hero, .tools-hero, .ct-hero, .hub-hero {
    padding: 34px 16px 46px !important;
  }
  .hero h1, .hero-title, .hero h2,
  .pt-hero-title, .yindex-hero h1, .nj-hero h1,
  .ap-hero h1, .dept-hero h1, .sv-hero h1, .tools-hero h1, .ct-hero h1 {
    font-size: 1.55rem !important;
    line-height: 1.28 !important;
    margin: 0 0 8px !important;
  }
  .hero-desc, .pt-hero-subtitle, .yindex-hero p, .nj-hero p,
  .ap-hero p, .dept-hero p, .sv-hero p, .tools-hero p, .ct-hero p {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    margin: 0 auto 18px !important;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-btns a {
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .stat-item {
    padding: 8px 10px;
  }
  .stat-num {
    font-size: 1.25rem;
  }

  /* 4. Search Bars (100% Width & Touch Friendly) */
  .search-container, .pt-search-wrap, .yojana-search-box,
  .ap-search-box, .dept-search-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px auto 0 !important;
  }
  .search-input, .pt-search-input, .yojana-search-input,
  .ap-search-input, .dept-search-box input {
    font-size: 16px !important; /* CRITICAL: Prevents unwanted iOS Safari zoom */
    padding: 11px 14px 11px 40px !important;
    width: 100% !important;
  }

  /* 5. Filter Bars & Category Tabs (Smooth Horizontal Swipe) */
  .filter-bar, .pt-filter-section, .nj-filter, .sv-filter {
    padding: 10px 12px !important;
    position: sticky !important;
    top: 64px !important;
  }
  .filter-inner, .pt-filter-tabs, .nj-filter-inner,
  .sv-filter-inner, .dept-pills, .yojana-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .filter-inner::-webkit-scrollbar,
  .pt-filter-tabs::-webkit-scrollbar,
  .nj-filter-inner::-webkit-scrollbar,
  .sv-filter-inner::-webkit-scrollbar,
  .dept-pills::-webkit-scrollbar,
  .yojana-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .filter-btn, .pt-filter-btn, .nf-btn,
  .svf-btn, .dept-pill, .tab-btn {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* 6. Grids (Convert to Single Column with Optimal Touch Padding) */
  .services-grid, .pt-grid, .pt-quick-grid, .yindex-grid,
  .naukri-grid, .dept-grid, .tool-grid-2, .team-grid,
  .hub-grid, .quick12-grid, .pt-safety-grid, .dept-stat-grid,
  .reviews-grid, .steps-grid, .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* 7. Card Layout & Ergonomics */
  .service-card, .pt-card, .pt-qcard, .yi-card,
  .job-card, .sv-card, .sc-card, .dept-card,
  .hub-card, .tool-section-card, .owner-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }
  .pt-portal-name, .sc-card-title, .sv-card-title,
  .job-title, .hub-title, .dept-card-head h3 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }
  .pt-portal-desc, .sc-card-body p, .job-desc,
  .hub-desc, .dept-card-body p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  /* 8. Action Buttons (Google Touch Target 42px+) */
  .pt-card-footer, .sc-card-footer, .sv-card-footer,
  .dept-card-footer, .job-actions, .pt-qcard-actions {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin-top: 12px !important;
  }
  .pt-btn, .sc-btn, .sv-book-btn, .job-apply-btn,
  .job-notify-btn, .dept-btn-action, .pt-qbtn-direct, .pt-qbtn-help {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
  }
  .sc-btn-wa, .sv-book-btn.wa {
    flex: 0 0 44px !important;
  }

  /* 9. Data Tables (Zero Distortion, Smooth Horizontal Touch Swipe) */
  .scheme-table-wrap, .price-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
  }
  .scheme-table, .price-table table {
    min-width: 540px !important;
    width: 100% !important;
  }
  .scheme-table th, .scheme-table td,
  .price-table th, .price-table td {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
  }
  .scheme-table td:last-child,
  .price-table td:last-child {
    white-space: nowrap !important;
  }

  /* 10. Unified Bottom Dock & Collision Prevention */
  .mobile-bottom-nav,
  .sticky-bar,
  .sticky-nj,
  .sticky-sv,
  .portal-sticky-bottom,
  .sticky-bottom-bar,
  .bk-sticky-bar,
  .so-sticky-bar,
  .itr-bottom-bar,
  .ap-bottom-bar,
  .prv-bottom-bar,
  .sch-bottom-bar,
  .pmk-bottom-bar,
  .sticky-order-bar,
  .floating-actions,
  .float-btns,
  [class*="-bottom-bar"],
  [class*="bottom-bar"]:not(.notice-container) {
    display: none !important; /* Removes duplicate overlapping bars and redundant floating buttons */
  }

  /* Single clean glassmorphic floating dock on mobile */
  .dynamic-dock {
    bottom: 10px !important;
    padding: 5px 12px !important;
    gap: 7px !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 28px !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
  }
  .dock-item {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }
  .dock-tooltip {
    display: none !important;
  }

  body {
    padding-bottom: 74px !important;
  }

  /* 11. Banners & Section Dividers */
  .pt-server-status-banner, .pt-dept-hub-banner, .aeps-banner, .alert-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 14px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }
  .pt-ssb-left, .pt-dhb-left {
    width: 100% !important;
    gap: 10px !important;
  }
  .pt-ssb-btn, .pt-dhb-btn, .alert-box a {
    width: 100% !important;
    justify-content: center !important;
  }

  /* 12. Mobile Footer Redesign & Ergonomics */
  .footer {
    padding: 26px 14px 95px !important; /* Safe clearance for floating dock */
    background: #0F2347 !important;
  }
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 14px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-bottom: 4px !important;
  }
  .footer-brand p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    max-width: 340px !important;
    margin: 6px auto 12px !important;
    color: #CBD5E1 !important;
  }
  .footer-socials {
    justify-content: center !important;
    gap: 10px !important;
  }
  .footer-col h5 {
    font-size: 0.86rem !important;
    margin-bottom: 8px !important;
    padding-bottom: 3px !important;
    color: #FFFFFF !important;
  }
  .footer-col ul li {
    margin-bottom: 4px !important;
  }
  .footer-col ul li a {
    font-size: 0.8rem !important;
    color: #E2E8F0 !important;
    line-height: 1.4 !important;
    padding: 3px 0 !important;
  }
  .footer-col:last-child {
    grid-column: 1 / -1 !important; /* Full width quick contact on mobile */
    margin-top: 6px !important;
  }
  .footer-col:last-child ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .footer-col:last-child ul li {
    margin-bottom: 0 !important;
  }
  .footer-col:last-child ul li a {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.78rem !important;
    color: #FFFFFF !important;
  }

  /* Footer Compliance & Disclaimer Box */
  .footer-disclaimer-box {
    flex-direction: column !important;
    text-align: center !important;
    padding: 10px 12px !important;
    margin: 14px auto 10px !important;
    border-radius: 12px !important;
    gap: 6px !important;
  }
  .footer-disclaimer-text h6 {
    justify-content: center !important;
    font-size: 0.8rem !important;
  }
  .footer-disclaimer-text p {
    font-size: 0.74rem !important;
    line-height: 1.45 !important;
  }

  /* Legal Navigation & Bottom Copyright */
  .footer-legal-nav {
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
  }
  .footer-legal-nav a {
    font-size: 0.76rem !important;
    color: #94A3B8 !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .footer-bottom p {
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
    color: #94A3B8 !important;
  }

  /* Compact Footer Variant (.footer-compact) Mobile Redesign */
  .footer-compact {
    padding: 24px 14px 105px !important;
    background: #0B192C !important;
    border-top: 3px solid #FF6B35 !important;
    color: #CBD5E1 !important;
    width: 100% !important;
  }
  body.dark-mode .footer-compact {
    background: #060D17 !important;
    border-top-color: #38BDF8 !important;
  }
  .footer-compact-inner {
    max-width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .fc-top {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .fc-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }
  .fc-logo {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
  }
  .fc-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin: 0 !important;
  }
  .fc-sub {
    font-size: 0.76rem !important;
    line-height: 1.48 !important;
    color: #94A3B8 !important;
    max-width: 350px !important;
    margin: 2px auto 0 !important;
  }
  .fc-contact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 8px 0 !important;
  }
  .fc-contact a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 8px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-align: center !important;
    min-height: 42px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
  }
  .fc-contact a:first-child {
    background: #1E3A8A !important;
    color: #FFFFFF !important;
  }
  .fc-contact a:nth-child(2) {
    background: #0F2347 !important;
    color: #93C5FD !important;
    border: 1px solid #1E3A8A !important;
  }
  .fc-contact a:nth-child(3) {
    background: #16A34A !important;
    color: #FFFFFF !important;
  }
  .fc-contact a:nth-child(4) {
    background: #EA580C !important;
    color: #FFFFFF !important;
  }
  .fc-links-sep {
    display: none !important;
  }
  .fc-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 10px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .fc-links a {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 6px 11px !important;
    border-radius: 20px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #CBD5E1 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    transition: all 0.18s ease !important;
  }
  .fc-links a:hover,
  .fc-links a:active {
    background: #2563EB !important;
    color: #FFFFFF !important;
    border-color: #3B82F6 !important;
  }
  .fc-disclaimer {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 0.72rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
    color: #FCD34D !important;
    margin: 4px 0 !important;
  }
  .fc-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding-top: 4px !important;
  }
  .fc-bottom p {
    font-size: 0.74rem !important;
    color: #94A3B8 !important;
    margin: 0 !important;
  }
  .fc-legal {
    justify-content: center !important;
    gap: 8px 12px !important;
    flex-wrap: wrap !important;
  }
  .fc-legal a {
    font-size: 0.74rem !important;
    color: #94A3B8 !important;
    text-decoration: none !important;
    padding: 4px 6px !important;
  }
  .fc-legal a:hover {
    color: #FFFFFF !important;
  }

  /* 13. Notice Bar */
  .notice-bar {
    height: 40px !important;
    padding: 3px 8px !important;
  }
  .notice-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    margin-right: 6px !important;
  }
  .marquee-item {
    font-size: 0.78rem !important;
  }
}

/* ── Extra Small Mobile Screens (max 480px) ── */
@media (max-width: 480px) {
  .topbar {
    display: none !important; /* Fully streamline top bar for clean header */
  }

  .header {
    height: 56px !important;
  }
  .header-inner {
    padding: 0 10px !important;
  }
  .btn-admin-header {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    justify-content: center !important;
  }
  .btn-admin-header span {
    display: none !important;
  }
  .btn-admin-header i {
    font-size: 0.85rem !important;
    margin: 0 !important;
  }
  .nav {
    top: 56px !important;
    max-height: calc(100vh - 56px) !important;
  }

  .hero h1, .hero-title, .hero h2,
  .pt-hero-title, .yindex-hero h1, .nj-hero h1,
  .ap-hero h1, .dept-hero h1, .sv-hero h1, .tools-hero h1 {
    font-size: 1.4rem !important;
  }

  .section-title {
    font-size: 1.25rem !important;
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .counter-num {
    font-size: 1.6rem !important;
  }

  .mbn-link {
    font-size: 0.7rem !important;
  }
  .mbn-link i {
    font-size: 1.1rem !important;
  }
}

/* ── Compact Smartphones (max 380px e.g. iPhone SE, JioPhone) ── */
@media (max-width: 380px) {
  .header-inner {
    padding: 0 8px !important;
  }
  .logo-text h1 {
    font-size: 0.88rem !important;
  }
  .logo-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
  }

  .hero h1, .hero-title, .pt-hero-title, .yindex-hero h1 {
    font-size: 1.28rem !important;
  }

  .pt-card-footer, .sc-card-footer, .sv-card-footer {
    flex-direction: column !important;
  }
  .pt-btn, .sc-btn, .sv-book-btn {
    width: 100% !important;
  }

  .mobile-bottom-nav {
    padding: 6px 4px !important;
  }
  .mbn-link {
    font-size: 0.65rem !important;
    gap: 2px !important;
  }
  .mbn-link i {
    font-size: 0.95rem !important;
  }
}
