/* TOP NAV BUTTON */
.topNavBtn {
  display: none;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

.topNavBtn:hover {
  background-color: var(--active-color);
}

.top-bar {
  background-color: #111;
  /* Dark background */
  color: white;
  padding: 10px 20px;
  font-size: small;
  display: flex;
  justify-content: space-between;
}

.top-bar a {
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.top-bar .social-icons a {
  margin: 0 5px;
  font-size: larger;
}

.logo-area {
  background-color: #0D47A1;
  padding: 10px;
  text-align: left;
}

.logo-area img {
  max-width: 200px;
  max-height: 80px;
}

/* NAVBAR DESKTOP */
.navbar {
  background-color: #af0909;
  font-family: var(--ff-nunito);
  z-index: 12;
  top: 0;
  display: flex;
  flex-direction: column;
}

.logo-area {
  padding: 10px;
}

.logo-area img {
  margin: 0 20px;
}

.ul {
  display: flex;
  padding: 0 20px;
}

.nav-container {
  overflow-x: auto;
  flex-grow: 1;
  margin-right: 10px;
}

.navbar ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.navbar ul li {
  position: relative;
  display: inline-block;
  margin: 0 10px;
}

.navbar ul li a {
  color: white;
  line-height: 70px;
  text-decoration: none;
  font-size: var(--ts-md);
  font-weight: 700;
  transition: all 250ms ease-in-out;
}

.navbar .search-container {
  margin-left: auto;
  align-content: center;
}

#search-icon {
  font-size: 20px;
  color: white;
  transition: color 0.3s;
}

#search-icon:hover {
  color: orange;
}

.navbar ul li a:hover,
.navbar ul li a:focus {
  outline: none;
  color: orange;
}

.navbar ul li a.current {
  outline: none;
  color: orange;
}

/* Sub-menu styling */
.navbar ul ul {
  position: absolute;
  top: 90px;

  opacity: 0;
  visibility: hidden;
  transition: top 0.3s;
}

/* Show sub-menu on hover */
.navbar ul li:hover>ul {
  top: 70px;
  opacity: 1;
  visibility: visible;
}

/*breaking-news*/
.news-container {
  position: relative;
  height: 50px;
  font-family: "Roboto", sans-serif;
  box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background: #fff;
}

.news-container .title {
  position: absolute;
  background: #111;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: white;
  font-weight: bold;
  z-index: 200;
}

.news-container ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 1;
  /* Ensure list is visible */
  width: max-content;
  /* Ensure the list is wide enough */
  animation: scroll 20s infinite linear;
}

.news-container ul li {
  white-space: nowrap;
  padding: 10px 24px;
  color: #111;
  font-weight: 700;
  position: relative;
}

.news-container ul li::after {
  content: "";
  width: 1px;
  height: 100%;
  background: #b8b8b8;
  position: absolute;
  top: 0;
  right: 0;
}

.news-container ul li:last-child::after {
  display: none;
}

/* Keyframe for scrolling */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% + 100vw - 100px));
  }
}

/* CARD LIST MOBILE*/
.card-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 1rem;
}

/* FOOTER */
.footer {
  display: flex;
  flex-flow: row wrap;
  padding: 30px 55px;
  color: var(--light-color);
  background: var(--black-color);
}

.footer > * {
  flex: 1 100%;
}

.footer-left {
  margin-right: 1.25rem;
  margin-bottom: 1rem;
}

.footer-left img {
  width: 200px;
}

.footer h2 {
  font-weight: 600;
  font-size: var(--hs-vs);
  padding-bottom: 0.8rem;
  color: var(--primary-color);
}

.footer ul {
  padding-left: 0;
}

.footer li {
  line-height: 2em;
  padding-bottom: 5px;
  font-size: var(--ts-sml);
}

/* Footer Middle (Contact Details) */
.footer-middle {
  flex: 1;
  list-style: none;
  padding: 0;
}

.footer-middle ul {
  padding-bottom: 25px;
}

/* Footer Right (Google Map) */
.footer-right {
  flex: 1;
  text-align: right;
  list-style: none;
  padding: 0;
}

.footer-right iframe {
  width: 100%;
  height: 200px;
  border: 0;
}

.footer-bottom {
  text-align: center;
  color: var(--light-color);
  font-size: var(--ts-sml);
  background: var(--dark-color);
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: inline-block;
}

.socials a:nth-child(1):hover i {
  color: #3b5998;
}

.socials a:nth-child(2):hover i {
  color: var(--primary-color);
}

