/* ===== Homepage Specific Styles ===== */
.royal-home .royal-contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--royal-space-xl);
}

.royal-home .royal-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--royal-space-lg);
}

/* ===== Homepage Hero Section ===== */
.royal-hero {
  color: white;
  padding: 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.royal-swiper-banner {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 2;
}

.royal-swiper-banner-item {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.royal-swiper-banner-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.royal-hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--royal-space-lg);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 0;
  position: relative;
  z-index: 3;
  text-align: center;
}

.royal-hero-text {
  padding: 0 var(--royal-space-lg);
}

.royal-hero h1 {
  font-size: var(--royal-font-xxxl);
  margin-bottom: var(--royal-space-md);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ffffff, #e0f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.royal-hero p {
  font-size: var(--royal-font-md);
  margin-bottom: var(--royal-space-xl);
  opacity: 0.95;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.royal-hero-buttons {
  display: flex;
  gap: var(--royal-space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--royal-transition);
  margin-top: -24px;
  box-shadow: var(--royal-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.swiper-button-next i,
.swiper-button-prev i {
  font-size: var(--royal-font-md);
  color: white;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--royal-transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
  box-shadow: var(--royal-shadow-md);
}

.swiper-button-next:hover i,
.swiper-button-prev:hover i {
  transform: scale(1.2);
  color: #e0f2fe;
}

.swiper-button-prev { left: 30px; }
.swiper-button-next { right: 30px; }

/* Swiper Pagination */
.swiper-pagination {
  bottom: 40px !important;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  transition: var(--royal-transition);
  border: 2px solid transparent;
}

.swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.swiper-pagination-bullet-active {
  background: white;
  opacity: 1;
  transform: scale(1.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== Application Areas ===== */
.royal-applications-section {
  background: var(--royal-bg-white);
  padding: var(--royal-space-xxl) 0;
}

.royal-applications-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--royal-space-md);
}

.royal-application-card {
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-md);
  padding: var(--royal-space-lg) var(--royal-space-sm);
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  text-align: center;
  border: 1px solid var(--royal-border-light);
  position: relative;
  overflow: hidden;
}

.royal-application-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-application-icon-container {
  margin-bottom: var(--royal-space-md);
}

.royal-application-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--royal-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: var(--royal-font-xl);
  color: white;
}

/* Application icon color variations */
.royal-application-card:nth-child(1) .royal-application-icon { background: var(--royal-gradient-primary); }
.royal-application-card:nth-child(2) .royal-application-icon { background: var(--royal-gradient-green); }
.royal-application-card:nth-child(3) .royal-application-icon { background: var(--royal-gradient-purple); }
.royal-application-card:nth-child(4) .royal-application-icon { background: var(--royal-gradient-orange); }
.royal-application-card:nth-child(5) .royal-application-icon { background: var(--royal-gradient-red); }
.royal-application-card:nth-child(6) .royal-application-icon { background: var(--royal-gradient-cyan); }

.royal-application-card h3 {
  font-size: var(--royal-font-md);
  margin-bottom: 0.8rem;
  color: var(--royal-text-dark);
  font-weight: 600;
}

.royal-application-card p {
  color: var(--royal-text-lighter);
  line-height: 1.4;
}

/* ===== About Us Section ===== */
.royal-about-section {
  background: var(--royal-gradient-section);
  padding: var(--royal-space-xxl) 0;
}

.royal-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--royal-space-xl);
  align-items: start;
}

.royal-about-text h3 {
  font-size: var(--royal-font-md);
  margin-bottom: var(--royal-space-md);
  color: var(--royal-text-dark);
  font-weight: 600;
}

.royal-about-text p {
  color: var(--royal-text-light);
  margin-bottom: var(--royal-space-md);
  line-height: 1.6;
}

/* Timeline */
.royal-timeline {
  margin: var(--royal-space-lg) 0;
  position: relative;
}

.royal-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--royal-primary-blue);
  margin-left: 15px;
}

.royal-timeline-item {
  margin-bottom: var(--royal-space-md);
  padding-left: var(--royal-space-xl);
  position: relative;
}

.royal-timeline-item:before {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--royal-primary-blue);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--royal-primary-blue);
}

.royal-timeline-item h4 {
  font-size: var(--royal-font-md);
  margin-bottom: 0.5rem;
  color: var(--royal-primary-blue);
  font-weight: 600;
}

.royal-timeline-item p {
  color: var(--royal-text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.royal-about-image {
  border-radius: var(--royal-radius-md);
  overflow: hidden;
  box-shadow: var(--royal-shadow);
  height: 480px;
  margin-bottom: var(--royal-space-lg);
}

.royal-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--royal-transition-slow);
}

.royal-about-image:hover img {
  transform: scale(1.05);
}

.royal-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--royal-space-xl);
}

