/* ─────────────────────────────────────────────
   📁 Accordion Container
───────────────────────────────────────────────*/
.accordion-border {
  border-top: 1px solid #ccc;
}

/* ─────────────────────────────────────────────
   📦 Accordion Items
───────────────────────────────────────────────*/
.accordion-item {
  margin-bottom: 0;              /* Remove vertical gap between items */
  border-bottom: 1px solid #ccc; /* Divider between sections */
}

/* ─────────────────────────────────────────────
   🧲 Accordion Toggle Button
───────────────────────────────────────────────*/
.accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;       /* Tighter spacing */
  font-size: 1rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.accordion-toggle:hover {
  background-color: #f9f9f9;     /* Subtle hover feedback */
}

.accordion-toggle[aria-expanded="true"] {
  font-weight: 600;              /* Slight emphasis when expanded */
}


/* 🔵 Collapsed state: blue background */
.accordion-toggle[aria-expanded="false"] {
  background-color: #e0f0ff; /* Soft blue tone */
  color: #003366;            /* Deep blue text for contrast */
}

/* 🟦 Hover effect for collapsed state */
.accordion-toggle[aria-expanded="false"]:hover {
  background-color: #d0e8ff; /* Slightly darker on hover */
}
.content-section p {
  font-size: 0.95rem;
}
.content-section p a,
.content-section li a {
font-size:0.95rem;
  text-decoration: underline;    /* Underline by default */
  color: #0056b3;                 /* Normal link color */
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.content-section p a:hover,
.content-section li a:hover {
	font-size:0.95rem;
  color: #003366;                 /* Darker color on hover */
  text-decoration-color: #003366; /* Underline color changes too */
}
/* ─────────────────────────────────────────────
   🗂️ Accordion Panel (Collapsible Content)
───────────────────────────────────────────────*/
.accordion-panel {
  padding: 0.5rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease-in-out;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─────────────────────────────────────────────
   🧱 Award Table Structure
───────────────────────────────────────────────*/
.award-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem; /* Slightly reduced overall scale */
}

/* 📐 Table cells */
.award-table th,
.award-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  border: 1px solid #ccc;
  word-wrap: break-word;
  vertical-align: top;
}

/* 🎯 Header styling */
.award-table thead {
  background-color: #f3f3f3;
  font-weight: 600;
}

.award-table th {
  vertical-align: middle;
  text-align: center;
}

/* 🔗 Link styling */
.result-column a {
  text-decoration: underline;
}

/* 📊 Column widths: 30% / 20% / 30% / 20% */
.award-table th:nth-child(1),
.award-table td:nth-child(1) {
  width: 40%;
}

.award-table th:nth-child(2),
.award-table td:nth-child(2) {
  width: 35%;
}

.award-table th:nth-child(3),
.award-table td:nth-child(3) {
  width: 25%;
  text-align: center;
}

/* 🖼 Badge image sizing */
.badge {
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   📱 Accordion & Table: Responsive Adjustments
───────────────────────────────────────────────*/
@media (max-width: 768px) {
  .accordion-toggle {
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem;
  }

  .accordion-panel {
    padding: 0.5rem;
  }

  .award-table th,
  .award-table td {
    font-size: 0.85rem;
    padding: 0.25rem 0.4rem;
  }

  .award-table th {
    text-align: left;
  }
    .content-section p,
  .content-section p a,
  .content-section li a {
    font-size: 0.90rem;
  }
}

@media (max-width: 480px) {

  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;        /* prevent visual overflow */
  }

  .award-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;       /* KEY CHANGE */
    font-size: 0.75rem;
    line-height: 1.35;
  }

  /* Force cells to respect container width */
  .award-table th,
  .award-table td {
    max-width: 0;              /* CRITICAL for fixed layout */
    white-space: normal;
    overflow-wrap: anywhere;  /* breaks long URLs safely */
    word-break: normal;
    hyphens: auto;
    padding: 0.25rem 0.4rem;
    vertical-align: top;
  }
  .award-table th {
  text-align: center;
}

  /* Rebalance column widths ONLY for mobile */
  .award-table th:nth-child(1),
  .award-table td:nth-child(1) { width: 40%; }

  .award-table th:nth-child(2),
  .award-table td:nth-child(2) { width: 35%; }

  .award-table th:nth-child(3),
  .award-table td:nth-child(3) {
    width: 25%;
    text-align: center;
  }

  /* Ensure links don’t force width */
  .award-table a {
    display: inline;
    word-break: break-word;
  }

  /* Badge safety */
  .badge {
    max-width: 100%;
    height: auto;
    max-height: 45px;
  }
}
