
body {
  font-family: 'Poppins', sans-serif;
  background: #f0f4ff ;
  margin: 0;
  padding: 20px;
  color: #333;
}


/* Base: mobile-first (stacked layout) */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  display: block;          /* stacked by default */
}

/* Content box */
.content {
  background: #fff;
  padding: 1px;
  border-radius: 8px;
  min-height: 600px;
  width: 100%;             /* no need for !important in most cases */
}

/* Sidebar (if you have one) */
.sidebar {
  width: 100%;
}

/* Desktop / large screens: 2-column grid */
@media (min-width: 992px) {
  .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px; /* left flexible, right fixed */
    gap: 20px;
  }
}

/* Mobile layout fix */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr !important; /* Only 1 column */
  }

  .content {
    width: 100% !important; /* Take full width */
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin: 20px;
}

.widget h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}

/* Show sidebar on desktop */
@media (min-width: 769px) {
  .sidebar {
    display: block;
  }
}

/* Sticky for first widget */
.sticky {
  position: sticky;
  top: 400px;
  z-index: 10;
}

.ad-box {
  height: 200px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #bbb;
}

footer {
  text-align: center;
  background: #000;
  color: #fff;
  padding: 15px;
  margin-top: 30px;
}

.ipo-footer {
  background: #111827;
  color: #f9fafb;
  font-family: Arial, sans-serif;
  padding: 40px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer-about h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 6px 0;
}

.footer-links ul li a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #fbbf24;
}

.footer-subscribe form {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.footer-subscribe input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 4px;
}

.footer-subscribe button {
  background: #fbbf24;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.footer-subscribe button:hover {
  background: #f59e0b;
}

.footer-social a img {
  width: 28px;
  margin-right: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #374151;
  padding-top: 10px;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* CSS for button */
.button-73 {
  appearance: none;
  background-color: #FFFFFF;
  border-radius: 40em;
  border-style: none;
  box-shadow: #ADCFFF 0 -12px 6px inset;
  box-sizing: border-box;
  color: #000000;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, sans-serif;
  font-size: 1rem; /* Mobile base size */
  font-weight: 600;
  letter-spacing: -0.24px;
  margin: 0 auto; /* Center horizontally */
  outline: none;
  padding: 0.75rem 1.5rem; /* Balanced for mobile */
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap; /* Prevents text breaking into two lines */
}

.button-73:hover {
  background-color: #FFC229;
  box-shadow: #FF6314 0 -6px 8px inset;
  transform: scale(1.05);
}

.button-73:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .button-73 {
    font-size: 1.2rem; /* Slightly larger on PC */
    padding: 1rem 2rem; /* More padding for desktop */
  }
}

/* Optional: Center in the page */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.04);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(11, 99, 165, 0.12);
}

.brand-text {
  font-weight: 700;
  color: #05a56a;
  margin-left: 10px;
  font-size: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  padding: 8px 10px;
  text-decoration: none;
  color: #0b63a5;
  border-radius: 8px;
  transition: all .18s ease;
}

.nav-links a:hover {
  background: rgba(11, 99, 165, 0.06);
  transform: translateY(-2px);
}

.menu-button-container {
  display: none;
  cursor: pointer;
}

.menu-button,
.menu-button:before,
.menu-button:after {
  width: 28px;
  height: 3px;
  background: #0b63a5;
  display: block;
  border-radius: 3px;
  transition: all .2s;
}

.menu-button:before,
.menu-button:after {
  content: "";
  position: relative;
  top: -8px;
}

.menu-button:after {
  top: 5px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 220px;
  list-style: none;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(10, 10, 10, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all .18s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.dropdown-menu li {
  padding: 6px 0;
}

.dropdown-menu a {
  display: block;
  color: #074a83;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(5, 165, 106, 0.06);
}

/* Banner slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 8px 30px rgba(10, 10, 10, 0.05);
}

.slides {
  display: flex;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  width: 300%;
}

.slide {
  min-width: 100%;
  display: block;
}

.slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.slider-nav {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: .8;
}

.dot.active {
  background: #05a56a;
  transform: scale(1.1);
}

/* Responsive nav */
@media (max-width: 860px) {
  .nav-right {
    display: none;
  }

  .menu-button-container {
    display: block;
  }

  #menu-toggle {
    display: none;
  }

  #menu-toggle:checked + .menu-button-container + .nav-right {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(10, 10, 10, 0.08);
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .logo {
    height: 42px;
    width: 42px;
  }

  .slide img {
    height: 220px;
  }
}

/* Keep dropdown open when hovering over the menu itself */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* GENERAL HEADING & FILTERS */
h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #0077cc;
}

