/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-dark: #1d1e25;
  --text-light: #ffffff;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: transparent;
}

.bold {
  font-weight: bold;
}

/* Header styles are now in the header-component.js web component */

/* Section Styles */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 2rem 60px;
  overflow: hidden;
  background: transparent;
}

.section-content {
  width: 100%;
  position: relative;
  z-index: 3;
}

/* Section 1 */
.section-1 {
  background: transparent;
  color: var(--text-light);
  position: relative;
  text-align: left;
  border-bottom: 6px solid;
  border-image-source: linear-gradient(
    274.64deg,
    #ffbe32 -0.13%,
    #fb8f30 92.37%
  );
  border-image-slice: 1;
  margin-bottom: 60px;
}

.section-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Video Loading Spinner */
.video-loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: none;
  background: rgba(0, 0, 0, 0.1);
  align-items: center;
  justify-content: center;
}

.video-loading-spinner.show {
  display: flex;
}

/* Custom Loading Animation for Video */
.video-loading-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-loading-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 190, 50, 0.1);
  border-top: 4px solid #ffbe32;
  border-right: 4px solid #fb8f30;
  border-radius: 50%;
  animation: rotateRing 1.5s linear infinite;
}

.video-loading-center {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #ffbe32, #fb8f30);
  border-radius: 50%;
  animation: pulseCenter 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.video-loading-center::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulseInner 2s ease-in-out infinite 0.5s;
}

/* Ensure video doesn't interfere with touch interactions on mobile */
@media (max-width: 768px) {
  .section-video {
    pointer-events: none;
  }
}

/* Section 1 - New Styles */
.section-main-title {
  text-align: left;
  max-width: 610px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(-50px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-main-title h1 {
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-main-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-description {
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
  max-width: 610px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.4s;
}

.section-description.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.9s;
}

.section-cta.animate {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--text-light);
  color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-3px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 100px 1rem 60px;
  }

  .section-1 {
    margin-bottom: 0;
  }

  .section-main-title h1 {
    font-size: clamp(2rem, 8vw, 48px);
  }

  .section-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Section 2 Styles */
.section-2 {
  background: #f8f9fa;
  color: var(--text-dark);
}

.section-2-layout {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-2-image {
  flex: 0 0 auto;
  width: 100%;
  max-width: 870px;
  height: 600px;
  background-image: url("../media/section2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  position: absolute;
  right: 0;
  z-index: 5;
}

.section-2-image.animate {
  opacity: 1;
  transform: translateX(0);
}

.rotating-triangle {
  position: absolute;
  height: 100%;
  width: auto;
  left: -20%;
  top: 0;
  animation: rotateTriangle 10s linear infinite;
  z-index: 2;
}

@keyframes rotateTriangle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes visaChipFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(3px, -2px) rotate(2deg);
  }
  50% {
    transform: translate(-2px, -4px) rotate(-1deg);
  }
  75% {
    transform: translate(-1px, 2px) rotate(1.5deg);
  }
}

.section-2-text-box {
  flex: 1 1 auto;
  min-width: 486px;
  max-width: 40%;
  margin-left: 20px;
  padding: 2rem;
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, #ffbe32, #fb8f30) 1;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  z-index: 10;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.3s;
}

.section-2-text-box.animate {
  opacity: 1;
  transform: translateX(0);
}

.section-2-text-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #1d1e25;
  opacity: 0.64;
  margin: 0;
}

/* Responsive Design for Section 2 */
@media (max-width: 1024px) {
  .section-2-image {
    max-width: 600px;
    height: 450px;
  }

  .section-2-text-box {
    min-width: 400px;
    max-width: 45%;
    margin-left: 15px;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-2-layout {
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    min-height: 600px;
  }

  .section-2-image {
    position: relative;
    right: auto;
    max-width: 100%;
    height: 300px;
    order: 2;
    z-index: 5;
  }

  .section-2-text-box {
    position: relative;
    order: 1;
    min-width: auto;
    max-width: 100%;
    margin-left: 0;
    padding: 1.5rem;
    z-index: 10;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .section-2-text-box {
    padding: 1rem;
    margin-bottom: 0;
  }

  .section-2-text-box p {
    font-size: 15px;
  }
}

/* Section 3 Styles */
.section-3 {
  background: #ffffff;
  color: var(--text-dark);
  padding: 120px 2rem 80px;
}

/* Medical Services Section specific override */
#medical-services.section-3 {
  padding: 40px;
}

.section-3-title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.section-3-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-3-description {
  font-size: 16px;
  text-align: left;
  margin-bottom: 3rem;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.4s;
}

.section-3-description.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  position: relative;
}