.socials a:nth-child(3):hover i {
  color: var(--tag-blue-color);
}

.socials a:nth-child(4):hover i {
  color: var(--tag-pink-color);
}

.socials a i {
  padding: 10px;
  font-size: 20px;
  transition: all 200ms ease-in-out;
}

/* SEARCH BAR */

.box-container {
  margin: auto;
  width: 300px;
  height: 42px;
  background: white;
  border: 4px solid var(--primary-color);
  padding: 0px 10px;
  border-radius: 50px;
}

.search-table {
  width: 100%;
  height: 100%;
}

.search-input {
  border: none;
  height: 100%;
  width: 100%;
  padding: 0 5px;
  border-radius: 50px;
  font-size: var(--ts-md);
  color: var(--dark-color);
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border: none;
}

.filters {
  padding: 1rem;
  margin: auto;
  margin-top: 10px;
  border-radius: var(--border-radius);
  font-family: var(--ff-nunito);
  /* background-color: #fff; */
}

.filters div {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  margin-top: 10px;
}

.filters label {
  font-family: var(--ff-nunito);
  font-size: 0.95rem;
  padding-right: 10px;
  width: 80px;
  text-align: center;
}

.filters input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border: 2px var(--primary-color) solid;
  background: #fff;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

.filters input[type="checkbox"]::after {
  font-family: "Font Awesome 5 Free";
  content: "\f00c";
  font-weight: 900;
  font-size: 12px;
  display: none;
  color: white;
}

.filters input[type="checkbox"]:checked {
  background-color: var(--primary-color);
}

.filters input[type="checkbox"]:checked::after {
  display: block;
}

.filters select,
.filters input {
  width: 200px;
  padding: 8px;
  font-family: var(--ff-nunito);
  border-radius: var(--border-radius);
  border: 3px solid var(--primary-color);
  outline: none;
}

form button {
  cursor: pointer;
}

/* ARTICLE SECTION */
.page-container {
  display: grid;
  grid-template-columns: 5fr 2fr;
  margin: 2rem 0;
  grid-gap: 1.5rem;
}

.page-container aside {
  display: grid;
  grid-template-rows: repeat(1fr);
  grid-gap: 1.5rem;
}

.card1 {
  background: #fff;
  padding: 1rem;
  overflow: hidden;
  box-shadow: 2px 1px 8px rgba(0, 0, 0, 0.268);
}

.article-gallery {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.article-image {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

/* Navigation Buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 50%;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.card1 img {
  margin-top: 20px;
}

.article-heading {
  font-family: var(--ff-robo);
  font-size: var(--hs-sml);
  font-weight: 600;
  color: var(--black-color);
  letter-spacing: -2px;
  padding: 5px 15px;
}

.article .meta {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #eee;
  padding: 0.5rem;
  color: var(--black-color);
  font-size: var(--ts-sml);
  font-weight: 600;
  font-family: var(--ff-monts);
}

.article .meta i {
  color: black;
  padding: 10px;
}

.article .meta .tag {
  margin-top: 0.4rem;
}

.article .article-content {
  font-size: 1.1rem;
  padding: 15px 5px;
  font-family: var(--ff-nunito);
}

/*.article .article-content p:first-child::first-letter {*/
/*  float: left;*/
/*  font-size: 3.5rem;*/
/*  line-height: 4rem;*/
/*  color: var(--black-color);*/
/*  letter-spacing: 10px;*/
/*  text-transform: uppercase;*/
/*}*/

.article-date {
  font-size: 14px;
  color: #af0909;
}

.article-date strong {
  color: #333;
  font-weight: 500;
}

/* ASIDE CARD LIST */
.aside-title {
  color: var(--black-color);
  font-size: var(--ts-md);
  font-weight: 700;
  font-family: var(--ff-nunito);
  text-transform: uppercase;
  padding: 5px;
  text-decoration: underline;
}

.card2 {
  background: #fff;
  padding: 0.8rem;
  overflow: hidden;
  box-shadow: 2px 1px 8px rgba(0, 0, 0, 0.268);
  max-height: max-content;
}

.aside-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  border-bottom: 2px solid var(--light-color);
  margin-bottom: 5px;
}

.aside-card:hover .aside-card-title {
  text-decoration: underline;
  color: black !important;
}

.aside-card-img {
  padding: 0;
  height: 200px;
  width: 300px;
  overflow: hidden;
  margin-right: 8px;
}

.aside-card-img img {
  padding: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 250ms ease-in-out;
}

.aside-card-title {
  color: var(--black-color);
  font-family: var(--ff-robo);
  font-size: 1rem;
  transition: all 200ms ease-in-out;
}

.aside-card-author,
.aside-card-date {
  padding-top: 10px;
  color: var(--black-color);
  font-family: var(--ff-robo);
  font-size: 0.8rem;
  display: none;
}

/* LOGIN & SIGNUP FORMS */

.forms-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.left,
.right {
  flex: 1;
  margin: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-title {
  text-align: center;
  padding: 1rem;
}

.form-title h4 {
  font-family: var(--ff-robo);
  font-size: var(--hs-sml);
  font-weight: 500;
  color: var(--dark-color);
}

.input-field {
  padding: 8px;
  height: 60px;
  width: 300px;
}

.input-field input,
.input-field textarea {
  height: 100%;
  width: 100%;
  outline: none;
  font-family: var(--ff-robo);
  padding-left: 15px;
  border-radius: 5px;
  border: 1px solid lightgrey;
  font-size: 17px;
}

.input-field input:focus,
.input-field textarea:focus {
  border-color: var(--black-color);
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  color: var(--dark-color);
}

.input-field input:focus::placeholder {
  color: var(--dark-color);
}

.input-field textarea {
  padding: 10px;
  padding-left: 15px;
}

.input-field button {
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  font-size: 17px;
  font-weight: 400;
  color: var(--light-color);
  background-color: var(--primary-color);
  border: none;
  outline: none;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 200ms ease-in-out;
}

.input-field button:hover {
  color: var(--light-color);
  background-color: var(--active-color);
}

.form-errors {
  margin: 1.2rem 0;
}

.form-errors .errors {
  width: 75%;
  margin: auto;
  color: var(--primary-color);
}

/* Recently Updated Section */
.recently-updated {
  margin-top: 30px;
  padding: 20px;
}

.recently-updated h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #007bff;
  display: inline-block;
  padding-bottom: 5px;
}

.recent-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.recent-article {
  background-color: #fff;
  overflow: hidden;
}

.recent-article img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
}

