/* Simplified list layout for resources & societies */

.tgf_resources {
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

.tgf_resources .resources-cards {
  box-sizing: border-box;
  width: 100%;
  margin: 16px 0 0 0;
  padding: 0 0 10px 0;
}

/* Section title */
.tgf_resources .resource-section-title {
  border-bottom: 1px solid #cdbfae;
  color: #444;
  font-family: 'Forum', Times, serif;
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
  padding-bottom: 4px;
}

/* Each resource block */
.tgf_resources .resource-entry {
  margin: 10px 0 14px 0;
}

/* Icon + text area */
.tgf_resources .resource-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Icon wrapper */
.tgf_resources .resource-icon {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Icon image */
.tgf_resources img.resource-icon-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  background: transparent !important;
}

/* Text block next to icon */
.tgf_resources .resource-text {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* tighter vertical control */
}

/* Headline */
.tgf_resources .tgf_title2,
.tgf_resources .title2 {
  font-family: 'Forum', Times, serif;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 2px 0; /* tighter */
}

/* Description */
.tgf_resources .resource-description {
  color: #333;
  line-height: 1.35;
  margin: 0; /* remove extra spacing */
}

.tgf_resources .resource-description a {
  color: #318390;
  font-weight: bold;
  text-decoration: none;
}

.tgf_resources .resource-description a:hover {
  text-decoration: underline;
}


/* Restore postcard spacing */
.snips-container {
  margin-top: 20px;
}

.snip-row {
  display: flex;
  gap: 24px;              /* spacing between the two cards */
  margin-bottom: 24px;    /* spacing between rows */
}

.snip-row article {
  flex: 1;
}







.postcard {



  margin: 0;              /* prevent collapse */



}







/* Mobile */



@media (max-width: 700px) {



  .tgf_resources .resource-item {



    gap: 10px;



  }







  .tgf_resources .resource-entry {



    margin: 8px 0 12px 0;



  }







  .tgf_resources .resource-icon {



    flex: 0 0 60px;



    width: 60px;



    height: 60px;



  }







  .tgf_resources img.resource-icon-img {



    width: 60px;



    height: 60px;



  }







  .tgf_resources .resource-text {



    min-height: 60px;



  }







  .tgf_resources .title2,



  .tgf_resources .tgf_title2 {



    font-size: 20px;



  }



}



/* index.php tree + desktop layout */

body.index .tgf-tree-wrapper {

  text-align: left;

  margin: 0 0 16px 0;

  padding-left: 0;

}



body.index .tgf-tree-wrapper img {

  display: block;

  width: 175px;

  height: auto;

  margin: 0;

  box-shadow: none !important;

  border: 0 !important;

  background: transparent !important;

}



body.index #tsearchbox .site-head {

  margin-top: 0;

}



body.index .art-content-layout .art-sidebar1 {

  width: 220px !important;

  padding-left: 0 !important;

}



body.index .art-postcontent {

  display: flex;

  align-items: flex-start;

  gap: 12px !important;

}



body.index .art-postcontent > div:first-child {

  flex: 1 1 auto;

  min-width: 0;

}



body.index .snips-container {

  flex: 0 0 392px !important;

  margin-top: 0 !important;

}



body.index .snip-row {

  display: flex;

  gap: 18px !important;

  margin-bottom: 18px !important;

}



body.index .snip-row article {

  flex: 1 1 0;

}



body.index .postcard {

  margin: 0 !important;

}



/* Responsive index layout */

@media (max-width: 900px) {

  body.index .art-postcontent {

    display: block !important;

  }



  body.index .snips-container {

    width: 100% !important;

    max-width: none !important;

    margin-top: 20px !important;

    flex: none !important;

  }



  body.index .snip-row {

    display: flex;

    gap: 18px !important;

    margin-bottom: 18px !important;

  }



  body.index .snip-row article {

    flex: 1 1 0;

  }

}



@media (max-width: 700px) {

  body.index .art-content-layout .art-sidebar1 {

    width: auto !important;

    max-width: none !important;

  }



  body.index .snip-row {

    display: block !important;

    margin-bottom: 0 !important;

  }



  body.index .snip-row article {

    display: block;

    width: 100% !important;

    margin: 0 0 18px 0 !important;

  }



  body.index .snips-container {

    margin-top: 16px !important;

  }



  body.index .tgf-tree-wrapper img {

    width: 140px !important;

  }

}

/* Re-center footer on index.php */
body.index .art-footer,
body.index .art-footer-body,
body.index .art-footer-text {
  width: 100% !important;
  max-width: none !important;
  text-align: center !important;
  clear: both !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.index .art-footer-text p,
body.index .art-footer-text p.smaller,
body.index .art-footer-text p.center {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.index .art-footer-text .dotted-line {
  width: 100% !important;
}

body.index .art-footer-text .art-rss-tag-icon {
  float: none !important;
  display: inline-block;
  vertical-align: middle;
}

.brick-wall {
  font-weight: bold;
  font-size: calc(1em + 4px);
  color: #AA4A44;
}
