/* ==========================================
   ABOUT PAGE
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==========================================
   HERO SLIDER
========================================== */

.about-hero {
  position: relative;
  height: 500px;
  overflow: hidden;

  /* Default image while slider loads */
  background: url("/images/about/peter-hansen-MeGmdPNe36w-unsplash.jpg") center
    center/cover no-repeat;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;

  animation: sliderFade 20s infinite;
}

.slide1 {
  background-image: url("/images/about/peter-hansen-MeGmdPNe36w-unsplash.jpg");
  animation-delay: 0s;
}

.slide2 {
  background-image: url("/images/about/pexels-tonynojmansk-186688133-12359622.jpg");
  animation-delay: 5s;
}

.slide3 {
  background-image: url("/images/about/venti-views-FPKnAO-CF6M-unsplash.jpg");
  animation-delay: 10s;
}

.slide4 {
  background-image: url("/images/about/vidar-nordli-mathisen-y8TMoCzw87E-unsplash.jpg");
  animation-delay: 15s;
}

@keyframes sliderFade {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  30% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.about-overlay {
  position: relative;
  z-index: 10;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.45);
}

.about-text {
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 25px;
}

.about-text h1 {
  color: #fff;
  font-size: 48px;
  margin-bottom: 10px;
}

.about-text p {
  color: #fff;
  font-size: 24px;
}

/* ==========================================
   WHO WE ARE
========================================== */

.who-we-are {
  padding: 70px 0;
}

.who-we-are .container {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 50px;
  align-items: center;
}

.who-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
}

.who-content h2 {
  font-size: 34px;
  color:#4274D9;
  margin-bottom: 20px;
}

.who-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #444;
}

/* ==========================================
   INFO SECTIONS (ALTERNATING)
========================================== */

.info-section {
  padding: 50px 0;
  margin: 0;
  background: #ffffff;
}

.info-section:nth-child(even) {
  background: #ffffff;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.info-image {
  display: flex;
  justify-content: center;
}

.info-image img {
  width: 100%;
  max-width: 520px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.info-content {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f4f7fb;
  padding: 20px 30px;
  border-radius: 8px;
}

.info-content h2 {
  font-size: 30px;
  color: #4274D9;
  margin-bottom: 18px;
}

.info-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 10px;
}

/* Default layout: image left, text right */
.info-section .info-image {
  order: 1;
}

.info-section .info-content {
  order: 2;
}

/* Reverse layout: image right, text left */
.info-section.reverse .info-image {
  order: 2;
}

.info-section.reverse .info-content {
  order: 1;
}

/* ==========================================
   MISSION & VISION
========================================== */

.mission {
  padding: 0 0 70px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.mission-box {
  background: #fff;
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.mission-box h3 {
  text-align: center;
  color:#4274D9;
  font-size: 28px;
  margin-bottom: 18px;
}

.mission-box p {
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
}

/* ==========================================
   SERVICES
========================================== */

.services {
  padding: 70px 0;
}

.services h2 {
  text-align: center;
  font-size: 40px;
  color: #4274D9;
  margin-bottom: 45px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card h3 {
  padding: 18px;
  font-size: 23px;
  color: #4274D9;
}

.service-card p {
  padding: 0 18px 20px;
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================
   WHY CHOOSE
========================================== */

.why-choose {
  background: #14396d;
  color: #fff;
  padding: 60px 0;
}

.why-choose h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.why-grid p {
  font-size: 17px;
  margin: 16px 0;
}

/* ==========================================
   CTA
========================================== */

.career-cta {
  padding: 70px 0;
  text-align: center;
}

.career-cta h2 {
  color:#4274D9;
  font-size: 44px;
  margin-bottom: 20px;
}

.career-cta p {
  max-width: 900px;
  margin: auto;
  font-size: 20px;
  line-height: 1.8;
  color: #666;
}

.apply-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 14px 40px;
  background: #f4b400;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.apply-btn:hover {
  background: #d89f00;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {
  .who-we-are .container {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-section .info-image,
  .info-section .info-content,
  .info-section.reverse .info-image,
  .info-section.reverse .info-content {
    order: 0;
  }

  .info-image img {
    max-width: 100%;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .info-content {
    height: auto;
    min-height: 200px;
  }

  .about-hero {
    height: 380px;
  }

  .about-text h1 {
    font-size: 36px;
  }

  .about-text p {
    font-size: 18px;
  }

  .who-content h2 {
    font-size: 28px;
  }

  .services h2,
  .why-choose h2,
  .career-cta h2 {
    font-size: 30px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .who-image img {
    height: 300px;
  }
}