.filters {
  text-align: center;
  margin-bottom: 20px;
}

/* FILTER BUTTONS — MATCH NAV COLOR */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1f3c88, #27459e);
  color: #ffffff;
  font-weight: 600;
  margin: 6px;
  transition: all 0.25s ease;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  text-decoration: none;
}

/* Hover — lighter */
.filter-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #27459e, #2f54b6);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

/* ACTIVE STATE — GREEN HIGHLIGHT (like your nav "LIVE" badge style) */
.filter-btn.active {
  background: linear-gradient(135deg, #0fa67a, #16c79a);
  box-shadow: 0 6px 14px rgba(22, 199, 154, 0.3);
  color: #fff;
}


.search-container {
  text-align: center;
  margin-bottom: 15px;
}

.search-box {
  padding: 10px 15px;
  width: 250px;
  border-radius: 25px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 14px;
}

.clear-btn {
  padding: 8px 12px;
  margin-left: 5px;
  border-radius: 25px;
  border: none;
  background: #ff5f6d;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.clear-btn:hover {
  background: #e63946;
}

/* DEFAULT TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
}

thead {
  background: #4facfe;
  color: white;
}

th,
td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #44c51d;
}

tr:hover {
  background: #bbecbf;
}

/* BADGES */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.U {
  background: #ff9800;
}

.O {
  background: #4caf50;
}

.CT {
  background: #ff5722;
}

.AT {
  background: #5ff6f4;
}

.C {
  background: #9e9e9e;
}

.L {
  background: #2196f3;
}

.Allotted {
  background: #673ab7;
}

.Fire {
  background: #f9dfcf;
}

.Mainboard {
  background: #05a56a;
}

.SME {
  background: #2fa9d2;
}

/* FLEX HERO SECTIONS */
.iposme {
  display: flex;
}

.hero {
  display: flex;
}

.flex1,
.flex2,
.flex3,
.flex4 {
  margin: 10px;
}

/* IPO HEADER / HERO (DETAIL PAGES) */
.ipo-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  border-bottom: 2px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.ipo-logo {
  width: 160px;
  height: auto;
}

.ipo-title h2 {
  font-size: 26px;
  margin: 0;
}

.sub-text {
  color: #1a9d3d;
  font-weight: bold;
  font-size: 16px;
  margin-top: -4px;
}

.ipo-content p {
  font-size: 17px;
  margin-bottom: 14px;
}

/* Mobile adjustments */
.ipo-header {
  flex-direction: column;
  text-align: center;
}

.ipo-logo {
  width: 180px;
}

.ipo-title h2 {
  font-size: 22px;
}

.ipo-content p {
  font-size: 16px;
}

/* TOC improved styles */
.toc-improved {
  background: linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
  border: 1px solid rgba(0, 119, 204, 0.12);
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(3, 33, 76, 0.06);
  margin: 18px 0;
  font-family: inherit;
}

.toc-improved .toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.toc-improved .toc-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0077cc;
  box-shadow: 0 0 0 6px rgba(0, 119, 204, 0.06);
}

.toc-improved .toc-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #023e73;
}

.toc-improved .toc-search {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.toc-improved input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #dbeefc;
  border-radius: 6px;
  background: #fff;
  outline: none;
  font-size: 0.95em;
}

.toc-improved .toc-list {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
  max-height: 300px;
  overflow: auto;
}

.toc-improved .toc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background .14s, transform .12s;
}

.toc-improved .toc-list li:hover {
  background: rgba(0, 119, 204, 0.04);
  transform: translateX(4px);
}

.toc-improved .toc-list a {
  text-decoration: none;
  color: #055a9a;
  font-weight: 600;
  font-size: 0.95em;
  display: block;
  flex: 1;
}

.toc-improved .toc-badge {
  background: #eaf7ff;
  border: 1px solid rgba(0, 119, 204, 0.08);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.78em;
  color: #0077cc;
}

