/* ============================================= */
/* News Details Page Styles (Complete & Final)   */
/* ============================================= */

/* --- General Layout & Spacing --- */
.news-details { padding-top: 40px; padding-bottom: 60px; }
/* --- Main Article Entry Styles --- */
.article-entry { padding: 30px; box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08); border-radius: 10px; }
/* --- Article Metadata (Date) --- */
.article-entry .entry-meta { margin-bottom: 25px; color: #6c757d; font-size: 15px; }
.article-entry .entry-meta ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.article-entry .entry-meta ul li { margin-inline-end: 20px; }
.article-entry .entry-meta i { margin-inline-end: 8px; color: #007bff; }
/* --- Article Content Styling --- */
.article-entry .entry-content p { line-height: 1.8; margin-bottom: 20px; color: #333; text-align: justify !important; }
.article-entry .entry-content h3 { font-size: 24px; font-weight: 700; margin-top: 30px; margin-bottom: 20px; color: #0056b3; }
.article-entry .entry-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
.article-entry .entry-content blockquote { overflow: hidden; background-color: #f8f9fa; padding: 30px; position: relative; border-right: 4px solid #007bff; margin: 25px 0; font-style: italic; color: #444; }
.article-entry .entry-content ul { list-style: none; padding-right: 0; margin-bottom: 20px; }
.article-entry .entry-content ul li { padding-right: 30px; position: relative; margin-bottom: 12px; }
.article-entry .entry-content ul li::before { content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 0; top: 2px; color: #28a745; font-size: 20px; }
/* --- Article Footer (Social Share) --- */
.article-entry .entry-footer { padding-top: 20px; margin-top: 30px; border-top: 1px solid #e9ecef; }

/* ============================================= */
/* --- Sidebar Styles --- */
/* ============================================= */
.sidebar { padding: 30px; box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08); border-radius: 10px; }
.sidebar-title { font-size: 20px; font-weight: 700; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid #e9ecef; position: relative; }
.sidebar-title::after { content: ''; position: absolute; display: block; width: 50px; height: 2px; background: #007bff; bottom: -2px; right: 0; }
.sidebar .sidebar-item { margin-bottom: 30px; }

/* --- Sidebar Search --- */
#sidebar-search-wrapper { position: relative; }
#sidebar-search-wrapper input { border-radius: 50px; height: 44px; padding-right: 20px; padding-left: 55px; }
#sidebar-search-wrapper button { 
    position: absolute; 
    top: 0; 
    left: 0;
    width: 44px;
    height: 44px; 
    border: 0; 
    background: #007bff; 
    color: #fff; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: default;
}

/* --- Sidebar Search Suggestions --- */
#sidebar-suggestions-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e9ecef; border-radius: 0 0 10px 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); display: none; z-index: 1050; margin-top: 5px; }
#sidebar-suggestions-list a { display: block; padding: 10px 15px; color: #444; text-decoration: none; font-size: 14px; border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s; }
#sidebar-suggestions-list a:last-child { border-bottom: none; }
#sidebar-suggestions-list a:hover { background-color: #f8f9fa; }

/* --- Sidebar Recent Posts --- */
.sidebar .recent-posts .post-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.sidebar .recent-posts img { width: 80px; height: 60px; object-fit: cover; border-radius: 5px; margin-inline-end: 15px; }
.sidebar .recent-posts .post-content { flex: 1; }
.sidebar .recent-posts h4 { font-size: 15px; margin-bottom: 5px; }
.sidebar .recent-posts h4 a { color: #444; transition: color 0.3s; text-decoration: none; }
.sidebar .recent-posts h4 a:hover { color: #007bff; }
.sidebar .recent-posts time { display: block; font-size: 12px; color: #999; }

/*
  >>> ADJUSTMENT ADDED HERE <<<
  Styles for the fallback logo in the sidebar
*/
.sidebar .recent-posts img.is-fallback-logo {
    object-fit: contain; /* Prevents cropping */
    padding: 5px;       /* Smaller padding for the smaller container */
    background-color: #f8f9fa;
}

/* ======================================================== */
/* --- STYLES FOR THE LARGER HEADER ON NEWS DETAILS PAGE --- */
/* ======================================================== */
.news-details-page-body #page-header { height: 60vh; min-height: 450px; }
.news-details-page-body #page-header .page-title { font-size: 64px; line-height: 1.2; }
.news-details-page-body #page-header .page-subtitle { font-size: 22px; }

.no-results-message {
    padding: 10px 15px;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* --- Responsive styles for Tablets --- */
@media (max-width: 992px) {
    .news-details-page-body #page-header { height: 55vh; min-height: 400px; }
    .news-details-page-body #page-header .page-title { font-size: 52px; }
}
/* --- Responsive styles for Mobile Phones --- */
@media (max-width: 767px) {
    .sidebar { margin-top: 40px; }
    .news-details-page-body #page-header { height: 50vh; min-height: 300px; }
    .news-details-page-body #page-header .page-title { font-size: 38px; }
    .news-details-page-body #page-header .page-subtitle { font-size: 18px; }
}

/* ============================================= */
/* Reusable Social Share Component Styles        */
/* ============================================= */
.social-share h4 { font-size: 16px; font-weight: 700; margin-bottom: 15px; }
.social-share a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; margin-inline-end: 8px; color: #fff; text-decoration: none; transition: transform 0.3s ease; }
.social-share a:hover { transform: translateY(-3px); }
.social-share .twitter { background-color: #1DA1F2; }
.social-share .facebook { background-color: #1877F2; }
.social-share .whatsapp { background-color: #25D366; }
.social-share .print { background-color: #6c757d; }
.social-share .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, 
  #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* ============================================= */
/* Print-Friendly Styles             */
/* ============================================= */
@media print {
  body > .navbar, 
  body > #main > #page-header,
  .sidebar, 
  .entry-footer,
  footer,
  body > #main > #footer,
  .back-to-top {
    display: none !important;
  }

  #news-details-page .col-lg-8 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .article-entry {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  * {
    color: #000 !important;
    background: #fff !important;
  }

  a, a:visited {
    text-decoration: underline;
  }
}