body {
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  font-size: 12pt; /* Setting the base font size for the body */
}

header {
  background-color: white;
  color: #0C0310;
  padding: 10px 20px;
  border-bottom: 5px solid red;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  margin-right: 10px;
}

.nv {
  font-size: 25px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif; /* Poppins font */
}

.tag {
  font-size: 16px;
  font-weight: normal;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: black;
  text-decoration: none;
  font-weight: lighter;
  font-family: 'Poppins', sans-serif; /* Poppins font */
}



.section1 {
  text-align: center;
  margin-left: 10px;
  margin-right: 10px;
  background-color: #fff;
}

.section1 img {
  width: 100%;
  max-height: 500px;
  position: relative;
}

.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  text-align: center;
  text-shadow:
      -1px -1px 0 black,
      1px -1px 0 black,
      -1px  1px 0 black,
      1px  1px 0 black;
}

/* ===== Carousel Styles ===== */
.carousel-container {
  width: 98%; /* Adjust to fit your screen horizontally with some margin */
  max-width: 1200px; /* Optional: Set a maximum width if needed */
  margin: 20px auto;
  padding: 15px;
  text-align: center;
  border-bottom: 5px solid #17006A; /* Adjust thickness and color as needed */
  padding-bottom: 10px; /* Add space below the container */
  margin-bottom: 15px; /* Add space below the border itself (optional) */
}

.main-display {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
}

.main-display.active {
  transform: scale(1.02);
  transition: transform 0.3s ease-in-out;
}

.main-display img {
  max-width: 60%;
  max-height: 300px; /* Adjusted max height */
  object-fit: contain;
  margin-right: 15px;
  border: 3px solid transparent;
  border-color: red;
}

.main-text {
  text-align: left;
  flex: 1;
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
}

.main-text h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.5em; /* Adjust as needed */
  font-weight: bold;
  margin-top: 0; /* Reset default margin */
}

.main-text p {
  border-bottom: 3px solid #F6D200; /* Solid yellow border, adjust thickness if needed */
  padding-bottom: 8px; /* Adjust spacing below the border */
  margin-bottom: 12px; /* Adjust margin below the border */
}

.thumbnail-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.thumbnail-track {
  overflow: hidden;
  width: calc(5 * (170px + 12px)); /* Set the width to exactly fit 5 thumbnails */
}

.thumbnail-carousel {
  display: flex;
  gap: 50px; /* Increased gap */
  transition: transform 0.3s ease-in-out;
}

.thumbnail-carousel img {
  width: 170px; /* Increased default width */
  height: 150px; /* Increased default height */
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.3s ease-in-out;
  flex-shrink: 0; /* Prevent thumbnails from shrinking */
  border-color: #000000;
}

.thumbnail-carousel img.active {
  width: 170px; /* Even larger active width */
  height: 150px; /* Even larger active height */
  border: 3px solid #333;
  opacity: 1;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out, border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-color: #000000;
}

.main-text .read-more {
  color: gray;
  text-decoration: none;
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px;
  font-weight: lighter;
  text-transform: uppercase;
}

.read-more:hover {
  text-decoration: underline;
}

.thumbnail-arrow {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  user-select: none;
  margin: 0 8px;
}

.thumbnail-arrow:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .main-display {
      flex-direction: column;
      align-items: center;
  }
  .main-display img {
      max-width: 90%;
      margin-right: 0;
      margin-bottom: 10px;
  }
  .thumbnail-track {
      width: calc(3 * (170px + 12px)); /* Adjust for smaller screens if needed */
  }
}

.section3 h1 {
  font-size: 28px;
  margin-bottom: 20px;
  margin-left: 60px;
  font-family: 'Poppins', sans-serif; /* Poppins font */
  font-weight: bold;
}

.announcement {
  display: flex;
  align-items: flex-start; /* keeps image and text top-aligned */
  gap: 20px;
  margin-bottom: 15px;
}

.announcement-content {
  max-width: 1000px;
}

.announcement-title {
  font-weight: bold;
  font-size: 20px;
  color: black; /* Ensure default black color */
  font-family: 'Times New Roman', Times, serif; /* Poppins font */
}

