/* TEXT STYLING - DEFAULT */
h1 {
  font-size: 2.55em;
  color: #002060;
  font-family: Helvetica Neue, Helvetica, Arial;
  line-height: 1.5em;
  font-weight: bold;
}

h2 {
  font-size: 38px;
  font-family: "Gotham SSm A", "Gotham SSm B", sans-serif;
  color: #002060;
  line-height: 1;
  letter-spacing: 0.36px;
  font-weight: 100;
  margin: 10px 0px 10px;
}

h3 {
  font-size: 30px;
  font-family: "Gotham SSm A", "Gotham SSm B", sans-serif;
  color: #002060;
  line-height: 1.5;
  letter-spacing: 0.3px;
  font-weight: 500;
}

p {
  font-size: 1.5em;
  color: #000000;
  font-family: Helvetica Neue, Helvetica, Arial;
}

.center {
  text-align: center;
}

/* SECTION-1 TEXT AND TEXT - START - DEFAULT */
#section1 {
  padding: 0.5rem 1rem;
  z-index: 1;
}

#textDiv1 {
  margin: 0 auto;
  padding: 1rem;
}

#innertextDiv1 {
  height: auto;
  margin: 0px 0px 0px 0px;
}

/* media query for smaller screens */
@media (max-width: 600px) {
  #innertextDiv1 h2 {
    font-size: 1.75rem;
  }

  #innertextDiv1 p {
    font-size: 0.95rem;
  }

  #textDiv1 {
    padding: 0.5rem;
  }
}

/* SECTION-1 TEXT AND TEXT - END - DEFAULT */

/* SECTION-2 THREE IMAGES - START - DEFAULT */
#section2 {
  display: inline;
}

#photoDiv2 {
  background: none;
  clear: both;
}

#s2-parent {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  gap: 2%; /* Optional: Adds space between items on wrap */
}

#IMG-S2a {
  flex: 1 1 31.5%;
  max-width: 31.5%;
  height: 230px;
  background-image: url("https://www.omni-lite.com/img/home/Patented_Multi_Step_Forming_x485.jpg");
  background-size: cover;
  -ms-background-position-x: center top;
  -ms-background-position-y: center top;
  background-position: center top;
  background-repeat: no-repeat;
}

#IMG-S2b {
  flex: 1 1 31.5%;
  max-width: 31.5%;
  height: 230px;
  background-image: url("https://www.omni-lite.com/img/home/MNZ1.jpg");
  background-size: cover;
  -ms-background-position-x: center;
  -ms-background-position-y: center;
  background-position: left;
  background-repeat: no-repeat;
}

#IMG-S2c {
  flex: 1 1 31.5%;
  max-width: 31.5%;
  height: 230px;
  background-image: url("https://www.omni-lite.com/img/home/DPC1.jpg");
  background-size: cover;
  -ms-background-position-x: center;
  -ms-background-position-y: center;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tablet: Keep 3 items per row but scale down */
@media screen and (max-width: 900px) {
  #IMG-S2a,
  #IMG-S2b,
  #IMG-S2c {
    flex: 1 1 30%;
    max-width: 30%;
    height: 180px;
  }
}

/* Mobile: Stack items vertically */
@media screen and (max-width: 600px) {
  #IMG-S2a,
  #IMG-S2b,
  #IMG-S2c {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
  }
}

/* SECTION-2 THREE IMAGES - END - DEFAULT */

/* SECTION-3 HEADING AND THREE IMAGES (LOGOS) - START - DEFAULT */
#section3 {
  padding: 2rem 1rem;
  background-color: #fff; /* Optional for contrast */
}

.s3-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.b-mar1 {
  margin-bottom: 1rem;
}

#logos-parent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
}

#logos-parent div {
  flex: 1 1 150px;
  text-align: center;
}

#logos-parent img {
  max-height: 100px;
  max-width: 100%;
  height: auto;
  width: auto;
  transition: transform 0.3s ease;
}

#logos-parent img:hover {
  transform: scale(1.05);
}

/* Responsive tweak for smaller screens */
@media (max-width: 600px) {
  .s3-container h2 {
    font-size: 1.75rem;
  }

  #logos-parent {
    flex-direction: column;
    gap: 1.5rem;
  }

  #logos-parent img {
    max-height: 90px;
  }

  #logos-parent div {
    flex: 1 1 100px;
    text-align: center;
  }
}

/* SECTION-4 Recent Press Releases (Press Cards) - START - DEFAULT */
/* PRESS RELEASES - DEFAULT */
:root {
  --primary-color: #3498db;
  --primary-color-2: #2d5d9f;
  --secondary-color: #2980b9;
  --text-color: #000;
  --background-color: #fff;
  --card-background: #f9f9f9;
}

.news-wrapper {
  background-color: #f7f7f7;
  height: auto;
  padding: 33px 20px 33px;
  margin: 0px 0px 50px 0px;
  clear: both;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto 0px;
  box-sizing: border-box;
}

/* Top Section - Recent Releases */
.recent-releases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.press-card {
  width: calc(33.33% - 1.5rem); /* For 3 cards per row */
  background-color: var(--card-background);
  background: linear-gradient(to right, #f0f4ff, #e2f0ff);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
}

.press-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(to right, #f0f4ff, #d7e9fc);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.press-card .news-headline {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
  text-decoration: none;
}

.press-card .date {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-decoration: none;
}

.press-card .excerpt {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #777;
  text-decoration: none;
}

.news-headline {
  display: inline-block;
  background: linear-gradient(45deg, #2d5d9f, #0d1a2f); /* Slate to Navy */
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.press-card:hover .news-headline {
  background: linear-gradient(45deg, #3c82c5, #0d1a2f); /* Sky to Navy */
  color: #ffcc00;
}

/* Responsive Design */
@media (max-width: 768px) {
  .recent-releases {
    flex-direction: column;
  }
  .press-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .h2r {
    font-size: 1.75rem;
  }
}