/* UAE E-Invoicing Specific Styles */
.key-takeaways {
  background: #f8fafc;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.key-takeaways h3 {
  color: var(--primary-dark);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.key-takeaways i {
  color: var(--primary-color);
}

.key-takeaways ul {
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
}

.key-takeaways li {
  margin-bottom: 0.8rem;
}

.key-takeaways strong {
  color: var(--primary-dark);
}

.download-resources {
  margin: 2rem 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  margin-right: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-download i {
  font-size: 1.2rem;
}

.quick-nav {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.quick-nav h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quick-nav i {
  color: var(--primary-color);
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

.nav-card:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.nav-card i {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.nav-card span {
  font-weight: 500;
}

.system-architecture {
  margin: 2rem 0;
}

.architecture-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  position: relative;
}

.corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  width: 120px;
  height: 120px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.corner i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.corner.fta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-light);
  border: 2px dashed var(--primary-color);
}

.arrow {
  flex: 1;
  height: 2px;
  background: var(--primary-color);
  position: relative;
}

.arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-color);
  border-top: 2px solid var(--primary-color);
  transform: rotate(45deg);
}

.diagram-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: -1rem;
}

.phases-container {
  margin: 3rem 0;
}

.phase-timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
}

.phase-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-light);
  z-index: 1;
}

.phase {
  flex: 1;
  max-width: 23%;
  position: relative;
  z-index: 2;
}

.phase-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.phase-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
}

.phase-content {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.phase-content p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.key-requirements {
  margin: 3rem 0;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.requirement-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.requirement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.requirement-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.requirement-card h4 {
  margin: 0.5rem 0;
  color: var(--primary-dark);
}

.requirement-card p {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin: 0;
}

.technical-changes-accordion {
  margin: 2rem 0;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--primary-color);
  color: white;
}

.accordion-header i:first-child {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.accordion-header i:last-child {
  transition: transform 0.3s ease;
}

.accordion-header.active i:last-child {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.accordion-content.active {
  padding: 1.5rem;
  max-height: 1000px;
}

.middleware-architecture {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem 0;
}

.component {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  width: 100px;
  height: 100px;
  text-align: center;
}

.component i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.connector {
  flex: 1;
  height: 2px;
  background: var(--primary-light);
  position: relative;
}

.connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-light);
  border-top: 2px solid var(--primary-light);
  transform: rotate(45deg);
}

.field-mapping-section {
  margin: 3rem 0;
}

.field-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.field-category {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.field-category h4 {
  color: var(--primary-dark);
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.field-category ul {
  margin: 1rem 0 0 0;
  padding-left: 1.2rem;
}

.field-category li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.field-category strong {
  color: var(--primary-dark);
}

.process-flow {
  margin: 3rem 0;
}

.flow-steps {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-light);
  z-index: 1;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step-content {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  width: 150px;
  text-align: center;
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.flow-arrow {
  flex: 1;
  height: 2px;
  background: var(--primary-light);
  position: relative;
  align-self: center;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-light);
  border-top: 2px solid var(--primary-light);
  transform: rotate(45deg);
}

.department-responsibilities {
  margin: 3rem 0;
}

.department-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.department-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.department-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.department-card h4 {
  margin: 0.5rem 0 1rem 0;
  color: var(--primary-dark);
}

.department-card ul {
  margin: 0;
  padding-left: 1.2rem;
  text-align: left;
  font-size: 0.9rem;
}

.department-card li {
  margin-bottom: 0.5rem;
}

.training-requirements {
  margin: 3rem 0;
}

.training-matrix table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-radius: 0.5rem;
  overflow: hidden;
}

.training-matrix th, 
.training-matrix td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.training-matrix th {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.training-matrix tr:last-child td {
  border-bottom: none;
}

.training-matrix tr:hover {
  background: #f9f9f9;
}

.channel-tabs {
  margin: 3rem 0;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-button {
  padding: 0.8rem 1.5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-button:hover {
  background: var(--primary-color);
  color: white;
}

.tab-button.active {
  background: var(--primary-color);
  color: white;
}

.tab-content {
  display: none;
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.tab-content.active {
  display: block;
}

.solution-architecture {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem 0;
}

.architecture-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  width: 100px;
  height: 100px;
  text-align: center;
}

.architecture-component i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.architecture-arrow {
  flex: 1;
  height: 2px;
  background: var(--primary-light);
  position: relative;
}

.architecture-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-light);
  border-top: 2px solid var(--primary-light);
  transform: rotate(45deg);
}

.checklist-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.checklist-category {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.checklist-category h3 {
  margin-top: 0;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.checklist-items {
  margin: 1rem 0 0 0;
  padding-left: 0;
  list-style: none;
}

.checklist-items li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.checklist-items input[type="checkbox"] {
  margin-right: 0.8rem;
  margin-top: 0.2rem;
}

.checklist-items label {
  font-size: 0.9rem;
  cursor: pointer;
}

.download-checklist {
  text-align: center;
  margin: 2rem 0;
}

.timeline-container {
  margin: 3rem 0;
}

.timeline-phase {
  margin-bottom: 2rem;
}

.timeline-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.timeline-phase-header h3 {
  margin: 0;
  color: var(--primary-dark);
}

.timeline-duration {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline-phase-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline-phase-content li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.timeline-visual {
  margin: 3rem 0;
}

.timeline-bar {
  height: 10px;
  background: var(--primary-light);
  border-radius: 5px;
  position: relative;
  margin-bottom: 0.5rem;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary-color);
  border-radius: 5px;
}

.timeline-progress.phase1 {
  width: 25%;
}

.timeline-progress.phase2 {
  width: 50%;
}

.timeline-progress.phase3 {
  width: 75%;
}

.timeline-progress.phase4 {
  width: 100%;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
}

.timeline-labels span {
  font-size: 0.9rem;
  color: var(--gray-color);
  width: 25%;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.service-card h3 {
  text-align: center;
  color: var(--primary-dark);
  margin: 0.5rem 0 1rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.service-card li {
  margin-bottom: 0.5rem;
}

.cta-box {
  background: var(--primary-light);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-box h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-dark);
}

.cta-box p {
  margin: 0 0 1.5rem 0;
  color: var(--gray-color);
}

.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .phase-timeline {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .phase {
    max-width: 100%;
    flex: 0 0 calc(50% - 1rem);
  }
  
  .phase-timeline::before {
    display: none;
  }
  
  .flow-steps {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .flow-step {
    flex: 0 0 calc(50% - 1rem);
    margin-bottom: 1.5rem;
  }
  
  .flow-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text, .hero-image {
    flex: 1 1 100%;
    width: 100%;
  }
  
  .content-wrapper {
    flex-direction: column;
  }
  
  .architecture-diagram {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .corner {
    margin-bottom: 1rem;
  }
  
  .arrow {
    display: none;
  }
  
  .phase {
    flex: 0 0 100%;
  }
  
  .flow-step {
    flex: 0 0 100%;
  }
}

@media (max-width: 576px) {
  .quick-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-buttons {
    flex-wrap: wrap;
  }
  
  .tab-button {
    flex: 1 0 auto;
  }
}