/* SuccessInformatics Custom Revamped Styles */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

:root {
  --color-navy: #0F172A;
  --color-blue: #2563EB;
  --color-blue-dark: #1D4ED8;
  --color-bg-light: #F8FAFC;
  --color-text-body: #334155;
  --color-border: #E2E8F0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Article Body Serifs for enhanced executive readability */
.article-body p, .article-body li {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #334155;
}

.article-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.875rem;
  color: #0F172A;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E2E8F0;
}

.article-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #1E293B;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
}

/* AdSense Placeholder Containers - Strict CLS Defense (CLS = 0) */
.ad-slot-placeholder {
  background-color: #F1F5F9;
  border: 1px dashed #CBD5E1;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  contain: layout intrinsic-size;
  transition: all 0.2s ease-in-out;
}

.ad-slot-placeholder::before {
  content: "ADVERTISEMENT";
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94A3B8;
  margin-bottom: 0.25rem;
}

.ad-slot-placeholder.ad-banner {
  min-height: 100px;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 728 / 100;
}

.ad-slot-placeholder.ad-sidebar {
  min-height: 250px;
  width: 100%;
  aspect-ratio: 300 / 250;
}

.ad-slot-placeholder.ad-in-article {
  min-height: 150px;
  width: 100%;
  aspect-ratio: 600 / 150;
}

.ad-slot-label {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
}

/* Navigation Sub-Menu Dropdown Styling */
.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Bridge element to prevent hover loss between trigger and menu */
.nav-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB, #3B82F6, #60A5FA);
  width: 0%;
  z-index: 60;
  transition: width 0.1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Search Modal Backdrop */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
}
