* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Baskervville SC", serif;
  background-color: #dedcff;
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
}

html {
    scroll-behavior: smooth;
}
/* Hearder and Nav
========================================== */

.header {
    background-color: #050315;
    /* FIX: Changed from fixed 330px to auto so it grows with content */
    height: auto; 
    min-height: 300px; /* Ensures it's never too small */
    position: relative;
    width: 100%;
    padding-bottom: 20px; /* Adds breathing room at the bottom */
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    /* Navbar stays absolute, so we need padding in the Hero section to push content down */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 100; /* Ensures navbar stays on top of hero images */
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e820f1;
  text-decoration: none;
}
.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.nav-item {
  position: relative;
}
.nav-link {
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #007bff;
}
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 2px 0;
}

@media screen and (max-width: 768px) {
  .navbar-nav {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: #050315;
      padding: 10px 0;
  }
  .navbar-brand{
    margin-right: 6rem;
  }
  .navbar-nav.show {
      display: flex;

  }
  .burger {
      display: flex;
  }
}



/* DROPOWN
========================================== */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff; 
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15); 
  border-radius: 8px; 
  padding: 0;
  z-index: 1000;
  min-width: 180px; 
  overflow: hidden; 
}
.dropdown-item {
  padding: 12px 20px; 
  color: #343a40; 
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}
.dropdown-toggle::after {
  content: " ▼";
  font-size: 0.8rem;
  color: #6c757d;
  margin-left: 6px;
}
.dropdown {
  position: relative;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.nav-item:hover .dropdown-menu {
  display: block;
}


.category-dropdown {
  margin-left: 150px;
}

.category-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0;
  z-index: 1000;
  min-width: 180px;
  overflow: hidden;
}

.category-dropdown-item {
  padding: 12px 20px;
  color: #343a40;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.category-dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.category-dropdown-toggle::after {
  content: " ▼";
  font-size: 0.8rem;
  color: #6c757d;
  margin-left: 6px;
}

.category-dropdown {
  position: relative;
}

.category-dropdown:hover .category-dropdown-menu {
  display: block;
}

.category-nav-item:hover .category-dropdown-menu {
  display: block;
}

@media screen and (min-width: 992px) {
  .category-nav-item.category-dropdown {
      display: none;
  }
}


@media screen and (max-width: 991px) {
  .category-nav-item.category-dropdown {
      display: block;
  }
}
/* HERO IMAGE
========================================== */
.hero {
    display: flex;
    align-items: center; /* FIX: Vertically centers image and text */
    justify-content: center;
    /* FIX: Added top padding (100px) so content doesn't hide behind the absolute navbar */
    padding: 100px 50px 50px; 
    margin: 0 auto; /* Centers the container */
    max-width: 1400px; /* Prevents it from getting too wide on large screens */
    gap: 40px; /* Adds consistent space between image and text */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    /* FIX: Limits image height so it doesn't dominate the screen */
    max-height: 350px; 
    width: auto; /* Maintains aspect ratio */
    max-width: 100%; /* Ensures it doesn't overflow width */
    object-fit: contain; /* Shows full image without cropping */
    border-radius: 8px;
}

.hero-content {
    flex: 1;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    /* Removed fixed margin-top */
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left; /* Keep text aligned nicely */
    color: #e0e0e0; /* Slightly softer white for readability */
}


@media screen and (max-width: 992px) {
    .hero {
        padding: 100px 30px 40px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column; /* Stack image and text */
        text-align: center;
        padding: 90px 20px 40px; /* Adjust padding for mobile */
    }

    .hero-image {
        margin-bottom: 20px;
        width: 100%;
    }

    .hero-image img {
        max-height: 250px; /* Smaller image on mobile */
    }

    .hero-content {
        width: 100%;
    }

    .hero-content p {
        text-align: center; /* Center text on mobile */
        font-size: 1rem;
    }
    
    /* Navbar adjust for mobile */
    .navbar-brand {
         margin-right: auto; /* Aligns brand to left */
    }
}
/* CATEGORY
========================================== */
.category-list {
  list-style-type: none;
}
.category-item {
  margin-bottom: 10px;
}
.category-link {
  color: #606060;
  text-decoration: none;
  font-size: 14px;
}
.category-link:hover {
  color: #030303;
}

/* MAIN SECTION
========================================== */
.main-content {
  margin-top: 60px;
  display: flex;
}

.content-section {
  max-width: 2000px;
  width: 100%;
  margin-left: 90px;
  overflow: hidden;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  justify-content: center;
  margin-top: 10px;
  margin-right: 150px;
}

.post-item {
  width: 110%;
  height: 150%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background-color: #dedcff;
}

.post-thumbnail img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background-color: #f0f0f0;
  padding: 9px;
  border-radius: 4.8%;
  transition: transform 0.3s ease-in-out;
}
.post-thumbnail img:hover {
  transform: scale(1.1);
}

.post-content {
  padding: 15px;
  text-align: left;
  font-size: 1em;
  text-transform: none;
}