.announcement-title:hover {
  cursor: default; /* Remove hover effect and cursor */
}

.announcement-date {
  font-size: 12px;
  color: gray;
  margin: 5px 0;
  padding-bottom: 5px;
  border-bottom: 3px solid; /* thick border */
  width: 1000px;          /* make it stretch full width */
  display: block;          /* ensures it takes full space */
}

.announcement-text {
  font-size: 18px;
  margin-bottom: 10px; /* Add some space below the text */
  font-family: 'Times New Roman', Times, serif;
}

img.announcement-img {
  border-radius: 5px;
  width: 150px;
  height: auto;
  flex-shrink: 0; /* prevents the image from shrinking */
  margin-left: 100px;
  border: 2px solid transparent;
  border-color: #000000;
}

.read-more {
  color: gray; /* Blue link color */
  text-decoration: none;
  font-weight: lighter;
  font-size: 0.9em; /* Adjust size if needed */
  display: inline-block; /* To control margin/padding */
  margin-top: 5px; /* Add space between text and link */
  text-transform: uppercase;
}

.read-more:hover {
  text-decoration: underline;
}


footer {
  background-color: #333; /* Dark background color */
  color: #fff; /* White text color */
  padding: 20px 0;
  position: relative; /* For the bottom space */
}

.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.footer-logo img {
  max-height: 200px; /* Adjust as needed for consistent height */
  height: auto;
}

.footer-contact h3,
.footer-links h3,
.footer-services h3,
.footer-social h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  display: flex; /* Align icon/logo and text */
  align-items: center;
  font-family: 'Poppins', sans-serif; /* Poppins font */
  font-weight: bold;
}

.section-logo {
  max-height: 30px; /* Ensure same max height as main logo */
  height: auto;
  margin-right: 8px; /* Add some spacing between logo and text */
  vertical-align: middle; /* Align with the text */
}

.footer-contact p {
  margin-bottom: 5px;
  font-family: 'Poppins', sans-serif; /* Poppins font */
}

.footer-contact a {
  color: #ddd;
  text-decoration: none;
  font-family: 'Poppins', sans-serif; /* Poppins font */
}

.social-links {
  display: flex;
  align-items: center;
}

.social-icon {
  display: inline-block;
  margin-right: 10px;
}

