/* Content Container - appears in all PHP files */
.content-container {
  width: 85%;
  max-width: 1540px;
  margin: 0 auto;
}

/* Content Section - universal component */
.content-section {
  background: linear-gradient(to bottom, #243b55, #1a1a1a);
  border: 2px solid #cc3300;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hover state for content sections */
.content-section:hover {
  border-color: #ff6633;
  box-shadow: 0 12px 35px rgba(255, 102, 51, 0.3);
  transform: translateY(-3px);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #cc3300;
  padding-bottom: 10px;
}

.section-title {
  color: #FFFF00;
  font-size: 28px;
  margin: 10px 0;
  font-weight: bold;
}

/* Color Bar - repeated element */
.color-bar {
  width: 100%;
  margin: 20px 0;
  height: 33px;
  background: linear-gradient(to right, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080);
  border-radius: 4px;
}

/* ==================================================== */
/* TWO-COLUMN LAYOUT SYSTEM */
/* ==================================================== */

.page-layout {
  display: flex;
  gap: 25px;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
}

.main-column {
  flex: 7;
  min-width: 0;
}

.sidebar-column {
  flex: 3;
  min-width: 280px;
  max-width: 350px;
}

/* Sidebar Container */
.sidebar-container {
  position: sticky;
  top: 20px;
}

/* Sidebar Section */
.sidebar-section {
  background: linear-gradient(to bottom, #1a2a3a, #0d1520);
  border: 2px solid #cc3300;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.sidebar-section-title {
  color: #FF0000;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #cc3300;
}

/* News Feed Cards */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-card:hover {
  border-color: #cc3300;
  background: rgba(204, 51, 0, 0.1);
  transform: translateX(3px);
}

.news-card-image {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-title {
  color: #FFE500;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-date {
  color: #999;
  font-size: 11px;
  margin: 0;
}

/* View All Link */
.sidebar-view-all {
  display: block;
  text-align: center;
  margin-top: 15px;
  padding: 8px 15px;
  background: rgba(204, 51, 0, 0.8);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.sidebar-view-all:hover {
  background: #cc3300;
  color: #fff;
}

/* Quick Stats Widget */
.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-item {
  text-align: center;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid #333;
}

.stat-number {
  color: #FFE500;
  font-size: 22px;
  font-weight: bold;
  display: block;
}

.stat-label {
  color: #999;
  font-size: 11px;
  text-transform: uppercase;
}

/* Featured Item Widget */
.featured-item {
  text-align: center;
}

.featured-item img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #555;
  margin-bottom: 10px;
}

.featured-item-title {
  color: #FFE500;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.featured-item-subtitle {
  color: #999;
  font-size: 12px;
  margin: 5px 0 0 0;
}

/* ==================================================== */
/* RESPONSIVE - TWO COLUMN LAYOUT */
/* ==================================================== */

@media (max-width: 1024px) {
  .page-layout {
    gap: 20px;
  }
  
  .sidebar-column {
    min-width: 250px;
    max-width: 300px;
  }
  
  .news-card-image {
    width: 60px;
    height: 60px;
  }
  
  .news-card-title {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .page-layout {
    flex-direction: column;
  }
  
  .main-column,
  .sidebar-column {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  
  .sidebar-container {
    position: static;
  }
  
  .sidebar-section {
    margin-bottom: 15px;
  }
  
  .news-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .news-feed {
    grid-template-columns: 1fr;
  }
  
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-filter-bar {
  background: linear-gradient(to bottom, #1a2a3a, #0d1520);
  border: 2px solid #cc3300;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  color: #FFE500;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.filter-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(204, 51, 0, 0.3);
  border: 1px solid #cc3300;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #cc3300;
  color: #fff;
  transform: translateY(-2px);
}

.search-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #555;
  border-radius: 20px;
  padding: 8px 15px;
  color: #fff;
  font-size: 14px;
  width: 200px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #cc3300;
}

.search-input::placeholder {
  color: #888;
}

/* ============================================= */
/* TIMELINE NAVIGATION                          */
/* ============================================= */

.timeline-nav {
  background: linear-gradient(to right, rgba(26, 42, 58, 0.8), rgba(13, 21, 32, 0.8));
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cc3300 #1a1a1a;
}

.timeline-nav::-webkit-scrollbar {
  height: 6px;
}

.timeline-nav::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.timeline-nav::-webkit-scrollbar-thumb {
  background: #cc3300;
  border-radius: 3px;
}

.timeline-year {
  color: #FFE500;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.timeline-year:hover,
.timeline-year.current {
  background: rgba(204, 51, 0, 0.5);
  color: #fff;
}

.timeline-year.current {
  background: #cc3300;
}

.timeline-divider {
  width: 1px;
  height: 20px;
  background: #555;
}

/* ============================================= */
/* NEWS ENTRY CARDS                             */
/* ============================================= */

.news-entry {
  background: linear-gradient(135deg, #1a2a3a 0%, #0d1520 100%);
  border: 2px solid #333;
  border-radius: 12px;
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.news-entry:hover {
  border-color: #cc3300;
  box-shadow: 0 8px 30px rgba(204, 51, 0, 0.2);
  transform: translateY(-3px);
}

.news-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  background: rgba(0, 0, 0, 0.3);
}

.news-entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Category Badges */
.news-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-category.mail-call {
  background: linear-gradient(135deg, #cc3300, #992200);
  color: #fff;
}

.news-category.announcement {
  background: linear-gradient(135deg, #0066cc, #004499);
  color: #fff;
}

.news-category.new-feature {
  background: linear-gradient(135deg, #00cc66, #009944);
  color: #fff;
}

.news-category.acquisition {
  background: linear-gradient(135deg, #9933cc, #662299);
  color: #fff;
}

.news-category.scan {
  background: linear-gradient(135deg, #cc9900, #996600);
  color: #fff;
}

.news-date {
  color: #999;
  font-size: 14px;
}

.news-date-day {
  color: #FFE500;
  font-weight: bold;
  font-size: 18px;
}

.news-share-btn {
  background: none;
  border: 1px solid #555;
  color: #888;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.news-share-btn:hover {
  border-color: #cc3300;
  color: #cc3300;
}

.news-entry-content {
  padding: 20px;
}

.news-title {
  color: #FFE500;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.news-description {
  color: #ccc;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ============================================= */
/* IMAGE GALLERY GRID                           */
/* ============================================= */

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.news-gallery.single-image {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 15px auto 0;
}

.news-gallery.two-images {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 30px 10px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* Entry Footer */
.news-entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid #333;
  background: rgba(0, 0, 0, 0.2);
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(204, 51, 0, 0.2);
  border: 1px solid #cc3300;
  border-radius: 20px;
  color: #FFE500;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.news-link:hover {
  background: #cc3300;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================= */
/* SIDEBAR WIDGETS                              */
/* ============================================= */

.sidebar-sticky {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: linear-gradient(to bottom, #1a2a3a, #0d1520);
  border: 2px solid #cc3300;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.widget-title {
  color: #FF0000;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #cc3300;
}

/* Archive List */
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-item {
  margin-bottom: 6px;
}

.archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.archive-link:hover {
  background: rgba(204, 51, 0, 0.3);
  color: #FFE500;
  transform: translateX(3px);
}

.archive-count {
  background: #cc3300;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;

  font-size: 11px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-box {
  text-align: center;
  padding: 15px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid #333;
}

.stat-number {
  color: #FFE500;
  font-size: 28px;
  font-weight: bold;
  display: block;
}

.stat-label {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.quick-link:hover {
  background: rgba(204, 51, 0, 0.3);
  color: #FFE500;
  transform: translateX(3px);
}

.quick-link-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(135deg, #cc3300, #992200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

/* ============================================= */
/* ARCHIVE NAVIGATION                           */
/* ============================================= */

.archive-nav {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: linear-gradient(to bottom, #1a2a3a, #0d1520);
  border: 2px solid #cc3300;
  border-radius: 8px;
}

.archive-nav-title {
  color: #FFE500;
  font-size: 20px;
  margin: 0 0 15px 0;
}

.archive-year-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.archive-year-link {
  color: #FFE500;
  font-size: 18px;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid #cc3300;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.archive-year-link:hover {
  background: #cc3300;
  color: #fff;
}

/* ============================================= */
/* LIGHTBOX MODAL                               */
/* ============================================= */

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #cc3300;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 15px;
  font-size: 14px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(204, 51, 0, 0.8);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: #cc3300;
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* ============================================= */
/* NEWS PAGE TWO-COLUMN LAYOUT                  */
/* ============================================= */

.news-layout {
  display: flex;
  gap: 25px;
}

.news-main-column {
  flex: 1;
  min-width: 0;
}

.news-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ============================================= */
/* NEWS PAGE RESPONSIVE                         */
/* ============================================= */

@media (max-width: 1200px) {
  .news-sidebar {
    width: 260px;
  }

  .news-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 992px) {
  .news-layout {
    flex-direction: column;
  }

  .news-sidebar {
    width: 100%;
  }

  .sidebar-sticky {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .news-filter-bar {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .news-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-input {
    width: 100%;
  }

  .news-entry-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .news-title {
    font-size: 20px;
  }

  .news-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .news-gallery {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: center;
  }
}