*,
*::before,
*::after {
  box-sizing: border-box; /* Makes padding/border included in width/height */
}
img {
  max-width: 100%; /*very necessary makes image stay in parent div*/
  height: auto;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
.selects {
  width: 100%;
  border: 4px solid brown;
  text-align: center;
}

.form-control {
  width: 50%;
  height: 35px;
  margin: 10px;
  margin-left: 30%;
  border-radius: 3px;
}
.topdivhome {
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 2px solid brown;
  display: flex;
  flex-direction: row;
}
.figurehome {
  font-size: 20px;
  padding-left: 5px;
  font-weight: lighter;
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", "Geneva", "Verdana, sans-serif";
  border-radius: 10px;
  color: white;
  position: relative;
}
.containerfsdp {
  display: flex; /* Makes children side by side */
  gap: 50px; /* Optional space between them */
  padding: 20px;
}
.nav {
  width: 20%;
  min-width: 200px;
  position: relative;
  margin-top: 10px;
  margin-left: 10px;
}

#nav1 {
  background-color: brown;
  position: absolute;
  width: 100%;
  margin-top: 60px;
  overflow: hidden;
  height: 30px;
  border-radius: 10px;
  text-align: center;
}
#nav2 {
  background-color: brown;
  position: absolute;
  width: 100%;
  overflow: hidden;
  text-align: center;
  height: 30px;
  margin-top: 130px;
  border-radius: 10px;
}
.formobile {
  display: none;
}
/* Mobile layout */
@media (max-width: 768px) {
  /* Hide nav buttons and form, keep nothing since nav is now separate */
  .nav {
    display: none;
  }
  .formobile {
    display: flex;
    gap: 20px;
    flex-direction: column;
    margin-top: 20px;
    width: 30%;
    background: 5px solid red;
    margin-left: 5%;
  }
  #nav1formobile {
    background-color: brown;
    flex: 3;
    overflow: hidden;
    height: 30px;
    border-radius: 10px;
    text-align: center;
  }
  .mobileform {
    flex: 3;
  }
  .containerfsdp {
    flex-direction: column;
    gap: 0; /* 👈 remove gap */
    padding: 0; /* 👈 remove padding */
    width: 100%;
  }

  #nav2formobile {
    background-color: brown;
    flex: 3;
    overflow: hidden;
    text-align: center;
    height: 30px;
    border-radius: 10px;
  }
  /* Show mobile buttons at top */

  .slider-container {
    order: 1;
    width: 100%;
    margin: 0;
  }

  .news-section {
    order: 2;
    width: 100%;
    margin-top: 20px !important;
  }
  .clr {
    margin-top: 20px;
  }
  .news-scroll-container {
    max-height: 200px !important; /* Adjust height as needed */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px; /* Space for scrollbar */
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
  }
  .swiper-slide {
    height: 350px !important;
  }
  .my-swiper {
    width: 100%;
    height: 350px !important; /* Adjust height as needed */
  }
}

.slider-container {
  flex: 8;
  margin-top: 2%; /* Below topdivhome */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.my-swiper {
  width: 100%;
  height: 700px; /* Adjust height as needed */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Beautiful full-bleed images */
}

/* Custom arrow colors to match your azure theme */
.swiper-button-prev,
.swiper-button-next {
  color: azure !important;
}

/* Active dot in azure with glow */
.swiper-pagination-bullet-active {
  background: brown !important;
  box-shadow: 0 0 10px azure;
}

/* Responsive: full-width on mobile */

.news-section {
  margin-top: 110px;
  flex: 2;
}

.news-section h2 {
  color: black;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 20px;
  font-size: 20px;
}

/* Scrollable container */
.news-scroll-container {
  max-height: 500px; /* Adjust height as needed */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px; /* Space for scrollbar */
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

/* Vertical list layout */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 15px;
}

/* Each news card */
.news-item {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.news-item-inner {
  width: 100%;
}

.image-link {
  flex-shrink: 0;
  width: 220px; /* Fixed width for image */
  height: 120px;
  overflow: hidden;
  display: block;
}

.news-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.image-link:hover img {
  transform: scale(1.05);
}

.no-image-placeholder {
  width: 220px;
  height: 150px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-content h3 {
  margin: 0 0 10px 0;
  font-size: 19px;
}

.news-content h3 a {
  color: blanchedalmond;
  text-decoration: none;
}

.news-content h3 a:hover {
  color: azure;
}

.news-content .summary {
  color: #ddd;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.news-content .source {
  margin: 0;
  font-size: 14px;
  color: azure;
  text-align: right;
}

/* Custom scrollbar */
.news-scroll-container::-webkit-scrollbar {
  width: 10px;
}

.news-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
  background: brown;
  border-radius: 10px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
  background: brown;
}

.simple-footer {
  background: rgba(
    0,
    0,
    0,
    0.7
  ); /* Matches your semi-transparent black header */
  color: azure; /* Light text like your header */
  text-align: center;
  padding: 25px 20px;
  font-size: 16px;
  margin-top: 8%; /* Good spacing from content above */
  width: 100%;
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", sans-serif;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Stacks nicely on mobile */
}

.simple-footer p {
  margin: 0;
  opacity: 0.9;
}

.separator {
  color: blanchedalmond;
  opacity: 0.6;
}
.form-group.cat {
  margin: 10px;
  margin-left: 30%;
}
.is-invalid {
  border: 2px solid #dc3545 !important;
}

#div {
  background-color: black;
  opacity: 0.5;
  height: 40px;
  width: 100%;
  position: relative;
  padding-top: 10px;
}
#seconddiv {
  position: absolute;
  width: 30%;
  height: 40px;
  color: red;
  padding-top: 10px;
  margin-left: 70%;
  margin-top: 10px;
  top: 0;
}

#mainnavdiv {
  width: 18%;
  height: 100%;
  border: 2px solid red;
}
.signup {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

.login {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

.success {
  text-decoration: none;
  background-color: rgb(180, 233, 180);

  height: 30px;
  margin-left: 28%;
  width: 30%;
  margin-bottom: 5%;
  font-size: 20px;
  padding-top: 5px;
  border-radius: 5px;
  text-align: center;
}
/*report*/
a.report {
  color: white;
  text-decoration: none;
}
.beta-banner {
  background: #fff8e1;
  border-bottom: 1px solid #f0c040;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #7a5c00;
}
