/* Why Kenya - Living in Kenya page specific styles
 *
 * Paste your /why-kenya/living-in-kenya/styles.css contents here.
 */
/* Living in Kenya Page Specific Styles */
:root {
  --primary-color: #203557;
  --secondary-color: #719976;
  --black-color: #000000;
  --white-color: #ffffff;
  --gray-color: #808080;
  --dark-gray-color: #424242;
  --light-black-color: #212121;
  --light-white-color: #f5f5f5;
  --darker-white-color: #f9f9f9;
  --text-color: #212121;
}

.main.living-in-kenya-page {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* Hero Section */
.living-hero {
  width: 100%;
  height: 500px;
  max-height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Introduction Section */
.introduction {
  width: 100%;
  padding: 4rem 0;
  background-color: var(--white-color);
}

.introduction .container {
  margin: 0 auto;
  padding: 0rem;
}

.introduction .intro-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem;
  box-sizing: border-box;
}

.intro-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
  text-align: left;
}

/* Content Sections */
.content-section {
  width: 100%;
  padding: 2rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--light-white-color);
}

.content-section .container {
  margin: 0 auto;
  padding: 0rem;
}

.section-grid {
  display: flex;
  flex-direction: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  position: relative;
}

.section-grid.reverse {
  direction: rtl;
}

.section-grid.reverse > * {
  direction: ltr;
}

.section-image {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);

  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.section-image.middle-image {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
  left: 0;
  right: auto;
}

.content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.section-image:hover .content-image {
  transform: scale(1.05);
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
}

.content-box {
  background-color: var(--white-color);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 55%;
  box-sizing: border-box;
}

  .content-box.even {
      margin-left: auto !important;
  }

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.content-box h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.content-box p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
  padding-bottom: 1rem;
  text-align: left;
}

.content-box p:last-child {
  padding-bottom: 0;
}

.content-box a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
  padding-left: 0.5rem;
}

.content-box a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .living-hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .introduction {
    padding: 3rem 0;
  }

  .intro-content p {
    font-size: 1.1rem;
  }

  .content-section {
    padding: 4rem 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-grid.reverse {
    direction: ltr;
  }

  .section-image {
    height: 300px;
    order: 1;
  }

  .section-content {
    order: 2;
  }

  .content-box {
    padding: 2rem;
  }

  .content-box h2 {
    font-size: 1.8rem;
  }

  .content-box p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .living-hero {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .introduction {
    padding: 2rem 0;
  }

  .introduction .container {
    padding: 0 0.5rem;
  }

  .intro-content p {
    font-size: 1rem;
  }

  .content-section {
    padding: 0.5rem 0;
  }

  .content-section .container {
    padding: 0rem;
  }

  .section-grid {
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .section-image {
    height: 300px;
    width: 100% !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content-box {
    padding: 2rem 1rem;
    max-width: 100% !important;
    width: 100% !important;
  }

  .content-box h2 {
    font-size: 1.6rem;
    padding: 0 0 0.5rem 0;
    margin: 0;
  }
}

/* Animation for sections */
.introduction,
.content-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.introduction {
  animation-delay: 0.1s;
}

.diversity-section {
  animation-delay: 0.2s;
}

.infrastructure-section {
  animation-delay: 0.3s;
}

.landscape-section {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.content-box:focus-within {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .living-hero {
    height: auto;
    min-height: 200px;
  }

  .content-box {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .section-image {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

