/* ================= Reset ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #fff;
  padding-top: 70px; /* space for fixed navbar */
}

/* ================= Navbar ================= */
nav {
  width: 100%;
  background: #fff7e6;
  border-bottom: 2px solid #f4c430;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  flex-wrap: wrap;

  position: fixed; /* fixed navbar */
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e60023;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: #e60023;
  background: #fff0cc;
  padding: 5px 8px;
  border-radius: 5px;
}

/* ================= Main Content ================= */
.main-content {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ================= Content Blocks ================= */
.content-block {
  display: block;
  width: 100%;
  max-width: 350px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.content-block:hover {
  background-color: #fff4e0;
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.content-block img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
  aspect-ratio: 16/9;
  object-fit: cover;
  background-color: #e0e0e0;
  border: 1px dashed #999;
}

.content-block h3 {
  color: #4CAF50;
  margin-top: 10px;
}

.content-block p {
  font-size: 0.9em;
  line-height: 1.5;
  margin-top: 5px;
}

.content-block .btn {
  display: inline-block;
  margin-top: 10px;
  color: #2196F3;
  font-weight: bold;
}

/* ================= Footer ================= */
.footer {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
}

.footer-links {
  list-style: none;
  margin: 0 0 15px 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

/* ================= Responsive ================= */

/* 🖥️ Desktop: 3 blocks per row */
@media (min-width: 992px) {
  .content-block {
    width: calc(33.33% - 20px);
  }
}

/* Tablet: 2 blocks per row */
@media (min-width: 600px) and (max-width: 991px) {
  .content-block {
    width: calc(50% - 20px);
  }
}

/* 📱 Mobile: 1 block per row and navbar slight height reduce */
@media (max-width: 599px) {
  .content-block {
    width: 100%;
  }

  nav {
    padding: 6px 15px; /* slightly reduced from 12px */
  }

  nav .logo {
    font-size: 1.25rem; /* slightly smaller logo */
  }

  nav ul li a {
    font-size: 0.9rem;
  }
}

/* ================= Optional Text Style ================= */
h3 {
  font-family: Arial, sans-serif;
  font-size: 24px;
  color: rgb(212, 79, 84);
  text-align: center;
  margin: 40px;
  font-weight: 800;
}

p {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin: 40px;
  text-align: justify;
  font-weight: 600;
  color: black;
}
#lastcontent{
                 text-align: center;
}
                           /* about us page css  */

  #listedparagraph>li{
                             text-align: justify;
                             font-size: 22px; 

                             padding-left: 25px;
                             line-height: 50px;

  }                       
 