.grid-item {
  border: 1px solid transparent;
  padding: 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.grid-item.animate {
  opacity: 1;
  transform: translateY(0);
  border-color: #c9c9c9;
}

.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  background: #1d1e25;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Corner dots for each grid item */
.corner-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #c9c9c9;
  border-radius: 50%;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease 1.2s;
}

.grid-item.animate .corner-dot {
  opacity: 1;
}

.corner-dot.top-left {
  top: -6px;
  left: -6px;
}

.corner-dot.top-right {
  top: -6px;
  right: -6px;
}

.corner-dot.bottom-left {
  bottom: -6px;
  left: -6px;
}

.corner-dot.bottom-right {
  bottom: -6px;
  right: -6px;
}

.service-card:hover {
  background: #1d1e25;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.image-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card:hover {
  transform: translateY(-5px);
  background: transparent;
}

.visa-item {
  grid-column: span 2;
}

.visa-card {
  background: #00305b;
  color: #ffffff;
}

.visa-card:hover {
  background: #002a52;
  color: #ffffff;
}

.visa-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.visa-types {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.visa-types span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: visaChipFloat 8s ease-in-out infinite;
  animation-delay: calc(var(--chip-index, 0) * 0.5s);
  transform-origin: center;
}

/* Responsive Design for Section 3 */
@media (max-width: 1400px) {
  .section-3-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1000px;
  }

  .visa-item {
    grid-column: span 3;
  }
}

@media (max-width: 1024px) {
  .section-3-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 800px;
  }

  .visa-item {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section-3 {
    padding: 80px 1rem 60px;
  }

  /* Medical Services Section specific override */
  #medical-services.section-3 {
    padding: 20px;
  }

  .section-3-title {
    font-size: 28px;
  }

  .section-3-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .visa-item {
    grid-column: span 1;
  }

  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-3 {
    padding: 60px 1rem 40px;
  }

  /* Medical Services Section specific override */
  #medical-services.section-3 {
    padding: 20px;
  }

  .section-3-title {
    font-size: 24px;
  }

  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .section-3 {
    padding: 40px 0.5rem 30px;
  }

  /* Medical Services Section specific override */
  #medical-services.section-3 {
    padding: 20px;
  }

  .section-3-title {
    font-size: 22px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 350px) {
  .section-3 {
    padding: 30px 0.25rem 20px;
  }

  /* Medical Services Section specific override */
  #medical-services.section-3 {
    padding: 20px;
  }

  .section-3-title {
    font-size: 20px;
    margin-bottom: 0.75rem;
  }
}

