/* Update the ERP ranking cards to match the industries article */
.erp-ranking-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  border: 1px solid #e1e6eb;
}

.erp-ranking-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e1e6eb;
}

.erp-rank {
  width: 30px;
  height: 30px;
  background-color: #2c5f96;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 15px;
}

.erp-ranking-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #222;
}

.erp-ranking-card p {
  padding: 15px 20px;
  margin: 0;
  line-height: 1.6;
  color: #555;
}

.erp-ranking-card p strong {
  color: #2c5f96;
}

/* Improve the tab system */
.tab-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #2c5f96 #f0f4f8;
}

.tab-buttons::-webkit-scrollbar {
  height: 6px;
}

.tab-buttons::-webkit-scrollbar-track {
  background: #f0f4f8;
  border-radius: 3px;
}

.tab-buttons::-webkit-scrollbar-thumb {
  background-color: #2c5f96;
  border-radius: 3px;
}

.tab-button {
  background: #f0f4f8;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: #44566c;
}

.tab-button:hover {
  background: #e1e6eb;
  color: #2c5f96;
}

.tab-button.active {
  background: #2c5f96;
  color: white;
  box-shadow: 0 2px 8px rgba(44, 95, 150, 0.2);
}

/* Enhance feature cards */
.feature-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #e1e6eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #2c5f96;
}

.feature-card i {
  font-size: 2rem;
  color: #2c5f96;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  color: #222;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Improve general spacing */
.content-section {
  margin-bottom: 60px;
}

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #222;
  position: relative;
  padding-bottom: 10px;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #2c5f96;
}

.content-section h3 {
  font-size: 1.4rem;
  margin: 30px 0 20px;
  color: #333;
}

/* Improve the emirate cards */
.emirate-card {
  flex: 1;
  min-width: 250px;
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #e1e6eb;
  transition: transform 0.3s ease;
}

.emirate-card:hover {
  transform: translateY(-5px);
  border-color: #2c5f96;
}

.emirate-card h3 {
  color: #2c5f96;
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e6eb;
}

.emirate-card ul {
  padding-left: 20px;
  margin: 15px 0 0 0;
}

.emirate-card ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #555;
}

.emirate-card p {
  margin: 15px 0 0 0;
  color: #555;
  line-height: 1.6;
}

/* Improve the implementation steps */
.step-card {
  flex: 1;
  min-width: 250px;
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #e1e6eb;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: #2c5f96;
}

.step-number {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 4rem;
  font-weight: 700;
  color: #f0f7ff;
  z-index: 0;
  line-height: 1;
}

.step-card h3 {
  position: relative;
  z-index: 1;
  color: #2c5f96;
  margin-top: 0;
  margin-bottom: 15px;
}

.step-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* Improve the consultation CTA */
.consultation-cta {
  background: linear-gradient(135deg, #2c5f96 0%, #1a3d63 100%);
  color: white;
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.consultation-cta h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.consultation-cta p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.consultation-cta .btn-primary {
  background: white;
  color: #2c5f96;
  font-weight: 600;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 6px;
}

.consultation-cta .privacy-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 20px;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-section h2 {
    font-size: 1.6rem;
  }
  
  .consultation-cta {
    padding: 30px;
  }
  
  .consultation-cta h3 {
    font-size: 1.5rem;
  }
  
  .emirate-card, 
  .step-card {
    min-width: 100%;
  }
}

/* Update the content wrapper layout */
.article-content .content-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap; /* Prevent wrapping */
  align-items: flex-start; /* Align items to the top */
}

.article-content .main-content {
  flex: 2; /* Takes 2/3 of space */
  min-width: 0; /* Prevent flex overflow */
}

.article-content .sidebar {
  flex: 1; /* Takes 1/3 of space */
  min-width: 300px; /* Minimum width for sidebar */
  position: sticky;
  top: 20px; /* Stick to top with some spacing */
  align-self: flex-start; /* Align to top */
}

/* Ensure sidebar widgets stay properly formatted */
.sidebar-widget {
  margin-bottom: 30px;
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #e1e6eb;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .article-content .content-wrapper {
    flex-direction: column;
  }
  
  .article-content .sidebar {
    min-width: 100%;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .article-content .sidebar {
    grid-template-columns: 1fr;
  }
}