/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {}

/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {}

/* Mobile Layout: 320px. */
@media only screen and (max-width: 991px) {
  .slicknav_menu {
    display: block;
  }

  .menu-bar {
    position: relative;
    left: 0;
    top: 0;
  }
  .nseye-sidemenu {
    padding: 20px;
  }
  .npaper.search-box {
    margin-bottom: 7px;
  }

  h1 {
    font-size: 35px;
  }

  h1.page-title {
    font-size: 20px;
  }

  h2 {
    font-size: 28px;
  }

  nav#site-navigation {
    display: none;
  }

.ht-row,
.hd-middle-row,
.col-topbar-row {
  flex-direction: column;
}
.web-date.ht-date{
  margin: 0 0 10px 0;
  min-width: auto;
}

  /* ===================================
     Enhanced Mobile Menu Styles
     =================================== */

  /* Body scroll lock when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* Mobile Menu Bar */
  .mobile-menu-bar {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    display: block;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 99999999;
  }

  /* Mobile Menu Wrapper */
  .mobile-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
  }

  .mobile-menu-bar button#mmenu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100000;
  }

  .mobile-menu-bar button#mmenu-btn:hover,
  .mobile-menu-bar button#mmenu-btn:focus {
    background: var(--color-primary2);
    transform: scale(1.05);
    outline: 2px solid var(--white);
    outline-offset: 2px;
  }

  /* Mobile Menu Icon Styles */
  .mobile-menu-bar button svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    display: block;
  }

  .mobile-menu-bar button i {
    font-size: 20px;
    color: var(--white);
  }

  .mobile-menu-bar button .mopen,
  .mobile-menu-bar button .mclose {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-bar button .mclose {
    display: none;
  }

  .mobile-menu-bar button[aria-expanded="true"] .mopen {
    display: none;
  }

  .mobile-menu-bar button[aria-expanded="true"] .mclose {
    display: flex;
  }

  .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
  }

  /* Mobile Menu Overlay - separate element */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99998;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Admin bar adjustment */
  .admin-bar .mobile-menu-overlay,
  .admin-bar nav#mobile-navigation {
    top: 32px;
  }

  @media screen and (max-width: 782px) {
    .admin-bar .mobile-menu-overlay,
    .admin-bar nav#mobile-navigation {
      top: 46px;
    }
  }

  /* Mobile Navigation Container */
  nav#mobile-navigation {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(---light-body, #fcfcfc);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  nav#mobile-navigation.menu-active {
    right: 0;
  }

  /* Menu Content */
  .wsm-menu {
    padding: 5px 0;
  }

  .wsm-menu nav div>ul {
    box-shadow: none;
    padding: 15px;
    margin-bottom: 0;
    background: transparent;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    z-index: auto;
    visibility: visible;
    opacity: 1;
    min-width: auto;
  }

  .wsm-menu nav.menu-active ul {
    top: auto;
  }

  .wsm-menu div>ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .wsm-menu ul li {
    margin-bottom: 2px;
  }

  .wsm-menu ul li a {
    padding: 14px 18px;
    text-decoration: none;
    border-bottom: 1px solid var(--color-eded);
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-heding);
    transition: all 0.3s ease;
    border-radius: 6px;
  }

  .wsm-menu ul li a:hover,
  .wsm-menu ul li a:focus {
    background: var(--color-eded);
    color: var(--color-primary);
    padding-left: 24px;
  }

  .wsm-menu ul li a:before {
    display: none;
  }

  /* Mobile Navigation List */
  .mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Menu Items with Children */
  .menu-item-has-children {
    display: flex;
    flex-flow: row wrap;
    position: relative;
  }

  .menu-item-has-children>a {
    width: calc(100% - 50px);
    flex: 1;
  }

  .menu-item-has-children .sub-menu {
    display: block;
    width: 100%;
  }

  /* Submenu Toggle Button */
  .submenu-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-eded);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px 0 2px 4px;
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus {
    background: var(--color-primary);
    color: var(--white);
    outline: none;
  }

  .submenu-toggle:focus {
    box-shadow: 0 0 0 3px rgba(236, 172, 46, 0.4);
  }

  .submenu-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
  }

  /* Legacy icon support */
  .menu-item-has-children>i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-eded);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px 0 2px 4px;
  }

  .menu-item-has-children>i:hover,
  .menu-item-has-children>i:focus {
    background: var(--color-primary);
    color: var(--white);
  }

  span.mclose {
    display: none;
  }

  /* Submenu Styles */
  #wsm-menu ul ul.sub-menu {
    visibility: hidden;
    max-height: 0;
    height: auto;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    margin-top: 4px;
  }

  #wsm-menu ul .menu-item-has-children.clicked>ul.sub-menu,
  #wsm-menu ul .menu-item-has-children.focus>ul.sub-menu {
    max-height: 1000px;
    visibility: visible;
    opacity: 1;
    height: auto;
    padding: 10px 10px 10px 15px;
  }

  /* Submenu Links */
  #wsm-menu ul ul.sub-menu li a {
    font-size: 14px;
    padding: 12px 15px;
    border-left: 3px solid transparent;
  }

  #wsm-menu ul ul.sub-menu li a:hover,
  #wsm-menu ul ul.sub-menu li a:focus {
    border-left-color: var(--color-primary);
    background: var(--color-eded);
  }
}