.toc-improved .toc-actions {
  margin-left: 8px;
  display: flex;
  gap: 6px;
}

.toc-improved .small-note {
  font-size: 0.82em;
  color: #4b6b83;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .toc-improved .toc-list {
    max-height: 200px;
  }
}

/* header area styles */
.ipo-header-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 4px 18px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* responsive header */
@media (max-width: 900px) {
  .ipo-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ipo-hero .logo {
    width: 100px;
    height: 100px;
  }
}

.ipo-left {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.ipo-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  color: #1f3f78;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.stars {
  color: #f6b93b;
  font-size: 16px;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.action-buttons .pill {
  background: #0fa67a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  border: none;
}

.action-buttons .pill.ghost {
  background: #2b9bd7;
}

.action-buttons .pill.yellow {
  background: #f0b429;
  color: #111;
}

.action-buttons .pill.grey {
  background: #6f7e8a;
}

.button-row a {
  text-decoration: none; /* Removes underline from links */
}

.ipo-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ipo-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #333;
}

.status-pill {
  background: linear-gradient(90deg, #ffd966, #ffb84d);
  color: #fff;
  padding: 6px 10px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(251, 153, 45, 0.12);
  margin-left: 8px;
}

.ipo-controls select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d6e9f8;
  background: #fff;
  font-weight: 600;
}

/* ARTICLE LAYOUT (BODY + CONTAINER) */
body {
  font-family: Arial, sans-serif;
  background-color: #f3f5fc;
  color: #333;
  margin: 0;
  padding: 20px;
  scroll-behavior: smooth;
}



.container {
  max-width: 1600px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr 320px; /* content + right sidebar */
  gap: 24px;
}

.section {
  margin: 30px 0;
  
}

.section i {
  color: #0077cc;
  margin-right: 10px;
}

.section h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.section p {
  font-size: 1em;
  line-height: 1.6;
}

/* TOC box styles */
.toc-box {
  background: #eef7ff;
  padding: 18px;
  border-left: 4px solid #0077cc;
  margin: 20px 0;
  border-radius: 6px;
  max-height: none;
  overflow: visible;
}

.toc-box h2 {
  margin-top: 0;
  font-size: 1.05em;
}

.toc-box ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  list-style: none;
}

.toc-box li {
  margin: 6px 0;
}

.toc-box a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
}

.toc-box a:hover {
  text-decoration: underline;
}

/* Responsive: stack columns on small screens */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .toc-box {
    position: relative;
    top: auto;
    max-height: none;
    margin-bottom: 12px;
  }
}

/* keep existing footer/widget styles visible */
.ipo-footer {
  margin-top: 30px;
}

/* below header: tabs */
.ipo-tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.ipo-tabs a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f1f7fb;
  border: 1px solid rgba(3, 102, 171, 0.06);
  color: #055a9a;
  font-weight: 700;
  text-decoration: none;
  margin: 5px;
}

.ipo-tabs a.active {
  background: #0077cc;
  color: #fff;
  box-shadow: 0 6px 18px rgba(12, 78, 146, 0.12);
}

/* logo + short summary row (like Meesho page) */
.ipo-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(3, 102, 171, 0.04);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(3, 33, 76, 0.03);
}

.ipo-hero .logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.ipo-hero .hero-text {
  flex: 1;
}

.ipo-hero .hero-text p {
  margin: 6px 0;
  color: #2d3f50;
  line-height: 1.55;
}

.ipo-hero .hero-meta {
  color: #3b4f66;
  font-weight: 700;
}

.ipo-hero .hero-warning {
  color: #c23a2b;
  font-weight: 700;
  margin-top: 8px;
}

.comment-form {
  display: flex;
  justify-content: flex-start;
}

.google-form {
  width: 1100px;
  height: 900px;
  max-width: 100%; /* mobile responsive */
}

/* blink-live */
.blink-live {
  color: red;
  font-size: 16px;
  font-weight: bold;
  margin-left: 8px;
  animation: blink 0.9s infinite;
}

/* blink-dot */
.blink-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  margin-left: 8px;
  animation: blink 1s infinite;
}

