/* CSS RESET AND BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #BE0606;
    --primary-dark: #9E0505;
    --text-color: #333333;
    --text-light: #777777;
    --light-bg: #F8F8F8;
    --dark-bg: #222222;
    --white: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-container {
    width: 90%;
    margin: 0 auto;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    width: 700px;
    margin: 0 auto;
}

/* RESPONSIVE ENHANCED HERO SECTION */
.hero {
    --hero-min-height: 700px;
    --hero-padding: 2rem;

    min-height: var(--hero-min-height);
    height: 100svh; /* Uses svh for better mobile behavior */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--hero-padding);
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    inset: 0; /* Modern alternative to top/left/right/bottom */
    z-index: 0;
    background:
        linear-gradient(45deg, #f3f3f3 25%, transparent 25%),
        linear-gradient(-45deg, #f3f3f3 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f3f3f3 75%),
        linear-gradient(-45deg, transparent 75%, #f3f3f3 75%);
    background-size: 100px 100px;
    background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(245,245,245,1) 0%, rgba(245,245,245,0.8) 100%);
}

.hero-content {
    width: min(90%, 1200px); /* Responsive width with max limit */
    position: relative;
    z-index: 2;
}

.hero-text {
    margin-bottom: clamp(2rem, 5vw, 3.75rem); /* Responsive margin */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Fluid typography */
    margin-bottom: clamp(1rem, 2vw, 1.25rem);
    color: var(--dark-bg);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    width: min(100%, 700px);
    margin-inline: auto; /* Modern alternative to margin-left/right */
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: clamp(1rem, 2vw, 1.25rem);
    justify-content: center;
    flex-wrap: wrap; /* Allows buttons to wrap on small screens */
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.cta-btn {
    padding: clamp(0.75rem, 1.5vw, 0.9375rem) clamp(1.25rem, 2.5vw, 1.875rem);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap; /* Prevents text wrapping on small buttons */
}

.cta-btn:first-child {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-btn:first-child:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(190, 6, 6, 0.2);
}

.cta-btn.outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-btn.outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.75rem);
    margin-top: clamp(1.5rem, 4vw, 3.75rem);
    flex-wrap: wrap; /* Allows stats to wrap on small screens */
    animation: fadeIn 1s ease-out 0.9s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
    min-width: 100px; /* Prevents squeezing on small screens */
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.625rem;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: clamp(1rem, 3vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: clamp(2rem, 5vw, 3.125rem);
    background-color: var(--text-light);
    margin-top: 0.625rem;
}

/* Keyframes remain the same */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Media query for very small devices */
@media (max-width: 480px) {
    .hero {
        --hero-min-height: 600px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
    }
}

/* REDESIGNED WHAT WE DO SECTION */
.what-we-do {
    background-color: var(--white);
    position: relative;
    width: 100%;
    padding: 6rem 0;
}

.what-we-do-container {
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

.what-we-do-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
}

.what-we-do-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.what-we-do-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    width: 700px;
    margin: 0 auto;
}

.what-we-do-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.what-we-do-text {
    flex: 1;
    min-width: 0;
}

.what-we-do-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    width: 100%;
}

