
    body {
      margin: 0;
      font-family: "Segoe UI", Tahoma, sans-serif;
      background: #e9eaea;
      color: #dddede;
    }

    .hidden {
      display: none;
    }

    /* ================= PAGE HEADER ================= */
    .page-header {
      background: linear-gradient(90deg, #02325a, #02325a);
      color: #fff;
      padding: 14px 20px;
      font-size: 1.2rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .header-logo {
      height: 32px;
      /* adjust if needed */
      width: auto;
      object-fit: contain;
    }


    .page-header {
      background: #02325a;
      color: #ffffff;
      padding: 14px 20px;
      font-size: 1.2rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* Left group */
    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* Logo */
    .header-logo {
      height: 32px;
      width: auto;
      object-fit: contain;
    }

    /* Title */
    .header-title {
      white-space: nowrap;
    }

    /* Share button */
    .header-share-btn {
      background: rgba(255, 255, 255, 0.15);
      border: none;
      color: #ffffff;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .header-share-btn:hover {
      background: rgba(255, 255, 255, 0.25);
    }


    /* Popup */
    .help-popup {
      display: none;
      position: absolute;
      top: 55px;
      right: 70px;
      background: #ffffff;
      color: #333;
      border-radius: 6px;
      width: 260px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      font-size: 13px;
      z-index: 9999;
      overflow: hidden;
      /* ensures rounded corners apply to header */
    }

    /* Header styling */
    .help-popup-header {
      color: #038fab;
      background-color: #c2f3fd;
      border-bottom: 1px solid #03aacb;
      font-size: 16px;
      padding: 8px 12px;
      font-weight: 600;
    }

    /* Body styling */
    .help-popup-body {
      padding: 10px 12px;
    }


    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      /* spacing between icons */
    }



    /* Mobile */
    @media (max-width: 768px) {
      .header-title {
        font-size: 1rem;
        white-space: normal;
      }

      .header-logo {
        height: 28px;
      }
    }



    /* ================= LAYOUT ================= */
    .page-wrapper {
      display: flex;
      min-height: calc(100vh - 56px);
    }

    /* ================= LEFT PANEL ================= */

    .left-panel {
      width: 240px;
      background: #fdfdfd;
      border-right: 1px solid #ffa705;
      position: sticky;
      border-radius: 10px 10px 0px 0px;
      top: 56px;
      height: calc(100vh - 56px);
      padding: 16px 12px;
      margin-left: 15px;
      transition: width 0.25s ease;
    }

    /* Collapsed State */
    .left-panel.collapsed {
      width: 68px;
    }

    /* Toggle Button */
    .panel-toggle {
      position: absolute;
      top: 14px;
      right: -14px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid #ffa705;
      background: #ffffff;
      color: #02325a;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
    }

    /* Rotate arrow when collapsed */
    .left-panel.collapsed .panel-toggle i {
      transform: rotate(180deg);
    }

    /* Title */
    .panel-title {
      margin: 0 0 14px;
      font-size: 1rem;
      color: #02325a;
    }

    /* Hide title when collapsed */
    .left-panel.collapsed .panel-title {
      display: none;
    }

    /* Category List */
    .category-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* Category Button */
    .category-list button {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 8px;
      border: none;
      background: #d7d6d6;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
    }

    /* Active */
    .category-list button.active {
      background: #02325a;
      color: #ffffff;
    }

    /* Icon */
    .category-list .icon {
      font-size: 1.1rem;
    }

    /* Hide labels when collapsed */
    .left-panel.collapsed .label {
      display: none;
    }

    /* Center icons when collapsed */
    .left-panel.collapsed .category-list button {
      justify-content: center;
      padding: 10px;
    }


    /* ================= MAIN CONTENT ================= */
    .main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    /* ================= DISTRICT PERFORMANCE ================= */
    .district-performance {
      background: #effdf8;
      margin: 16px;
      padding: 16px;
      border-radius: 14px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .district-performance h3 {
      margin-bottom: 12px;
      color: #025939;
      font-size: 1.05rem;
      font-weight: 700;
    }

    .district-chart {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      overflow-x: auto;
    }

    .district-bar {
      min-width: 70px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .district-value {
      font-size: 0.8rem;
      font-weight: 700;
      color: #4e4f4f;
    }

    .bar {
      width: 100%;
      border-radius: 6px 6px 0 0;
      background: linear-gradient(180deg, #016d46, #013b25);
    }

    .district-name {
      font-size: 0.72rem;
      text-align: center;
      color: #013b25;
      white-space: nowrap;
    }

    /* ================= FILTER BAR ================= */
    .top-bar {
      background: #ffffff;
      border: 1px solid #a8a9aa;
      padding: 16px;
      border-radius: 12px;
      margin: 16px;
    }

    /* Rows */
    .filter-row {
      display: flex;
      flex-wrap: wrap;
      /*gap: 14px;*/
      gap: 5px;
      align-items: flex-end;
      width: 100%;
    }

    .row-1 {
      margin-bottom: 14px;
    }


    /* Filter Groups */
    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 160px;
    }

    .filter-group label {
      font-size: 0.80rem;
      font-weight: 600;
      color: #02325a;
    }

    /* Inputs */
    .filter-group select,
    .filter-group input,
    .search-box input {
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid #a8a9aa;
      font-size: 0.9rem;
    }

    /* Search box */
    .search-box {
      position: relative;
      width: 100%;
      color: rgb(124, 124, 124);
    }

    /* ================= MEDIA ICONS ================= */
    .media-icons {
      display: flex;
      gap: 8px;
    }

    .media-icons button {
      border: 1px solid #a7a7a8;
      background: #ffffff;
      color: #02325a;
      border-radius: 8px;
      padding: 10px 12px;
      cursor: pointer;
    }

    .media-icons button.active {
      background: #02325a;
      color: #ffffff;
      border-color: #02325a;
    }



    /* ================= ACTION BUTTONS ================= */
    .btn-apply {
      background: #02325a;
      color: #fff;
      border: none;
      padding: 8px 16px;
      border-radius: 8px;
      cursor: pointer;
    }

    .btn-reset {
      background: #a9a9a9;
      color: #1f2937;
      border: rgb(87, 86, 86);
      padding: 8px 20px;
      border-radius: 8px;
      cursor: pointer;
    }

    /* ================= MEDIA GRID ================= */
    .media-grid {
      padding: 16px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 16px;
    }



    .sober-card {
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      position: relative;
    }

    .media-preview {
      height: 160px;
      background: #eef2f7;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .media-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .media-icon-only {
      font-size: 2.6rem;
    }

    .yellow-divider {
      height: 1px;
      background: #ffa11d;
    }

    .media-desc {
      padding: 10px 12px;
      font-size: 0.9rem;
      color: #374151;
    }

    .clamp-4 {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .media-info {
      padding: 8px 12px;
      font-size: 0.8rem;
      color: #545455;
    }

    .meta-line {
      margin-bottom: 4px;
    }

    .media-footer {
      padding: 8px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .category-badge {
      font-size: 0.8rem;
      font-weight: 600;
    }

    .share-btn {
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1rem;
    }


    /* ===== SIDEBAR COLLAPSE SUPPORT ===== */
    .left-panel.collapsed~.main-content .search-group {
      max-width: calc(100% - 260px);
      /* expands cleanly */

    }

    .share-btn-circle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: none;
      background: #f3f4f6;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .share-icon {
      width: 18px;
      height: 18px;
    }

    /* Force small size for audio/video icons */
    .media-preview img.media-type-thumb {
      width: 120px !important;
      height: 120px !important;
      max-width: 120px !important;
      max-height: 120px !important;
      object-fit: contain;
    }


    .media-desc-wrapper {
      position: relative;
    }

    .media-desc {
      font-size: 0.9rem;
      line-height: 1.4;
      cursor: pointer;
    }

    .read-more {
      display: inline-block;
      text-align: right;
      margin-top: 4px;
      font-size: 0.75rem;
      color: #2563eb;
      cursor: pointer;
      user-select: none;
      padding: 4px 4px 4px 10px;

    }

    .read-more:hover {
      text-decoration: underline;
    }


    /* ===== MOBILE ===== */
    @media (max-width: 768px) {
      .filter-row {
        flex-direction: column;
        align-items: stretch;
      }

      .search-group,
      .action-group {
        max-width: 100%;
        width: 100%;
      }

      .btn-apply,
      .btn-reset {
        width: 100%;
      }
    }


    /* ===== MOBILE ===== */
    @media (max-width: 768px) {
      .filter-row {
        flex-direction: column;
        align-items: stretch;
      }

      .filter-group,
      .search-group,
      .action-group {
        width: 100%;
      }

      .btn-apply,
      .btn-reset {
        width: 100%;
      }
    }

    /* ================= RESPONSIVE ================= */
    @media (max-width: 768px) {
      .page-wrapper {
        flex-direction: column;
      }

      .left-panel {
        width: 100%;
        height: auto;
        /* position: relative; */
        top: 0;
        border-right: none;
        border-bottom: 1px solid #d6e0ef;
      }


      .filter-row {
        flex-direction: column;
      }

      .filter-group,
      .search-group {
        width: 100%;
      }

      .district-bar {
        min-width: 60px;
      }


      .panel-toggle {
        display: none;
      }


      /* Force left panel categories into grid */
      .left-panel .category-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
      }

      /* Hide text labels on mobile */
      .left-panel .category-list .label {
        display: none;
      }

      /* Center icons */
      .left-panel .category-list button {
        justify-content: center;
        padding: 12px 0;
        border-radius: 10px;
      }

      /* Slightly enlarge icons for touch */
      .left-panel .category-list .icon {
        font-size: 1.4rem;
      }

      /* Remove sticky behavior on mobile */
      .left-panel {
        position: relative;
        width: 100%;
        top: 0;
        height: auto;
      }
    }
 
    .clickable {
      cursor: pointer;
    }

    .meta-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      margin-bottom: 4px;
    }

    .share-btn-circle {
      position: absolute;
      top: 10px;
      right: 10px;
      border: none;
      background: #ffffff;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
      cursor: pointer;
    }

    /* ===== MODAL BASE ===== */
    .media-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    /* hidden by default */
    .media-modal.hidden {
      display: none;
    }

    /* modal box */
    .modal-body {
      background: #fff;
      /*max-width: 90%;
      max-height: 90%;*/
      max-width: 72%;
      max-height: 72%;
      border-radius: 12px;
      padding: 16px;
      position: relative;
      overflow: auto;
      text-align: center;
    }

    /* close button */
    .modal-close {
      position: absolute;
      top: 10px;
      right: 12px;
      font-size: 1.2rem;
      cursor: pointer;
    }

    .fa-share-btn.whatsapp i {
      color: #25D366;
    }

    .fa-share-btn.facebook i {
      color: #1877F2;
    }

    .fa-share-btn.instagram i {
      color: #E1306C;
    }

    .fa-share-btn.twitter i {
      color: #000000;
    }

    .fa-share-btn.linkedin i {
      color: #0A66C2;
    }

    .fa-share-btn.gmail i {
      color: #EA4335;
    }

    .share-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      z-index: 999;
    }

    .fa-share-modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 340px;
      background: #ffffff;
      border-radius: 14px;
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
      z-index: 1000;
      font-family: system-ui, sans-serif;
    }

    .fa-share-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 16px;
      color: #038fab;
      background-color: #c2f3fd;
      border-bottom: 1px solid #03aacb;
    }

    .fa-share-header h3 {
      margin: 0;
      font-size: 16px;
    }

    .fa-close {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
    }

    .fa-share-link {
      display: flex;
      gap: 6px;
      padding: 12px 16px;
    }

    .fa-share-link input {
      flex: 1;
      padding: 7px 8px;
      border: 1px solid #ddd;
      border-radius: 6px;
    }

    .fa-share-link button {
      border: none;
      background: #f3f3f3;
      border-radius: 6px;
      cursor: pointer;
    }

    .fa-share-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 12px 16px 18px;
    }

    .fa-share-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      border-radius: 8px;
      background: #e5e4e4;
      color: #333;
      text-decoration: none;
      transition: background 0.2s ease;
      font-size: 14px;
    }

    .fa-share-btn i {
      font-size: 18px;
    }

    .fa-share-btn:hover {
      background: #c5c5c5;
    }

    .fa-close {
      background: none;
      border: none;
      padding: 0;
      margin: 0;
      appearance: none;
      -webkit-appearance: none;
      font-size: 18px;
      cursor: pointer;
    }

    .fa-close::before,
    .fa-close::after {
      display: none !important;
    }
 