/* Medical Services Section Styles */
.medical-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Limit to 4 columns on very large screens */
@media (min-width: 1700px) {
  .medical-services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.medical-service-card {
  background: #00305b;
  color: #ffffff;
  padding: 2rem;
  height: 100%;
  max-width: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.medical-service-card:hover {
  background: #002a52;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 190, 50, 0.3);
}

.medical-service-icon {
  width: 92px;
  height: 92px;
  background: rgb(41, 81, 117);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.medical-service-icon img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.medical-service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #ffffff;
  text-transform: uppercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.medical-service-card p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Arrow button within medical service cards */
.medical-service-card arrow-button {
  margin-top: auto;
}

/* Responsive Design for Medical Services */
@media (max-width: 1200px) {
  .medical-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .medical-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .medical-service-card {
    padding: 1.5rem;
  }

  .medical-service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
  }

  .medical-service-icon img {
    width: 40px;
    height: 40px;
  }

  .medical-service-card h3 {
    font-size: 22px;
  }

  .medical-service-card p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .medical-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .medical-service-card {
    padding: 1.5rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .medical-service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
  }

  .medical-service-icon img {
    width: 40px;
    height: 40px;
  }

  .medical-service-card h3 {
    font-size: 22px;
  }

  .medical-service-card p {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .medical-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .medical-services-grid {
    gap: 1rem;
  }

  .medical-service-card {
    padding: 1.25rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .medical-service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }

  .medical-service-icon img {
    width: 35px;
    height: 35px;
  }

  .medical-service-card h3 {
    font-size: 20px;
  }

  .medical-service-card p {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .medical-services-grid {
    gap: 0.75rem;
  }

  .medical-service-card {
    padding: 1rem;
  }

  .medical-service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.75rem;
  }

  .medical-service-icon img {
    width: 30px;
    height: 30px;
  }

  .medical-service-card h3 {
    font-size: 18px;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .medical-service-card p {
    font-size: 13px;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

@media (max-width: 350px) {
  .medical-services-grid {
    gap: 0.5rem;
  }

  .medical-service-card {
    padding: 0.75rem;
  }

  .medical-service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
  }

  .medical-service-icon img {
    width: 25px;
    height: 25px;
  }

  .medical-service-card h3 {
    font-size: 16px;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .medical-service-card p {
    font-size: 12px;
    margin-bottom: 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Section 4 Styles - Reversed Colors */
.section-4 {
  background: #1a1c1e;
  color: #ffffff;
  padding: 120px 2rem 80px;
}

.section-4-title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.section-4-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-4-description {
  font-size: 16px;
  text-align: left;
  margin-bottom: 3rem;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.4s;
}

.section-4-description.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  position: relative;
}

.grid-item-4 {
  border: 1px solid transparent;
  padding: 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.grid-item-4.animate {
  opacity: 1;
  transform: translateY(0);
  border-color: #ffffff;
}

.service-card-4 {
  background: #1a1c1e;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-4:hover {
  background: #ffffff;
  color: #1a1c1e;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.service-card-4 h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card-4 p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Corner dots for section 4 - white */
.corner-dot-4 {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease 1.2s;
}

.grid-item-4.animate .corner-dot-4 {
  opacity: 1;
}

.corner-dot-4.top-left {
  top: -6px;
  left: -6px;
}

.corner-dot-4.top-right {
  top: -6px;
  right: -6px;
}

.corner-dot-4.bottom-left {
  bottom: -6px;
  left: -6px;
}

.corner-dot-4.bottom-right {
  bottom: -6px;
  right: -6px;
}

/* Image cards spanning 2 columns */
.image-item-4 {
  grid-column: span 2;
}

.image-card-4 {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #1a1c1e;
  max-height: 20rem;
  width: auto;
}

.image-card-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card-4:hover {
  transform: translateY(-5px);
  background: #1a1c1e;
}

/* Gradient card */
.gradient-card-4 {
  background: linear-gradient(135deg, #ffbe32, #fb8f30);
  color: #1a1c1e;
}

.gradient-card-4:hover {
  background: linear-gradient(135deg, #ffd152, #fc9f50);
  color: #1a1c1e;
}

/* Responsive Design for Section 4 */
@media (max-width: 1400px) {
  .section-4-grid {
    gap: 0;
  }

  .image-item-4 {
    grid-column: span 2;
  }

  .image-card-4 {
    max-height: 300px;
  }
}

@media (max-width: 1024px) {
  .section-4-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .image-item-4 {
    grid-column: span 2;
  }

  .image-card-4 {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .section-4 {
    padding: 80px 1rem 60px;
  }

  .section-4-title {
    font-size: 28px;
  }

  .section-4-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .image-item-4 {
    grid-column: span 1;
  }

  .service-card-4 {
    padding: 1.5rem;
  }

  .image-card-4 {
    height: 200px;
  }

  /* Mobile: show mobile-image, hide desktop-image */
  .mobile-image {
    display: block;
  }

  .desktop-image {
    display: none;
  }
}

/* Desktop/Tablet: show desktop-image, hide mobile-image */
@media (min-width: 769px) {
  .mobile-image {
    display: none;
  }

  .desktop-image {
    display: block;
  }
}

@media (max-width: 480px) {
  .section-4-title {
    font-size: 24px;
  }

  .service-card-4 {
    padding: 1rem;
  }

  .service-card-4 h3 {
    font-size: 20px;
  }

  .service-card-4 p {
    font-size: 15px;
  }

  .image-card-4 {
    height: 180px;
  }
}

/* Large screens (1900px+) - increase image card text sizes */
@media (min-width: 1900px) {
  .service-card h3,
  .service-card-4 h3 {
    font-size: 28px;
  }

  .service-card p,
  .service-card-4 p,
  .visa-types span {
    font-size: 18px;
  }
}

/* Large screens (2000px+) - increase image card text sizes */
@media (min-width: 2000px) {
  .service-card h3,
  .service-card-4 h3 {
    font-size: 30px;
  }

  .service-card p,
  .service-card-4 p,
  .visa-types span {
    font-size: 20px;
  }
}

/* Section 5 Styles */
.section-5 {
  background: #f8f9fa;
  color: var(--text-dark);
  text-align: center;
  overflow: visible;
}

.section-5 .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem;
}

.section-5-title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.section-5-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-5-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.4s;
}

.section-5-description.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Large screens (1500px+) - increase section 5 description text size */
@media (min-width: 1500px) {
  .section-5-description {
    font-size: 22px;
  }
}

.section-5-video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.6s;
}

.section-5-video-container.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-5-video-triangle-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-5-rotating-triangle {
  position: absolute;
  top: -35%;
  left: -35%;
  height: 100%;
  width: auto;
  animation: rotateTriangle 10s linear infinite;
  z-index: 2;
  filter: brightness(0) invert(1); /* Makes the SVG white */
  object-fit: cover;
  pointer-events: none; /* Prevents interaction issues */
}

.section-5-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
  position: relative;
  z-index: 1;
}

/* Video Tabs */
.video-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  background: transparent;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.8s;
  gap: 0;
}

.video-tabs.animate {
  opacity: 1;
  transform: translateY(0);
}

.video-tab {
  flex: 0 1 auto;
  min-width: fit-content;
  max-width: 280px;
  background: rgba(255, 255, 255, 1);
  border: none;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  overflow: visible;
  align-self: flex-end;
  height: auto;
}

.video-tabs.animate .video-tab {
  opacity: 1;
  transform: translateY(0);
}

.video-tabs.animate .video-tab:nth-child(1) {
  transition-delay: 0.1s;
}

.video-tabs.animate .video-tab:nth-child(2) {
  transition-delay: 0.2s;
}

.video-tabs.animate .video-tab:nth-child(3) {
  transition-delay: 0.3s;
}

.video-tabs.animate .video-tab:nth-child(4) {
  transition-delay: 0.4s;
}

.video-tab:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.video-tab span {
  font-size: 20px;
  font-weight: 700;
  color: #1d1e25;
  text-transform: uppercase;
  line-height: 1.2;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  z-index: 2;
  position: relative;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

/* Tab Content */
.tab-content {
  position: relative;
  background: transparent;
  padding: 0;
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  width: 100%;
  max-width: 250px;
}

.video-tab:hover .tab-content {
  padding: 1rem 0 0 0;
}

.tab-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #1d1e25;
  margin: 0;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  text-transform: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
  text-align: left;
  word-wrap: break-word;
  hyphens: auto;
}

.video-tab:hover .tab-content p {
  max-height: 200px;
  margin-top: 1rem;
}

/* Enhanced hover effect for tab */
.video-tab:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  align-self: flex-end;
  position: relative;
}

.video-tab:hover::before,
.video-tab.simulate-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #ffbe32, #fb8f30);
}

/* Simulated hover state for scroll-triggered expansion */
.video-tab.simulate-hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  align-self: flex-end;
  position: relative;
}

.video-tab.simulate-hover .tab-content {
  padding: 1rem 0 0 0;
}

.video-tab.simulate-hover .tab-content p {
  max-height: 200px;
  margin-top: 1rem;
}

/* Ensure collapsed state when simulate-hover is removed */
.video-tab:not(.simulate-hover):not(:hover) .tab-content {
  padding: 0;
}

.video-tab:not(.simulate-hover):not(:hover) .tab-content p {
  max-height: 0;
  margin-top: 0;
}

/* Ensure real hover overrides simulated hover */
.video-tab:hover,
.video-tab:hover.simulate-hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  align-self: flex-end;
  position: relative;
}

.video-tab:hover .tab-content,
.video-tab:hover.simulate-hover .tab-content {
  padding: 1rem 0 0 0;
}

.video-tab:hover .tab-content p,
.video-tab:hover.simulate-hover .tab-content p {
  max-height: 200px;
  margin-top: 1rem;
}

/* Responsive Design for Section 5 */
@media (max-width: 1400px) {
  .section-5 {
    padding: 80px 2rem 60px;
  }

  .section-5-title {
    font-size: 32px;
  }

  .section-5-description {
    font-size: 17px;
  }

  .video-tabs {
    position: static;
    flex-direction: column;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .video-tab {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    width: 100%;
    max-width: none;
    flex: none;
  }

  .video-tab:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .video-tab span {
    font-size: 20px;
    margin-bottom: 0.5rem;
  }

  /* Tab content positioning */
  .tab-content {
    position: static;
    background: transparent;
    padding: 0;
    margin-left: 0;
    border-top: none;
    width: 100%;
    max-width: none;
  }

  .video-tab:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  .video-tab:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #ffbe32, #fb8f30);
  }

  .video-tab:hover .tab-content {
    padding: 1rem 0 0 0;
  }

  .tab-content p {
    font-size: 16px;
    text-align: left;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
  }

  .video-tab:hover .tab-content p {
    max-height: 200px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .section-5 {
    padding: 80px 1rem 60px;
  }

  .section-5-title {
    font-size: 28px;
  }

  .section-5-description {
    font-size: 16px;
  }

  .video-tabs {
    position: static;
    flex-direction: column;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .video-tab {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    width: 100%;
    max-width: none;
    flex: none;
  }

  .video-tab:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .video-tab span {
    font-size: 18px;
    margin-bottom: 0.5rem;
  }

  /* Mobile tab content positioning */
  .tab-content {
    position: static;
    background: transparent;
    padding: 0;
    margin-left: 0;
    border-top: none;
    width: 100%;
    max-width: none;
  }

  .video-tab:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  .video-tab:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #ffbe32, #fb8f30);
  }

  .video-tab:hover .tab-content {
    padding: 1rem 0 0 0;
  }

  .tab-content p {
    font-size: 14px;
    text-align: left;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
  }

  .video-tab:hover .tab-content p {
    max-height: 150px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .section-5-title {
    font-size: 24px;
  }

  .section-5-description {
    font-size: 15px;
  }

  .video-tab {
    padding: 1.5rem;
  }

  .video-tab span {
    font-size: 16px;
  }
}

/* Section 6 - Contact Styles */
.section-6 {
  background: #f8f9fa;
  color: var(--text-dark);
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.section-6-background {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
  transition-delay: 1s;
}

.section-6-background.animate {
  opacity: 0.4;
}

.background-triangle {
  width: 100%;
  height: 100%;
  transform: rotate(30deg);
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(95%) contrast(95%);
}

.section-6-layout {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-6-left {
  flex: 1;
  max-width: 50%;
}

.section-6-right {
  flex: 1;
  max-width: 50%;
}

.section-6-title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.section-6-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-6-description {
  font-size: 16px;
  text-align: left;
  margin-bottom: 3rem;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.4s;
}

.section-6-description.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Info List */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.6s;
}

.contact-info-list.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  background: #1d1e25;
  flex-shrink: 0;
}

.contact-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  text-transform: capitalize;
}

.contact-value {
  font-size: 18px;
  font-weight: 400;
  color: #1d1e25;
}

/* Contact Form Styles */
.contact-form {
  background: #ffffff;
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, #ffbe32, #fb8f30) 1;
  padding: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  transition-delay: 0.8s;
}

.contact-form.animate {
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #1d1e25;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ffbe32;
  box-shadow: 0 0 0 3px rgba(255, 190, 50, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.character-count {
  text-align: right;
  font-size: 14px;
  color: #666;
  margin-top: 0.5rem;
}

.char-current {
  color: #1d1e25;
}

.char-max {
  color: #666;
}

/* Submit Button - Using arrow-button component */

/* Responsive Design for Section 6 */
@media (max-width: 1024px) {
  .section-6-layout {
    gap: 3rem;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .section-6 {
    padding: 80px 1rem 60px;
  }

  .section-6-background {
    display: none;
  }

  .section-6-layout {
    flex-direction: column;
    gap: 3rem;
  }

  .section-6-left,
  .section-6-right {
    max-width: 100%;
    width: 100%;
  }

  .section-6-title {
    font-size: 28px;
  }

  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-row .form-group {
    margin-bottom: 0;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-info-list {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-6-title {
    font-size: 24px;
  }

  .contact-form {
    padding: 1rem;
  }

  .contact-info-item {
    gap: 1rem;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
  }

  .contact-icon img {
    width: 20px;
    height: 20px;
  }

  .contact-value {
    font-size: 16px;
  }
}

/* Header responsive styles are now in the header component */

/* About Us Page Title Section */
.title-section {
  padding: 8rem 2rem 2rem 2rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin-top: 2rem;
}

.title-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.main-title {
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: 0%;
  text-align: center;
  text-transform: uppercase;
  color: #1d1e25;
  margin: 0;
  padding: 0;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.main-title.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive styles for the title */
@media (max-width: 768px) {
  .title-section {
    padding: 6rem 1rem 1.5rem 1rem;
    min-height: 180px;
    margin-top: 1.5rem;
  }

  .main-title {
    font-size: 36px;
    line-height: 42px;
  }
}

@media (max-width: 480px) {
  .title-section {
    padding: 5rem 1rem 1rem 1rem;
    min-height: 160px;
    margin-top: 1rem;
  }

  .main-title {
    font-size: 28px;
    line-height: 34px;
  }
}

/* About Us Content Section */
.content-section {
  padding: 2rem 2rem;
  background: #ffffff;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.newspaper-columns {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.newspaper-columns.desktop-columns {
  display: grid;
}

.column {
  break-inside: avoid;
}

.column p {
  font-family: "TT Hoves Pro Trial", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #333;
  margin: 0 0 2rem 0;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.column p.animate {
  opacity: 1;
  transform: translateY(0);
}

.column p:last-child {
  margin-bottom: 0;
}

/* Show/hide content based on screen size */
.mobile-single-text {
  display: none;
}

.mobile-single-text p {
  font-family: "TT Hoves Pro Trial", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #333;
  margin: 0 0 2rem 0;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.mobile-single-text p.animate {
  opacity: 1;
  transform: translateY(0);
}

.mobile-single-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .newspaper-columns.desktop-columns {
    display: none;
  }

  .mobile-single-text {
    display: block;
  }
}

/* Responsive styles for columns */
@media (max-width: 1024px) {
  .newspaper-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .content-section {
    padding: 1.5rem 1rem;
  }

  .newspaper-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .column p {
    font-size: 15px;
    line-height: 22px;
  }

  .mobile-single-text p {
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 1rem 1rem;
  }

  .newspaper-columns {
    gap: 1.5rem;
  }

  .column p {
    font-size: 14px;
    line-height: 20px;
  }

  .mobile-single-text p {
    font-size: 14px;
    line-height: 20px;
  }
}

/* About Us Page Specific Styles */
body:has(header-component[current-page="about"]) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(header-component[current-page="about"]) main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px); /* Adjust for header height */
}

body:has(header-component[current-page="about"]) .content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: unset;
  padding: 4rem 2rem;
}

body:has(header-component[current-page="about"]) footer-component {
  margin-top: auto;
}

/* Larger text on very large desktop screens */
@media (min-width: 1900px) {
  body:has(header-component[current-page="about"]) .content-container {
    max-width: 80%;
  }

  body:has(header-component[current-page="about"]) .column p {
    font-size: 20px;
    line-height: 28px;
  }

  body:has(header-component[current-page="about"]) .mobile-single-text p {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (min-width: 2200px) {
  body:has(header-component[current-page="about"]) .column p {
    font-size: 24px;
    line-height: 32px;
  }

  body:has(header-component[current-page="about"]) .mobile-single-text p {
    font-size: 24px;
    line-height: 32px;
  }
}

/* Carousel Styles */
.carousel-section {
  padding: 3rem 0;
  width: 100vw;
}

.carousel-container {
  width: 100vw;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  gap: 20px;
  animation: slide 40s linear infinite;
  width: calc((400px + 20px) * 22); /* 22 images for seamless loop */
}

.carousel-slide {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

/* Keyframes for carousel animation */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-100% / 2)
    ); /* Move half the width to show the duplicated images seamlessly */
  }
}

/* Responsive carousel styles */
@media (max-width: 1200px) {
  .carousel-slide {
    width: 350px;
    height: 260px;
  }

  .carousel-wrapper {
    width: calc((350px + 20px) * 22);
    animation-duration: 36s;
  }
}

@media (max-width: 900px) {
  .carousel-slide {
    width: 300px;
    height: 225px;
  }

  .carousel-wrapper {
    width: calc((300px + 20px) * 22);
    animation-duration: 32s;
  }
}

@media (max-width: 650px) {
  .carousel-section {
    padding: 2rem 0;
  }

  .carousel-slide {
    width: 280px;
    height: 210px;
  }

  .carousel-wrapper {
    width: calc((280px + 20px) * 22);
    gap: 15px;
    animation-duration: 28s;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    width: 250px;
    height: 187px;
  }

  .carousel-wrapper {
    width: calc((250px + 20px) * 22);
    gap: 10px;
    animation-duration: 24s;
  }
}

/* Content Section Styles */
.content-section {
  padding: 120px 2rem 80px;
  min-height: 60vh;
  background: transparent;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.content-area {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 60px;
  transition: all 0.3s ease;
  min-height: 300px; /* Reserve space to prevent footer shifts */
}

/* Section Image Styles */
.section-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 2rem;
  object-fit: cover;
}

/* Uniform height for images in carousel sections */
.carousel-content-wrapper .section-image {
  height: 250px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .carousel-content-wrapper .section-image {
    height: 300px;
  }
}

@media (min-width: 1440px) {
  .carousel-content-wrapper .section-image {
    height: 350px;
  }
}

/* Content Typography */
.content-area h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 2rem;
  color: #1d1e25;
  line-height: 1.2;
  text-transform: uppercase;
}

.content-area h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 2.5rem 0 1.5rem 0;
  color: #1d1e25;
  line-height: 1.3;
}

.content-area h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: #1d1e25;
  line-height: 1.4;
}

/* Trade Content Specific Styles */
.content-area .trade-icon {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  line-height: 1;
}

.content-area .trade-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fb8f30;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

/* Carousel Content Wrapper - Flexible Two Column Layout */
.carousel-content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  align-items: start;
}

/* Two column layout on large screens */
@media (min-width: 1024px) {
  .carousel-content-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    padding: 0;
    align-items: stretch;
  }

  .carousel-content-wrapper .content-section {
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
  }

  .carousel-content-wrapper .content-section .content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .carousel-content-wrapper .content-section .content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .carousel-content-wrapper .content-section .content-area .section-image {
    margin-top: auto;
  }

  /* Reduced font sizes for carousel sections only */
  .carousel-content-wrapper .content-area h1 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  }

  .carousel-content-wrapper .content-area h3 {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  }

  .carousel-content-wrapper .content-area p {
    font-size: clamp(0.8125rem, 1.25vw, 1rem);
  }

  .carousel-content-wrapper .content-area li {
    font-size: clamp(0.8125rem, 1.25vw, 1rem);
  }

  .carousel-content-wrapper .content-section:nth-child(odd) {
    padding-left: 3rem;
    padding-right: 1.5rem;
  }

  .carousel-content-wrapper .content-section:nth-child(even) {
    padding-left: 1.5rem;
    padding-right: 3rem;
  }
}

/* Restore slightly larger font sizes on very large screens (Mac desktops) */
@media (min-width: 1640px) {
  .carousel-content-wrapper .content-area h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
  }

  .carousel-content-wrapper .content-area h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }

  .carousel-content-wrapper .content-area p {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  }

  .carousel-content-wrapper .content-area li {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  }
}

