/* ==============================================
   🌿 ECO PRINT - ABOUT US PAGE STYLES
   ============================================== */

/* About Section */
:root {
  --primary-green: #168630;
  --muted-bg: #dde4ee;
  --card-bg: #ffffff;
  --text-dark: #222;
  --text-muted: #555;
  --max-width: 1200px;
  --primary-color: #3f8dbf;
  --secondary-color: #2c3e50;
  --light-bg: #f8f9fa;
}

/* About hero / wrapper  - Core Value*/
.about-us {
  background-image: url("https://res.cloudinary.com/drselhsl4/image/upload/v1761146427/EcoPrintGeneration/img/mpnmk2ospjmbqje2ctvv.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  box-sizing: border-box;
}

/* Generic container row used in about sections */
.about-us .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.about-us .container .row {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Columns */
.about-us .col-lg-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  box-sizing: border-box;
}
.about-us .col-lg-8 {
  flex: 1 1 66.6667%;
  max-width: 66.6667%;
  box-sizing: border-box;
  align-items: center;
}

/* Left image */
.about-us .left-image {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.about-us .left-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* CORE VALUES SECTION IMPROVEMENTS */
.core-values .services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
.core-value-heading h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Individual card */
.core-values .service-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 84px;
}

.core-values .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(8, 32, 14, 0.08);
}

/* Icon column */
.core-values .service-card .icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.core-values .service-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Text */
.core-values .service-card .right-text {
  flex: 1 1 auto;
}
.core-values .service-card .right-text h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}
.core-values .service-card .right-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

/* Small utility spacing when the grid reduces to single column */
.core-values .service-card + .service-card {
  margin-top: 0;
}

/* Preserve older selectors for compatibility */
.about-us .services {
  box-sizing: border-box;
}

/* Animation  */

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  -webkit-animation: fadeIn 700ms ease both;
  animation: fadeIn 700ms ease both;
}

/* Apply fadeIn to core values service-cards when class is present */
.core-values .service-card .fadeIn {
  -webkit-animation-duration: 700ms;
  animation-duration: 700ms;
  -webkit-animation-timing-function: ease;
  animation-timing-function: ease;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/* Staggered animation for cards */
.core-values .service-card:nth-child(1) {
  animation-delay: 0.4s;
}
.core-values .service-card:nth-child(2) {
  animation-delay: 0.6s;
}
.core-values .service-card:nth-child(3) {
  animation-delay: 0.8s;
}
.core-values .service-card:nth-child(4) {
  animation-delay: 0.1s;
}

/* Responsive breakpoints */

/* Large tablets / small desktops */
@media (max-width: 1199px) {
  .about-us {
    padding: 80px 0 60px;
  }
  .about-us .left-image {
    max-width: 320px;
  }
  .core-values .service-card {
    min-height: 74px;
  }
}

/* Tablets / medium screens */
@media (max-width: 991px) {
  /* Stack columns vertically for narrow screens */
  .about-us .container .row {
    flex-direction: column;
    align-items: center;
  }
  .about-us .col-lg-4,
  .about-us .col-lg-8 {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .about-us .left-image {
    margin-bottom: 18px;
    max-width: 420px;
  }
  .core-values .services {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 14px;
  }
  .core-values .service-card {
    padding: 12px;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .about-us {
    padding: 48px 0 40px;
  }
  .about-us .left-image {
    max-width: 320px;
  }
  .core-values .services {
    grid-template-columns: 1fr;
  }
  .core-values .service-card {
    gap: 10px;
    padding: 12px;
  }
  .core-values .service-card .icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }
  .core-values .service-card .right-text h4 {
    font-size: 1rem;
  }
  .core-values .service-card .right-text p {
    font-size: 0.92rem;
  }
}

/* Very small screens (older phones) */
@media (max-width: 360px) {
  .about-us {
    padding: 36px 0 28px;
  }
  .core-values .service-card .icon {
    width: 48px;
    height: 48px;
  }
  .core-values .service-card .right-text h4 {
    font-size: 0.98rem;
  }
}
/* Ensure images inside other sections don't overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SDG PORTFOLIO SECTION STYLES */
.sdg-solved {
  padding: 80px 0;
}

.sdg-solved .container .section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.sdg-solved .container .section-heading h2 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 20px;
}

.sdg-solved .container .section-heading h2 em {
  font-style: normal;
  color: var(--primary-color);
}

.sdg-solved .container .section-heading h2 span {
  color: #e74c3c;
}

/* sdg-solved */
/* SGD SOLVED */
.sdg-solved .container .sdg-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  grid-auto-rows: 300px;
  justify-content: center;
  padding: 10px;
}

