/**
 * News Page Specific Styles
 * Extracted from inline styles for CSP compliance
 * Created: 2025-12-21 (CSP Phase 3 fix)
 */

/* ============================================
   NEWS INFO CARDS
   ============================================ */

.news-info {
  margin-top: 2em;
  padding: 1.5em;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.news-info h3 {
  margin-top: 1em;
  color: #ffee00;
}

.news-info p {
  margin: 0.5em 0;
  font-size: 0.9em;
}

.news-info.compact {
  width: 100%;
  max-width: 1120px;
  margin: 1em auto;
  padding: 1em;
  background: #000000;
  border: 1px solid #ffee00;
  border-radius: 15px;
  box-sizing: border-box;
  margin-bottom: 1em;
  object-fit: cover;
  transition: transform 0.5s, box-shadow 0.5s;
  color: #fff;
}

.news-info.compact:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px #ffee00;
}

.news-info.compact h3 {
  font-size: 1.1em;
  color: #ffee00;
}

/* ===== TEXT OVERFLOW FIX - Domain Zero Standard ===== */
.news-info.compact,
.news-info.compact h3,
.news-info.compact section,
.news-info.compact p,
.news-info.compact li {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-info.compact section {
  margin: 0.2em 0;
}

/* ============================================
   CONTENT CONTAINER
   ============================================ */

#content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1em;
}

/* ============================================
   FONT AWESOME ICON ADJUSTMENTS
   ============================================ */

.news-page .fa,
body.no-sidebar .fa {
  padding: 10px;
  font-size: 15px;
  width: 25px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
}

.news-page .fa:hover,
body.no-sidebar .fa:hover {
  opacity: 0.7;
}

/* ============================================
   TITLE AND LABEL STYLING
   ============================================ */

header.style1 h2 {
  color: black !important;
}

.form-label,
label[for="searchTitleForm"],
label[for="categoryForm"],
label[for="yearForm"] {
  color: black !important;
}

/* ============================================
   FILTERING BEHAVIOR
   ============================================ */

.filtering-active .native-ad {
  order: 9999;
}

.filtering-active .news-info.compact {
  order: 1;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ================================================
   CSP PHASE 4 - INLINE STYLE EXTRACTION
   Added: 2025-12-23
   ================================================ */

/* Notice banner - replaces inline style on lines 199-206 */
.notice-banner {
  background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Notice heading - replaces inline style on line 209 */
.notice-heading {
  color: #856404;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

/* Notice icon - replaces inline style on line 211 */
.notice-icon {
  color: #856404;
  margin-right: 0.5em;
}

/* Notice text - replaces inline styles on lines 214, 222, 252 */
.notice-text {
  color: #856404;
  margin: 0.5em 0;
  line-height: 1.6;
}

/* Notice link - replaces inline styles on lines 230, 246 */
.notice-link {
  color: #28a745 !important;
  text-decoration: underline;
}

.notice-link:hover {
  color: #1e7e34 !important;
}