.social-icon img {
  width: 24px; /* Adjust size as needed */
  height: 24px;
  vertical-align: middle; /* Align with text if any */
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-icon:hover img {
  opacity: 1;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
  font-family: 'Poppins', sans-serif; /* Poppins font */
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  font-family: 'Poppins', sans-serif; /* Poppins font */
}

.footer-links a:hover {
  color: #fff;
}


.footer-bottom-space {
  height: 50px; /* Adjust the height for more or less space */
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .footer-logo,
  .footer-contact,
  .footer-links,
  .footer-services,
  .footer-social {
      margin-bottom: 20px;
  }

  .social-links {
      justify-content: center;
  }

  .social-icon {
      margin: 0 10px;
  }

  .footer-contact h3,
  .footer-links h3,
  .footer-social h3 {
      flex-direction: column; /* Stack logo and text on smaller screens if needed */
      align-items: center;
  }

  .section-logo {
      margin-right: 0;
      margin-bottom: 5px;
  }
}

/* Top right corner Auth Buttons (Log In / Sign Up) */
.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-buttons .signin,
.auth-buttons .signup {
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  min-width: 90px;
  font-weight: 400;
  border: none;
}

.auth-buttons .signin {
  background-color: transparent;
  border: 1px solid #7a7474;
  color: #333;
}

.auth-buttons .signup {
  background-color: #333;
  border: none;
  color: white;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.form-container {
  background-image: url('../images/sadmalone.jpg'); /* Replace with your image path */
  background-size: cover; /* Ensures the image covers the entire container */
  background-position: center; /* Centers the image */
  width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  z-index: 4;
}


 .form-image {
      width: 45%;
      padding: 30px 40px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
    }

    .form-image .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
      width: 100%;
    }

    .form-image .logo-image img {
      height: 50px;
    }

    .form-image .logo-text h1 {
      font-size: 16px;
      color: #333;
      margin-bottom: 4px;
    }

    .form-image .logo-text p {
      font-size: 12px;
      color: #666;
    }

    .form-image img {
      width: 100%;
      max-width: 350px;
      height: auto;
      object-fit: contain;
      margin: 0 auto;
      display: block;
    }

    .form-content {
      width: 55%;
      padding: 40px 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      position: relative; /* <-- Add this line */
    }

    .form-content > div {
      width: 100%;
    }

    .form-content h2 {
      margin-bottom: 20px;
      color: #333;
      font-size: 24px;
    }

    .name-fields {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
    }

    .name-fields .input-group {
      flex: 1;
    }

    .input-group {
      margin-bottom: 12px;
    }

    .input-group label {
      display: block;
      margin-bottom: 4px; /* Adjusted */
      color: #666;
      font-size: 13px; /* Adjusted */
    }

    .input-group input {
      width: 220px; /* Adjusted */
      padding: 6px 8px; /* Adjusted */
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 13px; /* Adjusted */
      box-sizing: border-box;
    }

    .checkbox-group {
      display: flex;
      align-items: center;
      margin: 15px 0;
    }

    .checkbox-group input {
      margin-right: 8px;
    }

    .checkbox-group label {
      font-size: 13px;
      color: #666;
    }

    .checkbox-group a {
      color: #1a73e8;
      text-decoration: none;
      margin-left: 4px;
    }

    .submit-btn {
      width: 100%;
      padding: 8px 0; /* Adjusted */
      background-color: #0a2977;
      color: white;
      border: none;
      border-radius: 4px; /* Adjusted */
      cursor: pointer;
      font-size: 14px; /* Adjusted */
      font-weight: bold;
      margin-top: 5px;
      margin-bottom: 8px; /* Adjusted */
    }

    .form-footer {
      text-align: center;
      margin-top: 15px;
      font-size: 13px;
      color: #666;
    }

    .form-footer a {
      color: #1a73e8;
      text-decoration: none;
      margin-left: 4px;
    }

    #login-form,
    #register-form {
      display: none;
    }

    #login-form.active,
    #register-form.active {
      display: block;
    }

    .forgot-password {
      text-align: left;
      margin-bottom: 15px;
      font-size: 13px;
    }

#register-form input[type="email"],
#register-form input[type="password"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 16px;    /* Move closer to the top edge */
  right: 16px;  /* Move closer to the right edge */
  font-size: 24px;
  z-index: 10;
  cursor: pointer;
  color: #888;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

/* Two-column row for name fields */
.input-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.input-row .input-group {
  flex: 1;
}

/* Input group styling */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.input-group label {
  font-size: 13px; /* Adjusted */
  margin-bottom: 4px; /* Adjusted */
  color: #333;
}

.input-group input {
  padding: 6px 8px; /* Adjusted */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px; /* Adjusted */
  background: #fafbfc;
}

/* Checkbox group styling */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

/* Button styling */
.submit-btn {
  width: 100%;
  background: #0a1a4f;
  color: #fff;
  border: none;
  padding: 8px 0; /* Adjusted */
  border-radius: 4px; /* Adjusted */
  font-size: 14px; /* Adjusted */
  font-weight: bold;
  margin-bottom: 8px; /* Adjusted */
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1a2a6c;
}

/* Footer link */
.form-footer {
  text-align: center;
  font-size: 15px;
}

.form-footer a {
  color: #1a73e8;
  text-decoration: none;
  margin-left: 4px;
}

