/* Odoo ERP Article Specific Styles - Optimized */

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2c3e50;
}

/* Hero Section */
.odoo-hero {
  background: linear-gradient(135deg, #875A7B 0%, #6B4D7B 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.odoo-hero .hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.odoo-hero .hero-text {
  flex: 1;
}

.odoo-hero .hero-image {
  flex: 1;
  position: relative;
}

.odoo-hero .hero-image img {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
}

.odoo-hero .hero-image:hover img {
  transform: scale(1.02);
}

.odoo-hero .article-category {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.odoo-hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.odoo-gradient {
  background: linear-gradient(90deg, #FF9B44 0%, #FC6075 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.odoo-hero .article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  flex-wrap: wrap;
}

.odoo-hero .article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.odoo-hero .tag {
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  text-decoration: none;
}

.odoo-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.odoo-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Quick Navigation */
.quick-nav {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 40px 0;
}

.quick-nav h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #875A7B;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.nav-card {
  background: white;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  text-decoration: none;
  color: #333;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: #875A7B;
}

.nav-card i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #875A7B;
}

.nav-card span {
  font-weight: 500;
}

/* Content Sections */
.content-section {
  margin-bottom: 60px;
}

.content-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #875A7B;
}

.content-section h2 i {
  color: #875A7B;
}

/* Timeline Styles */
.odoo-timeline {
  position: relative;
  padding-left: 30px;
  margin: 40px 0;
}

.odoo-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #875A7B, #FF9B44);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-year {
  position: absolute;
  left: -50px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #875A7B;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 0 4px white, 0 0 0 6px #875A7B;
}

.timeline-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 3px solid #875A7B;
}

.timeline-content h3 {
  margin-top: 0;
  color: #875A7B;
}

/* Model Cards */
.odoo-model {
  margin: 40px 0;
}

.model-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.model-card {
  background: white;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border-top: 3px solid #875A7B;
}

.model-card:hover {
  transform: translateY(-5px);
}

.model-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #875A7B 0%, #6B4D7B 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: white;
  font-size: 24px;
}

.model-card h4 {
  margin: 0 0 10px;
  color: #875A7B;
}

/* UAE Advantages */
.uae-advantages {
  margin: 40px 0;
}

.advantage-card {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 3px solid #875A7B;
}

.advantage-icon {
  width: 50px;
  height: 50px;
  background: #f3e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #875A7B;
  font-size: 20px;
  flex-shrink: 0;
}

.advantage-content h3 {
  margin-top: 0;
  color: #875A7B;
}

.advantage-content ul {
  padding-left: 20px;
  margin-bottom: 0;
}

/* Stats Grid */
.uae-stats {
  margin: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  background: white;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #875A7B;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: #6c757d;
}

/* Case Study */
.case-study {
  margin: 50px 0;
}

.case-study h3 {
  color: #875A7B;
  margin-bottom: 20px;
}