/* blink-🔥 or ⚡ */
.blink-ico {
  margin-left: 6px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Navigation Wrapper */
.top-nav-tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  gap: 1px;
  border-bottom: 1px solid #e5e5e5; /* Bottom line */
  padding-bottom: 10px;
}

/* Individual Tab Links */
.top-nav-tabs li a {
  text-decoration: none;
  color: #1a73e8;
  font-size: 15px;
  padding-bottom: 6px;
  display: inline-block;
}

/* Active Tab Highlight */
.top-nav-tabs li a.active {
  font-weight: bold;
  border-bottom: 3px solid #1a73e8;
}

/* ========== GENERIC IPO TABLE STYLING (for any page using #ipoTable) ========== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#ipoTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#ipoTable th,
#ipoTable td {
  padding: 8px 10px;
  text-align: center;
}

/* Left-align first column (company / IPO name) */
#ipoTable th:first-child,
#ipoTable td:first-child {
  text-align: left;
}

/* ========== IPO GMP PAGE LAYOUT OVERRIDE (DESKTOP + MOBILE) ========== */

/* Use full width for this page and remove extra shadow/padding */
.ipogmp-page .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 10px 30px;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  display: block; /* no 2-column grid, full width for table */
}

/* Main content full-width card */
.ipogmp-page .content {
  background: #ffffff;
  padding: 20px 10px;
  border-radius: 8px;
}

/* ========= FINAL RESPONSIVE STYLES FOR #ipoTable ON ipogmp PAGE ========= */

.ipogmp-page .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Desktop / default */
.ipogmp-page #ipoTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto; /* let browser decide widths nicely */
}

.ipogmp-page #ipoTable th,
.ipogmp-page #ipoTable td {
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap; /* keep most columns in one line */
}

/* Left-align first column (IPO Name) and allow wrapping of long names */
.ipogmp-page #ipoTable th:first-child,
.ipogmp-page #ipoTable td:first-child {
  text-align: left;
  white-space: normal;
}

/* Medium screens (table still normal, just slightly tighter) */
@media (max-width: 992px) {
  .ipogmp-page #ipoTable {
    font-size: 13px;
  }

  .ipogmp-page #ipoTable th,
  .ipogmp-page #ipoTable td {
    padding: 6px 8px;
  }
}

/* Small screens: optionally hide a couple of less important columns */
@media (max-width: 768px) {
  /* Hide IPO Size and Lot to save width */
  .ipogmp-page #ipoTable th:nth-child(7),
  .ipogmp-page #ipoTable td:nth-child(7),  /* IPO Size */
  .ipogmp-page #ipoTable th:nth-child(8),
  .ipogmp-page #ipoTable td:nth-child(8) { /* Lot */
    display: none;
  }
}

/* Extra small screens: card-style rows */
@media (max-width: 480px) {
  .ipogmp-page #ipoTable thead {
    display: none;
  }

  .ipogmp-page #ipoTable,
  .ipogmp-page #ipoTable tbody,
  .ipogmp-page #ipoTable tr,
  .ipogmp-page #ipoTable td {
    display: block;
    width: 100%;
  }

  .ipogmp-page #ipoTable tr {
    margin-bottom: 12px;
    border: 1px solid #e3e7f0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
  }

  .ipogmp-page #ipoTable td {
    text-align: left;
    position: relative;
    padding: 6px 8px 6px 110px;
    font-size: 13px;
    white-space: normal;
  }

  .ipogmp-page #ipoTable td:first-child {
    padding-left: 10px;
    font-weight: 600;
    font-size: 14px;
  }

  .ipogmp-page #ipoTable td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 12px;
    opacity: 0.7;
  }
}


.gmp-up {
  color: #00c853;        /* Green */
  font-weight: bold;
  font-size: 16px;
}

.gmp-down {
  color: #ff1744;        /* Red */
  font-weight: bold;
  font-size: 16px;
}

.gmp-neutral {
  color: #ffa000;        /* Yellow/amber for neutral */
  font-weight: bold;
  font-size: 20px;
  line-height: 0;
}

  /*<span class="gmp-neutral">•</span> */


  /* ================== SUBSCRIPTION PAGE LAYOUT ================== */

.subscription-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* content + sidebar */
  gap: 20px;
}

/* Stack content + sidebar on tablet/mobile */
@media (max-width: 992px) {
  .subscription-page .container {
    grid-template-columns: 1fr;
  }
}