/* Modal close button */
.close-btn {
  position: absolute;
  top: 16px;    /* Move closer to the top edge */
  right: 16px;  /* Move closer to the right edge */
  font-size: 24px;
  z-index: 10;
  cursor: pointer;
  color: #888;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .input-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Tablet (up to 1024px) */
@media (max-width: 1024px) {
  nav ul {
    gap: 12px;
  }

  .nv {
    font-size: 20px;
  }

  .main-display img {
    max-width: 70%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo img {
    max-height: 150px;
  }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
  /* Header & Navbar */
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .auth-buttons .signin,
  .auth-buttons .signup {
    width: 100%;
    font-size: 14px;
  }

  /* Hero Section */
  .centered-text {
    font-size: 1.2rem;
    padding: 0 15px;
  }

  /* Carousel */
  .main-display {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-display img {
    max-width: 100%;
    margin-bottom: 15px;
  }

  .main-text {
    font-size: 16px;
    text-align: center;
  }

  .thumbnail-carousel-container {
    flex-direction: column;
  }

  .thumbnail-track {
    width: calc(3 * (120px + 8px));
  }

  .thumbnail-carousel img {
    width: 120px;
    height: 100px;
  }

  /* Announcements */
  .announcement {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .announcement img {
    margin-left: 0;
    width: 120px;
  }

  .announcement-date {
    width: 100%;
  }

  .announcement-content {
    max-width: 100%;
  }

  /* Modals */
  .form-container {
    flex-direction: column;
    width: 95%;
    height: auto;
  }

  .form-image,
  .form-content {
    width: 100%;
    padding: 20px;
  }

  .form-image img {
    max-width: 200px;
  }

  .input-row {
    flex-direction: column;
    gap: 0;
  }

  .input-group input {
    width: 100%;
  }

  .submit-btn {
    font-size: 13px;
    padding: 10px 0;
  }

  .close-btn {
    top: 8px;
    right: 10px;
  }

  /* Footer */
  footer {
    padding: 30px 10px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    max-height: 120px;
  }

  .footer-contact,
  .footer-links,
  .footer-services,
  .footer-social {
    margin-bottom: 15px;
  }

  .social-links {
    justify-content: center;
  }

  .social-icon {
    margin: 0 8px;
  }
}

/* Extra small (up to 480px) */
@media (max-width: 480px) {
  .nv {
    font-size: 18px;
  }

  .tag {
    font-size: 13px;
  }

  .main-text {
    font-size: 14px;
  }

  .announcement-title {
    font-size: 18px;
  }

  .announcement-text {
    font-size: 15px;
  }

  .submit-btn {
    font-size: 12px;
  }

  .form-content h2 {
    font-size: 20px;
  }

  .footer-contact p,
  .footer-links a {
    font-size: 13px;
  }

  .centered-text {
    font-size: 1rem;
  }
}

/* ===========================
   ✅ NAVBAR FIX + MOBILE TWEAKS
   =========================== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #fff;
  border-bottom: 2px solid #e4e4e4;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .logo-area img {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-buttons .signin,
.auth-buttons .signup {
  border: none;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.auth-buttons .signin {
  background: transparent;
  border: 1px solid #444;
  color: #444;
}

.auth-buttons .signin:hover {
  background: #444;
  color: #fff;
}

.auth-buttons .signup {
  background: #fbbf24;
  color: #000;
}

.auth-buttons .signup:hover {
  background: #f59e0b;
}

/* Responsive navbar fix */
@media (max-width: 824px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
  }

  .auth-buttons {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-start;
  }

  .auth-buttons .signin,
  .auth-buttons .signup {
    width: auto;
  }
}

/* ===========================
   ✅ MODAL ENHANCEMENT (CSS ONLY)
   =========================== */

.modal {
  display: none; /* your JS should toggle this */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px 25px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content h2 {
  text-align: center;
  font-size: 24px;
  color: #222;
  margin-bottom: 20px;
  font-weight: 600;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}

.modal-content input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}

.modal-content .submit-btn {
  width: 100%;
  background: #fbbf24;
  border: none;
  border-radius: 25px;
  padding: 12px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.modal-content .submit-btn:hover {
  background: #f59e0b;
}

.modal-content .close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}

.modal-content .close-btn:hover {
  color: #000;
}

/* Responsive modal fix */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 25px 20px;
  }

  .modal-content h2 {
    font-size: 20px;
  }

  .modal-content input {
    font-size: 14px;
  }

  .modal-content .submit-btn {
    font-size: 14px;
  }
}