/* Reduce spacing for carousel content sections on about page only */
body:has(header-component[current-page="about"])
  .carousel-section
  ~ .carousel-content-wrapper
  .content-section {
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: auto;
}

@media (min-width: 1024px) {
  body:has(header-component[current-page="about"])
    .carousel-section
    ~ .carousel-content-wrapper
    .content-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

body:has(header-component[current-page="about"])
  .carousel-section
  ~ .carousel-content-wrapper
  .content-section
  .content-area {
  margin-top: 0;
  min-height: auto;
  max-width: 100%;
}

.content-area p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: justify;
}

.content-area ul,
.content-area ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content-area li {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #333;
}

.content-area strong {
  font-weight: 600;
  color: #1d1e25;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 300px; /* Reserve space to prevent footer shift */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.loading-spinner p {
  font-size: 1.25rem;
  color: #666;
  margin: 2rem 0 0 0;
  font-weight: 500;
}

/* Custom Loading Animation */
.loading-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 190, 50, 0.1);
  border-top: 4px solid #ffbe32;
  border-right: 4px solid #fb8f30;
  border-radius: 50%;
  animation: rotateRing 1.5s linear infinite;
}

.loading-center {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #ffbe32, #fb8f30);
  border-radius: 50%;
  animation: pulseCenter 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.loading-center::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulseInner 2s ease-in-out infinite 0.5s;
}

