/* News Container */
.news-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 2rem;
}

/* Welcome Section */
.welcome-section {
   margin-bottom: 40px;
   text-align: center;
}

.welcome-section h1 {
   color: #D4AF37;
   font-size: 2.5em;
   margin-bottom: 20px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 15px;
}

.welcome-section h1 i {
   font-size: 1.2em;
}

.welcome-section p {
   font-size: 1.2rem;
   color: #ffffff;
}

/* Category Filter */
.category-filter {
   background-color: #1a1a1a;
   border-radius: 8px;
   padding: 1.5rem;
   margin-bottom: 2rem;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-header h2 {
   color: #D4AF37;
   margin-bottom: 1rem;
   font-size: 1.5rem;
}

.filter-header i {
   color: #D4AF37;
   margin-right: 10px;
}

.filter-options {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
}

.filter-btn {
   background-color: #2a2a2a;
   color: #ffffff;
   border: 1px solid #D4AF37;
   padding: 0.5rem 1rem;
   border-radius: 4px;
   cursor: pointer;
   transition: all 0.3s ease;
}

.filter-btn:hover {
   background-color: #D4AF37;
   color: #000000;
}

.filter-btn.active {
   background-color: #D4AF37;
   color: #000000;
}

/* News Grid */
.news-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 2rem;
   margin-bottom: 2rem;
}

/* News Card */
.news-card {
   background-color: #1a1a1a;
   border-radius: 8px;
   overflow: hidden;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
   transition: transform 0.3s ease;
   box-sizing: border-box;
   width: 100%;
}

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

.news-image {
   margin-bottom: 30px;
   text-align: center;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
}

.news-image img {
   max-width: 100%;
   width: auto;
   max-height: 600px;
   height: auto;
   border-radius: 8px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.3);
   border: 1px solid #D4AF37;
   padding: 5px;
   background: #1a1a1a;
   object-fit: contain;
}

/* For news cards in the grid */
.news-card .news-image {
   position: relative;
   width: 100%;
   padding-top: 100%; /* Creates a square aspect ratio */
   overflow: hidden;
   margin: 0;
}

.image-container {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}

.image-container img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0.7;
   transition: opacity 0.3s ease;
}

.image-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(26, 26, 26, 0.5);
   display: flex;
   align-items: center;
   justify-content: center;
}

.category-info {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 1rem;
   z-index: 2;
}

.category-info i {
   font-size: 3rem;
   color: #D4AF37;
   text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-info .category-name {
   font-size: 1.2rem;
   color: #D4AF37;
   text-transform: uppercase;
   font-weight: bold;
   text-align: center;
   text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.news-card:hover .image-container img {
   opacity: 0.8;
}

.placeholder-image {
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 1rem;
   min-height: 300px;
   border-radius: 8px;
   border: 1px solid #D4AF37;
   padding: 5px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.3);
   position: relative;
   overflow: hidden;
}

.placeholder-image::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.05) 0px,
      rgba(212, 175, 55, 0.05) 2px,
      transparent 2px,
      transparent 4px
   );
   pointer-events: none;
}

