:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --success-color: #059669;
  --success-light: #d1fae5;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
  --radius-2xl: 1.5rem; /* 24px */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--success-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #047857);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.bg-success-light {
  background-color: var(--success-light);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: white;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--success-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-weight: 500;
  margin: 0;
}

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* IPO Cards */
.current-ipos-section,
.upcoming-ipos-section {
  padding: 4rem 0;
}

.current-ipos-section {
  background: var(--gray-100);
}

.ipo-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.ipo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.ipo-card-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.ipo-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.ipo-symbol {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 0;
}

.ipo-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-open {
  background: var(--success-light);
  color: var(--success-color);
}

.status-upcoming {
  background: var(--primary-light);
  color: var(--primary-color);
}

.status-closed {
  background: var(--gray-200);
  color: var(--gray-600);
}

.ipo-card-body {
  padding: 1rem 1.5rem;
}

.ipo-details {
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.detail-value {
  font-weight: 600;
  color: var(--gray-900);
}

.gmp-badge {
  background: linear-gradient(135deg, var(--success-color), #047857);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.ipo-card-footer {
  padding: 1rem 1.5rem 1.5rem;
}

/* Upcoming IPO Cards */
.upcoming-ipo-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upcoming-ipo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.company-name {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.ipo-info {
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}
/* Homepage News Layout */
.news-featured {
  background: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.news-featured .news-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.news-list-item {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

.news-thumb {
  flex-shrink: 0;
}

.news-info h5 {
  font-size: 1rem;
  margin: 0;
}

.ipo-section .list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Fix Featured News */
.news-featured .news-image img {
  width: 100%;
  height: auto;          /* maintain aspect ratio */
  max-height: 380px;     /* prevent too tall images */
  object-fit: cover;
  display: block;
}

/* News List Item */
.news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.news-list-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 991px) {
  .latest-news .col-lg-7,
  .latest-news .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .news-featured .news-image img {
    max-height: 250px;
  }

  .news-list-item img {
    width: 90px;
    height: 60px;
  }
}



/* News Section */
.news-section {
  padding: 4rem 0;
  background: white;
}

.news-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}
/* News Homepage Layout */
.news-featured {
  background: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.news-featured .news-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.news-list-item {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

.news-thumb {
  flex-shrink: 0;
}

.news-info h5 {
  font-size: 1rem;
  margin: 0;
}

.more-news .news-card {
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-date {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.news-title {
  margin-bottom: 1rem;
}

.news-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--primary-dark);
}

.news-stats {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 4rem 0;
  color: white;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--gray-900) !important;
  color: var(--gray-300);
}

footer h6 {
  color: white;
}

footer a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

footer a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Utility Classes */
.min-vh-75 {
  min-height: 75vh;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* Form Styles */
.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Table Styles */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th {
  background: var(--gray-100);
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.table td {
  padding: 1rem;
  border-color: var(--gray-200);
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
}

.alert-success {
  background: var(--success-light);
  color: var(--success-color);
}

.alert-info {
  background: var(--primary-light);
  color: var(--primary-color);
}

.alert-warning {
  background: #fef3c7;
  color: var(--warning-color);
}

.alert-danger {
  background: #fee2e2;
  color: var(--danger-color);
}

/* IPO List Specific Styles */
.ipo-list-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.ipo-list-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.ipo-list-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.ipo-list-hero .hero-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.ipo-list-hero .hero-description {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.current-ipos-section {
  padding: 4rem 0;
  background: var(--gray-100); /* Consistent with homepage current IPOs */
}

.live-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  animation: pulse 2s infinite;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1rem;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.modern-ipo-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modern-ipo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.current-ipo {
  border-left: 4px solid var(--success-color);
  position: relative;
}

.current-ipo::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--success-color), var(--primary-color));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.current-ipo:hover::before {
  opacity: 0.1;
}

.modern-ipo-card .card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modern-ipo-card .company-info {
  flex-grow: 1;
}

.modern-ipo-card .company-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.modern-ipo-card .company-symbol {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.modern-ipo-card .ipo-status {
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.modern-ipo-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.modern-ipo-card .price-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.modern-ipo-card .price-band,
.modern-ipo-card .lot-size {
  flex: 1;
  background: var(--gray-50);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.modern-ipo-card .price-info .label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: 0.25rem;
  display: block;
}

.modern-ipo-card .price-info .value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.modern-ipo-card .date-info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modern-ipo-card .date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.modern-ipo-card .date-item i {
  font-size: 1.5rem;
}

.modern-ipo-card .date-item .label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.modern-ipo-card .date-item .value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--gray-900);
}

.issue-size {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.issue-size .label {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  font-weight: 500;
}

.issue-size .value {
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--font-size-base);
}

.gmp-info {
  margin-bottom: 1.5rem;
  text-align: center;
}

.gmp-badge {
  background: linear-gradient(135deg, var(--success-color), #047857);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.gmp-badge i {
  font-size: 1.25rem;
}

.description {
  margin-bottom: 1.5rem;
}

.description p {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

.modern-ipo-card .card-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  margin-top: auto; /* Pushes footer to bottom */
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-modern-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white;
}

.no-current-ipos {
  padding: 4rem 0;
  background: var(--gray-50);
}

.no-ipos-content {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.no-ipos-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--gray-600);
}

.no-ipos-content h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.no-ipos-content p {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.all-ipos-section {
  padding: 4rem 0;
  background: white; /* Changed to white for contrast */
}

.modern-table-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden; /* Ensures rounded corners for table */
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0; /* Remove default table margin */
}

.modern-table th {
  background: var(--gray-50);
  color: var(--gray-700);
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  font-size: var(--font-size-base);
  vertical-align: middle;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr:hover {
  background: var(--gray-50);
}

.modern-table .company-cell .company-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--font-size-base);
}

.modern-table .company-cell .company-symbol {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.modern-table .price-cell {
  font-weight: 600;
  color: var(--primary-color);
}

.gmp-badge-mini {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

/* Mobile IPO Cards (All IPOs section) */
.mobile-ipos-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-ipo-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.mobile-ipo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.mobile-card-header .company-name {
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  font-size: var(--font-size-base);
}

.mobile-card-header .company-symbol {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.mobile-card-body {
  padding: 1rem 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item .label {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-item .value {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-900);
}

.gmp-section {
  margin-bottom: 1rem;
}

.gmp-badge-mobile {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: inline-block;
}

.mobile-card-footer {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* CTA Section */
.ipo-cta-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.ipo-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.ipo-cta-section .cta-content {
  position: relative;
  z-index: 2;
}

.ipo-cta-section .cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  backdrop-filter: blur(10px);
}

.ipo-cta-section .cta-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.ipo-cta-section .cta-description {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ipo-cta-section .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.btn-cta-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

/* IPO Details Specific Styles */
.ipo-details-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
  padding: 3rem 0;
  border-radius: var(--radius-2xl);
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.ipo-details-header .company-name-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.ipo-details-header .company-symbol-details {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.ipo-details-header .ipo-status {
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ipo-details-header .lead-description {
  font-size: var(--font-size-lg);
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.modern-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
  overflow: hidden;
}

.modern-card .card-header {
  background: var(--gray-50);
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modern-card .card-header .card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.modern-card .card-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.modern-card .card-body {
  padding: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.detail-item-modern {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1rem;
  border-left: 4px solid var(--primary-color);
}

.detail-item-modern .label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: 0.25rem;
  display: block;
}

.detail-item-modern .value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.detail-item-modern .value.text-success {
  color: var(--success-color);
}

.detail-item-modern .value.text-primary {
  color: var(--primary-color);
}

.date-item-modern {
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--primary-color);
}

.date-item-modern .label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: 0.25rem;
  display: block;
}

.date-item-modern .value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.date-item-modern .value.text-success {
  color: var(--success-color);
}

.date-item-modern .value.text-danger {
  color: var(--danger-color);
}

.date-item-modern small {
  color: var(--gray-500);
  font-size: var(--font-size-xs);
}

.gmp-section-details {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.gmp-section-details .gmp-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--success-color);
}

.gmp-section-details .expected-price {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-color);
}

.gmp-section-details p {
  font-size: var(--font-size-base);
  color: var(--gray-600);
  margin-bottom: 0;
}

.alert-modern {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--font-size-sm);
}

.alert-modern i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sidebar-widget-modern {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-widget-modern .widget-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.quick-stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.quick-stats-item:last-child {
  border-bottom: none;
}

.quick-stats-item span:first-child {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.quick-stats-item strong {
  color: var(--gray-900);
  font-size: var(--font-size-base);
}

.related-ipo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.related-ipo-item:last-child {
  border-bottom: none;
}

.related-ipo-item a {
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  transition: var(--transition);
}

.related-ipo-item a:hover {
  color: var(--primary-color);
}

.related-ipo-item small {
  color: var(--gray-500);
  font-size: var(--font-size-xs);
}

.share-buttons-grid {
  display: grid;
  gap: 0.75rem;
}

.btn-share {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-share:hover {
  background: var(--gray-100);
  color: var(--primary-color);
  border-color: var(--primary-light);
}

.btn-share i {
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

/* Responsive adjustments for IPO Details */
@media (max-width: 768px) {
  .ipo-details-header {
    padding: 2rem 0;
    margin-bottom: 1.5rem;
  }
  .ipo-details-header .company-name-title {
    font-size: var(--font-size-2xl);
  }
  .ipo-details-header .company-symbol-details {
    font-size: var(--font-size-base);
  }
  .ipo-details-header .lead-description {
    font-size: var(--font-size-base);
  }
  .modern-card {
    margin-bottom: 1.5rem;
  }
  .modern-card .card-header {
    padding: 1rem;
  }
  .modern-card .card-header .card-title {
    font-size: var(--font-size-lg);
  }
  .modern-card .card-body {
    padding: 1rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .gmp-section-details {
    flex-direction: column;
    text-align: center;
  }
  .gmp-section-details .gmp-value,
  .gmp-section-details .expected-price {
    font-size: var(--font-size-2xl);
  }
  .sidebar-widget-modern {
    margin-bottom: 1.5rem;
  }
  /* Trending Section */
.trending-section {
  background: var(--gray-100);
}

.trending-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.trending-image {
  height: 200px;
  overflow: hidden;
}

.trending-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trending-card:hover .trending-image img {
  transform: scale(1.05);
}

.trending-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.trending-title a {
  color: var(--gray-900);
  font-weight: 700;
  text-decoration: none;
}

.trending-title a:hover {
  color: var(--primary-color);
}

.trending-excerpt {
  color: var(--gray-600);
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .trending-image {
    height: 160px;
  }
}
/* Featured */
.news-featured img {
  max-height: 380px;
  object-fit: cover;
}
.news-featured {
  position: relative;
}

.news-featured img {
  width: 100%;
  height: 400px;       /* fixed height for consistency */
  object-fit: cover;   /* crops image nicely without distortion */
  border-radius: 10px;
}

@media (max-width: 768px) {
  .news-featured img {
    height: 250px;     /* smaller height on mobile */
  }
}

img {
    loading: lazy;
    decoding: async;
}



/* Mini news cards (right column) */
.news-mini img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.news-mini h6 {
  font-size: 0.9rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .news-featured img {
    max-height: 250px;
  }
  .news-mini img {
    height: 90px;
  }
}
/* Featured */
.news-featured img {
  max-height: 380px;
  object-fit: cover;
}

/* Mini news cards (right column) */
.news-mini img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.news-mini h6 {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* More news cards */
.more-news .news-card img {
  height: 200px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .news-featured img {
    max-height: 250px;
  }
  .news-mini img {
    height: 90px;
  }
  .more-news .news-card img {
    height: 150px;
  }
}


}