/* Wide Mobile Layout: 480px. */
@media only screen and (max-width: 767px) {
  #nseye-catmenu::-webkit-scrollbar, #nseye-catmenu::-webkit-scrollbar-thumb, #nseye-catmenu::-webkit-scrollbar-track{
    opacity: 1;
    visibility: visible;
  }
    .nsy-ss-right {
      flex-direction: column;
    }
  
    .nsy-ss-right .npaper.search-box {
      margin-bottom: 20px;
    }
  
    .nsy-mlogo {
      text-align: center;
      margin-bottom: 10px;
    }
    .nseye-sidemenu{
      padding: 15px;
    }
  h1 {
    font-size: 35px;
  }

  h1.page-title {
    font-size: 24px;
  }

  h2 {
    font-size: 30px;
  }
    .nsycol-topbar {
      text-align: center;
    }
  .menubar-content h1.site-title {
    font-size: 24px;
  }
    .header .breaking-news, 
    .nsycol-topbar {
      flex-direction: column;
    }
    .footer-main.default-footer {
        text-align: center;
    }
}

/* Wide Mobile Layout: 480px. */
@media only screen and (max-width: 479px) {
  .header-search-form {
    right: 0;
  }
}

/* ===================================
   Mobile-First PWA Features
   =================================== */

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0d1013 0%, #1a1d21 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.splash-screen.splash-fade-out {
  opacity: 0;
  transform: scale(1.1);
}

.splash-content {
  text-align: center;
  color: #fff;
}

.splash-logo {
  margin-bottom: 20px;
}

