@charset "UTF-8";

.highlight-number {
    font-family: 'Bebas Neue', sans-serif; /* Stronger, unique font */
    font-weight: 700;
    color: #ff5e3a;
    font-size: 30px;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
  }

  @media (max-width: 768px) {
    .highlight-number {
      font-size: 26px;
    }
  }

  @media (max-width: 480px) {
    .highlight-number {
      font-size: 22px;
    }
  }

  .source-container {
      margin-top: 24px; /* default spacing */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    /* Medium screens (e.g. tablets) */
    @media (max-width: 768px) {
      .source-container {
        margin-top: 20px;
      }
    }

    /* Small screens (e.g. phones) */
    @media (max-width: 480px) {
      .source-container {
        margin-top: 16px;
      }
    }

    .source-left,
    .source-right {
      display: flex;
      align-items: center;
      flex: 1;
    }

    .source-right {
      justify-content: flex-end;
      gap: 8px;
    }

    @media (max-width: 600px) {
      .source-container {
        flex-direction: column;
        align-items: stretch; /* Important: allow full width */
      }
      .source-right {
        justify-content: flex-end; /* Stay aligned to the right */
        width: 100%;
        margin-top: 8px;
      }
    }

    .responsive-icon {
      width: 45px;
      height: 45px;
      margin-right: 5px;
    }

    /* Medium screen (e.g. tablets) */
    @media (max-width: 768px) {
      .responsive-icon {
        width: 36px;
        height: 36px;
      }
    }

    /* Small screen (e.g. phones) */
    @media (max-width: 480px) {
      .responsive-icon {
        width: 28px;
        height: 28px;
      }
    }

    .category-container {
      margin-top: 12px; /* Add space from the content above */
    }

    .category-badge {
      display: inline-block;
      background-color: #e0e0e0;
      color: #222;
      font-size: 13px;
      padding: 6px 14px;
      margin-right: 8px;
      border-radius: 999px;
      font-weight: 600;
      text-decoration: none; /* Remove underline for links */
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s, color 0.3s; /* Smooth hover transition */
    }

    
    .category-badge:hover {
      background-color: #ff5e3a;
      color: #fff; /* Optional: text becomes white for better contrast */
    }


    .inline-icon-text {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .inline-icon-text img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* 📱 Mobile behavior */
    @media (max-width: 600px) {
      .inline-icon-text {
        flex-direction: column; /* icon on top, title below */
        align-items: center; /* center both icon and text */
        gap: 5px; /* tighter spacing on mobile */
      }

      .inline-icon-text .author-date {
        text-align: center; /* center the title text under the icon */
      }
    }

     .extra-info-section {
         margin-top: 20px;
         padding-top: 15px;
         border-top: 1px solid #e0e0e0;
     }

     .location-date {
         font-size: 1rem;
         color: #515365; /* matches source style */
         margin-bottom: 12px;
         line-height: 1.4;
     }

     .location-date .label {
         font-weight: 600;
         color: #333;
     }


     .location-date-box {
         display: flex;
         flex-wrap: wrap;
         gap: 15px;
         margin-bottom: 20px;
     }

     .info-item {
         display: flex;
         align-items: center;
         gap: 8px;
         font-size: 1rem;
         color: #515365;
         flex: 1 1 100%; /* full width by default */
     }

     .info-icon {
         flex-shrink: 0;
         color: #ff5e3a;
     }

     @media (min-width: 768px) {
         .info-item {
             flex: 1 1 calc(33.33% - 10px); /* three columns on medium+ screens */
         }
     }


     .background-text {
         font-size: 1.25rem; /* slightly smaller than number text */
         font-weight: 300;
         line-height: 1.6;
         margin-bottom: 20px;
         color: #222;
     }

     .questions-answered-box,
     .context-box {
         padding-left: 12px;
         margin-bottom: 20px;
     }

     .questions-answered-box {
         border-left: 4px solid #007bff;
     }

     .context-box {
         border-left: 4px solid #ffc107;
     }

     .questions-answered-box h5,
     .context-box h5 {
         font-size: 1.125rem; /* smaller than title, above base */
         font-weight: 600;
         color: #333;
         margin-bottom: 8px;
         display: flex;
         align-items: center;
     }

     .questions-answered-box ul,
     .context-box ul {
         margin-left: 1.2rem;
         padding-left: 0;
         font-size: 1rem;
         color: #444;
         list-style: disc;
     }

     .context-box ul li a {
         color: #007bff;
         text-decoration: underline;
     }


    .background-summary-box {
        border-left: 4px solid #ff5e3a;
        padding-left: 12px;
        margin-bottom: 20px;
    }

    .background-summary-box h5 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    .background-summary-box p {
        font-size: 1.25rem;
        font-weight: 300;
        line-height: 1.6;
        margin: 0;
        color: #222;
    }

  .circle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chart-container {
    position: relative;
    width: 100%;
}

.chart-container canvas {
    width: 100% !important;
    height: auto !important;
}

div:has(> .content-block) {
    padding: 0px;

}

.content-block {
    margin: 40px auto;
    max-width: 900px;
    padding: 28px 32px;
    background: #fff;
    border-radius: 12px;
    font-family: 'Segoe UI', sans-serif;
}


.content-block h1 {
    font-size: clamp(20px, 4vw + 1rem, 26px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #111;
}

.content-block:not(:has(p)) h1 {
    text-align: center;
    font-size: 28px;
    padding: 40px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.content-block:not(:has(p)) {
    margin: 5px;
    padding: 5px;
}

.content-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}