.sdg-solved .container .sdg-container .sdg-card .the-sdg {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.sdg-solved .container .sdg-container .sdg-card .the-sdg:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sdg-solved .container .sdg-container .sdg-card .the-sdg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  align-items: center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.sdg-solved .container .sdg-container .sdg-card .sdg-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.85);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
  border-radius: 12px;
}

.sdg-solved .container .sdg-container .sdg-card .the-sdg:hover .sdg-details {
  opacity: 1;
  transform: translateY(0);
}

.sdg-solved .container .sdg-container .sdg-card .the-sdg:hover img {
  transform: scale(1.05);
  filter: brightness(0.5);
}

.sdg-solved .container .sdg-container .sdg-card .sdg-details h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.sdg-solved .container .sdg-container .sdg-card .sdg-details p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.sdg-solved .container .sdg-container > .sdg-card:nth-child(1),
.sdg-solved .container .sdg-container > .sdg-card:nth-child(3),
.sdg-solved .container .sdg-container > .sdg-card:nth-child(5),
.sdg-solved .container .sdg-container > .sdg-card:nth-child(6) {
  grid-row: span 1;
}

.sdg-solved .container .sdg-container > .sdg-card:nth-child(2),
.sdg-solved .container .sdg-container > .sdg-card:nth-child(4) {
  grid-row: span 2;
  margin-top: 100px;
}

@media (max-width: 768px) {
  .sdg-solved .container .sdg-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .sdg-solved .container .sdg-container > .sdg-card {
    grid-row: auto;
  }
  .sdg-solved .container .sdg-container > .sdg-card:nth-child(2),
  .sdg-solved .container .sdg-container > .sdg-card:nth-child(4) {
    /* grid-row: span 1; */
    margin-top: 0;
  }
}

/* // About Video and Article Section */
.media-section section {
  margin-bottom: 60px;
}

/* Section Headings */
.media-section .section-header {
  text-align: center;
  margin-bottom: 20px;
}

.media-section .section-header h2 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.media-section .section-header p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

.media-section .media-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.media-section .scroll-container {
  position: relative;
}

.media-section .videos-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.media-section .articles-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.media-section .video-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  width: 200px;
  height: auto;
  border-radius: 20px 0 20px 0;
  background: #fff;
}

.media-section .article-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  width: 200px;
  height: auto;
  border-radius: 20px 0 20px 0;
  background: #fff;
}

/* Scroll Buttons */
.media-section .scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  z-index: 10;
  transition: all 0.3s ease;
}

.media-section .scroll-btn:hover {
  opacity: 1;
  background: #2563eb;
}

.media-section .scroll-btn.left {
  left: -20px;
}

.media-section .scroll-btn.right {
  right: -20px;
}

/* Hide scrollbar */
.media-section .videos-track::-webkit-scrollbar {
  display: none;
}

.media-section .articles-track::-webkit-scrollbar {
  display: none;
}

.media-section .videos-track,
.article-track {
  scrollbar-width: none;
}

.media-section .video-card:hover {
  transform: translateY(-8px);
}

.media-section .article-card:hover {
  transform: translateY(-8px);
}

.media-section .bg-blue {
  background: #e0f2fe;
}
.media-section .bg-red {
  background: #fee2e2;
}
.media-section .bg-pink {
  background: #fce7f3;
}

.media-section .image-container {
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
  border-radius: 20px 0 20px 0;
}

.media-section .image-container img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.media-section .image-container:hover img {
  transform: scale(1.05) rotate(0.5deg);
  filter: brightness(0.8);
}

.media-section .content {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-section .tag {
  text-transform: uppercase;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 1px;
}

.media-section h3 {
  font-size: 1.2rem;
  margin: 0;
}

.media-section h3 a {
  text-decoration: none;
  color: black;
}

.media-section h3 a:hover {
  text-decoration: underline;
}

.media-section .meta {
  color: #475569;
  font-size: 0.85rem;
}

.media-section main p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}
