/* =====================
   PHOTO + ABOUT SIDE BY SIDE
===================== */
.org-group-top {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1em; /* space between photo and about */
    width: 100%;
    margin-bottom: .2em;
}

.org-photo-node {
    flex: 0 0 200px; /* fixed photo width */
}
.org-photo-node img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* rounded edges */
    border: 5px solid #dd821d; /* orange border */
    display: block;
}

.org-about-node {
    flex: 1 1 auto; /* fill remaining space */
    min-width: 0; /* fixes text wrapping in flex container */
}

/* =====================
   CARD-LIKE BLOCKS
===================== */
.org-card {
    background-color: #dd821d; /* unified orange background */
    padding: 15px;
    margin-bottom: 0.5em;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    color: white; /* default text white */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* aligns everything to the top */
    min-height:175px;
}
	
.org-orgtype-node, .org-services-node {
	margin-top:0;
}

.org-orgtype-node-label, .org-services-node-label {
	margin:6px 0 0 0;
	font-weight: bold;
  margin-bottom: 1em;
  display: block;
  color: black; /* labels appear black */
  font-size:18px;
}

/* =====================
   PARENT ORGANIZATION ROW
===================== */
.org-parentorg-node {
    background-color: #e6a64d; /* lighter shade of #dd821d */
    padding: 15px;
    border-radius: 8px;
    color: #000;              /* default text white */
    margin-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: .2em;
    justify-content: flex-start; /* left-align content */
    text-align: left;            /* ensures text inside divs is left-aligned */
}

/* Labels inside parent org row */
.org-parentorg-node .field__label {
    font-weight: bold;
    color: black;              /* label text black */
    margin-bottom: 0;
    text-align: left;          /* ensures label is left-aligned */
}

/* Items inside parent org row */
.org-parentorg-node .field-item {
    color: #000;
    text-align: left;          /* ensures content text is left-aligned */
}

/* Add colon to all labels */
.field__label, 
.org-about-node-label,
.org-website-node-label,
.org-email-node-label,
.org-parentorg-node .field__label,
.org-notes-node .field__label,
.org-orgtype-node-label,
.org-services-node-label {
    position: relative;
}

.field__label::after,
.org-about-node-label::after,
.org-website-node-label::after,
.org-email-node-label::after,
.org-parentorg-node .field__label::after,
.org-notes-node .field__label::after,
.org-orgtype-node-label::after,
.org-services-node-label::after {
    content: ":";
    margin-left: 0.25em; /* small space between label and colon */
}

/* =====================
   NOTES ROW
===================== */
.org-notes-node {
    background-color: #f3d8a6; /* even lighter shade of #dd821d */
    padding: 15px;
    border-radius: 8px;
    color: #000;              /* default text white */
    margin-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
    justify-content: flex-start; /* left-align content */
    text-align: left;            /* ensures text inside divs is left-aligned */
}

/* Labels inside notes row */
.org-notes-node .field__label {
    font-weight: bold;
    color: black;              /* label text black */
    margin-bottom: 0;
    text-align: left;          /* ensures label is left-aligned */
}

/* Items inside notes row */
.org-notes-node .field-item {
    color: #000;
    text-align: left;          /* ensures content text is left-aligned */
}


/* =====================
   LABELS
===================== */
.field__label, .org-about-node-label {
    font-weight: bold;
    margin-bottom: 0.5em;
    display: block;
    color: black; /* labels appear black */
}

/* =====================
   TYPOGRAPHY
===================== */
 .org-card .field-item {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
}

.org-about-node-item {
    color: #000; /* black text for About the Organization */
}

/* =====================
   TAXONOMY TERMS
===================== */
.node-type-community-organization .taxonomy-terms {
    padding-left: 0;
    margin:0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.node-type-community-organization .taxonomy-terms li {
    background-color: #e6a64d; /* lighter shade of #dd821d */
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 20px;
    align-items: center; /* vertical center alignment */
}

/* Remove icons from taxonomy labels */
.org-orgtype-node-label i,
.org-services-node-label i {
    display: none;
}

/* =====================
   SOCIAL LINKS
===================== */
.social-media-links--platforms {
    display: flex;
    gap: 10px;
    margin-top: 1em;
}

/* =====================
   ADDITIONAL PHOTOS GRID
===================== */
.org-photogallery-node .field-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.org-photogallery-node img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 5px solid #dd821d;
}

/* =====================
   MIDDLE GROUP CARDS
===================== */
.org-middle-group {
    display: flex;
    flex-wrap: wrap;
    gap: .2em;
    align-items: stretch;
}
.org-middle-group > .org-card {
    flex: 1 1 250px; /* responsive width */
    box-sizing: border-box;
    margin-bottom: 0.5em; /* your new spacing */
}

/* =====================
   BOTTOM GROUP CARDS
===================== */
.org-bottom-group {
    display: flex;
    flex-wrap: wrap;
    gap: .2em;
    align-items: stretch; /* ensures all cards in the row stretch to the same height */
}
.org-bottom-group > .org-card {
    flex: 1 1 250px;
    min-height: 80px; /* ensures equal height for bottom cards */
    box-sizing: border-box;
    margin-bottom: 0.5em; /* your new spacing */
}

/* =====================
   LINK STYLES FOR MIDDLE & BOTTOM CARDS
===================== */
.org-middle-group a,
.org-bottom-group a {
    color: white;
    text-decoration: underline;
}

.org-middle-group a:hover,
.org-bottom-group a:hover {
    color: black;
}
/* =====================
   RESPONSIVE / MOBILE STYLES
===================== */
@media (max-width: 768px) {
  .org-group-top {
    flex-direction: column !important; /* stack vertically */
    align-items: center; /* optional: center items horizontally */
    text-align: center; /* optional: center text for better mobile look */
  }

  .org-photo-node {
    flex: 0 0 auto;
    width: 80%; /* smaller photo width on mobile */
    margin-bottom: 1em; /* space between photo and about section */
  }

  .org-about-node {
    width: 100%;
  }

  /* Make taxonomy terms wrap nicely */
  .node-type-community-organization .taxonomy-terms {
    justify-content: center; /* optional */
  }
}
