/* General body */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: rgba(220, 207, 17, 0.874);
  min-height: 100vh;
  padding-top: 140px; /* navbar + sub-navbar height default desktop */
}

/* Main Header (navbar) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  background-color: rgba(220, 207, 17, 0.874);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 990;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

/* Logo side */
.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-section img {
  width: 60px;
  height: 60px;
}

.logo {
  font-size: 24px;
  color: rgb(255, 69, 0);
  font-weight: bold;
  text-decoration: none;
}

/* Menu side */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-right: 20px;
}

.link {
  color: black;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 12px;
}

.btn {
  border: none;
  background-color: black;
  color: white;
  padding: 8px 16px;
  border-radius: 14px;
  text-decoration: none;
}

/* Sub-navbar */
.sub-navbar {
  position: fixed;
  top: 80px; /* navbar height */
  left: 0;
  width: 100%;
  background-color: #4ba3ab;
  z-index: 999;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.sub-navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 12px;
}

.sub-navbar a:hover {
  background-color: #ddd;
  color: rgb(255, 0, 0);
  border-radius: 8px;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #333;
  color: white;
  padding: 8px 12px;
  font-size: 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* About section */
.about {
  color: rgb(42, 12, 152);
}

.para {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px;
}

.IMG {
  width: 300px;
  height: auto;
  padding-left: 30px;
}

.text {
  max-width: 1200px;
}

.text h2 {
  font-size: 24px;
  line-height: 1.6;
  text-align: justify;
}

.text {
  font-size: 24px;
  line-height: 1.6;
  text-align: justify;
  padding-left: 80px;
}

.abouts {
  color: rgb(42, 12, 152);
  font-size: 35px;
}

.aboutss {
  font-size: 24px;
  line-height: 1.6;
  padding-left: 260px;
}

.p {
  padding-left: 30px;
}

.aboutss li {
  margin: 10px;
}

/* Footer */
.footer {
  background-color: black;
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-container>div {
  flex: 1 1 250px;
}

.footer h3,
.footer h4 {
  color: orangered;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  color: orange;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #555;
  padding-top: 10px;
  font-size: 14px;
  color: #ccc;
}

/* Tables */
.table, .table1 {
  width: 100%;
  overflow-x: auto;
}

/* Cards Container */
.main-container {
  flex: 1;
  padding: 20px;
}

.card5 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; 
}

.card {
  width: 100%;
  max-width: 1275px;
  border: 1px solid black;
  border-radius: 10px;
  padding: 15px;
  background-color: #4ba3ab;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cardI {
  width: 100%;
  max-width: 180px;
  border: 1px solid black;
  border-radius: 10px;
  padding: 15px;
  background-color:#4ba3ab;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.cardI1 {
  width: 100%;
  max-width: 290px;
  border: 1px solid black;
  border-radius: 10px;
  padding: 15px;
  background-color:#4ba3ab;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.cardI:hover, .cardI1:hover {
  transform: translateY(-4px);
}

.od:hover {
  transform: translateY(8px);
}

.img1 {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin: 20px 0;
}

.img1I {
  width: 100%;
  max-width: 270px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.od {
  border: none;
  background-color: black;
  color: rgba(245, 245, 245, 0.874);
  padding: 10px 24px;
  border-radius: 14px;
  text-decoration: none;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

/* Form Styling */
form {
  max-width: 600px;
  margin: 30px auto;
  background-color: white;
  padding: 25px;
  border: 3px solid black;
  border-radius: 12px;
}

form label {
  font-weight: bold;
}

form input[type="text"], form input[type="submit"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

form input[type="submit"] {
  background-color: black;
  color: white;
  cursor: pointer;
}

/* Responsive Media Queries */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .navbar {
      flex-direction: column;
      align-items: flex-start;
  }
  .logo-section {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      margin-bottom: 10px;
  }
  .menu {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
  }
  .sub-navbar {
      flex-direction: column;
      gap: 10px;
      text-align: center;
  }
  .sub-navbar a, .dropbtn {
      display: block;
      width: 100%;
      text-align: left;
  }
  .footer-container {
      flex-direction: column;
      text-align: center;
  }
  iframe {
      width: 100% !important;
      height: 300px !important;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .logo { font-size: 18px; }
  .link { font-size: 16px; padding: 6px 10px; }
  .btn { padding: 6px 12px; font-size: 14px; }
  .sub-navbar a, .dropbtn { font-size: 16px; padding: 6px 10px; }
  .about { font-size: 20px; }
  .abouts { font-size: 24px; }
  .aboutss { padding-left: 20px; font-size: 18px; }
  .card, .cardI, .cardI1 { width: 100%; }
  .img1, .img1I { width: 100%; height: auto; }
}

a {
  text-decoration: none;
  color: blue;
  font-weight: bold;
  margin-right: 10px;
}

a:hover {
  color: red;
}