.case-study-content {
  display: flex;
  gap: 30px;
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.case-study-text {
  flex: 1;
}

.case-study-image {
  flex: 1;
}

.case-study-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.case-study h4 {
  margin-top: 20px;
  color: #875A7B;
}

/* Market Overview */
.market-overview {
  background: linear-gradient(135deg, #875A7B 0%, #6B4D7B 100%);
  color: white;
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.market-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.market-stat {
  text-align: center;
  min-width: 120px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
}

.source {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
}

/* Comparison Table */
.erp-comparison {
  margin: 40px 0;
}

.comparison-table {
  overflow-x: auto;
  margin: 20px 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th {
  background: #875A7B;
  color: white;
  padding: 12px;
  text-align: left;
}

.comparison-table td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
}

.comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}

.comparison-table i.fa-check-circle {
  color: #28a745;
}

.comparison-table i.fa-minus-circle {
  color: #ffc107;
}

.comparison-table i.fa-times-circle {
  color: #dc3545;
}

/* Strengths Grid */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.strength-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.strength-card:hover {
  transform: translateY(-5px);
}

.strength-icon {
  width: 60px;
  height: 60px;
  background: #f3e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #875A7B;
  font-size: 24px;
}

.strength-card h4 {
  margin: 0 0 10px;
  color: #875A7B;
}

/* Partner Levels */
.partner-levels {
  margin: 40px 0;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.level-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.level-badge {
  padding: 10px;
  text-align: center;
  color: white;
  font-weight: bold;
}

.level-badge.ready {
  background: #6c757d;
}

.level-badge.silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.level-badge.gold {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

.level-content {
  padding: 20px;
}

.level-content h4 {
  margin-top: 0;
  color: #875A7B;
}

.level-content ul {
  padding-left: 20px;
  margin-bottom: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.benefit-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: #f3e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #875A7B;
  font-size: 20px;
  margin-bottom: 15px;
}

.benefit-card h4 {
  margin: 0 0 10px;
  color: #875A7B;
}

/* Partner Cards */
.featured-partners {
  margin: 40px 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 20px 0;
}

.partner-card {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.partner-logo {
  flex: 0 0 120px;
}

.partner-logo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.partner-content {
  flex: 1;
}

.partner-meta {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
  flex-wrap: wrap;
}

.partner-level {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.partner-level.gold {
  background: #FFD700;
  color: #333;
}

.partner-level.silver {
  background: #C0C0C0;
  color: #333;
}

.partner-years {
  font-size: 12px;
  color: #6c757d;
}

.partner-strengths {
  padding-left: 20px;
  margin-bottom: 0;
  font-size: 14px;
}

/* Selection Criteria */
.selection-criteria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.criteria-card {
  display: flex;
  gap: 15px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.criteria-number {
  width: 30px;
  height: 30px;
  background: #875A7B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.criteria-content h4 {
  margin: 0 0 10px;
  color: #875A7B;
}

/* Our Value */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.value-card {
  display: flex;
  gap: 15px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-icon {
  width: 50px;
  height: 50px;
  background: #f3e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #875A7B;
  font-size: 20px;
  flex-shrink: 0;
}

.value-content h4 {
  margin: 0 0 10px;
  color: #875A7B;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.step-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}

.step-number {
  width: 30px;
  height: 30px;
  background: #875A7B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 15px;
}

.step-content h4 {
  margin: 0 0 10px;
  color: #875A7B;
}

/* CTA Section */
.consulting-cta {
  display: flex;
  gap: 30px;
  background: linear-gradient(135deg, #875A7B 0%, #6B4D7B 100%);
  color: white;
  border-radius: 8px;
  padding: 40px;
  margin: 50px 0;
  align-items: center;
}

.cta-content {
  flex: 1;
}

.cta-image {
  flex: 1;
}

.cta-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #FF9B44 0%, #FC6075 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Article Footer */
.article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tags-label {
  font-weight: 500;
  color: #6c757d;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  color: #875A7B;
  margin-top: 0;
  margin-bottom: 20px;
}

.author-bio {
  text-align: center;
}

.author-bio img {
  border-radius: 50%;
  margin-bottom: 15px;
  max-width: 200px;
  height: auto;
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-article {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.related-article:hover {
  color: #875A7B;
}

.related-article h4 {
  margin-bottom: 5px;
}

.article-meta {
  font-size: 14px;
  color: #6c757d;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.tool-item:hover {
  background: #f3e8f0;
  color: #875A7B;
}

.tool-item i {
  font-size: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

.privacy-note {
  font-size: 12px;
  color: #6c757d;
  margin-top: 10px;
}

/* More Articles */
.more-articles {
  padding: 60px 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: #875A7B;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.category {
  display: inline-block;
  background: #f3e8f0;
  color: #875A7B;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #875A7B;
  font-weight: 500;
  text-decoration: none;
  margin-top: 15px;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-secondary {
  display: inline-block;
  background: white;
  color: #875A7B;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #875A7B;
}

.btn-secondary:hover {
  background: #875A7B;
  color: white;
}

/* Disclaimer */
.disclaimer-section {
  background: #f8f9fa;
  padding: 30px 0;
  margin: 40px 0;
  border-radius: 8px;
}

.disclaimer-content {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.disclaimer-content h2 {
  color: #875A7B;
  margin-top: 0;
}

.disclaimer-content a {
  color: #875A7B;
  text-decoration: none;
  font-weight: 500;
}

.disclaimer-content a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text, .hero-image {
    flex: none;
    width: 100%;
  }
  
  .hero-image {
    margin-top: 30px;
  }
  
  .process-steps {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .model-cards, .strengths-grid, .levels-grid, 
  .benefits-grid, .value-grid, .selection-criteria {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .partners-grid {
    grid-template-columns: 1fr !important;
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .case-study-content {
    flex-direction: column;
  }
  
  .case-study-image {
    margin-top: 20px;
  }
  
  .consulting-cta {
    flex-direction: column;
  }
  
  .cta-image {
    margin-top: 30px;
  }
  
  .content-wrapper {
    flex-direction: column;
  }
  
  .sidebar {
    margin-top: 40px;
    position: static;
  }
}

@media (max-width: 768px) {
  .quick-nav-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .process-steps {
    grid-template-columns: 1fr !important;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .odoo-hero h1 {
    font-size: 36px;
  }
  
  .content-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .model-cards, .strengths-grid, .levels-grid, 
  .benefits-grid, .value-grid, .quick-nav-grid,
  .selection-criteria {
    grid-template-columns: 1fr !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 10px !important;
  }
  
  .advantage-card, .partner-card {
    flex-direction: column;
  }
  
  .advantage-icon, .partner-logo {
    margin-bottom: 15px;
  }
  
  .odoo-hero h1 {
    font-size: 32px;
  }
  
  .content-section h2 {
    font-size: 24px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.odoo-particle {
  animation: float 15s ease-in-out infinite;
}

.comparison-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

.comparison-table table {
  min-width: 600px; /* Keep this but ensure parent handles overflow */
}

@media (max-width: 576px) {
  .model-cards, .strengths-grid, .levels-grid, 
  .benefits-grid, .value-grid, .quick-nav-grid,
  .selection-criteria, .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Prevent horizontal overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .odoo-hero h1 {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text, .hero-image {
    width: 100%;
  }
}