.recent-article a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  color: #111;
  margin: 10px;
  word-wrap: break-word;
  white-space: normal;
  overflow: hidden;
}

.recent-article a:hover {
  color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .recent-articles {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .recent-article img {
    height: 20vh;
  }

  .recent-article a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .recent-articles {
    grid-template-columns: 1fr;
  }

  .recent-article img {
    height: 60px;
  }

  .recent-article a {
    font-size: 0.85rem;
  }
}

#photo-gallery {
  padding: 20px 0;
  background-color: #f9f9f9;
}

#photo-gallery .container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

#photo-gallery .date-header {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 20px 0 10px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item p {
  padding: 10px;
  margin: 0;
  font-size: 16px;
  color: #555;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.share-buttons {
  margin-left: 5px;
}

.share-buttons h3 {
  margin-bottom: 10px;
  font-size: 18px;
  text-align: left;
}

.share-icons {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.share-icons .icon {
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.share-icons .icon.whatsapp {
  background-color: #25d366;
}

.share-icons .icon.whatsapp:hover {
  background-color: #1da851;
}

.share-icons .icon.facebook {
  background-color: #4267b2;
}

.share-icons .icon.facebook:hover {
  background-color: #365899;
}

.share-icons .icon.twitter {
  background-color: #1da1f2;
}

.share-icons .icon.twitter:hover {
  background-color: #1a91da;
}

/* Contact Us Section Styles */
.contact-us-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.contact-us-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.contact-us-section p {
  color: #666;
  margin-bottom: 30px;
  text-align: center;
}

.contact-us-grid {
  display: flex;
  flex-wrap: wrap;  
  justify-content: center;  
  align-items: flex-start;  
}

.contact-form,
.contact-info {
  width: 100%;       
  max-width: 500px;  
  min-width: 320px;   
  height: 400px;      
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;    
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form .form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form .btn-submit {
  background-color: #007bff;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-form .btn-submit:hover {
  background-color: #0056b3;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.contact-info p {
  color: #555;
  margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-us-grid {
    flex-direction: column;  /* Stack the divs vertically */
    gap: 15px;               /* Add space between the divs */
    justify-content: center; /* Ensure divs are centered horizontally */
    align-items: center;     /* Ensure the items are centered vertically */
  }

  .contact-form,
  .contact-info {
    width: 100%;            /* Ensure they take up full width */
    max-width: 500px;       /* Keep max width */
    height: auto;           /* Let the height adjust for mobile */
    margin: 0 auto;         /* Center the divs */
  }
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  padding: 7px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background-color: #25d366;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}