/* ============================================================
   INDIAN BUSINESS MIRROR — Premium Design System v2.0
   Primary: #1677ac | Accent: #e8a020 | Dark: #0b1726
   Fonts: Playfair Display + DM Sans
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  --ibm-primary:        #1677ac;
  --ibm-primary-dark:   #0d5a8a;
  --ibm-primary-deeper: #094872;
  --ibm-primary-light:  #ddeef9;
  --ibm-primary-xlight: #f0f8ff;
  --ibm-accent:         #e8a020;
  --ibm-accent-dark:    #c78b10;
  --ibm-accent-light:   #fff8e8;
  --ibm-dark:           #0b1726;
  --ibm-dark-2:         #13243a;
  --ibm-dark-3:         #1e3650;
  --ibm-text:           #1a2838;
  --ibm-text-2:         #3d5168;
  --ibm-text-muted:     #6b8299;
  --ibm-border:         #d5e5f0;
  --ibm-border-light:   #eaf3f9;
  --ibm-surface:        #f4f9fc;
  --ibm-white:          #ffffff;
  --ibm-shadow-sm:      0 1px 4px rgba(22,119,172,.08), 0 1px 2px rgba(0,0,0,.04);
  --ibm-shadow-md:      0 4px 20px rgba(22,119,172,.13), 0 2px 8px rgba(0,0,0,.07);
  --ibm-shadow-lg:      0 8px 40px rgba(22,119,172,.18), 0 4px 16px rgba(0,0,0,.1);
  --ibm-radius-sm:      4px;
  --ibm-radius-md:      8px;
  --ibm-radius-lg:      16px;
  --ibm-font-display:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --ibm-font-body:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ibm-ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ibm-transition:     all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE === */
body {
  font-family: var(--ibm-font-body);
  background: var(--ibm-surface);
  color: var(--ibm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page fade-in is handled by existing #container.active */

/* ============================================================
   HEADER SYSTEM
   ============================================================ */

/* Gradient accent stripe — 3px decorative top edge */
.ibm-accent-stripe {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ibm-primary-deeper) 0%,
    var(--ibm-primary)        45%,
    var(--ibm-accent)         100%
  );
  flex-shrink: 0;
}

/* Top info bar */
.ibm-topbar {
  background: var(--ibm-dark);
  padding: 7px 0;
}

.ibm-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ibm-live-time {
  font-family: var(--ibm-font-body);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ibm-live-time .dot {
  width: 6px;
  height: 6px;
  background: var(--ibm-accent);
  border-radius: 50%;
  display: inline-block;
  animation: ibm-pulse 2s infinite;
}

@keyframes ibm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

.ibm-live-time #ibmLiveTime { color: rgba(255,255,255,.75); }
.ibm-live-time #ibmLiveTime .day-part { color: var(--ibm-accent); font-weight: 600; }

.ibm-topbar-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ibm-topbar-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  text-decoration: none;
  transition: var(--ibm-transition);
}

.ibm-topbar-socials a:hover {
  background: var(--ibm-primary);
  border-color: var(--ibm-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Main header wrapper */
.ibm-header {
  background: var(--ibm-white);
  border-bottom: 1px solid var(--ibm-border);
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: box-shadow .3s var(--ibm-ease);
}

.ibm-header.ibm-scrolled {
  box-shadow: var(--ibm-shadow-md);
}

/* Brand row — logo + nav on same line */
.ibm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* Brand */
.ibm-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.ibm-brand img {
  max-height: 54px;
  width: auto;
  display: block;
}

.ibm-brand-wordmark {
  font-family: var(--ibm-font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ibm-primary);
  line-height: 1.05;
  letter-spacing: -.5px;
  display: block;
}

.ibm-brand-tagline {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ibm-text-muted);
  display: block;
}

/* Desktop nav */
.ibm-desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.ibm-nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.ibm-nav-list li a {
  display: flex;
  align-items: center;
  padding: 6px 13px;
  font-family: var(--ibm-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ibm-text-2);
  text-decoration: none;
  border-radius: var(--ibm-radius-sm);
  transition: var(--ibm-transition);
  position: relative;
}

.ibm-nav-list li a:hover {
  color: var(--ibm-primary);
  background: var(--ibm-primary-xlight);
}

.ibm-nav-list li.ibm-active a {
  color: var(--ibm-primary);
  background: var(--ibm-primary-xlight);
  font-weight: 800;
}

/* CTA Button — bright accent */
.ibm-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--ibm-primary);
  color: #fff !important;
  font-family: var(--ibm-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: var(--ibm-radius-sm);
  border: 2px solid var(--ibm-primary);
  transition: var(--ibm-transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.ibm-header-cta:hover {
  background: var(--ibm-primary-dark);
  border-color: var(--ibm-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22,119,172,.38);
  color: #fff !important;
}

/* Mobile controls */
.ibm-mobile-controls {
  display: none;
  align-items: center;
  gap: 10px;
}

.ibm-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1.5px solid var(--ibm-border);
  border-radius: var(--ibm-radius-sm);
  cursor: pointer;
  color: var(--ibm-text);
  font-size: 16px;
  transition: var(--ibm-transition);
}

.ibm-hamburger:hover {
  border-color: var(--ibm-primary);
  color: var(--ibm-primary);
  background: var(--ibm-primary-xlight);
}

/* Mobile slide-down nav */
.ibm-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ibm-white);
  border-top: 1px solid var(--ibm-border-light);
  padding: 8px 0 16px;
}

