/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body {
  line-height: 1.7;
  color: #2c3e50;
  background: #faf9f6; /* Warm off-white */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0078d4;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #0078d4;
}

.btn-primary {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
}

/* Service Page Styles */
.page-hero {
  color: white;
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  font-family: 'Lora', serif;
}

.lead {
  font-size: 1.5rem;
  opacity: 0.95;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

.content-section {
  padding: 2rem 0;
}

.intro-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.intro-section h2 {
  color: #1a1a1a;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.intro-text {
  color: #666;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.content-main h3 {
  color: #1a1a1a;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.content-main h3:first-of-type {
  margin-top: 0;
}

.approach-section {
  margin: 3rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-radius: 12px;
}

.approach-section h3 {
  margin-top: 0;
  text-align: center;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.approach-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #0078d4;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content h4 {
  color: #1a1a1a;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

.step-content p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.content-main p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  background: #f9fafb;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border-left: 4px solid #0078d4;
}

.services-list strong {
  display: block;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.services-list p {
  margin: 0;
  color: #666;
}

.cta-box {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.cta-box h3 {
  color: white;
  margin-top: 0;
}

.cta-box p {
  color: white;
  opacity: 0.95;
}

.sidebar-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.sidebar-card.highlight-card {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: white;
}

.sidebar-card.highlight-card h3 {
  color: white;
}

.sidebar-card.highlight-card li {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-card h3 {
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card li {
  color: #666;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-card li:last-child {
  border-bottom: none;
}

.related-links a {
  color: #0078d4;
  text-decoration: none;
}

.related-links a:hover {
  text-decoration: underline;
}

@media (max-width: 968px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }

  .intro-section h2 {
    font-size: 2rem;
  }

  .value-props {
    grid-template-columns: 1fr;
  }

  .approach-steps {
    grid-template-columns: 1fr;
  }
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s ease;
}

.dropbtn:hover {
  color: #0078d4;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  top: 100%;
  margin-top: 0;
  padding-top: 0.5rem;
}

.dropdown-content a {
  color: #333;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f9fafb;
  color: #0078d4;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer Styles */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 1.5rem 0 0.75rem;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 0.75rem;
  color: white;
  font-size: 1rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1); /* Make logo white for dark footer */
}

.footer-tagline {
  color: #0078d4;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact {
  margin-bottom: 0.75rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.footer-contact a {
  color: #ccc;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #0078d4;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  color: #ccc;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #333;
  border-radius: 50%;
}

.footer-social a:hover {
  color: white;
  background: #0078d4;
  transform: translateY(-2px);
}

.footer-section p {
  color: #ccc;
  margin-bottom: 0.4rem;
}

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

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
}

.footer-section a:hover {
  color: #0078d4;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 0.75rem;
  text-align: center;
}

.footer-partners {
  border-top: 1px solid #333;
  padding: 1rem 0;
  margin-top: 0.25rem;
}

.footer-bottom p {
  color: #999;
  font-size: 0.8rem;
}

/* Partner Logos Component */
.partners-container {
  padding: 4rem 0;
  background: #f9fafb;
  text-align: center;
}

.partners-container h2 {
  margin-bottom: 3rem;
  color: #333;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.partner-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-logo-item {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .partner-logos-grid {
    gap: 2rem;
  }
  
  .partner-logo-item {
    height: 30px;
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .container {
    padding: 0 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    background: #f9fafb;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Icon Styles */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.check-icon {
  color: #0078d4;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.sidebar-card.highlight-card .check-icon {
  color: white;
}

.link-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.related-links a:hover .link-icon {
  transform: translateX(4px);
}

.inline-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.2em;
  height: 1.2em;
  margin-top: -2px;
}

/* ============================= */
/* Content-only list indentation */
/* ============================= */

.content-main ul,
.content-main ol {
  padding-left: 1.5rem;
  margin-left: 0;
  list-style-position: outside;
}

.content-main ul ul,
.content-main ul ol,
.content-main ol ul,
.content-main ol ol {
  padding-left: 1.5rem;
}

/* Optional spacing for readability */
.content-main li {
  margin-bottom: 0.5rem;
}

/* Remove top margin from first heading or paragraph in AccordionItem to avoid large gap */
.AccordionItem > *:first-child,
.AccordionItem .accordion-content > *:first-child,
.content-main .accordion-content > *:first-child {
  margin-top: 0 !important;
}

/* Remove top margin from first h5 or p in AccordionItem content for both products */
.content-main .accordion-content h5:first-child,
.content-main .accordion-content p:first-child {
  margin-top: 0 !important;
}

/* Remove top margin from first h5 or p in AccordionItem for jca-table-editor as well */
.content-main > .Accordion > .AccordionItem > *:first-child {
  margin-top: 0 !important;
}

