/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
body {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  position: relative;
  background: transparent;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

a {
  color: #b49a5f;
}

a:hover {
  color: #b49a5f;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
}

body.blog #header {
  background: #231f20;
  background-image: none;
  height: 90px;
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  z-index: 9999;
}


.blog-hero {
  margin: 40px 0 60px;
}

.wrapper {
  flex: 1; /* take up all space left */
  padding-top: 90px
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background-image: url('assets/img/bg/bg.jpg');
  background-color: #fff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  transition: ease-in-out 0s;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  overflow-y: auto;
}

#header * {
  transition: ease-in-out 0s;
}

#header h1 {
  font-size: 48px;
  margin-top: 0px;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

#header h1 a, #header h1 a:hover {
  color: #dee2e6;
  line-height: 1;
  display: inline-block;
  margin-left: -1px;
}

#header h2 {
  font-size: 24px;
  margin-top: 20px;
  color: #b49a5f;
}

#header img {
  padding: 0;
  margin: 0;
}

#header .social-links {
  margin-top: 40px;
  display: flex;
}

#header .social-links a {
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  margin-right: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

#header .social-links a:hover {
  background: #b49a5f;
}

/* Header Responsive */
@media (max-width: 768px) {
  #header h1 {
    font-size: 36px;
  }
  #header h2 {
    font-size: 20px;
    line-height: 30px;
    text-align: center;
  }
  #header .social-links {
    margin-top: 15px;
  }
  #header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/*--------------------------------------------------------------
# Nav
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  margin-top: 35px;
}

.nav-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li + li {
  margin-left: 30px;
}

.nav-menu a {
  display: block;
  position: relative;
  color: #fff;
  font-size: 19px;
  font-family: "Lexend", sans-serif;
}

.nav-menu a:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #9e7f25;
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.nav-menu a:hover:before, .nav-menu li:hover > a:before, .nav-menu .active > a:before {
  visibility: visible;
  width: 25px;
}

.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
  color: #b49a5f;
  text-decoration: none;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  color: #fff;
}

.mobile-nav {
  position: fixed;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.7);
  transition: ease-in-out 0s;
  opacity: 0;
  visibility: hidden;
  border-radius: 10px;
  padding: 10px 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: block;
  position: relative;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
  outline: none;
}

.mobile-nav a:hover, .mobile-nav .active > a, .mobile-nav li:hover > a {
  color: #b49a5f;
  text-decoration: none;
}

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(9, 9, 9, 0.6);
  overflow: hidden;
  display: none;
  transition: ease-in-out 0s;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

.mobile-nav-active .mobile-nav-overly {
  display: block; /* shown when active */
}

/*--------------------------------------------------------------
# Header Top
--------------------------------------------------------------*/
#header.header-top {
  height: 90px;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  background: #231f20;
}

#header.header-top .social-links,
#header.header-top h2 {
  display: none;
}

#header.header-top h1 {
  margin-right: auto;
  font-size: 36px;
}

#header.header-top .container {
  display: flex;
  align-items: center;
}

#header.header-top .nav-menu {
  margin: 0;
}

@media (max-width: 768px) {
  #header.header-top {
    height: 60px;
  }
  #header.header-top h1 {
    font-size: 26px;
  }
}

/*--------------------------------------------------------------
# Blog Menu
--------------------------------------------------------------*/
/* Blog Hero Section */
.blog-hero {
  margin-top: 40px;
  margin-bottom: 125px;
}

.hero-post {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 40px;
  max-width: 600px;
  border-radius: 12px;
}

.hero-content .category {
  background: #b49a5f;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.hero-content h2 {
  margin: 15px 0 10px;
  font-family: 'Merriweather', serif;
  font-size: 2rem;
}

.hero-content p {
  margin-bottom: 15px;
}

.btn-read {
  display: inline-block;
  background: #b49a5f;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-read :hover {
  color:#000;
}

/* Recent Posts */
.recent-posts {
  margin-top: 60px;
  margin-bottom: 60px;
}

.recent-posts h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-family: 'Merriweather', serif;
  color: #000;
}

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

.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-5px);
}

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

.post-info {
  padding: 15px;
}

.post-info h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-family: 'Lexend', sans-serif;
}

.post-info p {
  font-size: 0.85rem;
  color: #777;
}

/* Updated Blog Grid Styles - Add these to your existing style.css */

/* Override the existing .posts-grid to ensure 3 columns */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* Ensure post cards have consistent sizing */
.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
  color: inherit;
}

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

.post-info {
  padding: 20px;
}

.post-info h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-family: 'Lexend', sans-serif;
  color: #b49a5f;
  line-height: 1.4;
}

.post-info p {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr; /* one column */
    gap: 20px;
    width: 100%; /* ensure it fills container */
  }

  .post-card {
    width: 100%;
  }
}


/*--------------------------------------------------------------
# Pagination (Cleaned & Centered)
--------------------------------------------------------------*/

#paginationContainer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

#paginationContainer button {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background-color: #f4f4f4;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s ease;
  font-family: "Lexend", sans-serif;
  font-size: 0.9rem;
}

#paginationContainer button:hover {
  background-color: #b49a5f;
  color: #fff;
  border-color: #b49a5f;
}

#paginationContainer button.active {
  background-color: #b49a5f;
  color: white;
  font-weight: bold;
}

#paginationContainer button:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

#paginationContainer span {
  padding: 0.5rem 0.75rem;
  color: #999;
}

/* Responsive Fixes for Pagination */
@media (max-width: 768px) {
  #paginationContainer button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #paginationContainer {
    gap: 0.3rem;
  }

  #paginationContainer button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background: #b49a5f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 0;
}

/* Sticky Footer Layout Fix */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


footer {
  flex-shrink: 0;
  background: #b49a5f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}


