/**
Theme Name: osn
Author: Takashi Hosoya
Author URI: https://ht79.info/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osn
Template: astra
*/

/* Organization Information Styles */
.organization-info {
  margin: 1.5rem 0;
  padding: 0;
  background: transparent;
  border: none;
}

.organization-info__title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding: 0;
  background: none;
  border: none;
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
}

.organization-info__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.2em;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  border-radius: 2px;
}

.organization-info__section {
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.organization-info__section:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.organization-info__section:last-child {
  margin-bottom: 0;
}

.organization-info__section-title {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 0;
  padding: 0.75rem 1.25rem;
  background: #f8f9fa;
  border: none;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0 !important;
}

.organization-info__content {
  background: #fff;
  padding: 1.25rem;
  border: none;
}

/* Organization Field Styles */
.org-field {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f8f9fa;
}

.org-field:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.org-field__label {
  font-weight: 500;
  color: #6c757d;
  min-width: 120px;
  margin-right: 1rem;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.org-field__value {
  flex: 1;
  min-width: 200px;
  color: #2c3e50;
  line-height: 1.5;
  font-weight: 400;
}

.org-field__value a {
  color: #0073aa;
  text-decoration: none;
}

.org-field__value a:hover {
  text-decoration: underline;
}

/* Contact Persons Styles */
.organization-contact-persons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-person {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-person:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.contact-person__photo {
  margin-bottom: 1rem;
}

.contact-person__photo img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #ddd;
}

.contact-person__name {
  display: block;
  text-align: center;
}

.contact-person__name .org-field__label {
  display: block;
  min-width: auto;
  margin-right: 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.contact-person__name .org-field__value {
  font-weight: 600;
  color: #333;
  min-width: auto;
}

/* Activity Information Styles */
.organization-activity-info .org-field {
  margin-bottom: 1.5rem;
  flex-direction: column;
}

.organization-activity-info .org-field__label {
  min-width: auto;
  margin-right: 0;
  margin-bottom: 0.5rem;
}

.organization-activity-info .org-field__value {
  min-width: auto;
}

.organization-activity-info .org-field__value p {
  margin-bottom: 0.75rem;
}

.organization-activity-info .org-field__value p:last-child {
  margin-bottom: 0;
}

/* Taxonomy Information Styles */
.organization-taxonomy-info .org-field__value {
  font-weight: 500;
  color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .organization-info {
    margin: 1rem 0;
  }

  .organization-info__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .organization-info__section-title {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .organization-info__content {
    padding: 1rem;
  }

  .org-field {
    flex-direction: column;
  }

  .org-field__label {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }

  .org-field__value {
    min-width: auto;
  }

  .organization-contact-persons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .organization-info__title {
    font-size: 1.1rem;
  }

  .organization-info__section-title {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .organization-info__content {
    padding: 0.75rem;
  }

  .contact-person {
    padding: 1rem;
  }

  .org-field__label {
    min-width: 100px;
    font-size: 0.85rem;
  }
}

/* Organization List Styles for Front Page */
.organization-list-container {
  margin: 2rem 0;
}

.organization-list-header {
  text-align: center;
  margin-bottom: 3rem;
}

.organization-list-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.organization-list-description {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Organization Search Styles */
.organization-search {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.organization-search-form .search-fields {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 1rem;
  align-items: end;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Organizations Grid */
.organizations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.no-organizations {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
  font-size: 1.1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Organization Card Styles */
.organization-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: fit-content;
}

.organization-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.organization-card__header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f8f9fa;
}

.organization-card__name {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.organization-card__name a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.organization-card__name a:hover {
  color: #0073aa;
}

.organization-card__location {
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.location-icon {
  font-size: 0.8rem;
}

.organization-card__content {
  padding: 1rem 1.5rem;
}

.organization-card__section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.organization-card__activities,
.organization-card__strengths {
  margin-bottom: 1rem;
}

.organization-card__activities:last-child,
.organization-card__strengths:last-child {
  margin-bottom: 0;
}

.organization-card__content p {
  margin: 0;
  color: #495057;
  line-height: 1.5;
  font-size: 0.9rem;
}

.organization-card__footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.organization-card__taxonomies {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.organization-card__taxonomy-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.organization-card__taxonomy-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.organization-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.organization-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #f8f9fa;
  color: #495057;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.organization-tag:hover {
  background: #e9ecef;
  color: #343a40;
  transform: translateY(-1px);
}

.organization-tag.activity-phase {
  background: #fff3cd;
  color: #856404;
  border-color: #ffd60a;
}

.organization-tag.activity-phase:hover {
  background: #ffecb5;
  color: #664d03;
}

.organization-card__link {
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.organization-card__link:hover {
  color: #005a87;
}

/* Fix margin consistency for filtered pages */
.ast-plain-container.ast-no-sidebar #primary {
  margin-top: 60px !important;
  margin-bottom: 60px !important;
}

/* Override separate container styles when filtering */
body.home[class*="activity_type_filter"] .ast-separate-container #primary {
  margin: 60px 0 !important;
}

/* Activity Type Filters */
.activity-type-filters {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.activity-type-filters__title {
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-type-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.activity-type-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #495057;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.activity-type-button:hover {
  background: #f8f9fa;
  border-color: #0073aa;
  color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.activity-type-button.active {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

.activity-type-button.active:hover {
  background: #1a252f;
  border-color: #1a252f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}


/* Responsive Design for Organization List */
@media (max-width: 768px) {
  .organization-list-title {
    font-size: 1.6rem;
  }
  
  .activity-type-filters {
    padding: 1.5rem;
  }
  
  .activity-type-filters__title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .activity-type-buttons {
    gap: 0.5rem;
  }
  
  .activity-type-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .organization-list-description {
    font-size: 1rem;
  }
  
  .organization-search {
    padding: 1.5rem;
  }
  
  .organization-search-form .search-fields {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .organizations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .organization-card__footer {
    gap: 1rem;
  }
  
  .organization-card__link {
    text-align: center;
    align-self: stretch;
  }
}

@media (max-width: 480px) {
  .organization-list-container {
    margin: 1rem 0;
  }
  
  .organization-list-header {
    margin-bottom: 2rem;
  }
  
  .organization-search {
    padding: 1rem;
  }
  
  .organization-card__header,
  .organization-card__content,
  .organization-card__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
