/* Container for grid and arrows */
.pna-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 20px 0;
  }
  
  /* Arrow Navigation */
  .pna-arrow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #FB4B2B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
    transition: all 0.3s ease;
  }
  
  .pna-arrow-nav:hover {
    background: #e03819;
    transform: translateY(-50%) scale(1.1);
  }
  
  .pna-arrow-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #999;
  }
  
  .pna-arrow-nav.prev {
    left: -50px;
  }
  
  .pna-arrow-nav.next {
    right: -50px;
  }
  
  .pna-arrow-icon {
    font-size: 24px;
    line-height: 1;
  }
  
  /* Masonry Grid Layout */
  .pna-custom-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
  }
  
  .pna-category-ribbon {
    position: absolute;
    top: 30px;
    right: 10px;
    background-color: #FB4B2B;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 15px;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }
  
  /* Hide ribbon for announcements */
  .pna-announcement .pna-category-ribbon {
    display: none;
  }
  
  .pna-masonry-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    border-radius: 8px;
  }
  
  .pna-masonry-item:hover {
    transform: translateY(-5px);
  }
  
  /* Announcement Style */
  .pna-announcement {
    background-color: #ffffff;
    height: auto;
    min-height: 200px;
    padding: 0;
  }
  
  .pna-announcement-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    height: 100%;
  }
  
  .pna-announcement-title {
    color: #1E73E7;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.3;
    order: 1;
  }
  
  .pna-announcement-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    order: 2;
  }
  
  .pna-announcement-excerpt {
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    order: 3;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .pna-announcement-link {
    color: #1E73E7;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    order: 4;
  }
  
  .pna-announcement-link:hover {
    text-decoration: underline;
  }
  
  /* Regular Post Style */
  .pna-masonry-image {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease;
  }
  
  .pna-masonry-item:hover .pna-masonry-image {
    transform: scale(1.1);
  }
  
  .pna-masonry-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-align: center;
    transition: background 0.3s ease;
    border-radius: 4px;
  }
  
  .pna-masonry-image:hover .pna-masonry-title {
    background: rgba(0, 0, 0, 0.8);
  }
  
  /* Styling for posts without images */
  .pna-masonry-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #ddd;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .pna-masonry-title-no-image {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
  }
  
  /* Pagination Styling */
  .pna-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .pna-page-link {
    cursor: pointer;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.3s ease;
  }
  
  .pna-page-link:hover {
    background: #e0e0e0;
  }
  
  .pna-page-link.active {
    background: #FB4B2B;
    color: white;
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .pna-custom-masonry-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .pna-arrow-nav.prev {
      left: -30px;
    }
    
    .pna-arrow-nav.next {
      right: -30px;
    }
  }
  
  @media (max-width: 768px) {
    .pna-custom-masonry-grid {
      grid-template-columns: 1fr;
    }
    
    .pna-announcement-title {
      font-size: 20px;
    }
    
    .pna-announcement-excerpt {
      font-size: 14px;
    }
    
    .pna-arrow-nav.prev {
      left: -20px;
    }
    
    .pna-arrow-nav.next {
      right: -20px;
    }
  }