.royal-stat-number {
  font-size: var(--royal-font-xl);
  font-weight: 700;
  color: var(--royal-primary-blue);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.royal-stat-text {
  color: var(--royal-text-light);
  font-weight: 500;
}

/* Honors Section */
.royal-honors-section {
  margin-top: var(--royal-space-xxl);
}

.royal-honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--royal-space-lg);
  margin-top: var(--royal-space-lg);
}

.royal-honor-card {
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-lg);
  padding: var(--royal-space-lg);
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.royal-honor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-honor-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--royal-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--royal-space-md);
  color: white;
  font-size: var(--royal-font-xxl);
}

.royal-honor-card h3 {
  font-size: var(--royal-font-md);
  margin-bottom: var(--royal-space-sm);
  color: var(--royal-text-dark);
  font-weight: 600;
}

.royal-honor-card p {
  color: var(--royal-text-light);
  line-height: 1.6;
}

.royal-honor-year {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--royal-primary-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 600;
}

.royal-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.royal-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.royal-stat-sales { background: var(--royal-gradient-red); }
.royal-stat-favorites { background: var(--royal-gradient-orange); }

.royal-stat-count {
  font-weight: 600;
  color: var(--royal-text-dark);
}

.royal-more-products {
  text-align: center;
  margin-top: var(--royal-space-xl);
}

/* ===== News Section ===== */
.royal-news-section {
  background: var(--royal-gradient-section);
  padding: var(--royal-space-xxl) 0;
}

.royal-news-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--royal-space-lg);
  align-items: start;
}

.royal-news-slider {
  height: 100%;
  border-radius: var(--royal-radius-md);
  overflow: hidden;
  box-shadow: var(--royal-shadow);
}

.royal-news-swiper {
  height: 100%;
  border-radius: var(--royal-radius-md);
}

.royal-news-slide-item {
  height: 100%;
  background: var(--royal-bg-white);
}

.royal-news-slide-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--royal-blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

/* Aspect ratio fallback */
@supports not (aspect-ratio: 4 / 3) {
  .royal-news-slide-image::before {
    content: '';
    display: block;
    padding-top: 75%;
  }

  .royal-news-slide-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.royal-news-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--royal-transition-slow);
}

.royal-news-slide-item:hover .royal-news-slide-image img {
    transform: scale(1.1);
}

.royal-news-slide-content {
  padding: var(--royal-space-lg);
}

.royal-news-slide-content h3 {
  font-size: var(--royal-font-md);
  margin-bottom: var(--royal-space-sm);
  color: var(--royal-text-dark);
  font-weight: 600;
  line-height: 1.4;
}

.royal-news-slide-content p {
  color: var(--royal-text-light);
  margin-bottom: var(--royal-space-md);
  line-height: 1.6;
}

.royal-news-slide-content .royal-news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.royal-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-md);
  padding: 0 var(--royal-space-md);
  box-shadow: var(--royal-shadow);
}

.royal-news-list-item {
  padding: var(--royal-space-md) 0rem;
  transition: var(--royal-transition);
  display: flex;
  gap: var(--royal-space-md);
  align-items: flex-start;
  border-bottom: 1px solid var(--royal-border-light);
}

.royal-news-list-item:last-child {
  border-bottom: none;
}

.royal-news-list-image {
  width: 7.5rem;
  position: relative;
  overflow: hidden;
  background: var(--royal-blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--royal-radius);
}

/* Aspect ratio fallback */
@supports not (aspect-ratio: 4 / 3) {
  .royal-news-list-image::before {
    content: '';
    display: block;
    padding-top: 75%;
  }

  .royal-news-list-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.royal-news-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--royal-transition-slow);
}
 
.royal-news-list-content {
  flex: 1;
}

.royal-news-list-content h4 {
  font-size: var(--royal-font-default);
  margin-bottom:var(--royal-space-xs);
  color: var(--royal-text-dark);
  font-weight: 600;
  line-height: 1.4;
}

.royal-news-list-content p {
  color: var(--royal-text-lighter);
   font-size: var(--royal-font-sm);
    margin-bottom:var(--royal-space-xs);
}

.royal-news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.royal-news-date {
  color: var(--royal-text-lighter);
  font-weight: 500;
   font-size: var(--royal-font-sm);
}

.royal-news-category {
  background: var(--royal-blue-100);
  color: var(--royal-blue-500);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: var(--royal-font-xs);
  font-weight: 600;
}

/* ===== Solutions Section ===== */
.royal-solutions-section {
  background: var(--royal-bg-white);
  padding: var(--royal-space-xxl) 0;
}

.royal-index-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--royal-space-lg);
}

.royal-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--royal-space-lg);
}

.royal-solution-card {
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-lg);
  padding: var(--royal-space-xl) var(--royal-space-lg);
  box-shadow: var(--royal-shadow);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.royal-solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-solution-icon-bg {
  width: 100px;
  height: 100px;
  border-radius: var(--royal-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--royal-space-md);
  position: relative;
  overflow: hidden;
}

