.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--black);
}

nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.blog-main {
    padding-top: 80px;
}

.blog-header {
    background: var(--gray-50);
    padding: 60px 0;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.blog-header p {
    font-size: 20px;
    color: var(--gray-500);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.blog-post {
    transition: transform 0.3s;
}

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

.blog-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9; /* match your image ratio */
  margin-bottom: 20px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-post:hover .blog-image img {
  transform: scale(1.05);
}

.blog-overlay {
  position: absolute;
  inset: 0; /* top:0; bottom:0; left:0; right:0 */
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* avoid blocking clicks */
}

.blog-post:hover .blog-overlay {
  opacity: 1;
  pointer-events: auto; /* enable clicking buttons on hover */
}

.blog-actions {
  display: flex;
  gap: 8px;
}

.blog-action-btn {
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
  border-radius: 4px;
}

.blog-action-btn:hover {
  background: var(--gray-100);
}

.blog-post img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 20px;
}

.blog-post .category {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.blog-post h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.blog-post .excerpt {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.blog-post .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-500);
}

.blog-post .author-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0;
    }

    .blog-header h1 {
        font-size: 36px;
    }
}

#adminPanel {
  display: none;
}