html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: black;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-image: url('../images/backg.jpg');
}
.foot {
    background-color: #D69A2D;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;
    border-top: 2px solid orange;
    border-bottom: 2px solid orange;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #D69A2D;
    border-bottom: 2px solid orange;
    
}
header img {
    height: 50px;
}
h3 {
    color: black;
    justify-self: center;
}
nav a:hover {
    color: #4169E1;
    text-decoration: none;
}
.logo-nav a {
    color: black;
}
.logo-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 15px;
    position: relative;
    left: 125px;
}
.hero {
    border: 1px solid #63666A;
    padding: 2px;
    text-align: center;
    margin: 2px;
}
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
     
}

/* Responsive design for tablets and smaller screens */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .logo-nav {
       flex-direction: column;
        align-items: center;
    }
    .auth-buttons {
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    .hero {
        margin: 10px;
        padding: 15px;
    }
    .info_social {
        justify-content: center;
    }
}

/* For small screens and mobile devices */
@media (max-width: 768px) {
    .logo-nav {
        flex-direction: column;
        align-items: center;
    }
    .logo-nav img {
        max-width: 80px;
    }
    .search-section input {
        width: 80%;
    }
    .hero {
        padding: 10px;
    }
    .info_social {
        flex-direction: column;
        align-items: center;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .logo-nav {
        flex-direction: column;
        align-items: center;
    }
    .hero {
        padding: 15px;
        margin: 5px;
    }
    .info_social {
        flex-direction: column;
        align-items: center;
    }
    .foot {
        font-size: 12px;
        padding: 10px;
    }
    .query-input {
        width: 90%;
        height: 100px;
        font-size: 16px;
        padding: 12px;
    }
}

/* For buttons */
button {
    background-color: transparent;
    border-color: #0077cf;
}

button:hover {
    border-color: transparent;
}

.foot a {
    margin: 0 10px;
    text-decoration: underline;
    color: black;
}
.foot a:hover {
    text-decoration: none;
    color: #4169E1;
}


.search-bar {
  margin: 30px 0;
}

.search-bar select {
  padding: 3px 6px;
  width: 120px; 
  padding-right: 26px;
  font-size: 12px;
  border-color: #0077cf;
  background-color: transparent;
 border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.search-bar select:hover {
  border-color: #152d47;
  background-color: transparent;
}

.search-bar select:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
  border-color: #0077cf;
}

.slide-in {
  opacity: 0;
  transform: translateX(50px);
  animation: slideIn 1.2s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

  .query-input {
    width: 20%;
    min-height: 60px;
    resize: vertical;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
  }
  .query-input:focus {
    min-height: 120px;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  }

    .popup {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff4d4d;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: sans-serif;
    animation: fadeIn 0.3s ease;
  }

   @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }


   /* Button inside nav */
    .dropbtn {
     color: black;
  padding: 5px 18px;
  font-size: 16px;
  border: 2px solid #0077cf; 
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  background-color: transparent; 
    }

    .dropbtn:hover {
      background-color: transparent; 
  border-color: #005fa3; 
    }

    /* Dropdown content (hidden by default) */
    .dropdown-content {
      display: none;
      position: absolute;
      background-color: white;
      min-width: 160px;
      box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
      z-index: 1;
    }

    /* Dropdown links */
    .dropdown-content a {
      color: black;
      padding: 10px 16px;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background-color: #f1f1f1;
    }

    /* Show the dropdown on hover */
    .dropdown:hover .dropdown-content {
      display: block;
    }

.newsletter-container {
  background: transparent;
  padding: 1.5rem;
  max-width: 360px;
  margin: 2rem auto;
 border: 1px solid #ddd;
  border-radius: 12px;
  border: 2px solid #FFA500; /* Hex code for orange */
  box-shadow: 0 4px 10px black(255, 165, 0, 0.2);
  text-align: center;

  
}
.newsletter-container input[type="text"],
.newsletter-container input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #0c0808;
  border-radius: 4px;
}
.newsletter-container label {
  display: block;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.newsletter-container button {
  padding: 0.5rem 1rem;
  border: none;
  background: #007BFF;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
#message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}


/* Wrapper to center everything */
.outer {
  width: 100%;
  background: transparent;
  margin: 0;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

/* Main container */
.container {
  width: 100%;
  max-width: 600px;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}

/* Header */
.header {
  background: #D69A2D;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #264653; /* Dark teal-blue */
  text-align: center;
  padding: 20px;
 margin-bottom: 12px;
  text-transform: capitalize;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.header h1 {
  margin: 0;
  font-size: 24px;
}

/* Greeting section */
.greeting {
  padding: 20px;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
    
}
.greeting p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

/* Article blocks */
.article {
  padding: 20px;
  color:#333333;
}
.article.alt {
  border-top: 1px solid #dddddd;
}
.article h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #007BFF;
}
.article p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* Button links */
.button {
  display: inline-block;
  padding: 10px 16px;
  background: #007BFF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

/* Footer */
.footer {
  background: #D69A2D;
  text-align: center;
  padding: 20px;
  color:black;
  font-size: 12px;
  line-height: 1.4;
}
.footer a {
  color: #007BFF;
  text-decoration: none;
  background-origin: padding-box;
}
.footer p {
  margin: 0 0 8px;
}

/* Slideshow container */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 250px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 8px;
}

/* Each slide */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  animation: fade 12s infinite;
}

.slide img {
  width: 100%;
  height: auto;       /* let height adjust */
  object-fit: contain;
  display: block;
}

/* Staggered start times */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }

/* Fade in/out */
@keyframes fade {
0%, 41%, 100% { opacity: 0; }
  8%, 33%      { opacity: 1; }
}


/* Each slide now styled as a card */
.card {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:#D69A2D;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  animation: fade 12s infinite;
  text-align: left;
}

/* Button (reuse your existing .button) */
.button {
  display: inline-block;
  padding: 10px 18px;
  background: #0056b3;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 12px;
}
.button:hover {
  background: #003f80;
}
/* Slide positioning & delays */
.slideshow {
  position: relative;
  width: 100%;
  background-color: transparent;
  max-width: 600px;
  height: 500px; /* adjust if you need more room */
  margin: 50px auto;
  overflow: hidden;
}

.slide.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation-name: fade;
  animation-duration: 36s; /* 6 slides x 6s each */
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.slide.card:nth-child(1) { animation-delay: 0s; }
.slide.card:nth-child(2) { animation-delay: 6s; }
.slide.card:nth-child(3) { animation-delay: 12s; }
.slide.card:nth-child(4) { animation-delay: 18s; }
.slide.card:nth-child(5) { animation-delay: 24s; }
.slide.card:nth-child(6) { animation-delay: 30s; }

@keyframes fade {
  0%, 15%, 100% { opacity: 0; }
  5%, 10%       { opacity: 1; }
}

.newsletter-section {
  background: transparent;
  background-size: cover;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

/* Semi-opaque overlay to improve legibility */
.newsletter-section .overlay {
  background: transparent;
  border-radius: 8px;
  padding: 20px;
max-width: 650px;
 width: 90%;}

.fade-slideshow {
  position: relative;
  width: 400px;
  height: 225px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.fade-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain; /* changed from 'cover' */
  background-color: #000; /* fills gaps if image has empty space */
  opacity: 0;
  animation: fadeSlide 18s infinite;
}
.fade-slide:nth-child(1) {
  animation-delay: 0s;
}
.fade-slide:nth-child(2) {
  animation-delay: 6s;
}
.fade-slide:nth-child(3) {
  animation-delay: 12s;
}

@keyframes fadeSlide {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

.slideshow .slide.card h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #264653; /* Dark teal-blue */
  margin-bottom: 12px;
  text-transform: capitalize;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
