/* Reset & base styles */

body {
  justify-content: center;
}
body, ul, li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
}

nav {
  width: 100%;
  height: 100px;
  background-color: #06215E;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

nav .logo {
  color: #ecf0f1;
  font-size: 2.5rem;
  font-weight: bold;
  text-decoration: none;
}

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

nav ul li a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 15px 0;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #2563eb;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 35px;
  height: 5px;
  background: #ecf0f1;
  border-radius: 1px;
}

/* Responsive */
@media (max-width: 800px) {
  nav ul {
    
    border-radius: 3px;
    position: absolute;
    top: 105px;
    left: 500px;
    right: 5px;
    background-color: #06215E;
    flex-direction: column;
    align-items: center;
    display: none;
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Container */
.search-container {
  padding: 20px;
  max-width: 600px;
  margin: px auto;
  font-family: 'Arial', sans-serif;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search-bar input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-bar button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.search-bar .search-btn {
  background-color: #06215E;
  color: #fff;
}

.search-bar .search-btn:hover {
  background-color: #2563eb;
}

.search-bar {
  background-color: #f3f4f6;
}

.search-bar .filter-btn:hover {
  background-color: #2563eb;
}

/* Filter Panel */
.filter-panel {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background-color: #f9fafb;
  display: none;
}

.filter-btn {
  background-color: #06215E;
  color: white;
}

.filter-panel.show {
  display: block;
}

.filter-panel h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 800px) {
  .search-bar input {
    font-size: 14px;
  }
  
  .search-bar button {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Container */
.category-section {
  padding: 20px;
}
.category-scroll {
  padding: 20px;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.cat-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: #f3f3f3;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}

.cat-btn.active,
.cat-btn:hover {
  background: #2563eb;
  color: #fff;
}

.posts {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  padding: 20px;
}

.post {
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 0.5rem;
}

.horizontal-scroll {
  padding: 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  white-space: nowrap;
}

/* Hide scrollbar (optional) */
.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 20px;
}

/* Card */
.scroll-card {
  min-width: 260px;
  max-width: 260px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image */
.scroll-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.posts {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Card */
.post-card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Image */
.post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Content */
.post-content {
  padding: 1rem;
}

.post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.4rem;
}

.post-content h3 {
  font-size: 1.05rem;
  margin: 0.3rem 0;
}

.post-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.post-content a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal-content {
  background: #fff;
  max-width: 600px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

/* Footer container */
footer {
  width: 100%;
  background-color: #0C114A;
  border-top: 1px solid #e5e7eb;
  padding: 60px 20px 30px;
  color: white;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Footer grid */
.footer-container {
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

/* Brand section */
.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #B1C1DD;
  font-size: 0.9rem;
}

/* Footer links */
.footer-links h4 {
  font-weight: 600;
  color: #6E5AFF;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

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

.footer-links ul li a {
  color: #6E5AFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #2563eb;
}

/* Newsletter */
.footer-newsletter h4 {
  font-weight: 600;
  color: #06215E;
  margin-bottom: 10px;
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.footer-newsletter form {
  display: flex;
  gap: 8px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
}

.footer-newsletter button {
  padding: 10px 18px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.footer-newsletter button:hover {
  background-color: #1d4ed8;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #e5e7eb;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: white;
}

.footer-bottom span {
  display: block;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 800px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-newsletter input,
  .footer-newsletter button {
    width: 300px;
  }
}