* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.body {
  background-color: rgb(241, 243, 244);
}

/* ===== DESKTOP STYLES ===== */
.header {
  width: 100%;
  color: white;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: white;
}

.content {
  padding: 20px;
  margin-top: 10px;
  height: fit-content;
  gap: 5px;
  display: flex;
  flex-direction: column;
  background-image: url(/img.avif);
  background-size: cover;
}

.box {
  margin-left: 0;
  width: 100%;
  height: 90px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  opacity: 1;
  display: flex;
  align-items: center;
  position: fixed;
}

.head {
  text-align: center;
  display: flex;
  justify-content: space-evenly, center;
  width: 55%;
  gap: 2px;
  padding-left: 25px;
}

.head a {
  font-size: 13px;
  color: #100f0f;
  text-decoration: none;
  padding: 10px 15px;
  display: inline-block;
  margin-left: 24px;
  font-weight: bold;
}

.head a:hover {
  color: #1508a4;
}

.head1 {
  text-align: center;
  padding-left: 9px;
  display: flex;
  justify-content: space-evenly;
  width: 35%;
  gap: 2px;
}

.head1 a {
  font-size: 13px;
  text-decoration: none;
  color: black;
  display: inline-block;
  padding: 10px 15px;
  font-weight: bold;
}

.head1 a:hover {
  color: #1508a4;
}

.news {
  text-align: center;
  justify-content: center;
  align-items: center;
  height: auto;
  background-color: whitesmoke;
}

.news-img {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 20px 0 20px;
  justify-content: space-evenly;
  gap: 10px;
  height: fit-content;
}

.news img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding: 10px 15px;
  display: inline-block;
  font-weight: bold;
}

/* Dropdown content initially hidden */
.dropdown-content {
  position: absolute; /* fixed positioning for full-screen alignment */
  top: 100%; /* adjust this to match your header height */
  left: 0; /* start from left edge of screen */
  background: white;
  border-radius: 0;
  min-width: 180px;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Show with animation */
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown items */
.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: black;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: #f2f2f2;
}

.logo {
  margin-left: 200px;
  background-color: transparent;
  opacity: 1;
  background-size: cover;
  align-items: center;
}

.border {
  border: 2px solid transparent;
}

.text p {
  font-size: 18px;
  margin: 0 360px;
}

.image {
  text-align: center;
}

.text {
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #083751;
  height: 50px;
  color: white;
}

.footer .msg,
.pp {
  font-size: 18px;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.but1,
.but2 {
  display: flex;
  width: 150px;
  height: 50px;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-size: 16px;
  color: white;
  background: #074d98;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.but1:hover,
.but2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(8, 8, 253, 0.3);
}

.but1 a,
.but2 a {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.hero {
  height: auto;
  background-color: white;
  margin: 0 150px;
  background-image: url(/img.avif);
  background-size: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.broo {
  text-align: center;
  color: rgb(42, 34, 34);
}

.broo h2 {
  font-weight: bold;
}

.subject {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 20px 0 20px;
  justify-content: space-evenly;
  gap: 10px;
  height: fit-content;
}

.box1 img,
.box2 img,
.box3 img,
.box4 img,
.box5 img,
.box6 img,
.box7 img,
.box8 img,
.box9 img,
.box10 img,
.box11 img,
.box12 img,
.box13 img,
.box14 img,
.box15 img,
.box16 img,
.box17 img,
.box18 img,
.box19 img,
.box20 img {
  object-fit: cover;
  height: 255px;
  width: 100%;
}

.subject > div {
  width: 20%;
  height: 100%;
  position: relative;
}

.image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.1);
}

.text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  padding-bottom: 10px;
}

.image-container:hover .text-overlay {
  opacity: 1;
  transform: translateY(0);
}

.subject a {
  color: white;
  text-decoration: none;
  text-align: center;
}

.box1,
.box2,
.box3,
.box4,
.box5,
.box6,
.box7,
.box8,
.box9,
.box10,
.box11,
.box12,
.box13,
.box14,
.box15,
.box16,
.box17,
.box18,
.box19,
.box20 {
  border: 2px solid rgb(234, 225, 225);
  width: 21%;
  background-color: transparent;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(28, 27, 27, 0.6);
}

