/* /assets/css/style.css */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 30, 30, 0.9);
  color: white;
  padding: 5px 15px; /* Reduced vertical and horizontal padding */
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  height: 40px; /* Reduced navbar height */
}

.nav-logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-logo span {
  font-weight: bold;
  font-size: 1.4em;
  color: #fff;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4caf50;
}

.admin-btn {
  background-color: #4caf50;
  padding: 6px 12px;
  border-radius: 5px;
}

/* Welcome Section */
.welcome {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(to right, #c2e9fb, #a1c4fd);
}

.welcome h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #222;
}

.welcome p {
  font-size: 1.1em;
  color: #444;
}

/* Search Bar */
.search-bar {
  padding: 20px;
  text-align: center;
}

.search-bar input[type="text"] {
  width: 60%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.search-bar button {
  padding: 10px 20px;
  margin-left: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.search-bar button:hover {
  background-color: #0056b3;
}


.btn {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background-color: #007bff;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sort-bar {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-form label {
  font-weight: bold;
  font-size: 14px;
}

.sort-form input[type="date"],
.sort-form select {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.sort-section {
  max-width: 1000px;
  margin: 0 auto 20px auto;
  padding: 0 15px;
}

.sort-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.sort-form label {
  font-size: 14px;
  font-weight: 500;
}

.sort-form select,
.sort-form input[type="date"] {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.sort-form .btn {
  padding: 7px 14px;
}

/* Categories */
.categories {
  padding: 20px;
  text-align: center;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.category-list a {
  padding: 10px 15px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.3s;
}

.category-list a:hover {
  background-color: #4caf50;
  color: white;
}

/* Gallery */
.gallery {
  padding: 20px;
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 0 20px;
}

.image-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.image-box img:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  font-size: 10px;
  margin-top: 20px;
  padding: 5px 15px;
  height: 40px; 
}

.footer a {
  color: #4caf50;
  text-decoration: none;
  margin-left: 10px;
}

.carousel-section {
  text-align: center;
  margin: 40px auto;
  overflow: visible;
}

.carousel {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.carousel-slide {
  display: none;
}

.carousel-slide img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot {
  height: 12px;
  width: 12px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #007bff;
}

/* PINTEREST */

.pin-it-button img {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.pin-it-button img:hover {
  opacity: 1;
}

.pin-it-button img {
  width: 30px;
  height: 30px;
  margin-top: 10px;
}

.social-share-icons {
  text-align: center;
  margin-top: 12px;
}

.social-share-icons a {
  display: inline-block;
  margin: 0 8px;
}

.social-share-icons .social-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.social-share-icons .social-icon:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}

/* aboutus.php */
 .about-container {
      max-width: 960px;
      margin: 80px auto 100px;
      padding: 0 20px;
      line-height: 1.6;
    }
    .about-container h1, .about-container h2 {
      color: #0077cc;
      text-align: center;
    }
    .about-container h1 {
      font-size: 2em;
    }
    .about-container h2 {
      font-size: 1.5em;
      margin-top: 40px;
    }
    .footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #1e1e1e;
      color: white;
      text-align: center;
      padding: 12px;
      font-size: 14px;
      border-radius: 20px 20px 0 0;
      z-index: 100;
    }
    
/* contact.php */
   .contact-container {
      max-width: 600px;
      margin: 90px auto 100px;
      padding: 20px;
      background-color: #fdfdfd;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .contact-container h2 {
      text-align: center;
      color: #007bff;
      margin-bottom: 20px;
    }

    .contact-container p {
      line-height: 1.6;
      color: #333;
      font-size: 16px;
    }

    .footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      background-color: #333;
      color: #fff;
      text-align: center;
      padding: 12px;
      font-size: 14px;
    }
    
    .footer a {
  color: #fff;
  text-decoration: underline;
}

    @media (max-width: 768px) {
      .contact-container {
        margin: 90px 20px 100px;
        padding: 15px;
      }
    }

.how-to-use {
  padding: 2rem;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.how-to-use h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.how-to-use ul {
  list-style: none;
  padding-left: 0;
}

.how-to-use ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.category-intro {
  padding: 2rem;
  background-color: #f0f4f8;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.category-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.category-intro p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
  background-color: #005bb5;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.form-status .success {
  background-color: #d4edda;
  color: #155724;
}

.form-status .error {
  background-color: #f8d7da;
  color: #721c24;
}

@media (prefers-color-scheme: dark) {
  .form-status .success {
    background-color: #1d3c2b;
    color: #b3f0c1;
  }

  .form-status .error {
    background-color: #4b1e23;
    color: #ffbcbc;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .contact-form {
    background-color: #222;
    color: #eee;
  }

  .contact-form input,
  .contact-form textarea {
    background-color: #333;
    color: #eee;
    border-color: #555;
  }

  .contact-form button[type="submit"] {
    background-color: #3399ff;
  }

  .contact-form button[type="submit"]:hover {
    background-color: #007acc;
  }
}
