/* ========== NEWS STYLES ========== */
/* This file contains styles specific to the news component */

/* IMPORTANT: Use absolute path to ensure the import works correctly */
@import url("/css/standardized-styles.css");

/* Scoped font styles - only apply to news components */
.ptrb-news-container,
.ptrb-news-container * {
  font-family: var(--font-family);
}

/* News container */
.ptrb-news-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 30px 15px;
}

/* Page title */
.ptrb-page-title {
  text-align: center;
  color: var(--primary-color);
  font-size: var(--font-size-3xl);
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.ptrb-page-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Layout */
.ptrb-news-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.ptrb-news-main {
  flex: 1;
  min-width: 300px;
}

.ptrb-news-sidebar {
  width: 350px;
}

/* News cards */
.ptrb-news-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  position: relative;
}

.ptrb-news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.ptrb-news-card h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 12px;
  color: var(--primary-color);
  font-weight: 600;
  background-color: #275a89;
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm);
}

/* Fix for image display - resize while showing full image */
.ptrb-news-image {
  margin: 15px 0;
  border-radius: 8px;
  text-align: center;
  max-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptrb-news-image img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.ptrb-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.ptrb-news-date,
.ptrb-news-author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.ptrb-news-date i,
.ptrb-news-author i {
  color: var(--primary-color);
}

.ptrb-news-content {
  margin-bottom: 20px;
  color: var(--text-medium);
  line-height: 1.6;
}

.ptrb-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition-fast);
}

.ptrb-read-more-btn:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
}

/* Empty state */
.ptrb-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.ptrb-empty-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Sidebar */
.ptrb-sidebar-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ptrb-sidebar-header {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ptrb-sidebar-header h3 {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--bg-white);
}

.ptrb-sidebar-header i {
  font-size: 1.2em;
}

.ptrb-sidebar-content {
  padding: 20px;
}

.ptrb-sidebar-content p {
  margin-bottom: 15px;
  color: var(--text-medium);
  line-height: 1.5;
}

.ptrb-sidebar-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Event list */
.ptrb-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ptrb-event-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.ptrb-event-list li:last-child {
  border-bottom: none;
}

.ptrb-event-name {
  font-size: var(--font-size-base);
  color: var(--text-dark);
}

.ptrb-event-date {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

/* TODA list */
.ptrb-toda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ptrb-toda-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.ptrb-toda-list li:last-child {
  border-bottom: none;
}

.ptrb-toda-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.ptrb-toda-president {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

/* Social links */
.ptrb-social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.ptrb-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.ptrb-social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Announcement view styles */
.ptrb-announcement-view {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.ptrb-announcement-header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.ptrb-announcement-header h1 {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
  margin-bottom: 15px;
}

.ptrb-announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.ptrb-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ptrb-meta-item i {
  color: var(--primary-color);
}

.ptrb-announcement-content {
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 30px;
}

.ptrb-announcement-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.ptrb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition-fast);
}

.ptrb-back-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.ptrb-announcement-not-found {
  text-align: center;
  padding: 50px 20px;
}

.ptrb-not-found-icon {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.ptrb-announcement-not-found h2 {
  color: var(--text-dark);
  margin-bottom: 15px;
}

.ptrb-announcement-not-found p {
  color: var(--text-medium);
  margin-bottom: 25px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .ptrb-news-layout {
    flex-direction: column;
  }

  .ptrb-news-sidebar {
    width: 100%;
  }

  .ptrb-page-title {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 768px) {
  .ptrb-news-meta {
    flex-direction: column;
    gap: 5px;
  }

  .ptrb-news-image {
    max-height: 250px;
  }

  .ptrb-news-image img {
    max-height: 250px;
  }
}

@media (max-width: 576px) {
  .ptrb-news-container {
    padding: 20px 10px;
  }

  .ptrb-news-card {
    padding: 20px;
  }

  .ptrb-news-card h2 {
    font-size: var(--font-size-lg);
  }

  .ptrb-page-title {
    font-size: var(--font-size-xl);
    margin-bottom: 30px;
  }

  .ptrb-page-title:after {
    width: 80px;
  }

  .ptrb-news-image {
    max-height: 200px;
  }

  .ptrb-news-image img {
    max-height: 200px;
  }
}
