/* ===============================
   Base typography & layout
   =============================== */

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

h1 {
  margin-bottom: 15px;
  font-weight: 600;
}

/* ===============================
   Table layout
   =============================== */

.agency-table-wrapper {
  width: 100%;
  overflow-x: auto;        /* enables horizontal scroll on small screens */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.agency-table-wrapper .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;        /* prevents columns from crushing too much */
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e1e1e1;
  vertical-align: middle;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  white-space: nowrap;
}

.table tbody tr:hover {
  background-color: #f5f5f5;
}

a {
  color: #0073e6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===============================
   Logo styling
   =============================== */

.agency-logo {
  display: inline-block;
  width: 90px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  border-radius: 3px;
  background-color: #fafafa; /* so white logos are visible */
}

/* LOGO SOURCES – using domains from your table */

/* AUSTRALIA */
.agency-logo-aap {
  background-image: url("https://logo.clearbit.com/aap.com.au");
}

/* BAHRAIN */
.agency-logo-bna {
  background-image: url("https://logo.clearbit.com/bna.bh");
}

/* BANGLADESH */
.agency-logo-bss {
  background-image: url("https://logo.clearbit.com/bssnews.net");
}

/* BELGIUM */
.agency-logo-belga {
  background-image: url("https://logo.clearbit.com/belga.be");
}

/* BRAZIL */
.agency-logo-agenciabrasil {
  background-image: url("https://logo.clearbit.com/agenciabrasil.ebc.com.br");
}

/* BULGARIA */
.agency-logo-bta {
  background-image: url("https://logo.clearbit.com/bta.bg");
}

/* CAMBODIA */
.agency-logo-akp {
  background-image: url("https://logo.clearbit.com/akp.gov.kh");
}

/* CANADA */
.agency-logo-cp {
  background-image: url("https://logo.clearbit.com/thecanadianpress.com");
}

/* CHINA */
.agency-logo-xinhua {
  background-image: url("https://logo.clearbit.com/news.cn");
}
.agency-logo-cns {
  background-image: url("https://logo.clearbit.com/chinanews.com");
}

/* CUBA */
.agency-logo-prensalatina {
  background-image: url("https://logo.clearbit.com/prensa-latina.cu");
}

/* EGYPT */
.agency-logo-mena {
  background-image: url("https://logo.clearbit.com/mena.org.eg");
}

/* FRANCE */
.agency-logo-afp {
  background-image: url("https://logo.clearbit.com/afp.com");
}

/* GERMANY */
.agency-logo-dpa {
  background-image: url("https://logo.clearbit.com/dpa.com");
}

/* GREECE */
.agency-logo-amna {
  background-image: url("https://logo.clearbit.com/amna.gr");
}

/* INDIA */
.agency-logo-pti {
  background-image: url("https://logo.clearbit.com/ptinews.com");
}
.agency-logo-uni {
  background-image: url("https://logo.clearbit.com/uniindia.com");
}
.agency-logo-ians {
  background-image: url("https://logo.clearbit.com/ians.in");
}
.agency-logo-ani {
  background-image: url("https://logo.clearbit.com/aninews.in");
}

/* INDONESIA */
.agency-logo-antara {
  background-image: url("https://logo.clearbit.com/antaranews.com");
}

/* IRAN */
.agency-logo-irna {
  background-image: url("https://logo.clearbit.com/irna.ir");
}
.agency-logo-fars {
  background-image: url("https://logo.clearbit.com/farsnews.ir");
}
.agency-logo-isna {
  background-image: url("https://logo.clearbit.com/isna.ir");
}
.agency-logo-mehr {
  background-image: url("https://logo.clearbit.com/mehrnews.com");
}

/* ITALY */
.agency-logo-ansa {
  background-image: url("https://logo.clearbit.com/ansa.it");
}
.agency-logo-agi {
  background-image: url("https://logo.clearbit.com/agi.it");
}
.agency-logo-adnkronos {
  background-image: url("https://logo.clearbit.com/adnkronos.com");
}

/* JAPAN */
.agency-logo-kyodo {
  background-image: url("https://logo.clearbit.com/kyodonews.net");
}
.agency-logo-jiji {
  background-image: url("https://logo.clearbit.com/jiji.com");
}

/* JORDAN */
.agency-logo-petra {
  background-image: url("https://logo.clearbit.com/petra.gov.jo");
}

/* NAMIBIA */
.agency-logo-nampa {
  background-image: url("https://logo.clearbit.com/nampa.org");
}

/* NETHERLANDS */
.agency-logo-anp {
  background-image: url("https://logo.clearbit.com/anp.nl");
}

/* NIGERIA */
.agency-logo-nan {
  background-image: url("https://logo.clearbit.com/nannews.ng");
}

/* NORTH KOREA */
.agency-logo-kcna {
  background-image: url("https://logo.clearbit.com/kcna.kp");
}

/* NORWAY */
.agency-logo-ntb {
  background-image: url("https://logo.clearbit.com/ntb.no");
}

/* PAKISTAN */
.agency-logo-app {
  background-image: url("https://logo.clearbit.com/app.com.pk");
}
.agency-logo-ppi {
  background-image: url("https://logo.clearbit.com/ppinewsagency.com");
}

/* PORTUGAL */
.agency-logo-lusa {
  background-image: url("https://logo.clearbit.com/lusa.pt");
}

/* QATAR */
.agency-logo-qna {
  background-image: url("https://logo.clearbit.com/qna.org.qa");
}

/* ROMANIA */
.agency-logo-agerpres {
  background-image: url("https://logo.clearbit.com/agerpres.ro");
}

/* RUSSIA */
.agency-logo-tass {
  background-image: url("https://logo.clearbit.com/tass.com");
}
.agency-logo-interfax {
  background-image: url("https://logo.clearbit.com/interfax.com");
}

/* SAUDI ARABIA */
.agency-logo-spa {
  background-image: url("https://logo.clearbit.com/spa.gov.sa");
}

/* SOUTH AFRICA */
.agency-logo-ana {
  background-image: url("https://logo.clearbit.com/africannewsagency.com");
}

/* SOUTH KOREA */
.agency-logo-yonhap {
  background-image: url("https://logo.clearbit.com/yna.co.kr");
}

/* SPAIN */
.agency-logo-efe {
  background-image: url("https://logo.clearbit.com/efe.com");
}
.agency-logo-europapress {
  background-image: url("https://logo.clearbit.com/europapress.es");
}
.agency-logo-acn {
  background-image: url("https://logo.clearbit.com/acn.cat");
}

/* SWEDEN */
.agency-logo-tt {
  background-image: url("https://logo.clearbit.com/tt.se");
}

/* SWITZERLAND */
.agency-logo-keystonesda {
  background-image: url("https://logo.clearbit.com/keystone-sda.ch");
}

/* SYRIA */
.agency-logo-sana {
  background-image: url("https://logo.clearbit.com/sana.sy");
}

/* TAIWAN */
.agency-logo-cna-tw {
  background-image: url("https://logo.clearbit.com/cna.com.tw");
}

/* TURKEY */
.agency-logo-anadolu {
  background-image: url("https://logo.clearbit.com/aa.com.tr");
}

/* UKRAINE */
.agency-logo-ukrinform {
  background-image: url("https://logo.clearbit.com/ukrinform.net");
}

/* UNITED ARAB EMIRATES */
.agency-logo-wam {
  background-image: url("https://logo.clearbit.com/wam.ae");
}

/* UNITED KINGDOM */
.agency-logo-pa {
  background-image: url("https://logo.clearbit.com/pa.media");
}
.agency-logo-reuters {
  background-image: url("https://logo.clearbit.com/reuters.com");
}
.agency-logo-swns {
  background-image: url("https://logo.clearbit.com/swns.com");
}
.agency-logo-splash {
  background-image: url("https://logo.clearbit.com/splashnews.com");
}

/* UNITED STATES */
.agency-logo-ap {
  background-image: url("https://logo.clearbit.com/apnews.com");
}
.agency-logo-upi {
  background-image: url("https://logo.clearbit.com/upi.com");
}
.agency-logo-bloomberg {
  background-image: url("https://logo.clearbit.com/bloomberg.com");
}

/* VENEZUELA */
.agency-logo-avn {
  background-image: url("https://logo.clearbit.com/avn.info.ve");
}

/* VIETNAM */
.agency-logo-vna {
  background-image: url("https://logo.clearbit.com/vnanet.vn");
}

/* YEMEN */
.agency-logo-saba {
  background-image: url("https://logo.clearbit.com/sabanew.net");
}

/* ===============================
   Mobile tweaks
   =============================== */

@media (max-width: 768px) {
  .agency-table-wrapper .table {
    font-size: 13px;
    min-width: 560px;
  }

  .table th,
  .table td {
    padding: 8px 6px;
  }

  .agency-logo {
    width: 70px;
    height: 24px;
  }
}