.feature-item {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.what-we-do-image {
    flex: 1;
    position: relative;
    min-width: 0;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.main-image {
    width: 100%;
    height: 600px;
    display: block;
    transition: var(--transition);
}

.image-wrapper:hover .main-image {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    font-size: 1rem;
}

.more-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(190, 6, 6, 0.2);
}

/* Solutions Section - Redesigned with Red Accents */
.solutions-section {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.solutions-container {
    width: 90%;
    margin: 0 auto;
}

.solutions-section h2 {
    font-size: 2.5rem;
    color: #5a0808;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.solutions-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #BE0606;
    border-radius: 2px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.solution-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 420px;
    display: flex;
    flex-direction: column;
    border: 1px solid #ffe5e5;
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(190,6,6,0.1) 0%, rgba(190,6,6,0.3) 100%);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-badge {
    align-self: flex-start;
    background: #ffebeb;
    color: #BE0606;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.solution-title {
    font-size: 1.5rem;
    color: #5a0808;
    margin-bottom: 15px;
    line-height: 1.3;
}

.solution-description {
    color: #855a5a;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #BE0606;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(190, 6, 6, 0.15);
}

.solution-card:hover .card-image img {
    transform: scale(1.05);
}

.solution-card:hover .explore-btn {
    background: #9e0505;
}

.solution-card:hover .btn-icon {
    transform: translateX(3px);
}

/* =========================================================
   PROJECTS SECTION WITH FULLY SCROLLABLE POPUP
   - Guaranteed to show all images with proper scrolling
   - Perfectly centered on all devices
   - Smooth scrolling experience
========================================================= */

/* Base Variables */
:root {
  --dark-bg: #1a1a1a;
  --white: #ffffff;
  --primary-color: #d90429;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Body lock when popup is open */
body.popup-open {
  overflow: hidden;
}

/* PROJECTS SECTION STYLES */
.latest-projects {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 5rem 0;
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto;
}

/* Projects Grid */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Project Cards */
.project-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-0.5rem);
}

.project-card .image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.project-content-wrapper {
  transform: translateY(1rem);
  transition: var(--transition);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-content-wrapper {
  transform: translateY(0);
}

.project-card:hover .image {
  transform: scale(1.05);
}

/* View All Button */
.projects-cta {
  text-align: center;
}

.all-projects-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.all-projects-btn:hover {
  background-color: var(--white);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* PROJECTS POPUP - ENHANCED SPACING & VISUAL HIERARCHY */
.projects-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 1;
  backdrop-filter: blur(2px);
}

.popup-content {
  position: relative;
  background-color: #fff;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
  background-color: #f9f9f9;
}

.popup-title {
  font-size: 2rem;
  margin: 0;
  color: #222;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.popup-description {
  font-size: 1.05rem;
  color: #666;
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

.popup-gallery-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem 2.5rem 2.5rem;
  -webkit-overflow-scrolling: touch;
}

.popup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0.5rem 0;
}

.popup-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.popup-image:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.6rem;
  line-height: 2.75rem;
  text-align: center;
  cursor: pointer;
  color: #777;
  background: none;
  border: none;
  padding: 0;
  transition: var(--transition);
  z-index: 10;
  border-radius: 50%;
}

.close-btn:hover {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.08);
  transform: rotate(90deg);
}

/* LIGHTBOX STYLES - ENHANCED */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.lightbox-content {
  position: relative;
  width: 92%;
  height: 92%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-lightbox-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1003;
  transition: all 0.2s ease;
}

.close-lightbox-btn:hover {
  color: white;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  box-sizing: border-box;
  z-index: 1002;
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lightbox-nav-btn:hover {
  background: white;
  transform: scale(1.12);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .popup-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr;
  }

  .popup-content {
    max-height: 85vh;
  }

  .popup-header {
    padding: 1.25rem;
  }

  .popup-gallery-container {
    padding: 0 1.25rem 1.25rem;
  }

  .popup-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .popup-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .latest-projects {
    padding: 3rem 0;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .popup-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .popup-image {
    height: 130px;
  }

  .close-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    line-height: 2rem;
  }
}

/* PARTNERS SECTION FINAL - UNIFORM LOGO SIZES */
.partners-final {
  --section-padding: 5rem 0;
  --heading-color: #1e293b;
  --logo-container-size: 280px;
  --logo-max-height: 120px;

  padding: var(--section-padding);
  background: #f8fafc;
  width: 100%;
}

.partners-final__container {
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}

.partners-final__heading {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 3rem;
  position: relative;
}

.partners-final__heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #d90429;
  margin: 1rem auto 0;
}

.partners-final__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.partners-final__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-container-size);
  height: var(--logo-container-size);
  padding: 2rem;
  transition: all 0.3s ease;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partners-final__logo-link--sika {
  /* Specific adjustments for Sika logo */
  padding: 2.5rem;
}

.partners-final__logo {
  max-width: 100%;
  max-height: var(--logo-max-height);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Specific Sika logo sizing */
.partners-final__logo-link--sika .partners-final__logo {
  transform: scale(1.5); /* Adjust this value as needed */
}

.partners-final__logo-link:hover .partners-final__logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Hover effects for non-touch devices */
@media (hover: hover) {
  .partners-final__logo-link:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
  }
}