/* Solution icon color variations */
.royal-solution-card:nth-child(1) .royal-solution-icon-bg { background: var(--royal-gradient-primary); }
.royal-solution-card:nth-child(2) .royal-solution-icon-bg { background: var(--royal-gradient-green); }
.royal-solution-card:nth-child(3) .royal-solution-icon-bg { background: var(--royal-gradient-purple); }
.royal-solution-card:nth-child(4) .royal-solution-icon-bg { background: var(--royal-gradient-orange); }
.royal-solution-card:nth-child(5) .royal-solution-icon-bg { background: var(--royal-gradient-red); }
.royal-solution-card:nth-child(6) .royal-solution-icon-bg { background: var(--royal-gradient-cyan); }

.royal-solution-icon {
  font-size: 2.5rem;
  color: white;
}

.royal-solution-card h3 {
  font-size: var(--royal-font-md);
  margin-bottom: var(--royal-space-sm);
  color: var(--royal-text-dark);
  font-weight: 600;
}

.royal-solution-card p {
  color: var(--royal-text-light);
  line-height: 1.5;
}

/* ===== Client Partners Section ===== */
.royal-clients-section {
  background: var(--royal-bg-light);
  padding: var(--royal-space-xxl) 0;
}

.royal-clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--royal-space-md);
  align-items: center;
}

.royal-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: var(--royal-space-sm);
  background: var(--royal-bg-white);
  border-radius: var(--royal-radius-md);
  box-shadow: var(--royal-shadow-sm);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
}

.royal-client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--royal-shadow-md);
}

.royal-client-logo img {
  max-width: 100%;
  max-height: 100%;
  transition: var(--royal-transition);
  filter: grayscale(100%) opacity(0.8);
}

.royal-client-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1) rotate(360deg);
  transition: all 0.5s ease-in-out;
}

/* ===== Contact Section ===== */
.royal-contact-section {
  background: var(--royal-bg-white);
  padding: var(--royal-space-xxl) 0;
}

.royal-contact-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.royal-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--royal-space-md);
}

.royal-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--royal-space-md);
  background: var(--royal-bg-white);
  padding: var(--royal-space-md);
  border-radius: var(--royal-radius-md);
  box-shadow: var(--royal-shadow-sm);
  transition: var(--royal-transition);
  border: 1px solid var(--royal-border-light);
}

.royal-contact-item:hover {
  transform: translateX(3px);
  box-shadow: var(--royal-shadow);
}

.royal-contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--royal-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--royal-font-md);
  flex-shrink: 0;
}

/* Contact icon color variations */
.royal-contact-item:nth-child(1) .royal-contact-icon { background: var(--royal-gradient-primary); }
.royal-contact-item:nth-child(2) .royal-contact-icon { background: var(--royal-gradient-green); }
.royal-contact-item:nth-child(3) .royal-contact-icon { background: var(--royal-gradient-purple); }
.royal-contact-item:nth-child(4) .royal-contact-icon { background: var(--royal-gradient-orange); }
.royal-contact-item:nth-child(5) .royal-contact-icon { background: var(--royal-gradient-red); }
.royal-contact-item:nth-child(6) .royal-contact-icon { background: var(--royal-gradient-cyan); }

.royal-contact-details h3 {
  margin-bottom: 0.5rem;
  color: var(--royal-text-dark);
  font-size: var(--royal-font-md);
  font-weight: 600;
}

.royal-contact-details p {
  color: var(--royal-text-light);
}

.royal-jobs-preview {
  background: var(--royal-blue-50);
  padding: var(--royal-space-sm);
  border-radius: var(--royal-radius);
  margin-top: var(--royal-space-sm);
  border-left: 3px solid var(--royal-primary-blue);
}

.royal-job-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--royal-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.royal-job-item:last-child {
  border-bottom: none;
}

.royal-job-title {
  font-weight: 500;
  color: var(--royal-text-dark);
  font-size: var(--royal-font-sm);
}

.royal-job-meta {
  color: var(--royal-text-light);
  font-size: var(--royal-font-sm);
}

.royal-contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--royal-space-md);
  background: var(--royal-bg-white);
  padding: var(--royal-space-xl);
  border-radius: var(--royal-radius-lg);
  box-shadow: var(--royal-shadow);
  border: 1px solid var(--royal-border-light);
}

.royal-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.royal-form-group label {
  font-weight: 500;
  color: var(--royal-text-dark);
  font-size: var(--royal-font-md);
}

.royal-form-group input,
.royal-form-group textarea {
  padding: 0.9rem;
  border: 1.5px solid var(--royal-border-light);
  border-radius: var(--royal-radius);
  font-size: var(--royal-font-sm);
  transition: var(--royal-transition);
  background: var(--royal-bg-light);
}

.royal-form-group input:focus,
.royal-form-group textarea:focus {
  outline: none;
  border-color: var(--royal-primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}