/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* HEADER CONTAINER INLINE */
header {
  background-color: #1a1a2e;
  color: #fff;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* LOGO */
.logo {
  font-size: 2rem;
  font-weight: 700;
}

/* NAVIGATION */
nav {
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 25px;
}

.nav-list li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: #00bfff;
}

/* HAMBURGER MENU */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .nav-list {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 100px;
    height: 0;
    flex-direction: column;
    background-color: #1a1a2e;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
  }

  .nav-list li {
    margin: 15px 5px;
    text-align: left;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-list.active {
    height: 280px; /* Adjust according to links */
  }

  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}



/* Hero Section */
.hero {
  background-color: deepskyblue;
  padding: 50px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
}

/* Posts Section */
.posts {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.post-card {
  background-color: #fff;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.post-card:hover {
  transform: scale(1.02);
}

.post-card img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.post-card h3 {
  margin: 10px 0;
}

.post-card a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

.post-card a:hover {
  color: #007BFF;
}

/* Single Post */
.single-post img {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 5px;
}

.single-post p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* About Section */
.about {
  padding: 30px 20px;
  max-width: 800px;
  margin: auto;
}

.about h2 {
  margin-bottom: 15px;
  text-align: center;
}

/* Contact Section */
.contact {
  padding: 30px 20px;
  max-width: 600px;
  margin: auto;
}

.contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact form label {
  display: block;
  margin: 10px 0 5px;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact form button {
  background-color: #222;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact form button:hover {
  background-color: #007BFF;
}

/* FOOTER STYLING */
footer {
  background-color: #1a1a2e;
  color: #fff;
  padding: 50px 20px 20px 20px;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 220px;
  margin: 10px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #00bfff;
}

.footer-section p {
  line-height: 1.6;
  color: #ccc;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #00bfff;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.social-icons a:hover img {
  filter: brightness(0) invert(0.6) sepia(1) hue-rotate(180deg);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #ccc;
  font-size: 0.8rem;
  border-top: 1px solid #333;
  padding-top: 15px;
}

/* FOOTER RESPONSIVE */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    margin: 20px 0;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* CATEGORY SECTION */
.categories-section {
  padding: 20px;
  background-color: #f5f6fa;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.categories-container {
  display: flex;
  gap: 15px;
}

.category-card {
  flex: 0 0 auto;
  background-color: #1a1a2e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  white-space: nowrap;
}

.category-card:hover {
  background-color: #00bfff;
  transform: scale(1.05);
}

/* Scrollbar Styling */
.categories-section::-webkit-scrollbar {
  height: 6px;
}

.categories-section::-webkit-scrollbar-thumb {
  background: #00bfff;
  border-radius: 3px;
}

.categories-section::-webkit-scrollbar-track {
  background: #eee;
}

.category-card.active-category {
  background-color: #00bfff;
  color: #fff;
  transform: scale(1.05);
}

.post-time {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
  font-style: italic;
}

/* SEARCH BAR */
.search-section {
  max-width: 600px;
  margin: 30px auto;
  text-align: center;
}

#search-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

#search-input:focus {
  border-color: #00bfff;
  box-shadow: 0 0 8px rgba(0,191,255,0.5);
}

/* ADMIN PAGE */
.admin-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
}

.admin-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #1a1a2e;
}

#post-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
}

#post-form input, 
#post-form textarea, 
#post-form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#post-form button {
  background-color: #1a1a2e;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

#post-form button:hover {
  background-color: #00bfff;
}

.post-card iframe {
  border-radius: 10px;
  margin: 10px 0;
}
.post-card a {
  display: inline-block;
  margin: 10px 0;
  color: #00bfff;
  font-weight: 600;
  text-decoration: none;
}
.post-card a:hover {
  text-decoration: underline;
}