.placeholder-image i {
   font-size: 4rem;
   color: #D4AF37;
   opacity: 0.7;
   position: relative;
   z-index: 1;
   text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.placeholder-image .category-name {
   font-size: 1.5rem;
   color: #D4AF37;
   opacity: 0.7;
   position: relative;
   z-index: 1;
   text-shadow: 0 2px 4px rgba(0,0,0,0.3);
   text-transform: uppercase;
   font-weight: bold;
   text-align: center;
}

/* For news cards in the grid */
.news-card .placeholder-image {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   min-height: 0;
   border: none;
   padding: 0;
   box-shadow: none;
}

.news-card .placeholder-image i {
   font-size: 3rem;
}

.news-card .placeholder-image .category-name {
   font-size: 1.2rem;
}

.news-content {
   padding: 1.5rem;
   box-sizing: border-box;
   font-size: 1.1em;
   color: #fff;
}

.news-content h1 {
   color: #D4AF37;
   font-size: 1.5em;
   margin: 1.5em 0 1em;
   font-weight: bold;
   text-align: center;
}

.news-content img {
   max-width: 100%;
   height: auto;
}

.news-content strong {
   font-weight: bold;
}

.news-meta {
   display: flex;
   flex-direction: column;
   gap: 10px;
   margin-top: 20px;
   color: #fff;
   font-size: 0.9em;
}

.welcome-section .news-meta {
   flex-direction: row;
   justify-content: center;
   gap: 30px;
}

.news-date i,
.facebook-share i {
   margin-right: 8px;
   color: #D4AF37;
}

.facebook-share {
   color: #fff !important;
   text-decoration: none;
}

.facebook-share i {
   margin-right: 8px;
   color: #D4AF37;
}

.news-share a {
   color: #fff;
   text-decoration: none;
   transition: color 0.3s;
}

.news-share a:hover {
   color: #3b5998;
}

.news-title {
   margin-bottom: 1rem;
}

.news-title a {
   color: #ffffff;
   text-decoration: none;
   font-size: 1.5rem;
   text-transform: uppercase;
   transition: color 0.3s ease;
   font-weight: bold;
}

.news-title a:hover {
   color: #D4AF37;
}

.news-excerpt {
   color: #ccc;
   margin-bottom: 15px;
}

.news-description {
   color: #cccccc;
   margin-bottom: 1.5rem;
   line-height: 1.5;
}

.news-actions {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.read-more-btn {
   display: inline-block;
   padding: 4px 12px;
   background-color: #1a1a1a;
   color: #ffffff !important;
   text-decoration: none;
   border-radius: 4px;
   transition: all 0.3s;
   border: 1px solid #D4AF37;
   font-size: 0.9rem;
}

.read-more-btn:hover {
   background-color: #D4AF37;
   color: #000;
   border-color: #D4AF37;
}

.social-share a {
   color: #D4AF37;
   font-size: 1.2rem;
   transition: color 0.3s ease;
}

.social-share a:hover {
   color: #ffffff;
}

.news-full-content {
   margin-top: 1rem;
   padding: 1rem;
   background-color: #2a2a2a;
   border-radius: 4px;
   color: #ffffff;
   line-height: 1.6;
}

/* Pagination */
.pagination {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 1rem;
   margin: 2rem 0;
   padding: 1rem;
}

.pagination-btn {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.5rem 1rem;
   background-color: #2a2a2a;
   color: #e0e0e0;
   border: 1px solid #404040;
   border-radius: 4px;
   text-decoration: none;
   transition: all 0.2s ease;
}

.pagination-btn:hover {
   background-color: #383838;
   border-color: #daa520;
}

.pagination-info {
   color: #e0e0e0;
   font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
   #wrapper {
      margin-top: 60px;
      padding: 10px;
      width: 100%;
      max-width: 100%;
   }
   
   .content_inside {
      width: 100%;
      padding: 0.5rem;
      max-width: 100%;
      margin: 0;
      box-sizing: border-box;
      overflow-x: hidden;
   }

   .news-container {
      width: 100%;
      max-width: 100%;
      padding: 0.5rem;
      margin: 0;
      box-sizing: border-box;
      overflow-x: hidden;
   }
   
   .news-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
      width: 100%;
      margin: 0 0 1rem 0;
      padding: 0 0.25rem;
      box-sizing: border-box;
   }
   
   .news-card {
      width: 100%;
      margin-bottom: 0.5rem;
      max-width: 100%;
      box-sizing: border-box;
   }
   
   .news-content {
      padding: 15px;
      box-sizing: border-box;
   }
   
   .welcome-section {
      margin-bottom: 1rem;
   }
   
   .welcome-section h1 {
      font-size: 1.8rem;
      text-align: center;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
   }
   
   .welcome-section p {
      font-size: 1rem;
   }
   
   .category-filter {
      padding: 1rem;
      margin-bottom: 1rem;
   }
   
   .filter-options {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: flex-start;
   }
   
   .filter-btn {
      width: auto;
      font-size: 0.9rem;
      padding: 0.4rem 0.8rem;
      margin-bottom: 0.25rem;
   }

   .news-meta, 
   .news-title, 
   .news-description, 
   .news-actions {
      padding: 0 5px;
      box-sizing: border-box;
      word-wrap: break-word;
   }

   .read-more-btn {
      width: 100%;
      text-align: center;
      padding: 0.5rem;
   }
   
   .news-title {
      margin-bottom: 0.5rem;
      padding: 0 5px;
   }
   
   .news-title a {
      font-size: 1.2rem;
   }
   
   .news-description {
      margin-bottom: 1rem;
      font-size: 0.95rem;
      line-height: 1.4;
      padding: 0 5px;
   }
   
   .pagination {
      margin: 1rem 0;
      padding: 0.5rem;
   }
}

@media (max-width: 480px) {
   .content_inside {
      padding: 0.25rem;
   }
   
   .news-container {
      padding: 0.25rem;
   }
   
   .news-content {
      padding: 12px;
   }
   
   .category-filter {
      padding: 0.75rem;
   }
   
   .filter-options {
      justify-content: center;
   }
   
   .filter-btn {
      font-size: 0.8rem;
      padding: 0.35rem 0.7rem;
   }
   
   .news-detail {
      padding: 0 0.5rem;
      width: 100%;
      max-width: 100%;
   }
   
   .news-card .news-image {
      padding-top: 60%;
   }
   
   .news-title, 
   .news-description, 
   .news-meta, 
   .news-actions {
      padding: 0 5px;
   }
   
   .news-card {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow: hidden;
   }

   .news-grid {
      padding: 0;
      gap: 0.75rem;
   }

   .content_inside,
   .news-container,
   #wrapper {
      overflow-x: hidden;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
   }
}

.news-detail {
   max-width: 900px;
   margin: 0 auto;
   padding: 0 20px;
   color: #fff;
}

.news-content p {
   margin-bottom: 1.5em;
}

.news-content h2,
.news-content h3 {
   color: #D4AF37;
   margin: 1.5em 0 1em;
}

.news-content a {
   color: #D4AF37;
   text-decoration: none;
}

.news-content a:hover {
   text-decoration: underline;
}

.news-footer {
   margin-top: 50px;
   text-align: center;
}

.back-button {
   display: inline-flex;
   align-items: center;
   padding: 12px 24px;
   background-color: #1a1a1a;
   color: #fff;
   text-decoration: none;
   border-radius: 5px;
   transition: all 0.3s;
   border: 1px solid #D4AF37;
}

.back-button i {
   margin-right: 8px;
   color: #D4AF37;
}

.back-button:hover {
   background-color: #D4AF37;
   color: #000;
   border-color: #D4AF37;
}

.back-button:hover i {
   color: #000;
}

.news-content ul {
   list-style: disc outside;
   padding-left: 2em;
}

.news-content ul li {
   margin-bottom: 0.7em;
   padding-left: 0;
}

.news-content ul li::marker {
   color: #D4AF37;
   font-size: 1.1em;
} 