/* Keyframe animations */
@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseCenter {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes pulseInner {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
}

/* Error Styles */
.content-error {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-error h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1d1e25;
  margin-bottom: 1.5rem;
}

.content-error p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2rem;
}

.error-link {
  display: inline-block;
  padding: 12px 24px;
  background: #667eea;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.error-link:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}

/* Responsive Content Styles */
@media (max-width: 1024px) {
  .content-section {
    padding: 100px 1.5rem 60px;
  }

  .content-area {
    max-width: 700px;
  }

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

  .content-area h1 {
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 768px) {
  .content-section {
    padding: 80px 1rem 40px;
  }

  .content-area {
    max-width: 100%;
  }

  body:has(header-component[current-page="about"])
    .carousel-section
    ~ .carousel-content-wrapper
    .content-section {
    padding: 30px 1rem 30px;
  }

  .content-area h1 {
    font-size: 2rem;
  }

  .content-area h2 {
    font-size: 1.75rem;
  }

  .content-area h3 {
    font-size: 1.5rem;
  }

  .content-area p {
    font-size: 1rem;
    text-align: left;
  }

  /* Reduced font sizes for carousel sections on smaller screens */
  .carousel-content-wrapper .content-area h1 {
    font-size: 1.5rem;
  }

  .carousel-content-wrapper .content-area h3 {
    font-size: 1rem;
  }

  .carousel-content-wrapper .content-area p {
    font-size: 0.875rem;
  }

  .carousel-content-wrapper .content-area li {
    font-size: 0.875rem;
  }

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

@media (max-width: 480px) {
  .content-section {
    padding: 60px 1rem 30px;
  }

  .content-area h1 {
    font-size: 1.75rem;
  }

  .content-area h2 {
    font-size: 1.5rem;
  }

  .content-area h3 {
    font-size: 1.25rem;
  }

  .content-area p {
    font-size: 0.95rem;
  }

  /* Reduced font sizes for carousel sections on mobile */
  .carousel-content-wrapper .content-area h1 {
    font-size: 1.375rem;
  }

  .carousel-content-wrapper .content-area h3 {
    font-size: 0.9375rem;
  }

  .carousel-content-wrapper .content-area p {
    font-size: 0.875rem;
  }

  .carousel-content-wrapper .content-area li {
    font-size: 0.875rem;
  }

  .content-error {
    padding: 3rem 1rem;
  }
}