.ibm-mobile-nav.ibm-open {
  display: flex;
}

.ibm-mobile-nav a {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ibm-text-2);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: var(--ibm-transition);
}

.ibm-mobile-nav a:hover,
.ibm-mobile-nav a.ibm-active {
  color: var(--ibm-primary);
  border-left-color: var(--ibm-primary);
  background: var(--ibm-primary-xlight);
  padding-left: 26px;
}

.ibm-mobile-nav .ibm-mobile-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 11px 20px;
  background: var(--ibm-primary);
  color: #fff !important;
  border-radius: var(--ibm-radius-sm);
  border-left: none !important;
  justify-content: center;
  font-size: 11px;
}

.ibm-mobile-nav .ibm-mobile-cta:hover {
  background: var(--ibm-primary-dark);
  padding-left: 20px;
  border-left-color: transparent !important;
  color: #fff !important;
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */

.ibm-tabs-section {
  background: var(--ibm-white);
  border-bottom: 2px solid var(--ibm-border);
  box-shadow: var(--ibm-shadow-sm);
  position: sticky;
  top: 96px;
  z-index: 900;
}

.ibm-tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ibm-tabs-scroll::-webkit-scrollbar { display: none; }

.ibm-tabs-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.ibm-tabs-list li {
  flex-shrink: 0;
}

.ibm-tabs-list li a,
.ibm-tabs-list li .nav-link {
  display: block;
  padding: 13px 18px;
  font-family: var(--ibm-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ibm-text-muted) !important;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  transition: var(--ibm-transition);
  background: transparent !important;
}

.ibm-tabs-list li a:hover,
.ibm-tabs-list li .nav-link:hover {
  color: var(--ibm-primary) !important;
  background: var(--ibm-primary-xlight) !important;
}

.ibm-tabs-list li .nav-link.active {
  color: var(--ibm-primary) !important;
  border-bottom-color: var(--ibm-primary) !important;
  background: transparent !important;
  font-weight: 800;
}

/* ============================================================
   MAGAZINE / PDF SECTION
   ============================================================ */

.ibm-content-section {
  padding: 36px 0 60px;
}

.ibm-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.ibm-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: var(--ibm-primary-light);
  color: var(--ibm-primary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 100px;
  flex-shrink: 0;
}

.ibm-section-label i { font-size: 11px; }

.ibm-section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--ibm-border), transparent);
}

.ibm-section-title {
  font-family: var(--ibm-font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--ibm-text);
  margin: 0;
  line-height: 1.25;
}

/* PDF card wrapper */
.ibm-pdf-card {
  background: var(--ibm-white);
  border: 1px solid var(--ibm-border);
  border-radius: var(--ibm-radius-lg);
  overflow: hidden;
  box-shadow: var(--ibm-shadow-md);
}

.ibm-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  background: var(--ibm-dark);
  gap: 12px;
}

.ibm-pdf-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ibm-pdf-icon {
  width: 28px;
  height: 28px;
  background: var(--ibm-primary);
  border-radius: var(--ibm-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

.ibm-pdf-label {
  font-family: var(--ibm-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .8px;
  color: rgba(255,255,255,.65);
}

.ibm-pdf-label strong {
  color: var(--ibm-accent);
  font-weight: 700;
}

.ibm-pdf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ibm-pdf-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ibm-radius-sm);
  color: rgba(255,255,255,.65);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--ibm-transition);
  cursor: pointer;
}

.ibm-pdf-action-btn:hover {
  background: var(--ibm-primary);
  border-color: var(--ibm-primary);
  color: #fff;
}

.ibm-pdf-embed-wrap {
  background: #525659;
  line-height: 0;
}

.ibm-pdf-embed-wrap embed {
  display: block;
  width: 100%;
  border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.ibm-footer {
  background: var(--ibm-dark) !important;
  color: rgba(255,255,255,.7);
  margin-top: 0;
  border-top: 3px solid var(--ibm-primary-dark);
}

/* Gold accent stripe at top of footer */
.ibm-footer-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--ibm-primary) 0%, var(--ibm-accent) 100%);
}

.ibm-footer-upper {
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Column heading style */
.ibm-footer-col-heading {
  font-family: var(--ibm-font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ibm-white);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  position: relative;
}

.ibm-footer-col-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--ibm-accent);
}

/* Brand column */
.ibm-footer-brand-name {
  font-family: var(--ibm-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ibm-white);
  text-decoration: none;
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.ibm-footer-brand-name:hover { color: var(--ibm-primary-light); }

.ibm-footer-brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ibm-accent);
  display: block;
  margin-bottom: 16px;
}

