* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --bg-light: #f9fafb;
  --text-dark: #111827;
  --text-light: #6b7280;
  --radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  flex-direction: column;
  display: flex;
  margin: 0;
  padding-top: 80px; /* adjust to your header height */
}

main {
  padding: 0 1rem;
  flex: 1;
}

html, body {
  overflow-x: hidden;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;   /* clean blend */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  height: 80px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

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

.nav ul li {
  margin-left: 20px;
}

.nav ul li a {
  color: #111;
  text-decoration: none;
}


.search-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}


/* Search box */
.search-box {
  position: relative;
}


.search-box input {
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  transition: 0.3s ease;
}


.search-box input:focus {
  border-color: #f97316;
}

.search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.9rem;
  color: #888;
}

/* Category dropdown */
#categoryFilter {
  padding: 0.6rem 1rem;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  cursor: pointer;
}

/* No results message */
.no-results {
  transition: opacity 0.5s ease;
  opacity: 0;
  text-align: center;
  visibility: hidden;
  transition: opacity 0.4s ease;
  margin: 1rem 0;
  font-weight: 600;
  color: #f97316;
}

.no-results.show {
  opacity: 1;
  visibility: visible;
}


mark {
  background-color: #fde68a;
  padding: 2px 4px;
  border-radius: 4px;
  transition: /*background-color 0.3s ease;*/ background-color 0.4s ease, color 0.3s ease;
}

.post-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: subtle hover effect for each post */
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.search-toggle,
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.hero {
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("home.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  text-align: center;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 3rem 1rem;
}


.hero h1 {
  font-size: clamp(2.5rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  color: #f97316;
  text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.hero p {
  font-size: clamp(1.5rem, 0.3vw, 0.3rem);
  opacity: 0.9;
  text-shadow: 0 5px 20px rgba(0,0,0,0.5);
  font-weight: 800;
}

.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}


.hero-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 14px 30px;
  background: white;
  color: black;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}



.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
  
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.post-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.post-content {
  padding: 1.2rem;
}

.category {
  display: inline-block;
  background: #eef2ff;
  color: #4f46e5;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

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


.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0077ff;
}

.sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* Sidebar Heading */
/*.sidebar h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827; *//* dark text */
  /*margin-bottom: 1rem;
  letter-spacing: -0.5px;
  border-bottom: 2px solid #f97316;*/ /* small orange underline for style */
  /*padding-bottom: 0.5rem;
  display: inline-block;
}
*/

/* List Items */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 0.75rem;
}

/* Links */
.sidebar ul li a {
  text-decoration: none;
  font-size: 1rem;
  color: #374151; /* medium-dark gray */
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

/* Hover Effect */
.sidebar ul li a:hover {
  color: #f97316; /* matches hero/category accent */
  transform: translateX(5px); /* subtle slide effect */
}


/* Widget spacing */
.sidebar-widget {
  margin-bottom: 2.5rem;
}

/* Widget title */
.sidebar-widget h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-left: 4px solid #f97316;
  padding-left: 10px;
  color: #111827;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags a {
  text-decoration: none;
  background: #f3f4f6;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  color: #374151;
  transition: 0.3s ease;
}

.tags a:hover {
  background: #f97316;
  color: white;
}



/*
@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: block;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
  }

  .nav ul {
    flex-direction: column;
  }

  .nav ul li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}
*/

@media (max-width: 768px) {

   .layout {
    grid-template-columns: 1fr; /* main content + sidebar stack */
  }

  /* Stack header items cleanly */
  .header .container {
    flex-wrap: wrap;
  }

  /* Hide nav by default */
  .nav {
    display: none;
  }

  .nav.active {
    display: block;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    padding: 1rem;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.8rem;
  }


  /* Hide search by default on mobile */
  .search-filter-bar {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    padding: 1rem;
    width: 240px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 0.8rem;
    z-index: 1000;
  }

  .search-filter-bar.active {
    display: flex;
  }

  .search-box input,
  #categoryFilter {
    width: 100%;
  }

  /* Show toggles on mobile */
  .search-toggle,
  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

}







#about {
  max-width: 1200px;
  margin: 3rem auto;
}

.about-section {
  padding: 6rem 1rem;
  background: #f9fafb; /* light grey background */
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #111827;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1rem;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}



#contact {
  margin: 3rem auto;
  background-color: ;
}


.contact-section {
  max-width: 1200px;
  padding: 6rem 1rem;
  background: #f97316;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.contact-info p {
  color: #fff;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.btn-submit {
  background: #000;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  align-self: center;
}

.btn-submit:hover {
  color: #000;
  background: #fff;
  transform: translateY(-2px);
}




.footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1rem 0;
}