.splash-logo svg {
  stroke: var(--color-primary, #ecac2e);
  animation: splash-pulse 2s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.splash-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  font-family: 'Frank Ruhl Libre', Georgia, serif;
}

.splash-loader {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.splash-loader-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary, #ecac2e);
  border-radius: 2px;
  animation: splash-loading 2s ease-in-out forwards;
}

@keyframes splash-loading {
  0% { width: 0; }
  100% { width: 100%; }
}

body.splash-active {
  overflow: hidden;
}

/* Pull to Refresh */
.pull-to-refresh {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  opacity: 0;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.admin-bar .pull-to-refresh {
  top: -28px;
}

.ptr-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary, #ecac2e);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
}

.ptr-spinner {
  transition: transform 0.3s ease;
}

.pull-to-refresh.ptr-ready .ptr-spinner {
  transform: rotate(180deg);
}

.pull-to-refresh.ptr-refreshing .ptr-spinner {
  animation: ptr-spin 1s linear infinite;
}

@keyframes ptr-spin {
  100% { transform: rotate(360deg); }
}

/* Swipe Navigation Hints */
.swipe-hints {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 99998;
}

.swipe-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.swipe-hint-left {
  left: 0;
  border-radius: 0 10px 10px 0;
  transform: translateY(-50%) translateX(-100%);
}

.swipe-hint-right {
  right: 0;
  border-radius: 10px 0 0 10px;
  transform: translateY(-50%) translateX(100%);
}

.swipe-hint.swipe-active {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Page Transition */
body.page-transitioning {
  overflow: hidden;
}

body.page-transitioning::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999999;
  animation: page-fade 0.3s ease forwards;
}

@keyframes page-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Bottom Navigation */
.bottom-navigation {
  display: none;
}

@media only screen and (max-width: 991px) {
  .bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99997;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }

  .bottom-navigation.nav-hidden {
    transform: translateY(100%);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    color: #6c757d;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item:focus,
  .bottom-nav-item.active {
    color: var(--color-primary, #ecac2e);
  }

  .bottom-nav-item.active svg,
  .bottom-nav-item:hover svg {
    transform: scale(1.1);
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-primary, #ecac2e);
    border-radius: 0 0 3px 3px;
  }

  /* Bookmark count badge */
  .bookmark-count {
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  /* Bottom Panels */
  .bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow: hidden;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
  }

  .bottom-panel.panel-open {
    transform: translateY(0);
  }

  .bottom-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
  }

  .bottom-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .bottom-panel-close {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #333;
    padding: 0;
  }

  .bottom-panel-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
  }

  .bottom-panel-close:hover {
    background: #eee;
  }

  .bottom-panel-content {
    padding: 20px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Search Panel */
  #bottom-search-panel .search-form {
    display: flex;
    gap: 10px;
  }

  #bottom-search-panel .search-field {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s ease;
  }

  #bottom-search-panel .search-field:focus {
    border-color: var(--color-primary, #ecac2e);
    outline: none;
  }

  #bottom-search-panel .search-submit {
    padding: 14px 24px;
    background: var(--color-primary, #ecac2e);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  #bottom-search-panel .search-submit:hover {
    background: var(--color-primary2, #c48404);
  }

  /* Categories Panel */
  .bottom-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }


    .bottom-categories-list li {
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-flow: row wrap;
    }
  .bottom-categories-list li:last-child {
    border-bottom: none;
  }

  .bottom-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .bottom-categories-list a:hover {
    color: var(--color-primary, #ecac2e);
  }

  /* Bookmarks Panel */
  .bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .bookmark-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f9f9fc;
    border-radius: 10px;
    transition: background 0.2s ease;
  }

  .bookmark-item:hover {
    background: #f0f0f5;
  }

  .bookmark-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
  }

  .bookmark-link:hover {
    color: var(--color-primary, #ecac2e);
  }

  .bookmark-remove {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
  }

  .bookmark-remove:hover {
    color: #dc3545;
  }

  .no-bookmarks {
    text-align: center;
    color: #6c757d;
    padding: 30px 20px;
    font-size: 14px;
    line-height: 1.6;
  }

  /* Bottom Panel Overlay */
  .bottom-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .bottom-panel-overlay.overlay-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Bookmark Buttons on Articles */
  .bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
    color: #333;
  }

  .bookmark-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .bookmark-btn.bookmarked {
    color: var(--color-primary, #ecac2e);
    background: #fff;
    padding: 0;
  }

  /* Add padding to body for bottom nav */
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  body.bottom-panel-open {
    overflow: hidden;
  }
}

/* Dark Mode Support */
body.nse-night .bottom-navigation {
  background: #1a1d21;
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.nse-night .bottom-nav-item {
  color: #999;
}

body.nse-night .bottom-nav-item:hover,
body.nse-night .bottom-nav-item.active {
  color: var(--color-primary, #ecac2e);
}

body.nse-night .bottom-panel {
  background: #1a1d21;
}

body.nse-night .bottom-panel-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.nse-night .bottom-panel-header h3 {
  color: #fff;
}

body.nse-night .bottom-panel-close {
  background: #333;
  color: #fff;
}

body.nse-night .bookmark-item {
  background: #252830;
}

body.nse-night .bookmark-link {
  color: #fff;
}

body.nse-night .bottom-categories-list a {
  color: #fff;
}

body.nse-night .bottom-categories-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.nse-night #bottom-search-panel .search-field {
  background: #252830;
  border-color: #333;
  color: #fff;
}

body.nse-night .bookmark-btn {
  background: rgba(26, 29, 33, 0.95);
  color: #fff;
}