.ibm-footer-brand-logo {
  max-height: 50px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.ibm-footer-about {
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255,255,255,.48);
  margin-bottom: 22px;
  max-width: 280px;
}

/* Social icons in footer */
.ibm-footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ibm-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  text-decoration: none;
  transition: var(--ibm-transition);
}

.ibm-footer-socials a:hover {
  background: var(--ibm-primary);
  border-color: var(--ibm-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22,119,172,.4);
}

/* Link lists */
.ibm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ibm-footer-links li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: var(--ibm-transition);
}

.ibm-footer-links li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ibm-primary);
  flex-shrink: 0;
  transition: background .25s;
}

.ibm-footer-links li a:hover {
  color: rgba(255,255,255,.9);
  padding-left: 4px;
}

.ibm-footer-links li a:hover::before {
  background: var(--ibm-accent);
}

/* Contact list */
.ibm-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ibm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ibm-contact-icon {
  width: 34px;
  height: 34px;
  background: rgba(22,119,172,.22);
  border: 1px solid rgba(22,119,172,.3);
  border-radius: var(--ibm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ibm-primary-light);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ibm-contact-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.5);
}

.ibm-contact-text a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .25s;
}

.ibm-contact-text a:hover { color: rgba(255,255,255,.9); }

/* Trust badges */
.ibm-trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ibm-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--ibm-radius-sm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  color: rgba(255,255,255,.42);
}

.ibm-trust-badge i {
  color: var(--ibm-accent);
  font-size: 10px;
}

/* Footer bottom bar */
.ibm-footer-lower {
  padding: 18px 0;
}

.ibm-footer-lower-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ibm-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  margin: 0;
}

.ibm-footer-copy strong {
  color: rgba(255,255,255,.65);
  font-weight: 600;
}

.ibm-footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ibm-footer-legal a {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .25s;
}

.ibm-footer-legal a:hover { color: rgba(255,255,255,.72); }

/* ============================================================
   BACK-TO-TOP BUTTON
   ============================================================ */

.ibm-back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--ibm-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(22,119,172,.45);
  transition: var(--ibm-transition);
}

.ibm-back-top.ibm-visible {
  display: flex;
}

.ibm-back-top:hover {
  background: var(--ibm-primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
  .ibm-desktop-nav { display: none !important; }
  .ibm-mobile-controls { display: flex !important; }

  .ibm-brand-wordmark { font-size: 20px; }

  .ibm-tabs-section { top: 74px; }

  .ibm-footer-upper { padding: 40px 0 32px; }

  .ibm-footer-col + .ibm-footer-col { margin-top: 36px; }

  .ibm-footer-lower-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 767px) {
  .ibm-header-inner { padding: 10px 0; }
  .ibm-brand-wordmark { font-size: 18px; }
  .ibm-section-title { font-size: 17px; }
  .ibm-pdf-embed-wrap embed { height: 500px !important; }
  .ibm-content-section { padding: 24px 0 40px; }
  .ibm-footer-about { max-width: 100%; }
}

/* ============================================================
   OVERRIDE LEGACY STYLES THAT CONFLICT
   ============================================================ */

/* Remove hardcoded header styles */
header.style-3 {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Tabs Bootstrap overrides */
#pills-tab { margin-bottom: 0 !important; }
#pills-tab .nav-link { border-radius: 0 !important; }

/* Remove old footer styles */
footer { padding: 0 !important; background: transparent !important; }

/* ============================================================
   GLOBAL BUTTON COLOR FIX
   The bundled modernmag-assets.min.css hardcodes .btn-primary
   to #ea0f26 (red). Override all button variants to the theme.
   ============================================================ */

.btn-primary {
  background-color: var(--ibm-primary) !important;
  border-color:     var(--ibm-primary) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus {
  background-color: var(--ibm-primary-dark) !important;
  border-color:     var(--ibm-primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 0 0 .2rem rgba(22,119,172,.4) !important;
}
.btn-primary:not([disabled]):not(.disabled).active,
.btn-primary:not([disabled]):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--ibm-primary-deeper) !important;
  border-color:     var(--ibm-primary-deeper) !important;
  box-shadow: 0 0 0 .2rem rgba(22,119,172,.4) !important;
}
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: var(--ibm-primary) !important;
  border-color:     var(--ibm-primary) !important;
  opacity: .65;
}

/* Secondary action button — neutral grey-blue */
.btn-secondary {
  background-color: #5a7080 !important;
  border-color:     #5a7080 !important;
  color: #fff !important;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #3d5168 !important;
  border-color:     #3d5168 !important;
  color: #fff !important;
}

/* Keep .btn-danger red only inside admin panel (codesk),
   override to a muted amber on the public site */
body:not(.skin-blue) .btn-danger {
  background-color: #c0392b !important;
  border-color:     #a93226 !important;
}

/* Focus ring — global theme colour */
.btn:focus,
.btn.focus {
  box-shadow: 0 0 0 .2rem rgba(22,119,172,.35) !important;
}

/* nav-pills active pill — override the red #ea0f26 fallback */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--ibm-primary) !important;
  color: #fff !important;
}