/* Make main card look clean */
.subscription-page .content {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
}

/* Override old rule that hides sidebar on mobile */
@media (max-width: 768px) {
  .subscription-page .sidebar {
    display: block;           /* show sidebar below content */
    margin-top: 16px;
  }
}

/* ================== SUBSCRIPTION TABLE RESPONSIVE ================== */

.subscription-page .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;  /* smooth scroll on mobile */
}

.subscription-page #ipoTable {
  min-width: 900px;  /* force horizontal scroll on small screens */
}

/* Fine-tune for very small screens */
@media (max-width: 480px) {
  .subscription-page #ipoTable th,
  .subscription-page #ipoTable td {
    padding: 6px 8px;
    font-size: 12px;
  }
}

  

/* overlay so cards remain readable */
.ql-panel::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,36,63,0.06), rgba(255,255,255,0.04));
  pointer-events: none;
}

/* Card grid (keeps your responsive columns) */
.grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0; /* panel already has top margin */
  z-index: 1; /* above overlay */
}

/* Glass-like cards */
.card{
  display: block;
  background: rgba(255,255,255,0.85);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(7,74,131,0.06);
  box-shadow: 0 8px 24px rgba(11,99,165,0.04);
  transition: transform .22s cubic-bezier(.2,.9,.25,1), box-shadow .22s;
  text-decoration: none;
  color: inherit;
  min-height: 110px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

/* keyboard focus accessibility */
.card:focus{
  outline: 3px solid rgba(7,74,131,0.12);
  outline-offset: 3px;
}


* hover uplift */
.card:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(11,99,165,0.09);
}

/* card content layout */
.card-head{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.icon{
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
  border: 1px solid rgba(7,74,131,0.06);
  flex: 0 0 46px;
}

/* headings & text */
.card h3{
  margin: 0;
  font-size: 15px;
  color: #05243b;
  font-weight: 600;
}


.card p{
  margin: 6px 0 0;
  font-size: 13px;
  color: #274a62;
  line-height: 1.3;
}

/* ribbon for hot item */
.ribbon{
  position: absolute;
  right: -24px;
  top: 12px;
  transform: rotate(18deg);
  background: linear-gradient(90deg,#ffdd57,#ffb347);
  color: #05243b;
  padding: 6px 48px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  pointer-events: none;
}

/* Responsive tweaks */
@media (max-width: 520px){
  .icon{width:40px;height:40px;flex:0 0 40px}
  .card{padding:14px;min-height:100px}
  .ribbon{display:none}
}




/* ===============================
   NAVIGATION + SIDE MENU (CLEAN)
   =============================== */

/* --------- DESKTOP TOP NAV --------- */

.modern-nav {
  background: linear-gradient(135deg, #1f3c88, #27459e);
  padding: 10px 24px;
  border-radius: 40px;
  max-width: 1400px;
  margin: 12px auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 10px;
  z-index: 900;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
}

/* desktop menu list */

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --------- DESKTOP HAMBURGER BUTTON --------- */

@media (min-width: 769px) {
  .nav-hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    margin-right: 10px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
  }

  .nav-hamburger span {
    display: block;
    width: 18px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 999px;
  }
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: none;
  }
}

/* --------- DESKTOP DROPDOWN (IPO) --------- */

.dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #ffffff;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #1f2937;
  font-weight: 500;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: #eef2ff;
}

/* show dropdown on hover (desktop only) */
@media (min-width: 901px) {
  .nav-menu .dropdown:hover > .dropdown-menu,
  .nav-menu .dropdown:focus-within > .dropdown-menu,
  .nav-menu .dropdown-menu:hover {
    display: block;
  }
}

/* ===================== MOBILE TOP BAR ===================== */

.mobile-topbar,
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* hide desktop nav on mobile */
  .modern-nav {
    display: none;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: linear-gradient(135deg, #1f3c88, #27459e);
    position: sticky;
    top: 0;
    z-index: 950;
  }

  .mobile-topbar svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
  }

  .top-icon-btn {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* small pill hamburger like reference */
  .menu-btn {
    width: 40px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
  }

  .menu-btn span {
    display: block;
    width: 16px;
    height: 2.3px;
    background: #ffffff;
    border-radius: 999px;
  }

  .top-title {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .top-title-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
  }

  .badge-new {
    background: #ffb347;
    color: #2b2830;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
  }

  .top-right-icons {
    display: flex;
    gap: 4px;
  }

  /* disable old slide-down mobile menu */
  .mobile-slide-menu {
    display: none !important;
  }
}