@media (max-width: 992px) {
  .partners-final__logo-link {
    width: calc(var(--logo-container-size) * 0.9);
    height: calc(var(--logo-container-size) * 0.9);
  }
}

@media (max-width: 768px) {
  .partners-final {
    --logo-container-size: 220px;
    --logo-max-height: 100px;
  }

  .partners-final__logo-link--sika .partners-final__logo {
    transform: scale(1.3);
  }
}

@media (max-width: 480px) {
  .partners-final {
    --section-padding: 3rem 0;
    --logo-container-size: 160px;
    --logo-max-height: 80px;
  }

  .partners-final__logos {
    gap: 1rem;
  }

  .partners-final__logo-link {
    padding: 1.5rem;
  }

  .partners-final__logo-link--sika {
    padding: 2rem;
  }

  .partners-final__logo-link--sika .partners-final__logo {
    transform: scale(1.4);
  }
}


/* NEWS SECTION - FULL WIDTH RESPONSIVE */
.latest-news {
    background-color: var(--light-bg);
    padding: 80px 0;
    width: 100%;
}

.section-container {
    max-width: 1800px; /* Standard width, adjust as you like */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Padding for smaller screens */
    padding-right: 15px;
}

/* NO CHANGE NEEDED HERE, just for context */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ADJUST THIS RULE */
.news-cards-container {
    width: 100%;
    /* padding: 0 5%; <-- We remove this, as .section-container now handles padding */
    box-sizing: border-box;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex; /* Added for better structure */
    flex-direction: column; /* Stacks content vertically */
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* This class now correctly styles the text content block */
.news-header {
    padding: 25px; /* Simplified for even padding */
    flex-grow: 1; /* Allows content area to grow */
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0; /* Margin is handled by the parent padding */
}

.news-image {
    width: 100%;
    height: 0;
    padding-bottom: 70%; /* Aspect ratio */
    overflow: hidden;
    position: relative;
    margin-top: auto; /* Pushes image to the bottom */
}

.news-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-cta {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

.more-news {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.more-news:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(190, 6, 6, 0.2);
}

/* POPUP MODAL - FULL WIDTH RESPONSIVE */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.popup.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: var(--white);
    width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.popup.show .popup-content {
    transform: translateY(0);
}

.popup-image-full {
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* Aspect ratio */
    overflow: hidden;
    position: relative;
}

.popup-image-full img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

.popup-body h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
    line-height: 1.3;
}

.popup-body #popup-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.popup-body #popup-text p {
    margin-bottom: 15px;
}

.popup-body #popup-text ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.popup-body #popup-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.popup-body #popup-text a:hover {
    text-decoration: underline;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    border: none;
}

.close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .latest-news {
        padding: 60px 0;
    }

    .news-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-header {
        padding: 20px 20px 0;
    }

    .news-date {
        font-size: 0.85rem;
    }

    .news-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .news-excerpt {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .news-image {
        padding-bottom: 75%;
    }

    .news-cta {
        margin-top: 40px;
    }

    .more-news {
        padding: 13px 35px;
        font-size: 0.95rem;
    }

    /* Popup mobile styles */
    .popup {
        padding: 15px;
    }

    .popup-content {
        max-height: 95vh;
    }

    .popup-image-full {
        padding-bottom: 60%;
    }

    .popup-body {
        padding: 20px;
    }

    .popup-body h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .popup-body #popup-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .close {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .latest-news {
        padding: 50px 0;
    }

    .news-header {
        padding: 18px 18px 0;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }

    .news-image {
        padding-bottom: 80%;
    }

    .more-news {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* Popup mobile styles */
    .popup-body h2 {
        font-size: 1.3rem;
    }

    .popup-body #popup-text {
        font-size: 0.95rem;
    }

    .popup-body #popup-text p,
    .popup-body #popup-text ul {
        margin-bottom: 12px;
    }

    .close {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }
}




/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .what-we-do-content {
        flex-direction: column;
    }

    .what-we-do-image {
        margin-top: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .stat-item {
        width: calc(50% - 30px);
        margin-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .news-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-container {
        width: 92%;
        padding: 60px 0;
    }

}