.post-title {
  font-size: 1.3em;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.post-metadata {
  font-size: 0.79em;
  color: #777;
  margin-top: 10px;
  font-weight: bold;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.post-author,
.post-date {
  display: inline-block;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .main-content {
      margin-top: 20px;
      flex-direction: column; 
  }

  .content-section {
      margin-left: 20px; 
      margin-right: 20px;
      max-width: 100%; 
      width: 100%;
  }

  .post-grid {
      grid-template-columns: 1fr; 
      gap: 20px; 
      margin-right: 0; 
  }

  .post-item {
      width: 100%; 
      height: auto; 
      margin-left: 0rem;
  }

  .post-thumbnail img {
      height: 70%; 
      max-width: 95%; 
      padding: 5px; 
      border-radius: 8px; 
  }

  .post-content {
      padding: 10px; 
      font-size: 1.2em; 
  }

  .post-title {
      font-size: 1.1em; 
  }

  .post-metadata {
      font-size: 0.7em; 
      gap: 5px; 
  }
  .pagination{
    margin-left: 13rem;
  }
  
}

/* For extra small screens (mobile devices under 576px) */
@media (max-width: 576px) {
  .content-section {
      margin-left: 10px; 
      margin-right: 10px;
  }

  .post-grid {
      grid-template-columns: 1fr; 
  }

  .post-title {
      font-size: 1em; 
  }

  .post-metadata {
      font-size: 0.65em; 
  }

  .post-thumbnail img {
      padding: 3px; 
  }
}

/* PAGINATION
========================================== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  align-items: center;
  margin-right: 250px;
}

.pagination-btn {
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #007bff;
  border-radius: 4px;
  color: #007bff;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.pagination-btn:hover {
  background-color: #007bff;
  color: white;
}

.pagination-btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* ANIMATION MIXINS
========================================== */
@-webkit-keyframes float {
  0% {
    -webkit-transform: translateY(0px) translateX(0px);
  }
  50% {
    -webkit-transform: translateY(-30px) translateX(20px);
  }
  100% {
    -webkit-transform: translateY(0px) translateX(0px);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
  100% {
    transform: translateY(0px) translateX(0px);
  }
}

/* POP-UP
========================================== */
/* --- Main Popup Container (Footer Style) --- */
/* --- Footer / Subscribe Section --- */
.subscribe-footer {
    display: block;             /* Normal block element */
    width: 100%;                /* Full width */
    background-color: #dedcff;  /* Your Lavender Background */
    border-radius: 50px 50px 0 0; /* Round top corners for style */
    padding: 60px 20px 80px;    /* Spacing inside */
    margin-top: 80px;           /* Push it down from the content above */
    text-align: center;
    position: relative;         /* Standard positioning */
    z-index: 1;
}

/* --- Content Wrapper --- */
.subscribe-footer .content {
    max-width: 650px;
    margin: 0 auto;
}

/* --- Image Styling --- */
.subscribe-footer .img-container img {
    width: 150px;
    height: auto;
    margin-bottom: 25px;
    display: inline-block;
}

/* --- Text Styling --- */
.subscribe-footer .text-container h2 {
    font-family: 'Baskervville SC', serif;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 40px;
    line-height: 1.4;
    text-transform: none;
}

.subscribe-footer .text-container span {
    color: #ff6b6b;
    font-weight: bold;
}

/* --- Seamless Form Bar Styling --- */
.subscribe-footer .form-container form {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Soft shadow */
}

/* Input Field */
.email-input {
    flex-grow: 1;
    padding: 18px 20px;
    border: none;
    outline: none;
    font-family: 'Baskervville SC', serif;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: #555;
    text-align: center;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.email-input::placeholder {
    color: #999;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Subscribe Button */
.subscribe-btn {
    background-color: #e820f1;
    color: white;
    border: none;
    padding: 0 40px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.subscribe-btn:hover {
    background-color: #c918d1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 576px) {
    .subscribe-footer {
        border-radius: 30px 30px 0 0;
        padding: 40px 20px 60px;
    }
    
    .subscribe-footer .form-container form {
        flex-direction: column; /* Stack on mobile */
        box-shadow: none;
    }
    
    .email-input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 5px;
    }
    
    .subscribe-btn {
        width: 100%;
        padding: 15px;
        border-radius: 5px;
    }
    
    .subscribe-footer .text-container h2 {
        font-size: 1.4rem;
    }
}

/* --- Footer Copyright & Links --- */
.footer-links {
    margin-top: 60px;          /* Space away from the form */
    padding-top: 20px;         /* Space inside the top */
    border-top: 1px solid rgba(0,0,0,0.1); /* Subtle divider line */
}

.footer-links p {
    font-size: 0.8rem;         /* Small, professional text size */
    color: #666;               /* Grey text */
    font-family: 'Baskervville SC', serif;
    letter-spacing: 0.5px;
}

.footer-links .separator {
    margin: 0 10px;            /* Space around the "|" symbol */
    color: #ccc;
}

.footer-links a {
    color: #444;               /* Slightly darker grey for the link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e820f1;            /* Pink on hover */
    text-decoration: underline;
}

.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff; /* Bootstrap Primary Blue */
    color: #FFF;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000; /* Ensures it stays on top of other elements */
    
    /* Center the icon */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-floating:hover {
    background-color: #0056b3; /* Darker blue on hover */
    color: #FFF;
    text-decoration: none;
}



