/* General Styles */

body {
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Header */

header {
  background-color: #FFFFFF;
  color: black;
  padding: 0;
  height: 70px;
  text-align: center;
}

/* Navigation */

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px; /* space between logo and hamburger */
}

.logo-image {
  height: 70px;   /* Matches navbar height */
  width: auto;
  display: block;
  vertical-align: middle;
}

nav .logo {
  font-size: 18px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
  margin: 0px 0px;
  padding: 0 0px;
  height: 70px;
  width: 150px;
}

nav ul li a {
  display: block;
  margin: 0px 0px;
  padding: 0 0px;
  color: black;
  text-decoration: none;
  min-width: 70px;
  font-size: 20px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  transition: background-color 0.3s ease;
}

nav ul li:hover > a {
  background-color: lightcoral;
}

/* Dropdown Styling */

nav ul li .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: lightcoral;
  min-width: 100px;
  width: auto;
  z-index: 9999;
  font-family: Helvetica, Arial, sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease forwards;
}

nav ul li:hover .dropdown-content {
  display: block;
}

nav ul li .dropdown-content a {
  padding: 0 0px;
  color: black;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  height: 35px;
  line-height: 35px;
  font-size: 17px;
  border-top: 1px solid #fff;
  transition: background-color 0.3s ease;
}

nav ul li .dropdown-content a:hover {
  background-color: lightcoral;
  color: white;
}

/* Hamburger Menu */

nav .hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

/* Dropdown Menu Fix */

#menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px; /* same as header/nav height */
  left: 0;
  width: 100%;
  background-color: #f9f9f9;
  z-index: 1;
  padding: 10px 0;
}

#menu.visible {
  display: flex;
}

/* Content Styling */

.content {
  padding: 5px;
  text-align: center;
}

.content h1 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  color: black;
  text-align: center;
}

.content p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: black;
  line-height: 1.7;
  text-align: justify;
  margin-left: 15px;
  margin-right: 15px;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  margin-top: 0;
}

/* Gradient Title */

.gradient-title {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: black;
  text-align: left;
  line-height: 1.2;
  padding: 10px 0px;
  background-image: linear-gradient(to right, #02A4EF, #b0d4eb);
  width: 100%;
}

/* Text Block */

.t {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: black;
  text-align: justify;
}

/* Table Styling */

.table1 {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #DDD;
}

.table1 th,
.table1 td {
  padding: 0px;
  text-align: left;
  white-space: normal;
}

.table1 th {
  background-color: #4CAF50;
  font-size: 20px;
}

.table1 tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Table Container (for scrolling) */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

/* Table Row Hover Effect */

.table1 tr:hover td {
  background-color: #f2f2f2;
}


.scroll-container {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.scroll-content {
  display: flex;
  animation: scroll-left 30s linear infinite;
  width: max-content; /* Ensures all images are laid out side by side */
}

.scroll-content:hover {
  animation-play-state: paused;
}

.scroll-content img {
  height: 210px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-right: 20px;
  flex-shrink: 0; /* Prevents images from shrinking */
  transition: transform 0.3s ease;
}

.scroll-content img:hover {
  transform: scale(1.18); /* Optional zoom effect on hover */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer */

footer {
  display: flex;
  justify-content: center;   /* horizontally center */
  align-items: center;       /* vertically center */
  width: 100%;
  height: 75px;
  background-color: #02A4EF;
  color: black;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
}

/* Media Queries */

/* For Mobile Devices */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: left;
  }

  nav .hamburger {
    display: block;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1px;
  }

  nav ul.visible {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    box-sizing: border-box;
  }

  nav ul li .dropdown-content {
	position: relative;
    display: none;
	top: 0%;
    background-color: lightcoral;
	width: 100%;
  }

  nav ul li.open .dropdown-content {
    display: block;
  }

  .content h1 {
	text-align: center;
    color: black;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 28px;
  }

  .content p {
    font-size: 16px;
  }

  .tables-container {
    flex-direction: column;
  }

 .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on mobile devices */
  }

  .table1 {
    width: 100%;
    table-layout: fixed; /* Ensures the table width adapts well */
  }

  .table1 th, .table1 td {
    word-wrap: break-word; /* Ensure long content wraps properly */
    font-size: 14px; /* Slightly smaller font for mobile screens */
  }

  .table1 th {
    font-size: 16px;
  }
}

/* For Larger Screens */
@media (min-width: 1024px) {
  #menu {
    display: flex;
    position: static;
    flex-direction: row;
    background-color: transparent;
    padding: 0;
  }
  #menu.visible {
    display: flex;
  }

  .content {
    max-width: 1000px;
    margin: 0 auto;
  }

  .content h1 {
    font-size: 48px;
  }

  .content p {
    font-size: 20px;
  }
}

/* Smooth Scroll (Optional) */

html {
  scroll-behavior: smooth;
}