/* ===================== MOBILE BOTTOM NAV ===================== */

@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* space for bottom nav */
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.12);
    padding: 6px 6px 10px;
    justify-content: space-between;
    align-items: center;
    z-index: 950;
  }

  .bottom-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #4b5563;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .bi-icon svg {
    width: 20px;
    height: 20px;
    fill: #6b7280;
  }

  .bottom-item.active .bi-icon svg,
  .bottom-item.active .bi-label {
    fill: #1f3c88;
    color: #1f3c88;
  }

  /* center home big circle */
  .home-center {
    position: relative;
    margin-top: -18px;
  }

  .home-circle {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f3c88, #27459e);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(31, 60, 136, 0.45);
  }

  .home-circle svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
  }

  .home-center .bi-label {
    display: none;
  }
}

/* ===================== LEFT SIDE MEGA MENU ===================== */

.mega-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;                 /* hidden by default */
  justify-content: flex-start;   /* panel on LEFT */
  align-items: stretch;
  z-index: 3000;
}

.mega-menu-overlay.open {
  display: flex;
}

.mega-menu-panel {
  width: min(420px, 100%);
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.32); /* shadow on right edge */
}

/* header */
.mega-menu-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #1f3c88, #27459e) !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-menu-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* close button on header right edge */
.mega-close {
  background: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 0 4px 4px 0;
  font-size: 18px;
  cursor: pointer;
}

/* body */
.mega-menu-body {
  padding: 10px 8px 12px;
  overflow-y: auto;
}

/* each card row */
.mega-card {
  width: 100%;
  border: none;
  background: #ffffff;
  border-radius: 12px;
  margin: 6px 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.mega-card:hover {
  background: #f3f4ff;
}

.card-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  font-size: 18px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.card-arrow {
  font-size: 16px;
  color: #6b7280;
}

/* footer */
.mega-menu-footer {
  padding: 10px 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mega-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
}

.mega-close-btn {
  padding: 8px 22px;
  border-radius: 6px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

/* full width on very small screens */
@media (max-width: 480px) {
  .mega-menu-panel {
    width: 100%;
    border-radius: 0;
  }
}

/* prevent page scroll when menu open */
body.mega-open {
  overflow: hidden;
}


/* === FINAL DESKTOP DROPDOWN BEHAVIOUR (STABLE HOVER) === */
@media (min-width: 901px) {

  /* Reset dropdown menu for both old (.nav) and new (.modern-nav) headers */
  .nav .dropdown-menu,
  .modern-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    padding: 6px 0;
    display: none;              /* hidden by default */
    opacity: 1 !important;      /* remove fade tricks */
    transform: none !important; /* remove translateY */
    pointer-events: auto !important;
    transition: none !important;
    z-index: 1000;
  }

  .nav .dropdown-menu li,
  .modern-nav .dropdown-menu li {
    width: 100%;
  }

  .nav .dropdown-menu a,
  .modern-nav .dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #1f2937;
    font-weight: 500;
    text-decoration: none;
  }

  .nav .dropdown-menu a:hover,
  .modern-nav .dropdown-menu a:hover {
    background: #eef2ff;
  }

  /* SHOW when hovering IPO or the menu itself */
  .nav .dropdown:hover > .dropdown-menu,
  .nav .dropdown-menu:hover,
  .modern-nav .dropdown:hover > .dropdown-menu,
  .modern-nav .dropdown-menu:hover {
    display: block;
  }
}

/* Always hide old mobile slide menu */
.mobile-slide-menu {
  display: none !important;
}

/* Soft navy-tinted background to match navigation */
body {
  background-color: #f3f5fc;  /* light blue-white background */
}


/* === FOOTER MATCHING NAVIGATION BAR === */
footer {
  background: linear-gradient(135deg, #1f3c88, #27459e);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 26px 26px 0 0; /* soft rounded top corners like nav */
  margin-top: 40px;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.2);
}

footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* ============================
   NAVY THEME TABLE (MATCH NAV)
   ============================ */

/* Table wrapper (optional, improves look) */
.table-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

/* TABLE ITSELF */
table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

/* TABLE HEADER — MATCH NAV BAR COLOR */
table thead tr {
  background: linear-gradient(135deg, #1f3c88, #27459e);
  color: #ffffff;
}

table thead th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  border: none;
  font-size: 14px;
}

/* TABLE BODY ROWS */
table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

table tbody tr:nth-child(even) {
  background: #f7f9fc; /* soft blue tint matching body bg */
}

table tbody td {
  padding: 10px;
  color: #1f2937;
  font-weight: 500;
}

/* TABLE HOVER EFFECT */
table tbody tr:hover {
  background: rgba(31, 60, 136, 0.08); /* soft navy tint */
  transition: 0.15s;
}

 

/* ===============================
   FIX IPO GMP INFO SECTION UI
   =============================== */

.ipogmp-page .gmp-info {
  margin-top: 30px;
}

/* Card look restored */
.ipogmp-page .section {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(7, 40, 80, 0.08);
  border: 1px solid #eef2f7;
}

/* Heading with icon alignment */
.ipogmp-page .section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: #0b63a5;
  margin-bottom: 12px;
}

/* Icon badge style */
.ipogmp-page .section h2 .icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf4ff;
  color: #0b63a5;
  font-size: 16px;
  flex-shrink: 0;
}

/* Paragraph readability */
.ipogmp-page .section p {
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
}

/* Bullet list cleanup */
.ipogmp-page .section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.ipogmp-page .section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: #1f2937;
}

.ipogmp-page .section ul li .icon {
  color: #0b63a5;
  margin-top: 3px;
}

.gmp-summary {
  background: #f0f7ff;
  border-left: 4px solid #0b63a5;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 20px;
  color: #1f2937;
}



.info-section {
  margin-top: 30px;
}

.info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(7,40,80,0.08);
}

.info-card h2 {
  color: #0b63a5;
  margin-bottom: 12px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.ipo-steps li,
.benefits li,
.simple-list li {
  padding: 8px 0;
  font-size: 15px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}

.warning-box {
  background: #fff4e5;
  border-left: 4px solid #ff9800;
}


.page-title-card h1 {
  margin-bottom: 6px;
}

.subtitle {
  color: #475569;
  font-size: 15px;
}

.updated-text {
  font-size: 13px;
  color: #6b7280;
}

.contact-card {
  background: #f0f7ff;
  border-left: 4px solid #0b63a5;
}


.filter-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mobile fix */
@media (max-width: 640px) {
  .filter-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    width: 100%;
  }
}


.faq-item {
  background: #f9fbff;
  border: 1px solid #e6eef8;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.faq-item h2 {
  font-size: 17px;
  color: #074a83;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.tips-box {
  background: #f9fbff;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
}

.tips-box h2 {
  color: #074a83;
  font-size: 20px;
  margin-bottom: 10px;
}

.tips-box ol li {
  margin-bottom: 12px;
  line-height: 1.7;
}


.section-title {
  text-align: center;
  margin: 30px 0 15px;
  color: #074a83;
}

.faq-box {
  background: #f9fbff;
  border: 1px solid #e6eef8;
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 12px;
}

.about-block {
  background: #f9fbff;
  border: 1px solid #e6eef8;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.about-block h2 {
  color: #074a83;
  margin-bottom: 8px;
}

.advertise-block {
  background: #f9fbff;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
}

.advertise-block h2 {
  color: #074a83;
  margin-bottom: 10px;
}

.advertise-icon {
  font-size: 22px;
  color: #074a83;
  margin-bottom: 6px;
}


.cta {
  margin: 30px auto;
  padding: 20px 24px;
  max-width: 900px;
  text-align: center;

  background: linear-gradient(135deg, #f2f6ff, #e9f1ff);
  border: 1px solid #dbe7ff;
  border-radius: 14px;

  font-size: 17px;
  font-weight: 600;
  color: #074a83;

  box-shadow: 0 6px 18px rgba(7, 74, 131, 0.08);
}




/* FULL WIDTH SLIDER */
.slider {
  width: 100%;
  margin: 12px auto;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}


html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

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

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


