* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

html{
  scroll-behavior:auto;
}

.container {
  width: 100%;
  height: 100vh;
}

.bg_img1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("image/cover.jpg");
  background-position: center;
  background-size: cover;
}
.navbar {
  width: 100%;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  font-size: 14px;
  position: relative;
  z-index: 1000;
}

.logo {
  width: 100px;
  cursor: pointer;
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 20px;
  position: relative;
  font-size: 16px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.sidebar-only {
  display: none !important;
}

.nav-links li a:hover {
  color: lightblue;
}

.nav-links li:not(.sidebar-only)::after {
  content: '';
  height: 3px;
  width: 0;
  background: lightblue;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.5s;
}

.nav-links li:not(.sidebar-only):hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; 
    flex-direction: column;
    width: 70%; 
    height: 100vh;
    background: #232739; 
    position: fixed;
    top: 0;
    right: -70%;
    transition: right 0.4s ease;
    padding: 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    right: 0; 
  }

  .sidebar-only {
    display: block !important;
  }

  .sidebar-title {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .sidebar-title a {
    font-weight: bold;
    font-size: 18px;
    text-transform: none !important;
  }

  .nav-links li {
    margin: 0; 
    width: 100%;
    text-align: left; 
  }

  .nav-links li a {
    display: block;
    padding: 18px 25px;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links li a:hover, 
  .nav-links li.active a {
    background: #3a86ff; 
    color: white;
  }

  .sidebar-footer {
    margin-top: auto; 
    padding: 20px 25px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links li::after {
    display: none; 
  }

  .hamburger {
    display: block;
    z-index: 1001; 
  }
}

.header-text{
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: white;
  margin-top: 10px;
}

.header-text h1{
  font-size: 90px;
  margin: 10px;
}

.content-section {
  width: 80%;
  margin: 60px auto;
  text-align: center;
  color: #333;
}

.content-section h2 {
  font-size: 70px;
  margin-bottom: 20px;
  color:   #0072ff;;
}

.content-section p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.search-container {
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

#searchInput:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 8px rgba(42, 82, 152, 0.2);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background-color: #2a5298;
    color: white;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: middle;
}

td:nth-child(2), 
td:nth-child(3) {
    text-align: justify;
    text-justify: inter-word; 
    color: #444;
}

td:first-child {
    font-weight: bold;
    color: #1e3c72;
    text-align: left; 
    width: 250px;
    padding-left: 25px;
}

td:last-child {
    padding-right: 25px;
}

tr:hover {
    background-color: #f8fafc;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  flex: 1 1 calc(20% - 20px); 
  max-width: calc(20% - 20px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.card h3 {
  margin: 15px 0 5px;
  font-size: 20px;
  color: #222;
}

.card p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #555;
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

.popup:target {
  display: block;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: #fff;
  margin: 8% auto;
  padding: 30px;
  width: 60%;
  max-width: 600px;
  border-radius: 10px;
  text-align: justify;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.popup-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  object-fit: contain;
  margin: 0 auto 20px;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #888;
}

.close:hover {
  color: red;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@media (max-width: 768px) {
  .header-text h1 {
    font-size: 50px;
  }

  .card-container {
    flex-wrap: wrap;       
    justify-content: center;
  }

  .card {
    flex: 1 1 calc(50% - 20px); 
    max-width: calc(50% - 20px);
  }

  .popup-content {
    width: 90%;
  }
}

footer {
  background: black;
  position: relative;
  width: 100%;
  height: auto;
  padding: 50px 0px;
}

footer .f-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.5fr 0.5fr 1fr;
  grid-gap: 5px;
}

.footer-center,
.footer-right {
  padding-top: 50px;
}

footer h2 {
  position: relative;
  color: white;
  font-weight: 500;
  margin-bottom: 30px;
}

footer h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0px;
  width: 150px;
  height: 2px;
  background-color: white;
}

footer li {
  list-style-type: none;
}

.footer-left {
  display: flex;
  align-content: center;
  justify-content: center;
}

.footer-left img {
  margin: auto;
  width: 300px;
  height: 300px;
}

.footer-center li a {
  color: white;
  text-decoration: none;
  margin-bottom: 10px;
  display: inline-block;
  font-size: 20px;
}

.footer-center li a:hover {
  color: lightblue;
}

.icon {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 50px);
  grid-gap: 20px;
}

.icon li {
  list-style-type: none;
}

.icon li a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: grey;
  display: grid;
  align-content: center;
  justify-content: center;
  border-radius: 40%;
}

.icon li a img {
  width: 30px;
  height: 30px;
}

.icon li a:hover {
  background: lightblue;
}

@media (max-width: 768px) {
  footer .f-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-center, .footer-right {
    padding-top: 10px;
  }
}


.copyright {
  width: 100%;
  background: rgb(27, 27, 27);
  padding: 8px 0px;
  text-align: center;
  color: white;
}

.bg_img1, footer {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}