.box1,
.box5,
.box9,
.box13,
.box17 {
  height: 290px;
}

.box9,
.box10,
.box11,
.box12,
.box17,
.box18,
.box19,
.box20 {
  margin-bottom: 15px;
}

.boxtxt {
  margin-bottom: 2px;
  text-align: start;
}

.last {
  text-align: center;
}

.follow {
  text-align: center;
  text-decoration: none;
}

.table {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.table table {
  border-collapse: collapse;
  background: #ffffff;
  color: #1f2937;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 400px;
  border: 1px solid #e5e7eb;
}

.table td {
  padding: 16px 32px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.table td:first-child {
  color: #2563eb;
  font-weight: 600;
  text-align: left;
}

.table tr:last-child td {
  border-bottom: none;
}

.table a {
  color: #051e54;
  text-decoration: none;
  font-weight: 500;
}

.table a:hover {
  color: #ffffff;
}

.Physics,
.Chemistry,
.Mathematics,
.Nepali,
.English,
.Computer,
.Zoology,
.Botany,
.Chemistrylab,
.Physicslab,
.class11,
.class12 {
  text-align: center;
}

.about {
  width: 320px;
  margin-left: 120px;
}

.sec {
  height: 260px;
  background-color: rgb(4, 71, 99);
  margin-top: 2px;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  color: white;
  flex-wrap: wrap;
}

.sec a {
  color: white;
  text-decoration: none;
}

.abt h2 {
  margin-top: 30px;
  margin-left: -110px;
}

.abt p {
  margin-top: 20px;
  margin-left: -110px;
  line-height: 1.6;
}

.link h2,
.down h2 {
  margin-top: 30px;
}

.link p,
.down p {
  margin-top: 20px;
  text-decoration: none;
}

.link a:hover {
  color: #8eccef;
}

.down a:hover {
  color: #8eccef;
}

p {
  font-size: 19px;
}

.privacy {
  margin-left: 25px;
}

.hh2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
  color: #44244c;
}

.hh {
  font-size: 22px;
  color: #44244c;
  margin: 20px 170px 10px 150px;
}

.p1 {
  font-size: 16px;
  margin: 0 150px 15px 150px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul {
  margin: 0 150px 15px 170px;
}

li {
  margin-bottom: 8px;
  font-size: 16px;
}

.pp a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.pp a:hover {
  color: #8eccef;
}

.hoome {
  background-color: whitesmoke;
  height: fit-content;
  padding: 10px;
}

.hoome p {
  line-height: 1.5;
  font-size: 18px;
  margin: 0 180px;
  margin-bottom: 20px;
}

.hoome h2 {
  font-size: 30px;
  margin-left: 180px;
  margin-top: 30px;
  color: #021b43;
}

.hoome a {
  text-decoration: none;
  color: #003eb9;
  font-size: 20px;
}

.hoome a:hover {
  color: #1105fa;
}

.key {
  text-align: center;
}

.key h2 {
  font-size: 30px;
}

.key p {
  font-size: 18px;
  color: #343436;
}

.feature {
  display: flex;
  margin: 40px 30px 0 40px;
  justify-content: space-evenly;
}

.dabba1,
.dabba2 {
  height: 260px;
  background-color: rgb(250, 252, 255);
  width: 35%;
  border-radius: 10px;
  border: 2px solid gainsboro;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth animation */
  background-image: url(/imgg.jpg);
  background-size: cover;
}

.dabba1:hover,
.dabba2:hover {
  box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgb(49, 49, 52);
}

.feature .dabba1 i,
.feature .dabba2 i {
  font-size: 40px;
  color: #04214f;
  margin-top: 15px;
}

.feature .dabba1 h3,
.feature .dabba2 h3 {
  font-size: 20px;
  margin-top: 15px;
}

.feature .dabba1 p,
.feature .dabba2 p {
  margin: 15px 13px 0 13px;
  font-size: 20px;
  color: #3d3d3e;
}

.dose {
  background-color: whitesmoke;
  height: 160px;
  padding-top: 30px;
}

.dose h2 {
  text-align: center;
  margin-top: 30px;
}

.dose p {
  margin-top: 10px;
  text-align: end;
  margin-right: 150px;
  font-size: 20px;
}

.aboutus {
  height: 150px;
  background-color: whitesmoke;
  padding: 20px;
}

.aboutus h2 {
  margin-top: 85px;
  font-size: 25px;
  margin-left: 150px;
  color: #021b43;
}

.aboutus1 {
  height: 113px;
  background-color: whitesmoke;
  padding: 20px;
}

.aboutus1 h2 {
  margin-top: 50px;
  font-size: 25px;
  margin-left: 150px;
  color: #021b43;
}

.abot {
  width: 100%;
  height: auto;
  display: flex;
  background-image: url(/img.avif);
  background-size: cover;
}

.abot-img {
  width: 50%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* hides overflow if image is larger */
}

.abot-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* or "contain" if you don’t want to crop */
}

.abot-text {
  width: 100%;
  height: auto;
}

.abot-text h4 {
  margin-left: 90px;
  font-size: 25px;
  color: #021b43;
  margin-top: 90px;
}

.abot-text p {
  margin-top: 40px;
  height: auto;
  font-size: 18px;
  color: #056185;
  line-height: 1.5;
  margin-right: 300px;
  margin-left: 90px;
}

.ourteam {
  background-color: whitesmoke;
  padding: 20px;
  background-image: url(/imgg.jpg);
  background-size: cover;
}

.ourteam h2 {
  font-size: 25px;
  text-align: center;
  color: #021b43;
  margin-top: 10px;
}

.user {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.user > div {
  flex: 0 0 30%;
  max-width: 30%;
  text-align: center;
}

.user-img {
  margin: 20px auto 10px auto;
  height: 230px;
}

.user h3,
.user p {
  font-size: 19px;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
}

.user a:hover {
  color: #1500ff;
}

.social-links {
  text-align: center;
  justify-content: center;
}

.social-links a {
  font-size: 20px;
  margin: 0 8px;
  color: #1352b7;
  text-decoration: none;
}

.social-links a:hover {
  color: #1500ff;
}

.call {
  height: 300px;
}

.contact {
  font-size: larger;
  display: flex;
  justify-content: space-evenly;
  margin-top: 50px;
  text-align: center;
}

.phone,
.gmail {
  border-radius: 10px;
  height: 280px;
  width: 30%;
  border: 2px solid gainsboro;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: whitesmoke;
  background-image: url(/imgg.jpg);
  background-size: cover;
}

.phone:hover,
.gmail:hover {
  box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgb(49, 49, 52);
}

.phone {
  margin-left: 250px;
}

.phone i,
.gmail i {
  font-size: 100px;
}

.phone h4,
.gmail h4 {
  font-size: 20px;
  margin-top: 15px;
}

.phone p,
.gmail p {
  font-size: 18px;
  margin-top: 10px;
}

.gmail {
  margin-right: 250px;
}

.form {
  height: 600px;
  display: flex;
  flex-direction: row;
}

.form-txt {
  border: 2px solid black;
  height: 500px;
  width: 500px;
  margin: 50px auto;
  padding: 10px;
  border-radius: 10px;
  background-color: whitesmoke;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.form-txt h3 {
  font-size: 18px;
  margin-top: 15px;
  margin-left: 20px;
}

.form-txt input {
  height: 35px;
  width: 90%;
  margin-left: 20px;
  border-radius: 6px;
  margin-top: 15px;
  font-size: 17px;
}

.form-txt textarea {
  height: 200px;
  width: 90%;
  margin-top: 15px;
  margin-left: 20px;
  border-radius: 6px;
  border: 2px solid black;
}

.message {
  font-size: 17px;
}

.form-txt .submit {
  width: 100px;
  height: 35px;
  font-size: 17px;
  background: #0578ba;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 20px;
  margin-top: 10px;
}

.form-txt .submit:hover {
  background: #03155c;
}

.form-img {
  margin-left: 130px;
}

.me {
  position: relative;
  height: auto;
  padding: 20px;
}

.me img {
  height: 450px;
  margin-bottom: 50px;
  margin-left: 250px;
}

.mee {
  margin-top: 2px;
  position: absolute;
  top: 20%;
  left: 50%;
  border: 2px solid black;
  transform: translateX(-50%);
  width: 50%;
  color: black;
  padding: 20px;
  border-radius: 10px;
  margin-left: 250px;
  margin-top: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.mee h2 {
  margin-bottom: 10px;
  color: black;
}

.mee p {
  color: black;
  column-gap: 1.6px;
}

/* ===== TABLET STYLES (768px - 1023px) ===== */
@media (max-width: 1023px) {
  .content {
    margin-top: 100px;
    padding: 15px;
    min-height: auto;
  }

  .box {
    width: 100%;
    height: fit-content;
    flex-direction: column;
    margin: 0 auto;
  }

  .head1 {
    text-align: center;
    margin-left: 10;
    display: flex;
    justify-content: space-evenly;
    width: 80%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .head1 a {
    font-size: 16px;
    text-decoration: none;
    color: black;
    display: inline-block;
    padding: 8px 12px;
    flex: 0 0 auto;
  }

  .head1 a:hover {
    color: #1508a4;
  }

  .head {
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    gap: 8px;
    margin-left: 0;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .head a {
    font-size: 16px;
    color: #100f0f;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .head a:hover {
    color: #1508a4;
  }

  .dropdown {
    position: relative;
    display: inline-block;
    width: auto;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background: #fffefe;
    min-width: 160px;
    z-index: 1;
    top: 100%;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .dropdown-content a {
    display: block;
    padding: 12px 15px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a:hover {
    background: #f5f5f5;
  }

  .nav-logo {
    margin-left: -250px;
    height: 110px;
    width: 110px;
  }

  .text p {
    margin: 0 40px;
    font-size: 16px;
  }

  .hero {
    margin: 0 30px;
  }

  .subject {
    margin: 30px 10px 0 10px;
    gap: 15px;
  }

  .subject > div {
    width: 45%;
  }

  .box1,
  .box2,
  .box3,
  .box4,
  .box5,
  .box6,
  .box7,
  .box8,
  .box9,
  .box10,
  .box11,
  .box12,
  .box13,
  .box14,
  .box15,
  .box16,
  .box17,
  .box18,
  .box19,
  .box20 {
    width: 100%;
    height: 250px;
  }

  .box1 img,
  .box2 img,
  .box3 img,
  .box4 img,
  .box5 img,
  .box6 img,
  .box7 img,
  .box8 img,
  .box9 img,
  .box10 img,
  .box11 img,
  .box12 img,
  .box13 img,
  .box14 img,
  .box15 img,
  .box16 img,
  .box17 img,
  .box18 img,
  .box19 img,
  .box20 img {
    height: fit-content;
  }

  .sec {
    height: auto;
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  .about {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .abt h2,
  .abt p {
    margin-left: 0;
    text-align: center;
  }

  .feature {
    flex-direction: column;
    gap: 30px;
    margin: 30px 10px 0 10px;
  }

  .dabba1,
  .dabba2 {
    width: 90%;
    margin: 0 auto;
    height: auto;
    padding: 20px;
  }

  .contact {
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
  }

  .phone,
  .gmail {
    width: 80%;
    margin: 0 auto;
  }

  .form {
    flex-direction: column;
    height: auto;
    gap: 30px;
  }

  .form-txt {
    width: 90%;
    margin: 20px auto;
    height: auto;
  }

  .form-img {
    margin: 0 auto;
    text-align: center;
  }

  .me img {
    height: 300px;
    margin: 0 auto;
  }

  .mee {
    position: relative;
    width: 90%;
    margin: 20px auto;
    transform: none;
    left: auto;
    top: auto;
  }

  .user > div {
    flex: 0 0 45%;
    max-width: 45%;
  }

  .hoome {
    margin-top: 45px;
  }

  .hoome p {
    margin: 0 40px;
  }

  .hoome h2 {
    margin: 16px 40px;
  }

  .hh {
    margin: 20px 40px 10px 40px;
  }

  .p1 {
    margin: 0 40px 15px 40px;
  }

  .abot {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
  }

  .abot-img {
    width: auto;
    margin-left: 40px;
    justify-content: center;
    align-items: center;
  }

  .abot-text {
    height: auto;
    margin-right: 0;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .abot-text h4 {
    font-size: 24px;
    margin-left: 0;
    margin-top: 0;
    color: #021b43;
  }

  .abot-text p {
    height: auto;
    margin-top: 20px;
    font-size: 18px;
    margin-left: 10px;
    margin-right: 10px;
    color: #056185;
    line-height: 1.5;
  }
}

/* ===== MOBILE STYLES (under 768px) ===== */
@media (max-width: 767px) {
  .header {
    padding: 5px 0;
    height: auto;
    position: fixed;
    width: 100%;
    background: white;
    z-index: 1000;
  }

  .content {
    margin-top: 1px;
    padding: 10px;
  }

  .box {
    width: 100%;
    height: auto;
    flex-direction: column;
    margin: 0 auto;
    padding: 0;
  }

  .head {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    gap: 2px;
    background: white;
    padding: 5px 0;
  }

  .head a {
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    border: 1px solid #f0f0f0;
    background: #f8f8f8;
    margin: 0;
  }

  .head1 {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    gap: 2px;
    background: white;
    padding: 5px 0;
    max-height: 150px;
    overflow-y: auto;
  }

  .head1 a {
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    border: 1px solid #f0f0f0;
    background: #f8f8f8;
    margin: 0;
  }

  .news {
    text-align: center;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .news-img {
    width: 100%;
    padding-left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .news img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* Mobile-specific adjustments */
  @media (max-width: 768px) {
    .news-img {
      gap: 15px;
      flex-direction: column;
    }

    .news img {
      width: 100%;
      margin-bottom: 10px;
    }
  }

  /* Small mobile devices */
  @media (max-width: 480px) {
    .news {
      padding: 15px 10px;
    }

    .news-img {
      gap: 10px;
      padding: 20px;
    }
  }

  .image img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .nav-logo {
    height: 2px;
  }

  .logo {
    margin-top: -25px;
    margin-left: 240px;
  }

  .logo img {
    width: 80px;
  }

  .text p {
    margin: 0 15px;
    font-size: 15px;
  }

  .hero {
    margin: 0 15px;
    padding: 15px;
  }

  .subject > div {
    width: 100%;
    max-width: 300px;
  }

  .box1,
  .box2,
  .box3,
  .box4,
  .box5,
  .box6,
  .box7,
  .box8,
  .box9,
  .box10,
  .box11,
  .box12,
  .box13,
  .box14,
  .box15,
  .box16,
  .box17,
  .box18,
  .box19,
  .box20 {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  .box1 img,
  .box2 img,
  .box3 img,
  .box4 img,
  .box5 img,
  .box6 img,
  .box7 img,
  .box8 img,
  .box9 img,
  .box10 img,
  .box11 img,
  .box12 img,
  .box13 img,
  .box14 img,
  .box15 img,
  .box16 img,
  .box17 img,
  .box18 img,
  .box19 img,
  .box20 img {
    height: fit-content;
  }

  .footer {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 10px;
  }

  .footer .msg,
  .pp {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .user > div {
    flex: 0 0 100%;
    max-width: 280px;
  }

  .user-img {
    height: 180px;
  }

  .phone i,
  .gmail i {
    font-size: 60px;
    flex-wrap: wrap;
  }

  .form-txt {
    width: 95%;
    margin: 15px auto;
    padding: 15px;
  }

  .me img {
    height: 250px;
  }

  .hoome {
    height: fit-content;
    padding: 20px;
    margin-bottom: 10px;
    margin-top: -25px;
  }

  .hoome p {
    margin: 0 20px;
    font-size: 16px;
  }

  .hoome h2 {
    margin: 2px 20px;
    font-size: 24px;
  }

  .hh2 {
    font-size: 22px;
    margin: 0 15px 15px 15px;
  }

  .hh {
    font-size: 18px;
    margin: 15px 20px 10px 20px;
  }

  .p1 {
    font-size: 14px;
    margin: 0 20px 15px 20px;
  }

  @media only screen and (max-width: 768px) {
    .table {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 16px;
      width: 100%;
      box-sizing: border-box;
      overflow-x: auto; /* allows horizontal scroll instead of cutting text */
    }

    .table table {
      width: 100%;
      min-width: 300px; /* ensures table doesn’t shrink too much */
      margin: auto;
      border-collapse: collapse;
    }

    .table th,
    .table td {
      padding: 10px 12px;
      font-size: 13px;
      white-space: nowrap; /* keeps text in one line */
      text-align: center;
    }
  }

  .aboutus {
    height: fit-content;
    margin-top: -110px;
  }

  .aboutus h2 {
    margin-top: 120px;
    margin-left: 20px;
    font-size: 22px;
    margin-bottom: 1px;
  }

  .aboutus1 {
    height: fit-content;
    margin-top: -110px;
  }

  .aboutus1 h2 {
    margin-top: 82px;
    margin-bottom: 1px;
    margin-left: 20px;
    font-size: 22px;
  }

  .privacy {
    margin-top: -100px;
  }

  .abot {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .abot-img {
    height: 300px;
    margin-left: 0;
    width: fit-content;
  }

  .abot-img img {
    height: auto;
    padding: -50px;
    width: fit-content;
  }

  .abot-text {
    margin-right: 0;
  }

  .abot-text h4,
  .abot-text p {
    margin-left: 20px;
  }

  .dose {
    height: fit-content;
    padding: 10px;
  }

  .dose p {
    margin-bottom: 20px;
    margin-right: 20px;
    text-align: center;
  }
}

/* ===== MOBILE NAVIGATION STYLES ===== */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  padding: 12px 15px;
  font-size: 18px;
  background: transparent;
  border: none;
  margin-left: auto;
  color: black !important;
}

.mobile-menu-btn i {
  color: black !important;
  font-size: 18px !important;
  display: inline-block !important;
  width: auto;
  height: auto;
}

.header .mobile-menu-btn i {
  font-size: 18px !important;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background: white;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
  color: #333;
  text-decoration: none;
}

#mobile-menu-toggle:checked ~ .mobile-nav {
  display: flex;
  transform: translateX(0);
}

.mobile-dropdown-content {
  display: none;
  background: #f5f5f5;
  padding-left: 0;
  transition: max-height 0.3s ease;
  overflow: hidden;
  max-height: 0;
}

.mobile-dropdown.active .mobile-dropdown-content {
  display: block !important;
  max-height: 500px;
}

.mobile-nav a {
  display: block;
  padding: 15px 20px;
  font-size: 14px;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #f0f0f0;
  background: white;
  margin: 0;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.mobile-nav a:hover {
  background: #f2f2f2;
}

.mobile-nav a:active {
  background: #e0e0e0;
}

.mobile-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-dropdown-content a {
  padding-left: 30px;
  background: #f9f9f9;
  font-size: 13px;
  border-bottom: 1px solid #e8e8e8;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#mobile-menu-toggle:checked ~ .mobile-nav-overlay {
  display: block;
}

.head1-menu-btn {
  display: none;
  cursor: pointer;
  padding: 12px 15px;
  font-size: 18px;
  background: transparent;
  border: none;
  margin-left: auto;
  color: black !important;
}

.head1-menu-btn i {
  color: black !important;
  font-size: 24px !important;
  display: inline-block !important;
  width: 24px;
  height: 24px;
}

.head1-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background: white;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#head1-menu-toggle {
  display: none;
}

#head1-menu-toggle:checked ~ .head1-mobile-nav {
  display: flex;
  transform: translateX(0);
}

.head1-mobile-nav a {
  display: block;
  padding: 15px 20px;
  font-size: 14px;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #f0f0f0;
  background: white;
  margin: 0;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.head1-mobile-nav a:active {
  background: #e0e0e0;
}

.head1-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#head1-menu-toggle:checked ~ .head1-nav-overlay {
  display: block;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    color: black !important;
    background: transparent !important;
    border-radius: 4px;
    margin: 5px;
  }

  .mobile-menu-btn i {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: black !important;
    font-size: 24px !important;
    font-weight: bold;
  }

  .head {
    display: none !important;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
    background: white !important;
  }

  .header .box {
    background: white !important;
    border: 0.5px solid #ddd !important;
  }

  .nav-logo {
    background: transparent;
  }

  .mobile-dropdown.active .mobile-dropdown-content {
    display: block !important;
    max-height: 500px;
  }

  .head1-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    color: black !important;
    background: transparent !important;
    border-radius: 4px;
    margin: 5px;
  }

  .head1-menu-btn i {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: black !important;
    font-size: 18px !important;
    font-weight: bold;
  }

  .head1 {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  .head {
    display: flex !important;
  }

  .head .dropdown:hover .dropdown-content {
    display: block !important;
  }

  .head1-menu-btn {
    display: none !important;
  }

  .head1-mobile-nav {
    display: none !important;
  }

  .head1-nav-overlay {
    display: none !important;
  }

  .head1 {
    display: flex !important;
  }

  .head1 .head1-menu-btn {
    display: none !important;
  }
}

/* ===== TABLE & LIST STYLES ===== */
.table-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

table {
  border-collapse: collapse;
  margin: 0 auto;
  text-align: center;
}

table tr {
  border-bottom: 1px solid #e0e0e0;
}

table td {
  padding: 15px 25px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
}

table td:first-child {
  font-weight: 500;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  min-width: 0;
  text-align: center;
  max-width: 400px;
}

table td:last-child {
  text-align: center;
  white-space: nowrap;
}

table a {
  color: #0066cc;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid #0066cc;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 80px;
}

table a:hover {
  background: #0066cc;
  color: white;
}

table tr:first-child {
  background: #f8f9fa;
  border-bottom: 2px solid #ddd;
}

table tr:first-child td {
  font-weight: bold;
  font-size: 1.1em;
  padding: 18px 25px;
  text-align: center;
}

@media (max-width: 768px) {
  .table-container {
    margin: 15px 0;
    padding: 0 15px;
  }

  table {
    width: 100%;
    max-width: 500px;
  }

  table td {
    padding: 12px 15px;
    text-align: center;
  }

  table td:first-child {
    text-align: center;
    max-width: 250px;
    font-size: 13px;
    line-height: 1.3;
  }

  table a {
    padding: 6px 15px;
    font-size: 13px;
    min-width: 60px;
  }

  table tr:first-child td {
    padding: 15px 15px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .table-container {
    padding: 0 10px;
  }

  table td {
    padding: 10px 12px;
  }

  table td:first-child {
    max-width: 200px;
    font-size: 12px;
  }

  table a {
    padding: 5px 12px;
    font-size: 12px;
    min-width: 50px;
  }
}

table td {
  word-break: break-word;
  hyphens: auto;
}

table tr:not(:first-child):hover {
  background: #f8f9fa;
  transition: background 0.2s ease;
}

.privacy ul {
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

.privacy li {
  margin: 10px 0;
  padding: 12px 15px;
  background: #f8f9fa;
  border-left: 4px solid #0066cc;
  border-radius: 6px;
  line-height: 1.5;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.privacy li::before {
  content: "•";
  color: #0066cc;
  font-weight: bold;
  font-size: 16px;
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 481px) and (max-width: 768px) {
  .privacy ul {
    margin: 18px 0;
  }

  .privacy li {
    padding: 14px 18px;
    font-size: 15px;
    margin: 12px 0;
  }

  .privacy li::before {
    left: -22px;
    font-size: 17px;
  }
}

@media (min-width: 769px) {
  .privacy ul {
    margin-left: 10px;
  }

  .privacy li {
    padding: 15px 20px;
    font-size: 16px;
    margin-left: 170px;
    margin-right: 150px;
    transition: all 0.3s ease;
  }

  .privacy li::before {
    left: -25px;
    font-size: 18px;
  }
}
